Ë
    ½lÔh  ã                   ó|   — d dl Z d dlZ ej                  d«      Z ej                  d«      Z G d„ d«      Zd„ Zd„ Zy)é    Nz(.)([A-Z][a-z]+)z([a-z0-9])([A-Z])c                   ó   — e Zd ZdZd„ Zy)ÚMethodDispatcherz½JSON RPC dispatcher that calls methods on itself.

    Method names are computed by converting camel case to snake case, slashes with double underscores, and removing
    dollar signs.
    c                 ó¢   ‡— dt        |«      › �}t        | |«      r+t        | |«      Št        j                  ‰«      ˆfd„«       }|S t        «       ‚)NÚm_c                 ó   •—  ‰di | xs i ¤ŽS )N© r   )ÚparamsÚmethods    €ún/home/josh/.local/share/pipx/venvs/python-lsp-server/lib/python3.12/site-packages/pylsp_jsonrpc/dispatchers.pyÚhandlerz-MethodDispatcher.__getitem__.<locals>.handler   s   ø€ áÑ/ ¢¨2Ñ/Ð/ó    )Ú_method_to_stringÚhasattrÚgetattrÚ	functoolsÚwrapsÚKeyError)ÚselfÚitemÚmethod_namer   r
   s       @r   Ú__getitem__zMethodDispatcher.__getitem__   sV   ø€ ØÔ,¨TÓ2Ð3Ð4ˆÜ�4˜Ô%Ü˜T ;Ó/ˆFä�_‰_˜VÓ$ó0ó %ð0ð ˆNÜ‹jÐr   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r      s   „ ñó
r   r   c                 óX   — t        | j                  dd«      j                  dd«      «      S )Nú/Ú__ú$Ú )Ú_camel_to_underscoreÚreplace)r
   s    r   r   r      s%   € Ü §¡¨s°DÓ 9× AÑ AÀ#ÀrÓ JÓKÐKr   c                 óv   — t         j                  d| «      }t        j                  d|«      j                  «       S )Nz\1_\2)Ú_RE_FIRST_CAPÚsubÚ_RE_ALL_CAPÚlower)ÚstringÚs1s     r   r!   r!   #   s.   € Ü	×	Ñ	˜8 VÓ	,€BÜ�?‰?˜8 RÓ(×.Ñ.Ó0Ð0r   )r   ÚreÚcompiler$   r&   r   r   r!   r   r   r   ú<module>r,      sD   ðó Û 	à�—
‘
Ð-Ó.€Øˆb�j‰jÐ,Ó-€÷ñ ò(Ló1r   