Ë
    ¹ûàg  ã                   ó¬   — d dl Z d dlZd dlmZmZmZ  G d„ de«      Z G d„ de«      Z	e	Z
 G d„ d«      Z G d	„ d
e«      Z G d„ de«      Z G d„ d«      Zy)é    N)ÚiscoroutinefunctionÚmarkcoroutinefunctionÚsync_to_asyncc                   ó   — e Zd Zy)ÚRemovedInNextVersionWarningN©Ú__name__Ú
__module__Ú__qualname__© ó    úV/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/django/utils/deprecation.pyr   r      ó   „ Ør   r   c                   ó   — e Zd Zy)ÚRemovedInDjango60WarningNr   r   r   r   r   r      r   r   r   c                   ó   — e Zd Zd„ Zd„ Zy)Úwarn_about_renamed_methodc                 ó<   — || _         || _        || _        || _        y )N)Ú
class_nameÚold_method_nameÚnew_method_nameÚdeprecation_warning)Úselfr   r   r   r   s        r   Ú__init__z"warn_about_renamed_method.__init__   s#   € ð %ˆŒØ.ˆÔØ.ˆÔØ#6ˆÕ r   c                 ó   ‡ ‡— ˆˆ fd„}|S )Nc            	      ó¦   •— t        j                  d‰j                  ›d‰j                  ›d‰j                  ›d�‰j
                  d«        ‰| i |¤ŽS )Nú`ú.ú` is deprecated, use `ú
` instead.é   )ÚwarningsÚwarnr   r   r   r   )ÚargsÚkwargsÚfr   s     €€r   Úwrapperz3warn_about_renamed_method.__call__.<locals>.wrapper   sJ   ø€ Ü�MŠMà—?“? D×$8Ó$8¸$×:NÓ:NðPà×(Ñ(Øô	ñ �dÐ%˜fÑ%Ð%r   r   )r   r&   r'   s   `` r   Ú__call__z"warn_about_renamed_method.__call__   s   ù€ õ	&ð ˆr   N)r	   r
   r   r   r(   r   r   r   r   r      s   „ ò7ó
r   r   c                   ó&   ‡ — e Zd ZdZdZˆ fd„Zˆ xZS )ÚRenameMethodsBasea#  
    Handles the deprecation paths when renaming a method.

    It does the following:
        1) Define the new method if missing and complain about it.
        2) Define the old method if missing.
        3) Complain whenever an old method is called.

    See #15363 for more details.
    r   c                 óø  •— t         ‰| �  | |||«      }t        j                  |«      D ]Î  }|j                  }| j
                  D ]±  }|d   }|j                  j                  |«      }	|d   }
|j                  j                  |
«      }|d   }t        |g|¢­Ž }|sC|	rAt        j                  d|›d|›d|
›d�|d«       t        ||
|	«       t        || ||	«      «       |	rŒœ|sŒŸt        || ||«      «       Œ³ ŒÐ |S )Nr   é   r!   r   r   z` method should be renamed `z`.)ÚsuperÚ__new__ÚinspectÚgetmror	   Úrenamed_methodsÚ__dict__Úgetr   r"   r#   Úsetattr)ÚclsÚnameÚbasesÚattrsÚ	new_classÚbaser   Úrenamed_methodr   Ú
old_methodr   Ú
new_methodr   r'   Ú	__class__s                 €r   r.   zRenameMethodsBase.__new__6   s  ø€ Ü‘G‘O C¨¨u°eÓ<ˆ	ä—N‘N 9Ó-ò 	HˆDØŸ™ˆJØ"%×"5Ñ"5ò H�Ø"0°Ñ"3�Ø!Ÿ]™]×.Ñ.¨Ó?�
Ø"0°Ñ"3�Ø!Ÿ]™]×.Ñ.¨Ó?�
Ø&4°QÑ&7Ð#Ü3°JÐPÀÒP�ñ "¡jÜ—M’Mâ%¢ºðIà+Øô	ô ˜D /°:Ô>Ü˜D /±7¸:Ó3FÔGò "¢jÜ˜D /±7¸:Ó3FÕGñ+Hð	Hð2 Ðr   )r	   r
   r   Ú__doc__r1   r.   Ú__classcell__©r>   s   @r   r*   r*   (   s   ø„ ñ	ð €O÷ð r   r*   c                   ó   ‡ — e Zd Zˆ fd„Zˆ xZS )ÚDeprecationInstanceCheckc                 óš   •— t        j                  d| j                  ›d| j                  ›d�| j                  d«       t
        ‰| �  |«      S )Nr   r   r    r!   )r"   r#   r	   Úalternativer   r-   Ú__instancecheck__)r   Úinstancer>   s     €r   rF   z*DeprecationInstanceCheck.__instancecheck__V   s?   ø€ Ü�ŠØ7;·}³}Àd×FVÓFVÐWØ×$Ñ$Øô	
ô
 ‰wÑ(¨Ó2Ð2r   )r	   r
   r   rF   r@   rA   s   @r   rC   rC   U   s   ø„ ÷3ð 3r   rC   c                   ó8   ‡ — e Zd ZdZdZˆ fd„Zd„ Zd„ Zd„ Zˆ xZ	S )ÚMiddlewareMixinTc                 ó¬   •— |€t        d«      ‚|| _        t        | j                  «      | _        | j                  rt	        | «       t
        ‰| �  «        y )Nzget_response must be provided.)Ú
ValueErrorÚget_responser   Ú
async_moder   r-   r   )r   rL   r>   s     €r   r   zMiddlewareMixin.__init__c   sM   ø€ ØÐÜÐ=Ó>Ð>Ø(ˆÔô .¨d×.?Ñ.?Ó@ˆŒØ�?Š?ô " $Ô'Ü‰ÑÕr   c                 ó¢   — d| j                   j                  ›dt        | j                  d| j                  j                   j                  «      ›d�S )Nú<z get_response=r   ú>)r>   r   ÚgetattrrL   r	   )r   s    r   Ú__repr__zMiddlewareMixin.__repr__p   sB   � à�N‰N×'Ó'ÜØ×!Ñ!ØØ×!Ñ!×+Ñ+×4Ñ4õð
ð 	
r   c                 óä   — | j                   r| j                  |«      S d }t        | d«      r| j                  |«      }|xs | j	                  |«      }t        | d«      r| j                  ||«      }|S )NÚprocess_requestÚprocess_response)rM   Ú	__acall__ÚhasattrrT   rL   rU   ©r   ÚrequestÚresponses      r   r(   zMiddlewareMixin.__call__z   so   € à�?Š?Ø—>‘> 'Ó*Ð*ØˆÜ�4Ð*Ô+Ø×+Ñ+¨GÓ4ˆHØÒ9˜t×0Ñ0°Ó9ˆÜ�4Ð+Ô,Ø×,Ñ,¨W°hÓ?ˆHØˆr   c              ƒ   ó  K  — d}t        | d«      r% t        | j                  d¬«      |«      ƒ d{  –—† }|xs | j                  |«      ƒ d{  –—† }t        | d«      r& t        | j                  d¬«      ||«      ƒ d{  –—† }|S 7 ŒU7 Œ:7 Œ
­w)zh
        Async version of __call__ that is swapped in when an async request
        is running.
        NrT   T)Úthread_sensitiverU   )rW   r   rT   rL   rU   rX   s      r   rV   zMiddlewareMixin.__acall__†   sª   è ø€ ð
 ˆÜ�4Ð*Ô+ðœ]Ø×$Ñ$Ø!%ôð ó÷ ˆHð Ò? T×%6Ñ%6°wÓ%?×?ˆÜ�4Ð+Ô,ðœ]Ø×%Ñ%Ø!%ôð �xó!÷ !ˆHð ˆðøð  @øð!ús3   ‚/B±B²BÁB	Á1BÂ BÂBÂ	BÂB)
r	   r
   r   Úsync_capableÚasync_capabler   rR   r(   rV   r@   rA   s   @r   rI   rI   _   s!   ø„ Ø€LØ€Môò
ò
ör   rI   )r/   r"   Úasgiref.syncr   r   r   ÚDeprecationWarningr   ÚPendingDeprecationWarningr   ÚRemovedAfterNextVersionWarningr   Útyper*   rC   rI   r   r   r   ú<module>rd      s`   ðÛ Û ç RÑ Rô	Ð"4ô 	ô	Ð8ô 	ð ":Ð ÷ñ ô,*˜ô *ôZ3˜tô 3÷8ò 8r   