Ë
    8Ò^j^
  ã                   ó\   — d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d„ Z	ed„ «       Z
d„ Zy)é    N)Ú	lru_cache)Úquote)Ú	docscrapec                 óÜ   — | j                   }t        j                  |› d�|xs d«      }|€y|j                  d«      j	                  dd«      }t        |«      › dt        |«      › �}|› d|› �S )zŸURL to the relevant section of the docstring using a Text Fragment

    https://developer.mozilla.org/en-US/docs/Web/URI/Reference/Fragment/Text_fragments
    z	 : (.+)\nÚ Né   ú`z,-z	#:~:text=)Ú__doc__ÚreÚsearchÚgroupÚreplacer   )Úestimator_classÚ
param_nameÚdoc_linkÚ	docstringÚmÚ
param_typeÚtext_fragments          új/var/www/ramen.bs-engineer-server.com/venv/lib/python3.12/site-packages/sklearn/utils/_repr_html/common.pyÚgenerate_link_to_param_docr      s}   € ð
  ×'Ñ'€Iä
�	‰	�Z�L 
Ð+¨Yª_¸"Ó=€Aà€yð ð —‘˜“×#Ñ# C¨Ó,€JÜ˜ZÓ(Ð)¨¬E°*Ó,=Ð+>Ð?€MàˆZ�y  Ð0Ð0ó    c                 ó,   — t        j                  | «      S ©N)r   ÚNumpyDocString)r   s    r   Úscrape_estimator_docstringr   #   s   € ä×#Ñ# IÓ.Ð.r   c                 ó�  — t        j                  | «      }|r+t        |«      x}r||   D �ci c]  }|j                  |“Œ }}ni }|j	                  |d«      x}rft        j                  |j                  «      › dt        j                  |j                  «      › ddj                  d„ |j                  D «       «      › �}|S d}|S c c}w )aö  Extract and format docstring information for a specific item.

    Parses the estimator's docstring to retrieve documentation for a
    specific parameter or attribute, formatting it as HTML-escaped text.

    Parameters
    ----------
    estimator_class : type
        The estimator class whose docstring will be parsed.

    section_name : str
        The numpydoc section to search in (e.g., "Parameters", "Attributes").

    item : str
        The name of the parameter or attribute to retrieve documentation for.

    Returns
    -------
    item_description : str or None
        HTML-formatted docstring to be used as a tooltip. Returns None if the
        estimator has no docstring or if the item is not found in the
        specified section.
    Nz: z<br><br>z<br>c              3   óF   K  — | ]  }t        j                  |«      –— Œ y ­wr   )ÚhtmlÚescape)Ú.0Úlines     r   ú	<genexpr>z get_docstring.<locals>.<genexpr>N   s   è ø€ ÒL°œ4Ÿ;™; t×,ÑLùs   ‚!)
ÚinspectÚgetdocr   ÚnameÚgetr   r    ÚtypeÚjoinÚdesc)	r   Úsection_nameÚitemÚestimator_class_docsÚstructured_docstringÚitem_docstringÚdocstring_mapÚitem_numpydocÚitem_descriptions	            r   Úget_docstringr3   (   så   € ô0 #Ÿ>™>¨/Ó:ÐÙÜ :Ð;OÓ PÐPÐÐPð #7°|Ñ"Dö
àð ×Ñ Ñ/ð
ˆñ 
ð
 ˆØ%×)Ñ)¨$°Ó5Ð5€}Ð5ä�{‰{˜=×-Ñ-Ó.Ð/¨rÜ�{‰{˜=×-Ñ-Ó.Ð/¨xØ�{‰{ÑL¸×9KÑ9KÔLÓLÐMðOð 	ð Ðð  ÐØÐùò
s   ¬C)r   r$   r   Ú	functoolsr   Úurllib.parser   Úsklearn.externals._numpydocr   r   r   r3   © r   r   ú<module>r8      s7   ðó Û Û 	Ý Ý å 1ò1ð, ñ/ó ð/ó*r   