§
    cŠtjf  ã                  ó6   — d dl mZ d dlmZ dd„Zdd
„Zdd„ZdS )é    )Úannotations)ÚwarnÚreturnÚintc                 óx  — ddl } ddlm} ddl}t	           ||j        ¦  «        j        ¦  «        }|                      ¦   «         }d}	 |rg|                      |¦  «        }| 	                    |¦  «        s-t          |j        dd¦  «        x}r"| 	                    d¦  «        r|j        }|dz  }nn|°g	 ~n# ~w xY w|S )zÎFind the first place in the stack that is not inside narwhals.

    Taken from:
    https://github.com/pandas-dev/pandas/blob/ab89c53f48df67709a533b6a95ce3d911871a0a8/pandas/util/_exceptions.py#L30-L51
    r   N)ÚPathÚco_qualnamezsingledispatch.é   )ÚinspectÚpathlibr   ÚnarwhalsÚstrÚ__file__ÚparentÚcurrentframeÚgetfileÚ
startswithÚgetattrÚf_codeÚf_back)r   r   ÚnwÚpkg_dirÚframeÚnÚfnameÚqualnames           úR/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/narwhals/_exceptions.pyÚfind_stacklevelr      s  € ð €N€N€NØÐÐÐÐÐàÐÐÐå�$�$�r”{Ñ#Ô#Ô*Ñ+Ô+€Gð × Ò Ñ"Ô"€EØ	€AðØð 	Ø—O’O EÑ*Ô*ˆEØ×Ò Ñ(Ô(ð Ý$ U¤\°=À$ÑGÔGÐG�ðð ×'Ò'Ð(9Ñ:Ô:ðð
 œ�Ø�Q‘��àð ð 	ð ð ˆEøˆEˆ	ˆ	ˆ	ˆ	Ø€Hs   ÁA*B4 Â4B7Úmessager   Ú_versionÚNonec                óL   — t          | t          t          ¦   «         ¬¦  «         dS )zßIssue a deprecation warning.

    Arguments:
        message: The message associated with the warning.
        _version: Narwhals version when the warning was introduced. Just used for internal
            bookkeeping.
    ©r   ÚcategoryÚ
stacklevelN)r   ÚDeprecationWarningr   )r   r    s     r   Úissue_deprecation_warningr'   -   s&   € õ 	�Õ#5Å/ÑBSÔBSÐTÑTÔTÐTÐTÐTó    r$   útype[Warning]c                óB   — t          | |t          ¦   «         ¬¦  «         d S )Nr#   )r   r   )r   r$   s     r   Úissue_warningr+   8   s#   € Ý� 8½Ñ8IÔ8IÐJÑJÔJÐJÐJÐJr(   N)r   r   )r   r   r    r   r   r!   )r   r   r$   r)   r   r!   )Ú
__future__r   Úwarningsr   r   r'   r+   © r(   r   ú<module>r/      sz   ðØ "Ð "Ð "Ð "Ð "Ð "à Ð Ð Ð Ð Ð ð$ð $ð $ð $ðNUð Uð Uð UðKð Kð Kð Kð Kð Kr(   