
    hje                       U d Z ddlmZ ddlZ ej        e          ZddlZddlm	Z	 ddl
mZmZ ddlmZmZ ddlmZmZmZ dZ e	d          d/d            Zded<   ded<   ded<   ded<   ded<   ded<   ded<   ded<   ded<   ded<   ded<   ded<   ded<   ded<    ed d d d d d  d! d" d# d$ d% d& d' d(           Zd)ed*<    e	d          d0d.            ZdS )1a   Provide Jinja2 templates used by Bokeh to embed Bokeh documents and
models in various ways.

.. bokeh-jinja:: bokeh.core.templates.AUTOLOAD_JS
.. bokeh-jinja:: bokeh.core.templates.AUTOLOAD_NB_JS
.. bokeh-jinja:: bokeh.core.templates.AUTOLOAD_REQUEST_TAG
.. bokeh-jinja:: bokeh.core.templates.AUTOLOAD_TAG
.. bokeh-jinja:: bokeh.core.templates.CSS_RESOURCES
.. bokeh-jinja:: bokeh.core.templates.DOC_JS
.. bokeh-jinja:: bokeh.core.templates.DOC_NB_JS
.. bokeh-jinja:: bokeh.core.templates.FILE
.. bokeh-jinja:: bokeh.core.templates.JS_RESOURCES
.. bokeh-jinja:: bokeh.core.templates.NOTEBOOK_LOAD
.. bokeh-jinja:: bokeh.core.templates.PLOT_DIV
.. bokeh-jinja:: bokeh.core.templates.ROOT_DIV
.. bokeh-jinja:: bokeh.core.templates.SCRIPT_TAG

    )annotationsN)	lru_cache)dirnamejoin)AnyCallable)EnvironmentFileSystemLoaderTemplate)JS_RESOURCESCSS_RESOURCES
SCRIPT_TAGPLOT_DIVROOT_DIVDOC_JS	DOC_NB_JSFILEMACROSNOTEBOOK_LOADAUTOLOAD_JSAUTOLOAD_NB_JSAUTOLOAD_TAGAUTOLOAD_REQUEST_TAGreturnr	   c                    t          t          dd          r2t          t          d          rt          t          j        ddd          } n"t          t          t                    d          } t          t          |           dd          S )	zB Get the correct Jinja2 Environment, also for frozen scripts.
    frozenF_MEIPASSbokehcore
_templatesT)loadertrim_blockslstrip_blocks)	getattrsyshasattrr   r   r   __file__r	   r
   )templates_paths    4lib/python3.11/site-packages/bokeh/core/templates.pyget_envr*   H   sx     sHe$$ ?j)A)A ?clGV\JJ gh//>>.~>>D`deeee    r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   c                 D    t                                          d          S )Nzjs_resources.htmlr*   get_template r+   r)   <lambda>r0   q       //0CDD r+   c                 D    t                                          d          S )Nzcss_resources.htmlr-   r/   r+   r)   r0   r0   r       '))001EFF r+   c                 D    t                                          d          S )Nzscript_tag.htmlr-   r/   r+   r)   r0   r0   s   s    wyy--.?@@ r+   c                 D    t                                          d          S )Nzplot_div.htmlr-   r/   r+   r)   r0   r0   t       WYY++O<< r+   c                 D    t                                          d          S )Nzroot_div.htmlr-   r/   r+   r)   r0   r0   u   r6   r+   c                 D    t                                          d          S )Nz	doc_js.jsr-   r/   r+   r)   r0   r0   v   s    799))+66 r+   c                 D    t                                          d          S )Nzdoc_nb_js.jsr-   r/   r+   r)   r0   r0   w   s    gii,,^<< r+   c                 D    t                                          d          S )Nz	file.htmlr-   r/   r+   r)   r0   r0   x   s    ''44 r+   c                 D    t                                          d          S )Nzmacros.htmlr-   r/   r+   r)   r0   r0   y   s    799))-88 r+   c                 D    t                                          d          S )Nznotebook_load.htmlr-   r/   r+   r)   r0   r0   z   r3   r+   c                 D    t                                          d          S )Nzautoload_js.jsr-   r/   r+   r)   r0   r0   {   s    		../?@@ r+   c                 D    t                                          d          S )Nzautoload_nb_js.jsr-   r/   r+   r)   r0   r0   |   s    799112EFF r+   c                 D    t                                          d          S )Nzautoload_tag.htmlr-   r/   r+   r)   r0   r0   }   r1   r+   c                 D    t                                          d          S )Nzautoload_request_tag.htmlr-   r/   r+   r)   r0   r0   ~   s    !7!78S!T!T r+   z!dict[str, Callable[[], Template]]r    namestrr   c                X    | t           v rt          |                      S t                      )N)r    AttributeError)rA   s    r)   __getattr__rE      s*    z$!!!


r+   )r   r	   )rA   rB   r   r   )__doc__
__future__r   logging	getLogger__name__logr%   	functoolsr   os.pathr   r   typingr   r   jinja2r	   r
   r   __all__r*   __annotations__dictr    rE   r/   r+   r)   <module>rS      s:    , # " " " " " g!! 


       ! ! ! ! ! ! ! !                 ; : : : : : : : : :* 4
f 
f 
f 
f0                                                     04DDFF@@<<<<66<<	4	488FF@@FFDDTT1 1 1
    " 4     r+   