+
    NV-j÷]  ã                   óÒ  € R t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	t	^ RI
Ht ^ RIHt ^ RIHt ^ RIHt ^RIHt ^RIHt ]P*                  '       d   ^RIHt ^R	IHt R
 R lt ! R R4      t ! R R]4      t]P8                  R"8¼  d   R R ltMR R l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  R!]4      t$R# )#zKAPI and implementations for loading templates from different data
sources.
N)Úabc)Úsha1)Úimport_module)Ú
ModuleType)ÚTemplateNotFound)Úinternalcode)ÚEnvironment)ÚTemplatec                óZ   € V ^8„  d   QhR\         R\        P                  \         ,          /# ©é   ÚtemplateÚreturn)ÚstrÚtÚList)Úformats   "Ú_/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/jinja2/loaders.pyÚ__annotate__r      s"   € ÷ ñ ¤#ð ¬!¯&©&´­+ñ ó    c                ó’  € . pV P                  R4       F¯  p\        P                  P                  V9   g_   \        P                  P                  '       d    \        P                  P                  V9   g    V\        P                  P
                  8X  d   \        V 4      hV'       g   K•  VR8w  g   Kž  VP                  V4       K±  	  V# )z�Split a path into segments and perform a sanity check.  If it detects
'..' in the path it will raise a `TemplateNotFound` error.
Ú/Ú.)ÚsplitÚosÚpathÚsepÚaltsepÚpardirr   Úappend)r   ÚpiecesÚpieces   &  r   Úsplit_template_pathr"      s�   € ð €FØ—‘ Ö$ˆä�G‰G�K‰K˜5Ô Ü—‘——�¤2§7¡7§>¡>°UÔ#:ØœŸ™Ÿ™Ô&ä" 8Ó,Ð,ß‰U�u –|Ø�M‰M˜%Ö ñ %ð €Mr   c                   ól   a € ] tR t^*t o RtRtV 3R lR ltV 3R lR lt]RV 3R lR	 ll4       t	R
t
V tR# )Ú
BaseLoaderaq  Baseclass for all loaders.  Subclass this and override `get_source` to
implement a custom loading mechanism.  The environment provides a
`get_template` method that calls the loader's `load` method to get the
:class:`Template` object.

A very basic example for a loader that looks up templates on the file
system could look like this::

    from jinja2 import BaseLoader, TemplateNotFound
    from os.path import join, exists, getmtime

    class MyLoader(BaseLoader):

        def __init__(self, path):
            self.path = path

        def get_source(self, environment, template):
            path = join(self.path, template)
            if not exists(path):
                raise TemplateNotFound(template)
            mtime = getmtime(path)
            with open(path) as f:
                source = f.read()
            return source, path, lambda: mtime == getmtime(path)
Tc                óÈ   <€ V ^8„  d   QhRRRS[ RS[P                  S[ S[P                  S[ ,          S[P                  S[P                  . S[3,          ,          3,          /# ©r   Úenvironmentr   r   r   ©r   r   ÚTupleÚOptionalÚCallableÚbool)r   Ú__classdict__s   "€r   r   ÚBaseLoader.__annotate__K   sS   ø€ ÷ )ñ )Ø(ð)Ù47ð)á	
�‰‘‘a—j‘j¡•o¡q§z¡z±!·*±*¸RÁ¸XÕ2FÕ'GÐGÕ	Hñ)r   c                ó~   € V P                   '       g"   \        \        V 4      P                   R24      h\	        V4      h)a?  Get the template source, filename and reload helper for a template.
It's passed the environment and template name and has to return a
tuple in the form ``(source, filename, uptodate)`` or raise a
`TemplateNotFound` error if it can't locate the template.

The source part of the returned tuple must be the source of the
template as a string. The filename should be the name of the
file on the filesystem if it was loaded from there, otherwise
``None``. The filename is used by Python for the tracebacks
if no loader extension is used.

The last item in the tuple is the `uptodate` function.  If auto
reloading is enabled it's always called to check if the template
changed.  No arguments are passed so the function must store the
old state somewhere (for example in a closure).  If it returns `False`
the template will be reloaded.
z$ cannot provide access to the source)Úhas_source_accessÚRuntimeErrorÚtypeÚ__name__r   )Úselfr'   r   s   &&&r   Ú
get_sourceÚBaseLoader.get_sourceK   s@   € ð( ×%×%Ð%ÜÜ˜“:×&Ñ&Ð'Ð'KÐLóð ô ˜xÓ(Ð(r   c                óD   <€ V ^8„  d   QhRS[ P                  S[,          /# ©r   r   ©r   r   r   )r   r-   s   "€r   r   r.   e   s   ø€ ÷ Iñ I¡§¡¡s¥ñ Ir   c                ó   € \        R4      h)z„Iterates over all templates.  If the loader does not support that
it should raise a :exc:`TypeError` which is the default behavior.
z-this loader cannot iterate over all templates)Ú	TypeError©r4   s   &r   Úlist_templatesÚBaseLoader.list_templatese   s   € ô ÐGÓHÐHr   Nc          	      ó�   <€ V ^8„  d   QhRRRS[ RS[P                  S[P                  S[ S[P                  3,          ,          RR/# ©r   r'   r   ÚnameÚglobalsr   r	   ©r   r   r*   ÚMutableMappingÚAny)r   r-   s   "€r   r   r.   l   sO   ø€ ÷ )
ñ )
à"ð)
ñ ð)
ñ —‘™A×,Ñ,©S±!·%±%¨ZÕ8Õ9ð	)
ð
 
ñ)
r   c                óL  € RpVf   / pV P                  W4      w  rVpVP                  pVe   VP                  WWe4      p	V	P                  pVf   VP	                  WRV4      pVe&   X	P                  f   WIn        VP                  V	4       VP                  P                  WW74      # )a;  Loads a template.  This method looks up the template in the cache
or loads one by calling :meth:`get_source`.  Subclasses should not
override this method as loaders working on collections of other
loaders (such as :class:`PrefixLoader` or :class:`ChoiceLoader`)
will not call this method but `get_source` directly.
N)r5   Úbytecode_cacheÚ
get_bucketÚcodeÚcompileÚ
set_bucketÚtemplate_classÚ	from_code)
r4   r'   rA   rB   rI   ÚsourceÚfilenameÚuptodateÚbccÚbuckets
   &&&&      r   ÚloadÚBaseLoader.loadk   s«   € ð ˆØŠ?ØˆGð &*§_¡_°[Ó%GÑ"ˆ˜(ð ×(Ñ(ˆØŠ?Ø—^‘^ K°xÓHˆFØ—;‘;ˆDð Š<Ø×&Ñ& v°XÓ>ˆDð
 Š?˜vŸ{™{Ò2ØŒKØ�N‰N˜6Ô"à×)Ñ)×3Ñ3Ø˜wó
ð 	
r   © ©N)r3   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r0   r5   r=   r   rS   Ú__static_attributes__Ú__classdictcell__©r-   s   @r   r$   r$   *   sA   ø‡ € ñð< Ð÷)ð )÷4Ið Ið ÷)
ñ )
ó ö)
r   r$   c                   ó^   a € ] tR t^˜t o RtR
V 3R lR lltV 3R lR ltV 3R lR ltRtV t	R	# )ÚFileSystemLoaderaÜ  Load templates from a directory in the file system.

The path can be relative or absolute. Relative paths are relative to
the current working directory.

.. code-block:: python

    loader = FileSystemLoader("templates")

A list of paths can be given. The directories will be searched in
order, stopping at the first matching template.

.. code-block:: python

    loader = FileSystemLoader(["/override/templates", "/default/templates"])

:param searchpath: A path, or list of paths, to the directory that
    contains the templates.
:param encoding: Use this encoding to read the text from template
    files.
:param followlinks: Follow symbolic links in the path.

.. versionchanged:: 2.8
    Added the ``followlinks`` parameter.
c                ó¨   <€ V ^8„  d   QhRS[ P                  S[RS[ P                  S[ P                  S[R3,          ,          3,          RS[RS[RR/# )r   Ú
searchpathúos.PathLike[str]ÚencodingÚfollowlinksr   N)r   ÚUnionr   ÚSequencer,   )r   r-   s   "€r   r   ÚFileSystemLoader.__annotate__³   s_   ø€ ÷ 'ñ 'á—G‘GÙÐ#¡Q§Z¡Z±·±¹Ð=OÐ8OÕ0PÕ%QÐQõ
ð'ñ
 ð'ñ ð'ð 
ñ'r   c                óð   € \        V\        P                  4      '       d   \        V\        4      '       d   V.pV Uu. uF  p\        P
                  ! V4      NK  	  upV n        W n        W0n        R # u upi rV   )	Ú
isinstancer   ÚIterabler   r   Úfspathra   rc   rd   )r4   ra   rc   rd   Úps   &&&& r   Ú__init__ÚFileSystemLoader.__init__³   sV   € ô ˜*¤c§l¡l×3Ò3´zÀ*Ìc×7RÒ7RØ$˜ˆJá1;Ó<±¨Aœ2Ÿ9š9 Qž<±Ñ<ˆŒØ ŒØ&Öùò =s   ¾A3c                ó€   <€ V ^8„  d   QhRRRS[ RS[P                  S[ S[ S[P                  . S[3,          3,          /# r&   ©r   r   r)   r+   r,   )r   r-   s   "€r   r   rg   Â   sB   ø€ ÷  >ñ  >Ø(ð >Ù47ð >á	
�‰‘‘c™1Ÿ:™: b©$ hÕ/Ð/Õ	0ñ >r   c                ó–  a
a€ \        V4      pV P                   FB  p\        P                  ! V.VO5!  o
\        P
                  P                  S
4      '       g   KB   MW	  \        V P                  4      ^8X  d   RMRpRP                  R V P                   4       4      p\        VV: RV RV 24      h\        S
V P                  R7      ;_uu_ 4       pVP                  4       pRRR4       \        P
                  P                  S
4      oR	 V
V3R
 llp	X\        P
                  P                  S
4      V	3#   + '       g   i     L[; i)é   r   Úpathsz, c              3   ó8   "  € T F  p\        V4      x € K  	  R # 5irV   )Úrepr)Ú.0rl   s   & r   Ú	<genexpr>Ú.FileSystemLoader.get_source.<locals>.<genexpr>Ð   s   é € Ð!C±?¨a¤$ q§' '³?ùs   ‚z not found in search z: )rc   Nc                ó$   € V ^8„  d   QhR\         /# r8   ©r,   )r   s   "r   r   Ú1FileSystemLoader.get_source.<locals>.__annotate__Û   s   € ÷ 	ñ 	œ$ñ 	r   c                  ón   <€  \         P                  P                  S 4      S8H  #   \         d     R # i ; i)F)r   r   ÚgetmtimeÚOSError)rO   Úmtimes   €€r   rP   Ú-FileSystemLoader.get_source.<locals>.uptodateÛ   s4   ø€ ðÜ—w‘w×'Ñ'¨Ó1°UÑ:Ð:øÜô Úðús   ƒ!% ¥4³4)r"   ra   Ú	posixpathÚjoinr   r   ÚisfileÚlenr   Úopenrc   Úreadr}   Únormpath)r4   r'   r   r    ra   ÚpluralÚ	paths_strÚfÚcontentsrP   rO   r   s   &&&       @@r   r5   ÚFileSystemLoader.get_sourceÂ   s
  ù€ ô % XÓ.ˆàŸ/œ/ˆJô !—~’~ jÐ:°6Ó:ˆHä�w‰w�~‰~˜h×'Ô'Ùñ *ô  # 4§?¡?Ó3°qÔ8‘V¸gˆFØŸ	™	Ñ!C°4·?²?Ó!CÓCˆIÜ"ØØ‘,Ð3°F°8¸2¸i¸[ÐIóð ô
 �( T§]¡]×3Õ3°qØ—v‘v“xˆH÷ 4ô —‘× Ñ  Ó*ˆ÷	ñ 	ð œŸ™×)Ñ)¨(Ó3°XÐ=Ð=÷ 4×3ús   ÃD8Ä8E	c                óD   <€ V ^8„  d   QhRS[ P                  S[,          /# r8   r9   )r   r-   s   "€r   r   rg   ä   s   ø€ ÷ ñ ¡§¡¡s¥ñ r   c                ó  € \        4       pV P                   Fã  p\        P                  ! W P                  R 7      pV F¹  w  rEpV F­  p\        P
                  P                  WG4      \        V4      R P                  \        P
                  P                  4      P                  \        P
                  P                  R4      pVR,          R8X  d
   VR,          pW�9  g   Kœ  VP                  V4       K¯  	  K»  	  Kå  	  \        V4      # ))rd   Nr   ºNr   Nz./ºr   NN)Úsetra   r   Úwalkrd   r   r‚   r„   Ústripr   ÚreplaceÚaddÚsorted)	r4   Úfoundra   Úwalk_dirÚdirpathÚ_Ú	filenamesrO   r   s	   &        r   r=   ÚFileSystemLoader.list_templatesä   sÀ   € Ü“ˆØŸ/œ/ˆJÜ—w’w˜z×7GÑ7GÔHˆHÛ)1Ñ%�˜IÛ )�HäŸ™Ÿ™ WÓ7¼¸J»Ð8IÐJß™œrŸw™wŸ{™{Ó+ß ™¤§¡§¡¨cÓ2ð ð
   •| tÔ+Ø#+¨B¥<˜ØÖ,ØŸ	™	 (Ö+ó !*ó *2ñ *ô �e‹}Ðr   )rc   rd   ra   N)úutf-8F©
r3   rW   rX   rY   rZ   rm   r5   r=   r[   r\   r]   s   @r   r_   r_   ˜   s)   ø‡ € ñ÷4'ò '÷ >ð  >÷Dö r   r_   c                óz   € V ^8„  d   QhR\         P                  R\         P                  \        \        3,          /# ©r   Úzr   ©r   rE   ÚDictr   Úobject)r   s   "r   r   r   ø   s+   € ÷ ñ ¤!§%¡%ð ¬A¯F©F´3¼°;Õ,?ñ r   c                 óh   €  V P                   pV! 4       #   \         d   p\        R 4      ThRp?ii ; i©zFThis zip import does not have the required metadata to list templates.N)Ú
_get_filesÚAttributeErrorr;   )r¡   Ú	get_filesÚes   &  r   Ú_get_zipimporter_filesr«   ø   sC   € ð	ØŸ™ˆIñ ‹{Ðøô ô 	Üð/óð ðûð	ús   ‚ •1 ,¬1c                óz   € V ^8„  d   QhR\         P                  R\         P                  \        \        3,          /# r    r¢   )r   s   "r   r   r     s+   € ÷ ñ ¤!§%¡%ð ¬A¯F©F´3¼°;Õ,?ñ r   c                 ó^   €  V P                   pV#   \         d   p\        R 4      ThRp?ii ; ir¦   )Ú_filesr¨   r;   )r¡   Úfilesrª   s   &  r   r«   r«     s@   € ð	Ø—H‘HˆEð ˆøô ô 	Üð/óð ðûð	ús   ‚ �,›'§,c                   ó^   a € ] tR tRt o RtRV 3R lR lltV 3R lR ltV 3R lR ltR	tV t	R
# )ÚPackageLoaderi  a  Load templates from a directory in a Python package.

:param package_name: Import name of the package that contains the
    template directory.
:param package_path: Directory within the imported package that
    contains the templates.
:param encoding: Encoding of template files.

The following example looks up templates in the ``pages`` directory
within the ``project.ui`` package.

.. code-block:: python

    loader = PackageLoader("project.ui", "pages")

Only packages installed as directories (standard pip behavior) or
zip/egg files (less common) are supported. The Python API for
introspecting data in packages is too limited to support other
installation methods the way this loader requires.

There is limited support for :pep:`420` namespace packages. The
template directory is assumed to only be in one namespace
contributor. Zip files contributing to a namespace are not
supported.

.. versionchanged:: 3.0
    No longer uses ``setuptools`` as a dependency.

.. versionchanged:: 3.0
    Limited PEP 420 namespace package support.
c                ó.   <€ V ^8„  d   QhRS[ RRRS[ RR/# )r   Úpackage_nameÚpackage_pathr   rc   r   N©r   )r   r-   s   "€r   r   ÚPackageLoader.__annotate__/  s3   ø€ ÷ =,ñ =,áð=,ð ð=,ñ ð	=,ð
 
ñ=,r   c                óf  € \         P                  P                  V4      P                  \         P                  P                  4      pV\         P                  P
                  8X  d   R pMNVR,          \         P                  P
                  \         P                  P                  ,           8X  d
   VR,          pW n        Wn        W0n        \        V4       \        P                  P                  V4      pVf   Q R4       hVP                  pVf   Q R4       hWPn        RV n        \!        V\"        P$                  4      '       dw   VP&                  V n        \)        \+        VP,                  4      4      p\         P                  P/                  Wb4      P                  \         P                  P                  4      pMó. pVP,                  '       d   VP1                  VP,                  4       MFVP2                  e9   VP5                  \         P                  P7                  VP2                  4      4       V'       g   \9        RV: R24      hV FK  p	\         P                  P/                  W’4      p	\         P                  P;                  V	4      '       g   KI  T	p M	  \9        RV: R	V: R
24      hWpn        R# )Ú r�   r�   Nz-An import spec was not found for the package.z'A loader was not found for the package.zThe zC package was not installed in a way that PackageLoader understands.zPackageLoader could not find a z directory in the z	 package.)r   r   r‡   Úrstripr   Úcurdirr´   r³   rc   r   Ú	importlibÚutilÚ	find_specÚloaderÚ_loaderÚ_archiveri   Ú	zipimportÚzipimporterÚarchiveÚnextÚiterÚsubmodule_search_locationsr‚   ÚextendÚoriginr   ÚdirnameÚ
ValueErrorÚisdirÚ_template_root)
r4   r³   r´   rc   Úspecr¾   ÚpkgdirÚtemplate_rootÚrootsÚroots
   &&&&      r   rm   ÚPackageLoader.__init__/  s  € ô —w‘w×'Ñ'¨Ó5×<Ñ<¼R¿W¹W¿[¹[ÓIˆð œ2Ÿ7™7Ÿ>™>Ô)Ø‰LØ˜"Õ¤§¡§¡´"·'±'·+±+Õ!=Ô=Ø'¨Õ+ˆLà(ÔØ(ÔØ Œô 	�lÔ#Ü�~‰~×'Ñ'¨Ó5ˆØÒÐPÐ!PÓPÐØ—‘ˆØÒ!ÐLÐ#LÓLÐ!ØŒØˆŒä�fœi×3Ñ3×4Ò4Ø"ŸN™NˆDŒMÜœ$˜t×>Ñ>Ó?Ó@ˆFÜŸG™GŸL™L¨Ó>×EÑEÄbÇgÁgÇkÁkÓR‰Mà!#ˆEð ×.×.Ð.Ø—‘˜T×<Ñ<Õ=à—‘Ò(Ø—‘œRŸW™WŸ_™_¨T¯[©[Ó9Ô:çÜ Ø˜<Ñ*ð +;ð ;óð ó
 �Ü—w‘w—|‘| DÓ7�ä—7‘7—=‘= ×&Ô&Ø$(�MÙñ ô !Ø5°lÑ5Eð FØ+Ñ.¨ið9óð ð
 ,Ör   c                ó¤   <€ V ^8„  d   QhRRRS[ RS[P                  S[ S[ S[P                  S[P                  . S[3,          ,          3,          /# r&   r(   )r   r-   s   "€r   r   r¶   n  sK   ø€ ÷ $;ñ $;Ø(ð$;Ù47ð$;á	
�‰‘‘c™1Ÿ:™:¡a§j¡j°±T°Õ&:Õ;Ð;Õ	<ñ$;r   c                óœ  aa€ \         P                  P                  \        P                  ! V P
                  .\        V4      O5!  4      oV P                  fˆ   \         P                  P                  S4      '       g   \        V4      h\        SR4      ;_uu_ 4       pVP                  4       pR R R 4       \         P                  P                  S4      oR VV3R llpM V P                  P                  S4      pR pXP!                  V P"                  4      SV3#   + '       g   i     Lv; i  \         d   p\        T4      ThR p?ii ; i)NÚrbc                ó$   € V ^8„  d   QhR\         /# r8   rz   )r   s   "r   r   Ú.PackageLoader.get_source.<locals>.__annotate__ƒ  s   € ÷ Jñ J¤ñ Jr   c                  ó–   <€ \         P                  P                  S4      ;'       d#    \         P                  P                  S4      S 8H  # rV   )r   r   rƒ   r}   )r   rl   s   €€r   Ú
up_to_dateÚ,PackageLoader.get_source.<locals>.up_to_dateƒ  s2   ø€ Ü—w‘w—~‘~ aÓ(×IÐI¬R¯W©W×-=Ñ-=¸aÓ-@ÀEÑ-IÐIr   )r   r   r‡   r�   r‚   rÌ   r"   rÀ   rƒ   r   r…   r†   r}   r¿   Úget_datar~   Údecoderc   )	r4   r'   r   rŠ   rN   rÙ   rª   r   rl   s	   &&&    @@r   r5   ÚPackageLoader.get_sourcen  sÿ   ù€ ô �G‰G×ÑÜ�NŠN˜4×.Ñ.ÐOÔ1DÀXÓ1NÓOó
ˆð
 �=‰=Ò ä—7‘7—>‘> !×$Ò$Ü& xÓ0Ð0ä�a˜—” !ØŸ™›�÷ ô —G‘G×$Ñ$ QÓ'ˆE÷Jò Jð
8ØŸ™×.Ñ.¨qÓ1�ð ˆJà�}‰}˜TŸ]™]Ó+¨Q°
Ð:Ð:÷) —ûô ô 8Ü& xÓ0°aÐ7ûð8ús$   ÂDÃ!D/ ÄD,	Ä/EÄ:EÅEc                óD   <€ V ^8„  d   QhRS[ P                  S[,          /# r8   r9   )r   r-   s   "€r   r   r¶   ”  s   ø€ ÷ ñ ¡§¡¡s¥ñ r   c                ór  a€ . pV P                   f‰   \        V P                  4      p\        P                  ! V P                  4       FM  w  or4SVR  P                  \        P                  P                  4      oVP                  V3R lV 4       4       KO  	  EM\        V P                  4      pV P                  \        V P                   4      R  P                  \        P                  P                  4      \        P                  P                  ,           p\        V4      pV F  pVP                  V4      '       g   K  VR,          \        P                  P                  8w  g   KD  VP                  WrR  P                  \        P                  P                  R4      4       K�  	  VP                  4        V# )Nc              3   ó´   <"  € T FM  p\         P                  P                  SV4      P                  \         P                  P                  R 4      x € KO  	  R# 5i)r   N)r   r   r‚   r”   r   )rv   rA   r™   s   & €r   rw   Ú/PackageLoader.list_templates.<locals>.<genexpr>�  s?   øé € ð á )˜ô —G‘G—L‘L ¨$Ó/×7Ñ7¼¿¹¿¹ÀS×IÐIÛ )ùs   ƒAAr   éÿÿÿÿ)rÀ   r„   rÌ   r   r’   Úlstripr   r   rÇ   r«   r¿   Ú
startswithr   r”   Úsort)	r4   ÚresultsÚoffsetrš   r›   r¯   ÚprefixrA   r™   s	   &       @r   r=   ÚPackageLoader.list_templates”  s9  ø€ Ø!ˆà�=‰=Ò ä˜×,Ñ,Ó-ˆFä)+¯ª°×1DÑ1DÖ)EÑ%�˜Ø! & 'Ð*×1Ñ1´"·'±'·+±+Ó>�Ø—‘ô á )óö ó *Fô +¨4¯<©<Ó8ˆEð ×#Ñ#¤C¨¯©Ó$6Ð$8Ð9×@Ñ@ÄÇÁÇÁÓMÜ—'‘'—+‘+õð ô ˜“[ˆFã�à—?‘? 6×*Ô*¨t°B­x¼2¿7¹7¿;¹;Ö/FØ—N‘N 4¨ =×#8Ñ#8¼¿¹¿¹ÀcÓ#JÖKñ ð
 	�‰ŒØˆr   )rÀ   r¿   rÌ   rc   r³   r´   N)Ú	templatesr�   rž   r]   s   @r   r±   r±     s+   ø‡ € ñ÷@=,ò =,÷~$;ð $;÷Lö r   r±   c                   óZ   a € ] tR tRt o RtV 3R lR ltV 3R lR ltV 3R lR ltR	tV t	R
# )Ú
DictLoaderi´  zõLoads a template from a Python dict mapping template names to
template source.  This loader is useful for unittesting:

>>> loader = DictLoader({'index.html': 'source here'})

Because auto reloading is rarely useful this is disabled by default.
c                óN   <€ V ^8„  d   QhRS[ P                  S[S[3,          RR/# )r   Úmappingr   N)r   ÚMappingr   )r   r-   s   "€r   r   ÚDictLoader.__annotate__½  s(   ø€ ÷ ñ ¡§	¡	©#©s¨(Õ 3ð ¸ñ r   c                ó   € Wn         R # rV   ©rî   )r4   rî   s   &&r   rm   ÚDictLoader.__init__½  ó   € ØŽr   c                ó~   <€ V ^8„  d   QhRRRS[ RS[P                  S[ RS[P                  . S[3,          3,          /# )r   r'   r   r   r   Nrp   )r   r-   s   "€r   r   rð   À  sB   ø€ ÷ )ñ )Ø(ð)Ù47ð)á	
�‰‘�d™AŸJ™J r©4 xÕ0Ð0Õ	1ñ)r   c                ó|   a aa€ SS P                   9   d   S P                   S,          oSR V VV3R l3# \        S4      h)Nc                  ó@   <€ SS P                   P                  S4      8H  # rV   )rî   Úget)r4   rN   r   s   €€€r   Ú<lambda>Ú'DictLoader.get_source.<locals>.<lambda>Å  s   ø€ ¨°4·<±<×3CÑ3CÀHÓ3MÒ)Mr   )rî   r   )r4   r'   r   rN   s   f&f@r   r5   ÚDictLoader.get_sourceÀ  s8   ú€ ð �t—|‘|Ô#Ø—\‘\ (Õ+ˆFØ˜4Ö!MÐMÐMÜ˜xÓ(Ð(r   c                óD   <€ V ^8„  d   QhRS[ P                  S[,          /# r8   r9   )r   r-   s   "€r   r   rð   È  s   ø€ ÷ $ñ $¡§¡¡s¥ñ $r   c                ó,   € \        V P                  4      # rV   )r–   rî   r<   s   &r   r=   ÚDictLoader.list_templatesÈ  s   € Ü�d—l‘lÓ#Ð#r   rò   Nrž   r]   s   @r   rì   rì   ´  s(   ø‡ € ñ÷ð ÷)ð )÷$ö $r   rì   c                   óH   a € ] tR tRt o RtV 3R lR ltV 3R lR ltRtV tR# )	ÚFunctionLoaderiÌ  ay  A loader that is passed a function which does the loading.  The
function receives the name of the template and has to return either
a string with the template source, a tuple in the form ``(source,
filename, uptodatefunc)`` or `None` if the template does not exist.

>>> def load_template(name):
...     if name == 'index.html':
...         return '...'
...
>>> loader = FunctionLoader(load_template)

The `uptodatefunc` is a function that is called if autoreload is enabled
and has to return `True` if the template is still up to date.  For more
details have a look at :meth:`BaseLoader.get_source` which has the same
return value.
c                ó<  <€ V ^8„  d   QhRS[ P                  S[.S[ P                  S[ P                  S[S[ P
                  S[S[ P                  S[,          S[ P                  S[ P                  . S[3,          ,          3,          3,          ,          3,          RR/# )r   Ú	load_funcr   N)r   r+   r   r*   re   r)   r,   )r   r-   s   "€r   r   ÚFunctionLoader.__annotate__Þ  s�   ø€ ÷ #ñ #á—:‘:ÙˆEÙ�J‰JÙ—‘Ù™Ÿ™¡¡a§j¡j±¥o±q·z±zÁ!Ç*Á*ÈRÑQUÈXÕBVÕ7WÐ!WÕXÐXõõðõ
ð#ð 
ñ#r   c                ó   € Wn         R # rV   ©r  )r4   r  s   &&r   rm   ÚFunctionLoader.__init__Þ  s	   € ð #Žr   c                óÈ   <€ V ^8„  d   QhRRRS[ RS[P                  S[ S[P                  S[ ,          S[P                  S[P                  . S[3,          ,          3,          /# r&   r(   )r   r-   s   "€r   r   r  ë  sS   ø€ ÷ ñ Ø(ðÙ47ðá	
�‰‘‘a—j‘j¡•o¡q§z¡z±!·*±*¸RÁ¸XÕ2FÕ'GÐGÕ	Hñr   c                ó|   € V P                  V4      pVf   \        V4      h\        V\        4      '       d   VR R 3# V# rV   )r  r   ri   r   )r4   r'   r   Úrvs   &&& r   r5   ÚFunctionLoader.get_sourceë  s@   € ð �^‰^˜HÓ%ˆàŠ:Ü" 8Ó,Ð,ä�bœ#×ÒØ�t˜T�>Ð!àˆ	r   r  N)	r3   rW   rX   rY   rZ   rm   r5   r[   r\   r]   s   @r   r   r   Ì  s   ø‡ € ñ÷"#ð #÷ö r   r   c                   ó�   a € ] tR tRt o RtRV 3R lR lltV 3R lR ltV 3R lR lt]RV 3R
 lR ll4       t	V 3R lR lt
RtV tR	# )ÚPrefixLoaderiù  aö  A loader that is passed a dict of loaders where each loader is bound
to a prefix.  The prefix is delimited from the template by a slash per
default, which can be changed by setting the `delimiter` argument to
something else::

    loader = PrefixLoader({
        'app1':     PackageLoader('mypackage.app1'),
        'app2':     PackageLoader('mypackage.app2')
    })

By loading ``'app1/index.html'`` the file from the app1 package is loaded,
by loading ``'app2/index.html'`` the file from the second.
c                óT   <€ V ^8„  d   QhRS[ P                  S[S[3,          RS[RR/# )r   rî   Ú	delimiterr   N)r   rï   r   r$   )r   r-   s   "€r   r   ÚPrefixLoader.__annotate__  s2   ø€ ÷ #ñ #Ù—y‘y¡¡j Õ1ð#Ù>Að#à	ñ#r   c                ó   € Wn         W n        R # rV   )rî   r  )r4   rî   r  s   &&&r   rm   ÚPrefixLoader.__init__  s   € ð ŒØ"Žr   c                óP   <€ V ^8„  d   QhRS[ RS[P                  S[S[ 3,          /# r   )r   r   r)   r$   )r   r-   s   "€r   r   r    s(   ø€ ÷ ñ ¡3ð ©1¯7©7±:¹s°?Õ+Cñ r   c                ó¶   €  VP                  V P                  ^4      w  r#V P                  V,          pWC3#   \        \        3 d   p\        T4      ThRp?ii ; i)rr   N)r   r  rî   rÊ   ÚKeyErrorr   )r4   r   rè   rA   r¾   rª   s   &&    r   Ú
get_loaderÚPrefixLoader.get_loader  sY   € ð	4Ø#Ÿ>™>¨$¯.©.¸!Ó<‰LˆFØ—\‘\ &Õ)ˆFð ˆ|Ðøô œHÐ%ô 	4Ü" 8Ó,°!Ð3ûð	4ús   ‚16 ¶AÁAÁAc                óÈ   <€ V ^8„  d   QhRRRS[ RS[P                  S[ S[P                  S[ ,          S[P                  S[P                  . S[3,          ,          3,          /# r&   r(   )r   r-   s   "€r   r   r    sS   ø€ ÷ 	4ñ 	4Ø(ð	4Ù47ð	4á	
�‰‘‘a—j‘j¡•o¡q§z¡z±!·*±*¸RÁ¸XÕ2FÕ'GÐGÕ	Hñ	4r   c                óŠ   € V P                  V4      w  r4 VP                  W4      #   \         d   p\        T4      ThR p?ii ; irV   )r  r5   r   )r4   r'   r   r¾   rA   rª   s   &&&   r   r5   ÚPrefixLoader.get_source  sI   € ð —‘ xÓ0‰ˆð	4Ø×$Ñ$ [Ó7Ð7øÜô 	4ô # 8Ó,°!Ð3ûð	4ús   •& ¦A±=½ANc          	      ó�   <€ V ^8„  d   QhRRRS[ RS[P                  S[P                  S[ S[P                  3,          ,          RR/# r@   rC   )r   r-   s   "€r   r   r  "  sO   ø€ ÷ 0ñ 0à"ð0ñ ð0ñ —‘™A×,Ñ,©S±!·%±%¨ZÕ8Õ9ð	0ð
 
ñ0r   c                óŒ   € V P                  V4      w  rE VP                  WV4      #   \         d   p\        T4      ThR p?ii ; irV   )r  rS   r   )r4   r'   rA   rB   r¾   Ú
local_namerª   s   &&&&   r   rS   ÚPrefixLoader.load!  sJ   € ð "Ÿ_™_¨TÓ2Ñˆð	0Ø—;‘;˜{¸Ó@Ð@øÜô 	0ô # 4Ó(¨aÐ/ûð	0ús   •' §A²>¾Ac                óD   <€ V ^8„  d   QhRS[ P                  S[,          /# r8   r9   )r   r-   s   "€r   r   r  0  s   ø€ ÷ ñ ¡§¡¡s¥ñ r   c                óÎ   € . pV P                   P                  4        FD  w  r#VP                  4        F+  pVP                  W P                  ,           V,           4       K-  	  KF  	  V# rV   )rî   Úitemsr=   r   r  )r4   Úresultrè   r¾   r   s   &    r   r=   ÚPrefixLoader.list_templates0  sR   € ØˆØ"Ÿl™l×0Ñ0Ö2‰NˆFØ"×1Ñ1Ö3�Ø—‘˜f§~¡~Õ5¸Õ@ÖAó 4ñ 3ð ˆr   )r  rî   )r   rV   )r3   rW   rX   rY   rZ   rm   r  r5   r   rS   r=   r[   r\   r]   s   @r   r  r  ù  sK   ø‡ € ñ÷#ò #÷ð ÷	4ð 	4ð ÷0ñ 0ó ð0÷ö r   r  c                   óz   a € ] tR tRt o RtV 3R lR ltV 3R lR lt]RV 3R lR	 ll4       tV 3R
 lR lt	Rt
V tR# )ÚChoiceLoaderi8  a†  This loader works like the `PrefixLoader` just that no prefix is
specified.  If a template could not be found by one loader the next one
is tried.

>>> loader = ChoiceLoader([
...     FileSystemLoader('/path/to/user/templates'),
...     FileSystemLoader('/path/to/system/templates')
... ])

This is useful if you want to allow users to override builtin templates
from a different location.
c                óH   <€ V ^8„  d   QhRS[ P                  S[,          RR/# )r   Úloadersr   N)r   rf   r$   )r   r-   s   "€r   r   ÚChoiceLoader.__annotate__F  s$   ø€ ÷ ñ ¡§
¡
©:Õ 6ð ¸4ñ r   c                ó   € Wn         R # rV   ©r&  )r4   r&  s   &&r   rm   ÚChoiceLoader.__init__F  rô   r   c                óÈ   <€ V ^8„  d   QhRRRS[ RS[P                  S[ S[P                  S[ ,          S[P                  S[P                  . S[3,          ,          3,          /# r&   r(   )r   r-   s   "€r   r   r'  I  sS   ø€ ÷ )ñ )Ø(ð)Ù47ð)á	
�‰‘‘a—j‘j¡•o¡q§z¡z±!·*±*¸RÁ¸XÕ2FÕ'GÐGÕ	Hñ)r   c                ó†   € V P                    F  p VP                  W4      u # 	  \        V4      h  \         d     K2  i ; irV   )r&  r5   r   )r4   r'   r   r¾   s   &&& r   r5   ÚChoiceLoader.get_sourceI  sI   € ð —l”lˆFðØ×(Ñ(¨Ó?Ò?ñ #ô
 ˜xÓ(Ð(øô $ô Úðús   ‘1±A ¿A Nc          	      ó�   <€ V ^8„  d   QhRRRS[ RS[P                  S[P                  S[ S[P                  3,          ,          RR/# r@   rC   )r   r-   s   "€r   r   r'  T  sO   ø€ ÷ %ñ %à"ð%ñ ð%ñ —‘™A×,Ñ,©S±!·%±%¨ZÕ8Õ9ð	%ð
 
ñ%r   c                óˆ   € V P                    F  p VP                  WV4      u # 	  \        V4      h  \         d     K3  i ; irV   )r&  rS   r   )r4   r'   rA   rB   r¾   s   &&&& r   rS   ÚChoiceLoader.loadS  sI   € ð —l”lˆFðØ—{‘{ ;°gÓ>Ò>ñ #ô
 ˜tÓ$Ð$øô $ô Úðús   ‘2²AÁ Ac                óD   <€ V ^8„  d   QhRS[ P                  S[,          /# r8   r9   )r   r-   s   "€r   r   r'  a  s   ø€ ÷ ñ ¡§¡¡s¥ñ r   c                ó�   € \        4       pV P                   F"  pVP                  VP                  4       4       K$  	  \	        V4      # rV   )r‘   r&  Úupdater=   r–   )r4   r—   r¾   s   &  r   r=   ÚChoiceLoader.list_templatesa  s6   € Ü“ˆØ—l”lˆFØ�L‰L˜×.Ñ.Ó0Ö1ñ #ä�e‹}Ðr   r)  rV   )r3   rW   rX   rY   rZ   rm   r5   r   rS   r=   r[   r\   r]   s   @r   r$  r$  8  sA   ø‡ € ñ÷ð ÷)ð )ð ÷%ñ %ó ð%÷ö r   r$  c                   ó   € ] tR tRtRtRtR# )Ú_TemplateModuleih  z9Like a normal module but with support for weak referencesrU   N)r3   rW   rX   rY   rZ   r[   rU   r   r   r6  r6  h  s   † ÝCr   r6  c                   ó’   a € ] tR tRt o RtRtV 3R lR lt]V 3R lR l4       t]V 3R lR	 l4       t	]
RV 3R lR ll4       tRtV tR
# )ÚModuleLoaderil  zÌThis loader loads templates from precompiled templates.

Example usage:

>>> loader = ModuleLoader('/path/to/compiled/templates')

Templates can be precompiled with :meth:`Environment.compile_templates`.
Fc                óœ   <€ V ^8„  d   QhRS[ P                  S[RS[ P                  S[ P                  S[R3,          ,          3,          RR/# )r   r   rb   r   N)r   re   r   rf   )r   r-   s   "€r   r   ÚModuleLoader.__annotate__x  sK   ø€ ÷ )ñ )á�g‰gÙÐ#¡Q§Z¡Z±·±¹Ð=OÐ8OÕ0PÕ%QÐQõ
ð)ð
 
ñ)r   c                ó€  a€ R \        V 4      R 2o\        S4      p\        V\        P                  4      '       d   \        V\
        4      '       d   V.pV Uu. uF  p\        P                  ! V4      NK  	  upVn        \        P                  ! VV3R l4      \        P                  S&   W n        SV n        R# u upi )Ú_jinja2_module_templates_Úxc                 óD   <€ \         P                  P                  SR 4      # rV   )ÚsysÚmodulesÚpop)r=  r³   s   &€r   rù   Ú'ModuleLoader.__init__.<locals>.<lambda>Š  s   ø€ œ3Ÿ;™;Ÿ?™?¨<¸Ô>r   N)Úidr6  ri   r   rj   r   r   rk   Ú__path__ÚweakrefÚproxyr?  r@  Úmoduler³   )r4   r   Úmodrl   r³   s   &&  @r   rm   ÚModuleLoader.__init__x  s–   ø€ ð 3´2°d³8¸A°,Ð?ˆô ˜lÓ+ˆä˜$¤§¡×-Ò-´¸DÄ#×1FÒ1FØ�6ˆDá.2Ó3©d¨œŸ	š	 !ž©dÑ3ˆŒä$+§M¢MØÔ>ó%
Œ�‰�LÑ!ð ŒØ(ˆÖùò 4s   ÁB;c                ó&   <€ V ^8„  d   QhRS[ RS[ /# ©r   rA   r   rµ   )r   r-   s   "€r   r   r:  ”  s   ø€ ÷ @ñ @™sð @¡sñ @r   c                ó`   € R \        V P                  R4      4      P                  4       ,           # )Útmpl_r�   )r   ÚencodeÚ	hexdigest©rA   s   &r   Úget_template_keyÚModuleLoader.get_template_key“  s$   € àœ˜dŸk™k¨'Ó2Ó3×=Ñ=Ó?Õ?Ð?r   c                ó&   <€ V ^8„  d   QhRS[ RS[ /# rK  rµ   )r   r-   s   "€r   r   r:  ˜  s   ø€ ÷ ;ñ ;¡#ð ;©#ñ ;r   c                ó:   € \         P                  V 4      R ,           # )z.py)r8  rQ  rP  s   &r   Úget_module_filenameÚ ModuleLoader.get_module_filename—  s   € ä×,Ñ,¨TÓ2°UÕ:Ð:r   Nc          	      ó�   <€ V ^8„  d   QhRRRS[ RS[P                  S[P                  S[ S[P                  3,          ,          RR/# r@   rC   )r   r-   s   "€r   r   r:  œ  sO   ø€ ÷ 
ñ 
à"ð
ñ ð
ñ —‘™A×,Ñ,©S±!·%±%¨ZÕ8Õ9ð	
ð
 
ñ
r   c                ór  € V P                  V4      pV P                   R V 2p\        V P                  VR4      pVf1    \	        VRRR.4      p\        P                  P                  TR4       Vf   / pVP                  P                  WP                  V4      #   \
         d   p\        T4      ThRp?ii ; i)r   NrÑ   )rQ  r³   ÚgetattrrG  Ú
__import__ÚImportErrorr   r?  r@  rA  rL   Úfrom_module_dictÚ__dict__)r4   r'   rA   rB   ÚkeyrG  rH  rª   s   &&&&    r   rS   ÚModuleLoader.load›  s¸   € ð ×#Ñ# DÓ)ˆØ×%Ñ%Ð& a¨ uÐ-ˆÜ�d—k‘k 6¨4Ó0ˆàŠ;ð4Ü  ¨¨t°f°XÓ>�ô �K‰K�O‰O˜F DÔ)àŠ?ØˆGà×)Ñ)×:Ñ:ØŸ™ wó
ð 	
øô ô 4Ü& tÓ,°!Ð3ûð4ús   ¿B ÂB6Â%B1Â1B6)rG  r³   rV   )r3   rW   rX   rY   rZ   r0   rm   ÚstaticmethodrQ  rU  r   rS   r[   r\   r]   s   @r   r8  r8  l  s_   ø‡ € ñð Ð÷)ð )ð6 ÷@ó ð@ð ÷;ó ð;ð ÷
ñ 
ó ö
r   r8  )é   é   )%rZ   Úimportlib.utilr»   r   r�   r?  Útypingr   rE  rÁ   Úcollectionsr   Úhashlibr   r   Útypesr   Ú
exceptionsr   Úutilsr   ÚTYPE_CHECKINGr'   r   r	   r"   r$   r_   Úversion_infor«   r±   rì   r   r  r$  r6  r8  rU   r   r   Ú<module>rl     sÛ   ðñó Û 	Û Û 
Û Û Û Ý Ý Ý #Ý å (Ý à‡?‡?€?Ý(Ý%õ÷"k
ñ k
ô\[�zô [ð| ×Ñ�wÔöõôc�Jô côL$�ô $ô0*�Zô *ôZ<�:ô <ô~-�:ô -ô`D�jô DôI
�:ö I
r   