Ë
    âQ(hp&  ã                   ó”   — d dl mZmZ d dlZd dlZd dlmZ d dlmZ dgZ	 e
«       Zdddœd„Zdd	„Z G d
„ d«      Zdd„Zdddddœd„Zy)é    )Ú	ParameterÚ	signatureN)Úimport_module)ÚFunctionDocÚ_deprecatedz1.16.0)Úcorrect_moduleÚdep_versionc                 óº  — |�	d| › d|› �}nd| › �}||vrt        d| › d|› d|› d| › d|› d�«      ‚t        t        |«      |d«      }|�d|› d	|› d
| › d|› d�	}	n$d| › d|› d|› d| › d|› d| › d|› d|› d|› d| › d|› d�}	t        j                  |	t
        d¬«       |D ]  }	 t        t        d| › d|› �«      |«      c S  y# t         $ r}
||d   k(  r|
‚Y d}
~
Œ;d}
~
ww xY w)aM  Helper function for deprecating modules that are public but were
    intended to be private.

    Parameters
    ----------
    sub_package : str
        Subpackage the module belongs to eg. stats
    module : str
        Public but intended private module to deprecate
    private_modules : list
        Private replacement(s) for `module`; should contain the
        content of ``all``, possibly spread over several modules.
    all : list
        ``__all__`` belonging to `module`
    attribute : str
        The attribute in `module` being accessed
    correct_module : str, optional
        Module in `sub_package` that `attribute` should be imported from.
        Default is that `attribute` should be imported from ``scipy.sub_package``.
    dep_version : str, optional
        Version in which deprecated attributes will be removed.
    Nzscipy.ú.z`scipy.z` has no attribute `z`; furthermore, `scipy.z3` is deprecated and will be removed in SciPy 2.0.0.zPlease import `z` from the `z` namespace; the `scipy.z=` namespace is deprecated and will be removed in SciPy 2.0.0.z&` is deprecated along with the `scipy.z` namespace. `scipy.z` will be removed in SciPy z, and the `scipy.z+` namespace will be removed in SciPy 2.0.0.é   ©ÚcategoryÚ
stackleveléÿÿÿÿ)ÚAttributeErrorÚgetattrr   ÚwarningsÚwarnÚDeprecationWarning)Úsub_packageÚmoduleÚprivate_modulesÚallÚ	attributer   r	   Úcorrect_importÚattrÚmessageÚes              úT/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/scipy/_lib/deprecation.pyÚ_sub_module_deprecationr       s‡  € ð0 Ð!Ø! + ¨a°Ð/?Ð@‰à! + Ð/ˆà˜ÑÜØ�k�] ! F 8Ð+?À	¸{ð K#Ø#. -¨q°°ð 92ð3ó
ð 	
ô ”= Ó0°)¸TÓB€DàÐà˜i˜[¨°^Ð4Dð EØ%˜ a¨ xð 02ð3ñ 	ð �k�] ! F 8¨1¨Y¨Kð 8Ø%˜ a¨ xð 0Ø!�] ! F 8¨1¨Y¨Kð 8Ø#�}Ð$5°k°]À!ÀFÀ8ð L.ð/ð 	ô ‡M�M�'Ô$6À1ÕEà!ò ˆð	Üœ=¨6°+°¸aÀ¸xÐ)HÓIÈ9ÓUÒUñøô ò 	ð ˜¨Ñ,Ò,Ø�Üûð	ús   ÂB=Â=	CÃ
CÃCc                 ó   ‡ ‡— ˆ ˆfd„}|S )z2Deprecate a function by emitting a warning on use.c                 óÌ   •‡ — t        ‰ t        «      r!t        j                  d‰ ›�t        d¬«       ‰ S t        j                  ‰ «      ˆ ˆˆfd„«       }‰ j                  |_        |S )NzTrying to deprecate class é   r   c                  óL   •— t        j                  ‰t        ‰¬«        ‰| i |¤ŽS )Nr   )r   r   r   )ÚargsÚkwargsÚfunÚmsgr   s     €€€r   Úcallz'_deprecated.<locals>.wrap.<locals>.callZ   s'   ø€ ä�M‰M˜#Ô(:Ø%/õ1á˜Ð' Ñ'Ð'ó    )Ú
isinstanceÚtyper   r   ÚRuntimeWarningÚ	functoolsÚwrapsÚ__doc__)r'   r)   r(   r   s   ` €€r   Úwrapz_deprecated.<locals>.wrapS   s\   ù€ Ü�cœ4Ô Ü�M‰MØ,¨S¨GÐ4Ü'°Aõ7ð ˆJä	�‰˜Ó	õ	(ó 
ð	(ð —{‘{ˆŒØˆr*   © )r(   r   r1   s   `` r   r   r   Q   s   ù€ õð €Kr*   c                   ó"   — e Zd ZdZd„ Zd„ Zd„ Zy)Ú_DeprecationHelperStrz3
    Helper class used by deprecate_cython_api
    c                 ó    — || _         || _        y ©N)Ú_contentÚ_message)ÚselfÚcontentr   s      r   Ú__init__z_DeprecationHelperStr.__init__i   s   € ØˆŒØˆ�r*   c                 ó,   — t        | j                  «      S r6   )Úhashr7   )r9   s    r   Ú__hash__z_DeprecationHelperStr.__hash__m   s   € Ü�D—M‘MÓ"Ð"r*   c                 ót   — | j                   |k(  }|r&t        j                  | j                  t        d¬«       |S )Nr#   r   )r7   r   r   r8   r   )r9   ÚotherÚress      r   Ú__eq__z_DeprecationHelperStr.__eq__p   s0   € Ø�}‰} Ñ%ˆÙÜ�M‰M˜$Ÿ-™-Ô2DØ%&õ(àˆ
r*   N)Ú__name__Ú
__module__Ú__qualname__r0   r;   r>   rB   r2   r*   r   r4   r4   e   s   „ ñò ò#ór*   r4   c                 ó(  — | j                   › d|› �}|€d|› d�}n	d|› d|› d�}|�|d|z   z  }| j                  }d}d	}	 d|› |› �}	|	|v r&d
}|j                  |	«      |t        |	|«      <   |dz  }nnŒ3|s|j                  |«      |t        ||«      <   yy)a>  
    Deprecate an exported cdef function in a public Cython API module.

    Only functions can be deprecated; typedefs etc. cannot.

    Parameters
    ----------
    module : module
        Public Cython API module (e.g. scipy.linalg.cython_blas).
    routine_name : str
        Name of the routine to deprecate. May also be a fused-type
        routine (in which case its all specializations are deprecated).
    new_name : str
        New name to include in the deprecation warning message
    message : str
        Additional text in the deprecation warning message

    Examples
    --------
    Usually, this function would be used in the top-level of the
    module ``.pyx`` file:

    >>> from scipy._lib.deprecation import deprecate_cython_api
    >>> import scipy.linalg.cython_blas as mod
    >>> deprecate_cython_api(mod, "dgemm", "dgemm_new",
    ...                      message="Deprecated in Scipy 1.5.0")
    >>> del deprecate_cython_api, mod

    After this, Cython modules that use the deprecated function emit a
    deprecation warning when they are imported.

    r   Nú`z` is deprecated!z` is deprecated, use `z
` instead!ú
r   FTÚ__pyx_fuse_é   )rC   Ú__pyx_capi__Úpopr4   )
r   Úroutine_nameÚnew_namer   Úold_nameÚdepdocÚdÚjÚ	has_fusedÚ
fused_names
             r   Údeprecate_cython_apirU   x   sß   € ðB —/‘/Ð" ! L >Ð2€HàÐØ�X�JÐ.Ð/‰à�X�JÐ4°X°J¸jÐIˆàÐØ�$˜‘.Ñ ˆà×Ñ€Að 	
€AØ€IØ
Ø" 1 # l ^Ð4ˆ
Ø˜‰?ØˆIØ;<¿5¹5ÀÓ;LˆAÔ# J°Ó7Ñ8Ø�‰F‰Aàð ñ Ø9:¿¹¸|Ó9LˆÔ
 ¨fÓ
5Ò6ð r*   Ú )ÚversionÚdeprecated_argsÚcustom_messagec                óz   ‡‡‡— ‰€d}t        |«      ‚‰€
t        «       n
t        ‰«      Šˆˆˆfd„}| � || «      S |S )a‡  Decorator for methods that issues warnings for positional arguments.

    Using the keyword-only argument syntax in pep 3102, arguments after the
    * will issue a warning when passed as a positional argument.

    Parameters
    ----------
    func : callable, default=None
        Function to check arguments on.
    version : callable, default=None
        The version when positional arguments will result in error.
    deprecated_args : set of str, optional
        Arguments to deprecate - whether passed by position or keyword.
    custom_message : str, optional
        Custom message to add to deprecation warning and documentation.
    z9Need to specify a version where signature will be changedc                 ól  •‡ ‡‡‡	‡
— t        ‰ «      Š	g Šg Š‰	j                  j                  «       D ]c  \  }}|j                  t        j
                  k(  r‰j                  |«       Œ5|j                  t        j                  k(  sŒS‰j                  |«       Œe ˆˆˆfd„Š
t        j                  ‰ «      ˆˆˆ ˆˆ	ˆˆ
fd„«       }t        |«      }t        ‰«      ‰z
  }d‰› d|› d‰› d�}‰r|d‰› d‰› d	�z  }|‰z  }|d
xx   |gz  cc<   t        |«      j                  dd«      d   }t        |«      |_        |S )Nc                 ó‚   •— ‰j                  | «      }|r+d|› d‰› d�}|‰z  }t        j                  |t        d¬«       y y )Nz
Arguments zV are deprecated, whether passed by position or keyword. They will be removed in SciPy ú. r   r   )Úintersectionr   r   r   )r&   r^   r   rY   rX   rW   s      €€€r   Úwarn_deprecated_argszb_deprecate_positional_args.<locals>._inner_deprecate_positional_args.<locals>.warn_deprecated_argsÛ   sS   ø€ Ø*×7Ñ7¸Ó?ˆLÙØ'¨ ~ð 6Tà%˜Y bð*�ð ˜>Ñ)�Ü—‘˜gÔ0BÈqÖQð r*   c                  óP  •— t        | «      t        ‰«      z
  }|dk  r ‰|«        ‰| i |¤ŽS t        ‰d | «      ‰z
  }dj                  |«      }t        j                  d|› d‰
› d�t
        d¬«       |j                  t        ‰	j                  | «      «        ‰|«        ‰di |¤ŽS )	Nr   z, z)You are passing as positional arguments: zE. Please change your invocation to use keyword arguments. From SciPy z@, passing these as positional arguments will result in an error.r#   )r   r2   )	ÚlenÚsetÚjoinr   r   r   ÚupdateÚzipÚ
parameters)r%   r&   Ú
extra_argsÚkwonly_extra_argsÚargs_msgÚall_argsrX   ÚfÚkwonly_argsÚsigrW   r_   s        €€€€€€€r   Úinner_fzU_deprecate_positional_args.<locals>._inner_deprecate_positional_args.<locals>.inner_fä   s»   ø€ ô ˜T›¤S¨£]Ñ2ˆJØ˜QŠÙ$ VÔ,Ù˜$Ð) &Ñ)Ð)ô !$ K°°Ð$<Ó =ÀÑ OÐØ—y‘yÐ!2Ó3ˆHÜ�M‰Mà?À¸zð J"à") ð +9ð9ô
 #Øõ	ð �M‰Mœ#˜cŸn™n¨dÓ3Ô4Ù  Ô(Ù‘;�v‘;Ðr*   z
.. deprecated:: z
    Use of argument(s) ``z6`` by position is deprecated; beginning in 
    SciPy z, these will be keyword-only. zArgument(s) ``zX`` are deprecated, whether passed by position or keyword; they will be removed in SciPy r]   zExtended SummaryrH   rJ   )r   rf   ÚitemsÚkindr   ÚPOSITIONAL_OR_KEYWORDÚappendÚKEYWORD_ONLYr.   r/   r   rb   ÚstrÚsplitr0   )rk   ÚnameÚparamrn   Údocrh   Ú
admonitionrj   rl   rm   r_   rY   rX   rW   s   `      @@@@€€€r   Ú _inner_deprecate_positional_argszD_deprecate_positional_args.<locals>._inner_deprecate_positional_argsÐ   sP  ý€ Ü˜‹lˆØˆØˆàŸ>™>×/Ñ/Ó1ò 	)‰KˆD�%Ø�z‰zœY×<Ñ<Ò<Ø—‘ Õ%Ø—‘œy×5Ñ5Ó5Ø×"Ñ" 4Õ(ð		)ö	Rô 
�‰˜Ó	÷	ñ 	ó 
ð	ô0 ˜'Ó"ˆÜ Ó,¨Ñ>ÐðØ�	ð Ø+Ð,ð -Øˆ)Ð1ð5ˆ
ñ Ø˜^¨OÐ+<ð =$à$+ 9¨Bð0ñ 1ˆJð 	�nÑ$ˆ
ØÐÓ J <Ñ/Óä�#‹h�n‰n˜T 1Ó% aÑ(ˆÜ˜c›(ˆŒàˆr*   )Ú
ValueErrorrb   )ÚfuncrW   rX   rY   r(   rz   s    ```  r   Ú_deprecate_positional_argsr}   ¸   sK   ú€ ð$ €ØIˆÜ˜‹oÐà.Ð6”c”e¼CÀÓ<P€Oö=ð~ ÐÙ/°Ó5Ð5à+Ð+r*   )r#   )NNr6   )Úinspectr   r   r.   r   Ú	importlibr   Úscipy._lib._docscraper   Ú__all__ÚobjectÚ_NoValuer    r   r4   rU   r}   r2   r*   r   ú<module>r„      s\   ðß (Û Û Ý #Ý -ð ˆ/€ñ
 ‹8€ð 7;Èô?óD÷(ñ ó&;Mð@Z,°TØ/3ÀBõZ,r*   