
    ͆hb                       S r SSKJr  SSKrSSKrSSKJrJrJrJ	r	J
r
JrJrJr  \R                  S:  a	  SSKJrJr  OSSKJrJr  \(       a  SSKrSSKJr  SSKJrJrJrJrJr  \(       a$  SS	KJr  SS
KJ r   SSK!J"r"  SSK#J$r$  SSK%J&r&  SSK'J(r(  \(       a	  SSK)J*r*J+r+  O\r+\+" S5      r,\" S5      r-\R\                  " S5      r/S"S jr0\" S\S9r1 " S S\	\1   5      r2\3" S \2Rh                   5       5      r5\5 H  r6\7" \2S\6-   5        M     S#S jr8 " S S\	\,\-4   5      r9 " S S\:\\;\24   5      r< " S S \Rz                  5      r>S$S! jr?g)%z%Implements the plugin API for MkDocs.    )annotationsN)TYPE_CHECKINGAnyCallableGenericLiteralMutableMappingTypeVaroverload)   
   )
EntryPointentry_points)utils)ConfigConfigErrorsConfigWarningsLegacyConfigPlainConfigSchema)MkDocsConfig)LiveReloadServer)Files)
Navigation)Page)TemplateContext)Concatenate	ParamSpecPTmkdocs.pluginsc                     [        SS9n 0 nU  HC  nUR                  U;   a"  UR                  R                  S5      (       a  M5  X!UR                  '   ME     U$ )z=Return a dict of all installed Plugins as {name: EntryPoint}.r    )groupzmkdocs.contrib.)r   namevalue
startswith)plugins	pluginmapplugins      F/opt/services/DDDS/venv/lib/python3.13/site-packages/mkdocs/plugins.pyget_pluginsr*   (   sV    !12G I;;)#(?(?@Q(R(R!'&++	      
SomeConfig)boundc                     \ rS rSr% Sr\rS\S'   SrS\S'   0 r	S\S	'   S
r
S\S'    S%S jrS r S&     S'S jjrS(S jrS)S jr        S*S jrS+S jrS,S jrS-S jr        S.S jr        S/S jrS,S jrS0S jr        S1S jr        S2S jr        S3S jrS4S jrS5S jr          S6S  jr          S7S! jr          S8S" jrS9S# jr S$r!g):
BasePlugin:   z=
Plugin base class.

All plugins should subclass this class.
ztype[SomeConfig]config_class r   config_schemer,   configFboolsupports_multiple_instancesc                b    U R                    SUR                    S3n[        X 4[        US95      $ )z_Eliminates the need to write `config_class = FooConfig` when subclassing BasePlugin[FooConfig].[])r1   )__name__typedict)clsr1   r#   s      r)   __class_getitem__BasePlugin.__class_getitem__H   s3    ,,q!6!6 7q9D&$L"ABBr+   c                    [        U R                  [        5      (       d  [        SU R                   S35      eU R                  [        La  U R                  R
                  U l        g g )Nzconfig_class z2 must be a subclass of `mkdocs.config.base.Config`)
issubclassr1   r   	TypeErrorr   _schemar3   )r=   s    r)   __init_subclass__BasePlugin.__init_subclass__M   s_    #**F33 0 011cd  </ # 0 0 8 8C 0r+   Nc                    U R                   [        L a  [        U R                  US9U l        OU R                  US9U l        U R                  R	                  U5        U R                  R                  5       $ )zJLoad config from a dict of options. Returns a tuple of (errors, warnings).)config_file_path)r1   r   r3   r4   	load_dictvalidate)selfoptionsrG   s      r)   load_configBasePlugin.load_configU   sb     ,&t'9'9L\]DK++=M+NDKg&{{##%%r+   c                   g)aB  
The `startup` event runs once at the very beginning of an `mkdocs` invocation.

New in MkDocs 1.4.

The presence of an `on_startup` method (even if empty) migrates the plugin to the new
system where the plugin object is kept across builds within one `mkdocs serve`.

Note that for initializing variables, the `__init__` method is still preferred.
For initializing per-build variables (and whenever in doubt), use the `on_config` event.

Args:
    command: the command that MkDocs was invoked with, e.g. "serve" for `mkdocs serve`.
    dirty: whether `--dirty` flag was passed.
Nr2   rJ   commanddirtys      r)   
on_startupBasePlugin.on_startupd       r+   c                    g)a  
The `shutdown` event runs once at the very end of an `mkdocs` invocation, before exiting.

This event is relevant only for support of `mkdocs serve`, otherwise within a
single build it's undistinguishable from `on_post_build`.

New in MkDocs 1.4.

The presence of an `on_shutdown` method (even if empty) migrates the plugin to the new
system where the plugin object is kept across builds within one `mkdocs serve`.

Note the `on_post_build` method is still preferred for cleanups, when possible, as it has
a much higher chance of actually triggering. `on_shutdown` is "best effort" because it
relies on detecting a graceful shutdown of MkDocs.
Nr2   rJ   s    r)   on_shutdownBasePlugin.on_shutdownu   rT   r+   c                  U$ )a  
The `serve` event is only called when the `serve` command is used during
development. It runs only once, after the first build finishes.
It is passed the `Server` instance which can be modified before
it is activated. For example, additional files or directories could be added
to the list of "watched" files for auto-reloading.

Args:
    server: `livereload.Server` instance
    config: global configuration object
    builder: a callable which gets passed to each call to `server.watch`

Returns:
    `livereload.Server` instance
r2   rJ   serverr4   builders       r)   on_serveBasePlugin.on_serve   s	    $ r+   c                    U$ )a  
The `config` event is the first event called on build and is run immediately
after the user configuration is loaded and validated. Any alterations to the
config should be made here.

Args:
    config: global configuration object

Returns:
    global configuration object
r2   rJ   r4   s     r)   	on_configBasePlugin.on_config   s	     r+   c                   g)z
The `pre_build` event does not alter any variables. Use this event to call
pre-build scripts.

Args:
    config: global configuration object
Nr2   r`   s     r)   on_pre_buildBasePlugin.on_pre_build   rT   r+   c                  U$ )a  
The `files` event is called after the files collection is populated from the
`docs_dir`. Use this event to add, remove, or alter files in the
collection. Note that Page objects have not yet been associated with the
file objects in the collection. Use [Page Events](plugins.md#page-events) to manipulate page
specific data.

Args:
    files: global files collection
    config: global configuration object

Returns:
    global files collection
r2   rJ   filesr4   s      r)   on_filesBasePlugin.on_files   s	     r+   c                  U$ )a	  
The `nav` event is called after the site navigation is created and can
be used to alter the site navigation.

Args:
    nav: global navigation object
    config: global configuration object
    files: global files collection

Returns:
    global navigation object
r2   rJ   navr4   rh   s       r)   on_navBasePlugin.on_nav   s	     
r+   c                  U$ )a]  
The `env` event is called after the Jinja template environment is created
and can be used to alter the
[Jinja environment](https://jinja.palletsprojects.com/en/latest/api/#jinja2.Environment).

Args:
    env: global Jinja environment
    config: global configuration object
    files: global files collection

Returns:
    global Jinja Environment
r2   rJ   envr4   rh   s       r)   on_envBasePlugin.on_env   s	      
r+   c                   g)z
The `post_build` event does not alter any variables. Use this event to call
post-build scripts.

Args:
    config: global configuration object
Nr2   r`   s     r)   on_post_buildBasePlugin.on_post_build   rT   r+   c                   g)ar  
The `build_error` event is called after an exception of any kind
is caught by MkDocs during the build process.
Use this event to clean things up before MkDocs terminates. Note that any other
events which were scheduled to run after the error will have been skipped. See
[Handling Errors](plugins.md#handling-errors) for more details.

Args:
    error: exception raised
Nr2   rJ   errors     r)   on_build_errorBasePlugin.on_build_error   rT   r+   c                  U$ )a  
The `pre_template` event is called immediately after the subject template is
loaded and can be used to alter the template.

Args:
    template: a Jinja2 [Template](https://jinja.palletsprojects.com/en/latest/api/#jinja2.Template) object
    template_name: string filename of template
    config: global configuration object

Returns:
    a Jinja2 [Template](https://jinja.palletsprojects.com/en/latest/api/#jinja2.Template) object
r2   rJ   templatetemplate_namer4   s       r)   on_pre_templateBasePlugin.on_pre_template   s	     r+   c                  U$ )ao  
The `template_context` event is called immediately after the context is created
for the subject template and can be used to alter the context for that specific
template only.

Args:
    context: dict of template context variables
    template_name: string filename of template
    config: global configuration object

Returns:
    dict of template context variables
r2   rJ   contextr   r4   s       r)   on_template_contextBasePlugin.on_template_context  	      r+   c                  U$ )a  
The `post_template` event is called after the template is rendered, but before
it is written to disc and can be used to alter the output of the template.
If an empty string is returned, the template is skipped and nothing is is
written to disc.

Args:
    output_content: output of rendered template as string
    template_name: string filename of template
    config: global configuration object

Returns:
    output of rendered template as string
r2   rJ   output_contentr   r4   s       r)   on_post_templateBasePlugin.on_post_template!  s
    " r+   c                  U$ )a7  
The `pre_page` event is called before any actions are taken on the subject
page and can be used to alter the `Page` instance.

Args:
    page: `mkdocs.structure.pages.Page` instance
    config: global configuration object
    files: global files collection

Returns:
    `mkdocs.structure.pages.Page` instance
r2   rJ   pager4   rh   s       r)   on_pre_pageBasePlugin.on_pre_page6  s	     r+   c                  g)a  
> DEPRECATED: Instead of this event, prefer one of these alternatives:
>
> * Since MkDocs 1.6, instead set `content_bytes`/`content_string` of a `File` inside [`on_files`][].
> * Usually (although it's not an exact alternative), `on_page_markdown` can serve the same purpose.

The `on_page_read_source` event can replace the default mechanism to read
the contents of a page's source from the filesystem.

Args:
    page: `mkdocs.structure.pages.Page` instance
    config: global configuration object

Returns:
    The raw source for a page as unicode string. If `None` is returned, the
        default loading from a file will be performed.
Nr2   rJ   r   r4   s      r)   on_page_read_sourceBasePlugin.on_page_read_sourceE  s    $ r+   c                  U$ )a  
The `page_markdown` event is called after the page's markdown is loaded
from file and can be used to alter the Markdown source text. The meta-
data has been stripped off and is available as `page.meta` at this point.

Args:
    markdown: Markdown source text of page as string
    page: `mkdocs.structure.pages.Page` instance
    config: global configuration object
    files: global files collection

Returns:
    Markdown source text of page as string
r2   rJ   markdownr   r4   rh   s        r)   on_page_markdownBasePlugin.on_page_markdownY  s	    " r+   c                  U$ )a  
The `page_content` event is called after the Markdown text is rendered to
HTML (but before being passed to a template) and can be used to alter the
HTML body of the page.

Args:
    html: HTML rendered from Markdown source as string
    page: `mkdocs.structure.pages.Page` instance
    config: global configuration object
    files: global files collection

Returns:
    HTML rendered from Markdown source as string
r2   rJ   htmlr   r4   rh   s        r)   on_page_contentBasePlugin.on_page_contentl  s	    " r+   c                  U$ )aq  
The `page_context` event is called after the context for a page is created
and can be used to alter the context for that specific page only.

Args:
    context: dict of template context variables
    page: `mkdocs.structure.pages.Page` instance
    config: global configuration object
    nav: global navigation object

Returns:
    dict of template context variables
r2   rJ   r   r   r4   rm   s        r)   on_page_contextBasePlugin.on_page_context  r   r+   c                  U$ )a  
The `post_page` event is called after the template is rendered, but
before it is written to disc and can be used to alter the output of the
page. If an empty string is returned, the page is skipped and nothing is
written to disc.

Args:
    output: output of rendered template as string
    page: `mkdocs.structure.pages.Page` instance
    config: global configuration object

Returns:
    output of rendered template as string
r2   rJ   outputr   r4   s       r)   on_post_pageBasePlugin.on_post_page  s	     r+   r4   )r1   ztype[Config]N)rK   zdict[str, Any]rG   
str | Nonereturnz#tuple[ConfigErrors, ConfigWarnings]rP   z&Literal['build', 'gh-deploy', 'serve']rQ   r5   r   Noner   r   )r[   r   r4   r   r\   r   r   zLiveReloadServer | None)r4   r   r   zMkDocsConfig | Noner4   r   r   r   )rh   r   r4   r   r   zFiles | None)rm   r   r4   r   rh   r   r   zNavigation | None)rr   jinja2.Environmentr4   r   rh   r   r   zjinja2.Environment | Nonerz   	Exceptionr   r   )r   jinja2.Templater   strr4   r   r   zjinja2.Template | None)r   r   r   r   r4   r   r   TemplateContext | None)r   r   r   r   r4   r   r   r   )r   r   r4   r   rh   r   r   zPage | Noner   r   r4   r   r   r   )
r   r   r   r   r4   r   rh   r   r   r   )
r   r   r   r   r4   r   rh   r   r   r   )
r   r   r   r   r4   r   rm   r   r   r   )r   r   r   r   r4   r   r   r   )"r:   
__module____qualname____firstlineno____doc__r   r1   __annotations__r3   r4   r6   r>   rD   rL   rR   rW   r]   ra   rd   ri   rn   rs   rv   r{   r   r   r   r   r   r   r   r   r   __static_attributes__r2   r+   r)   r/   r/   :   s    &2L"1')M$)FJ(--aC
9 GK&%&9C&	,&""&6BMU	 ,"-9BG	"%5AJO	"$
'>AKW	"&=@JV	$!8;EQ	*()-7CLQ	&%)3?HM	&&48BNU_	$r+   r/   c              #  Z   #    U  H!  oR                  S 5      (       d  M  USS v   M#     g7f)on_r   Nr%   ).0ks     r)   	<genexpr>r     s#     I1\\%5Huqu1s   ++r   c                   ^  U 4S jnU$ )a  
A decorator to set an event priority for an event handler method.

Recommended priority values:
`100` "first", `50` "early", `0` "default", `-50` "late", `-100` "last".
As different plugins discover more precise relations to each other, the values should be further tweaked.

Usage example:

```python
@plugins.event_priority(-100)  # Wishing to run this after all other plugins' `on_files` events.
def on_files(self, files, config, **kwargs):
    ...
```

New in MkDocs 1.4.
Recommended shim for backwards compatibility:

```python
try:
    from mkdocs.plugins import event_priority
except ImportError:
    event_priority = lambda priority: lambda f: f  # No-op fallback
```
c                   > TU l         U $ r   )mkdocs_priority)event_methodprioritys    r)   	decorator!event_priority.<locals>.decorator  s    '/$r+   r2   )r   r   s   ` r)   event_priorityr     s    6 r+   c                  6    \ rS rSrSrSS jrS	S jrS
S jrSrg)CombinedEventi  a(  
A descriptor that allows defining multiple event handlers and declaring them under one event's name.

Usage example:

```python
@plugins.event_priority(100)
def _on_page_markdown_1(self, markdown: str, **kwargs):
    ...

@plugins.event_priority(-50)
def _on_page_markdown_2(self, markdown: str, **kwargs):
    ...

on_page_markdown = plugins.CombinedEvent(_on_page_markdown_1, _on_page_markdown_2)
```

NOTE: The names of the sub-methods **can't** start with `on_`;
instead they can start with `_on_` like in the the above example, or anything else.
c                    Xl         g r   methods)rJ   r   s     r)   __init__CombinedEvent.__init__  s    r+   c                F    [        [        U 5      R                  < S35      e)Nz object is not callable)rB   r;   r:   )rJ   instanceargskwargss       r)   __call__CombinedEvent.__call__  s     4:..11HIJJr+   Nc                @   ^^ [        UU4S jU R                   5       6 $ )Nc              3  F   >#    U  H  oR                  TT5      v   M     g 7fr   )__get__)r   fr   owners     r)   r   (CombinedEvent.__get__.<locals>.<genexpr>  s     P<ayy599<s   !)r   r   )rJ   r   r   s    ``r)   r   CombinedEvent.__get__  s    P4<<PQQr+   r   )r   z Callable[Concatenate[Any, P], T])r   r/   r   zP.argsr   zP.kwargsr   r   r   )	r:   r   r   r   r   r   r   r   r   r2   r+   r)   r   r     s    *KRr+   r   c                    ^  \ rS rSr% SrS\S'   S U 4S jjr S!       S"S jjrS#U 4S jjrS$U 4S jjr	\
S%S	 j5       r\
S&S
 j5       rS!S'S jjrS(S jrS S jr        S)S jrS*S jrS+S jrS,S jrS-S jrS.S jrS+S jrS/S jr        S0S jr        S1S jr        S2S jrS3S jrS4S jr          S5S jrS6S jr          S7S jrS8S jrSrU =r $ )9PluginCollectioni  z
A collection of plugins.

In addition to being a dict of Plugin instances, each event method is registered
upon being added. All registered methods for a given event can then be run in order
by calling `run_event`.
r   _current_pluginc                v   > [         TU ]  " U0 UD6  [         Vs0 s H  o3/ _M     snU l        0 U l        g s  snf r   )superr   EVENTSevents_event_origins)rJ   r   r   r   	__class__s       r)   r   PluginCollection.__init__  s;    $)&)AG1HAR%1H35 2Is   6c                   [        U[        5      (       a$  UR                   H  nU R                  XUS9  M     g
U R                  U   nUS:X  ad  [        U5      S:X  aU  U R                  R                  [        [        U5      5      S5      nU=(       d    Sn[        R                  SU SU S35        [        R                  " XRS S	9  U(       a   X0R                  U'   g
g
! [         a     g
f = f)zRegister a method for an event.plugin_namepage_read_source   	<unknown>zBMultiple 'on_page_read_source' handlers can't work (both plugins 'z' and 'z' registered one).c                    [        U SS5      * $ )Nr   r   )getattr)ms    r)   <lambda>2PluginCollection._register_event.<locals>.<lambda>  s    CTVW8X7Xr+   )keyN)
isinstancer   r   _register_eventr   lenr   getnextiterlogwarningr   insortrB   )rJ   
event_namemethodr   subr   plugin1plugin2s           r)   r    PluginCollection._register_event  s     fm,,~~$$Z+$N & [[,F//CK14D--11$tF|2DkR%4&&-YggY>PR LL-XY2=''/  ! s   C! !
C.-C.c                "   > [         TU ]  U5      $ r   )r   __getitem__)rJ   r   r   s     r)   r  PluginCollection.__getitem__  s    w"3''r+   c                   > [         TU ]  X5        S [        U5       5        H4  n[        X#S 5      n[	        U5      (       d  M!  U R                  USS  XAS9  M6     g )Nc              3  T   #    U  H  oR                  S 5      (       d  M  Uv   M      g7f)r   Nr   )r   xs     r)   r   /PluginCollection.__setitem__.<locals>.<genexpr>  s     HjLL4G11js   (	(r   r   )r   __setitem__dirr   callabler   )rJ   r   r$   r   r  r   s        r)   r  PluginCollection.__setitem__  sT    C'Hc%jHJU5F$$Z^V$M Ir+   c                    g r   r2   )rJ   r#   r   s      r)   	run_eventPluginCollection.run_event      r+   c                    g r   r2   )rJ   r#   itemr   s       r)   r  r  #  r  r+   c                b   USLnU R                   U    H  nU R                  R                  US5      U l        [        R                  5       [        R                  ::  a&  [        R                  SU SU R                   S35        U(       a
  U" U40 UD6nOU" S0 UD6nUc  M  UnM     SU l        U$ )a+  
Run all registered methods of an event.

`item` is the object to be modified or replaced and returned by the event method.
If it isn't given the event method creates a new object to be returned.
All other keywords are variables for context, but would not generally
be modified by the event method.
Nr   z	Running `z` event from plugin ''r2   )	r   r   r   r   r   getEffectiveLevelloggingDEBUGdebug)rJ   r#   r  r   	pass_itemr  results          r)   r  r  '  s     $	kk$'F#'#6#6#:#:6;#OD $$&'--7		IdV+@AUAU@VVWXY//)&)! (  $r+   c               "    U R                  SXS9$ )Nstartup)rP   rQ   r  rO   s      r)   rR   PluginCollection.on_startup?  s    ~~i~FFr+   c                $    U R                  S5      $ )Nshutdownr!  rV   s    r)   rW   PluginCollection.on_shutdownB  s    ~~j))r+   c               $    U R                  SXUS9$ )Nserve)r4   r\   r!  rZ   s       r)   r]   PluginCollection.on_serveE  s     ~~gvg~NNr+   c                &    U R                  SU5      $ )Nr4   r!  r`   s     r)   ra   PluginCollection.on_configJ  s    ~~h//r+   c               "    U R                  SUS9$ )N	pre_buildr   r!  r`   s     r)   rd   PluginCollection.on_pre_buildM  s    ~~k&~99r+   c               "    U R                  SXS9$ )Nrh   r   r!  rg   s      r)   ri   PluginCollection.on_filesP  s    ~~gu~<<r+   c               $    U R                  SXUS9$ )Nrm   r4   rh   r!  rl   s       r)   rn   PluginCollection.on_navS      ~~eSu~EEr+   c               $    U R                  SXUS9$ )Nrr   r1  r!  rq   s       r)   rs   PluginCollection.on_envV  r3  r+   c               "    U R                  SUS9$ )N
post_buildr   r!  r`   s     r)   rv   PluginCollection.on_post_buildY  s    ~~l6~::r+   c               "    U R                  SUS9$ )Nbuild_error)rz   r!  ry   s     r)   r{   PluginCollection.on_build_error\  s    ~~m5~99r+   c               $    U R                  SXUS9$ )Npre_templater   r4   r!  r~   s       r)   r    PluginCollection.on_pre_template_  s     ~~nh\b~ccr+   c               $    U R                  SXUS9$ )Ntemplate_contextr>  r!  r   s       r)   r   $PluginCollection.on_template_contextd  s!     ~~V  
 	
r+   c               $    U R                  SXUS9$ )Npost_templater>  r!  r   s       r)   r   !PluginCollection.on_post_templatek  s"     ~~^QW  
 	
r+   c               $    U R                  SXUS9$ )Npre_pager1  r!  r   s       r)   r   PluginCollection.on_pre_pager  s    ~~j$U~KKr+   c               "    U R                  SXS9$ )Nr   r   r4   r!  r   s      r)   r   $PluginCollection.on_page_read_sourceu  s    ~~0t~KKr+   c               $    U R                  SXX4S9$ )Npage_markdownr   r4   rh   r!  r   s        r)   r   !PluginCollection.on_page_markdownx  s     ~~ox6~__r+   c               $    U R                  SXX4S9$ )Npage_contentrN  r!  r   s        r)   r    PluginCollection.on_page_content}  s    ~~ndf~ZZr+   c               $    U R                  SXX4S9$ )Npage_context)r   r4   rm   r!  r   s        r)   r    PluginCollection.on_page_context  s     ~~ng~YYr+   c               $    U R                  SXUS9$ )N	post_pagerJ  r!  r   s       r)   r   PluginCollection.on_post_page  s    ~~k6V~LLr+   )r   r   r   r   r   )r   r   r  zCombinedEvent | Callabler   r   r   r   )r   r   r   r/   )r   r   r$   r/   r   r   )r#   r   r   r   )r#   r   r  r   r   r   )r#   r   r   )r[   r   r4   r   r\   r   r   r   )r4   r   r   r   r   )rh   r   r4   r   r   r   )rm   r   r4   r   rh   r   r   r   )rr   r   r4   r   rh   r   r   )r   r   r   r   r4   r   r   r   )r   r   r   r   r4   r   r   r   )r   r   r   r   r4   r   r   r   )r   r   r4   r   rh   r   r   r   r   )
r   r   r   r   r4   r   rh   r   r   r   )
r   r   r   r   r4   r   rh   r   r   r   )
r   r   r   r   r4   r   rm   r   r   r   )r   r   r   r   r4   r   r   r   )!r:   r   r   r   r   r   r   r   r  r  r   r  rR   rW   r]   ra   rd   ri   rn   rs   rv   r{   r   r   r   r   r   r   r   r   r   r   __classcell__r   s   @r)   r   r     s     6 \`'?NX	.(N    0G*O&O3?OJRO	O
0:=FF;:d'd;>dHTd	d

&
:=
GS
	

!
58
BN
	
LL``&*`4@`IN`	`
[Z&Z15Z?KZR\Z	Z
M Mr+   r   c                  :   ^  \ rS rSrSrSU 4S jjrSS jrSrU =r$ )PrefixedLoggeri  z(A logger adapter to prefix log messages.c                2   > [         TU ]  U0 5        Xl        g)z
Initialize the logger adapter.

Arguments:
    prefix: The string to insert in front of every message.
    logger: The logger instance.
N)r   r   prefix)rJ   r^  loggerr   s      r)   r   PrefixedLogger.__init__  s     	$r+   c                (    U R                    SU 3U4$ )z~
Process the message.

Arguments:
    msg: The message:
    kwargs: Remaining arguments.

Returns:
    The processed message.
z: r^  )rJ   msgr   s      r)   processPrefixedLogger.process  s     ++b&..r+   rb  )r^  r   r_  zlogging.Loggerr   r   )rc  r   r   zMutableMapping[str, Any]r   ztuple[str, Any])	r:   r   r   r   r   r   rd  r   rY  rZ  s   @r)   r\  r\    s    2	/ /r+   r\  c                r    [         R                  " SU  35      n[        U R                  SS5      S   U5      $ )ao  
Return a logger for plugins.

Arguments:
    name: The name to use with `logging.getLogger`.

Returns:
    A logger configured to work well in MkDocs,
        prefixing each message with the plugin package name.

Example:
    ```python
    from mkdocs.plugins import get_plugin_logger

    log = get_plugin_logger(__name__)
    log.info("My plugin message")
    ```
zmkdocs.plugins..r   r   )r  	getLoggerr\  split)r#   r_  s     r)   get_plugin_loggerrj    s8    & 78F$**S!,Q/88r+   )r   zdict[str, EntryPoint])r   floatr   zCallable[[T], T])r#   r   r   r\  )@r   
__future__r   r  systypingr   r   r   r   r   r	   r
   r   version_infoimportlib.metadatar   r   importlib_metadatajinja2.environmentjinja2mkdocsr   mkdocs.config.baser   r   r   r   r   mkdocs.config.defaultsr   mkdocs.livereloadr   mkdocs.structure.filesr   mkdocs.structure.navr   mkdocs.structure.pagesr   mkdocs.utils.templatesr   typing_extensionsr   r   r   r   rh  r   r*   r,   r/   tuple__dict__r   r   delattrr   r   r<   r   r   LoggerAdapterr\  rj  r2   r+   r)   <module>r     s1   + "  
 d d dw;;;  d d32,/+688IcNCL () \0
f$ fR 
Ij11I	I 
AJ	" 
DRGAqDM RBYMt^CO< YMx/W** /89r+   