
    i^)                     
   S SK r S SKrS SKrS SKrS SKrS SKrS SKrS SKrS SKrS SK	J
r
  S SKJrJrJrJrJrJr  \R"                  S:  a  \r\rOS SKJrJr  \(       a  S SKJrJrJr  S SKJr  O,\R"                  SS S:  a	  S S	KJrJr  O	 S S	KJrJr   S SKJr  \R6                  " 5       S:H  r\R6                  " 5       S:H  r\R<                  " 5       S:H  r\ " \RB                  " S5      5      r"S r#S\$S\$4S jr%S\&\'-  S\(4S jr)S\(S\(S\&4S jr*S\(S\&4S jr+S\,S\ 4S jr-S r.S\/S\0\$\4   4S  jr1S! r2S" r3S2S#\(S-  S$\(S\4\(   4S% jjr5 \(Rl                  r6S'\S(   S\ 4S) jr8\R"                  SS S*:  a  S+ r9\0S,.S- jr:O\Rv                  r:\R"                  SS S.:  a  S/S0.S1 jr<g\Rx                  r<g! \ a     " S
 S5      r GN8f = f! \ a     S SKJr   GNE! \ a    S r  GNRf = ff = f! \7 a    S& r6 Nf = f)3    N)partial)TYPE_CHECKINGAny
ForwardRefOptional	TypedDictget_args)      )BaseExceptionGroupExceptionGroup)NotRequiredr   override)ConjectureRunner   )r   r   c                       \ rS rSrSrS rSrg)r   :   zWA runtime placeholder for the NotRequired type, which is not available in Python <3.11.c                     U $ N )clsitems     Y/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/hypothesis/internal/compat.py__class_getitem__NotRequired.__class_getitem__=   s    J    r   N)__name__
__module____qualname____firstlineno____doc__r   __static_attributes__r   r   r   r   r   :   s
    mr   r   )r   c                     U $ r   r   )fs    r   <lambda>r%   J   s    r   PyPyGraalVMWindowsPy_GIL_DISABLEDc                      U R                  U5        g ! [         aI    [        U S5      (       d   / U l        O! [         a      g f = fU R                  R	                  U5         g f = f)N	__notes__)add_noteAttributeErrorhasattrr+   append)excnotes     r   r,   r,   S   s_    #T #sK(( "! T"#s/    A'8A'
AA'AA'&A'sreturnc                 N    [         R                  " U S5      R                  S5      $ )Nunicode_escapeascii)codecsencodedecode)r2   s    r   escape_unicode_charactersr:   _   s    ==,-44W==r   datac                 .    [         R                  U S5      $ Nbig)int
from_bytes)r;   s    r   int_from_bytesrA   c   s    >>$&&r   isizec                 &    U R                  US5      $ r=   )to_bytes)rB   rC   s     r   int_to_bytesrF   g   s    ::dE""r   c                     [        U /5      $ r   )bytes)rB   s    r   int_to_byterI   k   s    !:r   r   c                     [        U [        5      =(       a2    [        U S5      =(       a    [        U S5      =(       d    [        U S5      $ )a/  Return True if cls is probably a subtype of `typing.NamedTuple`.

Unfortunately types created with `class T(NamedTuple):` actually
subclass `tuple` directly rather than NamedTuple.  This is annoying,
and means we just have to hope that nobody defines a different tuple
subclass with similar attributes.
_fields_field_types__annotations__)
issubclasstupler.   )r   s    r   is_typed_named_tuplerP   o   s@     	3 	NC#	NS.)LWS:K-Lr   c                      U /[        U 5      Q7$ r   )r	   )xs    r   _hint_and_argsrS   ~   s    r   thingc                 ~   [        U [        5      (       a  SSKJn  [	        U" U R
                  5      R                  5      R                  U" U 5      R                  5      n[        U R
                  5      R                  5        VVs0 s H  u  p4X2;  d  M  X4_M     snn$  [        R                  " U SS9n[        R                  " U 5      (       a/   UR!                  [        R                  " U R"                  SS95         [%        U S5      (       GaO  SSKJn  SSKJn  [        R*                  R,                  [        R*                  R.                  4nU" U 5      R                  R1                  5        H  nUR2                  U;  d  M  U" UR4                  5      (       d  M.  UR4                  UR6                  Ld  MI  UR4                  n	[9        S [;        [=        UR4                  5      [=        UR?                  UR@                  [B        5      5      SS	9 5       5      (       a  XXR@                     n	URD                  c  U	S
-  XXR@                  '   M  XUR@                  '   M     U$ s  snnf ! [        [        [        4 a    0 n GNf = f! [        [        [        4 a     GNf = f! [        [        [        4 a     U$ f = f)aT  Like the typing version, but tries harder and never errors.

Tries harder: if the thing to inspect is a class but typing.get_type_hints
raises an error or returns no hints, then this function will try calling it
on the __init__ method. This second step often helps with user-defined
classes on older versions of Python. The third step we take is trying
to fetch types from the __signature__ property.
They override any other ones we found earlier.

Never errors: instead of raising TypeError for uninspectable objects, or
NameError for unresolvable forward references, just return an empty dict.
r   )get_signatureT)include_extras__signature__)	is_a_typec              3   ~   #    U  H3  u  p[        U[        5      =(       a    [        U[        5      (       + v   M5     g 7fr   )
isinstancer   ).0sig_hinthints      r   	<genexpr>!get_type_hints.<locals>.<genexpr>   s;      /NH #8Z8 = *4 <<=/s   ;=FstrictN)#r[   r   hypothesis.internal.reflectionrV   setfunc
parameters
differenceget_type_hintsitemstypingr-   	TypeError	NameErrorinspectisclassupdate__init__r.   %hypothesis.strategies._internal.typesrY   	ParameterVAR_POSITIONALVAR_KEYWORDvalueskind
annotationemptyanyziprS   getnamer   default)
rT   rV   boundkvhintsrY   vkindspp_hints
             r   rh   rh      s3    %!!@M%**-889DD% ++
 "0

!;!A!A!CV!Cq~!CVV%%eDA u	LL..u~~dST!5/** EG''668I8I8U8UVF"5)44;;=FF&(!!,,//AGG3\\F   /2*1<<8*599QVVS+AB#(/   "'vvyy((.ff(.aff/ >6 La W Iy1  9n5 		F Iy1 LsV   I#I# I) .J  BJ# J#  J# ;B&J# )JJJ J #J<;J<c                 <    [        U 5      nX:w  a  U S:  a  US-
  $ U$ Nr      r?   rR   ys     r   floorr      $    AAv!a%1uHr   c                 <    [        U 5      nX:w  a  U S:  a  US-   $ U$ r   r   r   s     r   ceilr      r   r   widthrR   c                    U S:  d   e/ nU (       a"  UR                  U S-  5        U S-  n U (       a  M"  Ub  US/U-  -   S U nUR                  5         U$ r   )r/   reverse)rR   r   results      r   extract_bitsr      sc    6M6F
a!e	a ! A3;&/
NNMr   c                 <    [        [        [        U 5      5      5      $ r   )sumr   abs)selfs    r   r%   r%      s    Sc$i!89r   runnerr   c                     U b  S[         R                  ;  a  g[        U [         R                  S   R                  5      (       d  gSSKJn  [        X5      (       + $ )Nzdjango.testFr   )HypothesisTestCase)sysmodulesr[   TransactionTestCasehypothesis.extra.django._implr   )r   r   s     r   bad_django_TestCaser      sE    ~ckk9&#++m"<"P"PQQDf999r   )r
      c           	        ^ ^ [         R                  " T 5      (       a'  T" UU 4S j[         R                  " T 5       5       5      $ [        T [        5      (       a:  [        T S5      (       a)  [        T 5      " T  Vs/ s H  n[        UT5      PM     sn6 $ [        T [        [        45      (       a  [        T 5      " U4S jT  5       5      $ [        T [        5      (       a  [        [        T 5      S5      (       aO  [        T 5      " T R                  5      nT R                  5        H  u  pB[        UT5      U[        UT5      '   M      U$ [        T 5      " U4S jT R                  5        5       5      $ [        R                  " T 5      $ s  snf )Nc              3   |   >#    U  H1  nUR                   [        [        TUR                   5      T5      4v   M3     g 7fr   )r|   _asdict_innergetattr)r\   r$   dict_factoryobjs     r   r_    _asdict_inner.<locals>.<genexpr>   s3       0A wsAFF';\JK0s   9<rK   c              3   <   >#    U  H  n[        UT5      v   M     g 7fr   r   )r\   r   r   s     r   r_   r     s     IS]1l;;Ss   default_factoryc              3   X   >#    U  H  u  p[        UT5      [        UT5      4v   M!     g 7fr   r   )r\   r   r   r   s      r   r_   r     s-      'DA q,/q,1OP's   '*)dataclasses_is_dataclass_instancefieldsr[   rO   r.   typer   listdictr   ri   copydeepcopy)r   r   r   r   r   s   ``   r   r   r      sA   --c22  $++C0    U##Y(?(?9sKs!}Q=sKLLdE]++9ISIIIT""tCy"344c3#6#67IIKDA=J<>F=L9: ( 9 IIK  
 ==%%! Ls   :F)r   c                d    [         R                  " U 5      (       d  [        S5      e[        X5      $ )a   
A vendored variant of dataclasses.asdict. Includes the bugfix for
defaultdicts (cpython/32056) for all versions. See also issues/3812.

This should be removed whenever we drop support for 3.11. We can use the
standard dataclasses.asdict after that point.
z0asdict() should be called on dataclass instances)r   r   rk   r   )r   r   s     r   dataclass_asdictr     s,     11#66NOOS//r   )r
      Fra   c             #   ,  #    US:  a  [        S5      e[        U 5      n[        [        R                  " X15      5      =n(       aN  U(       a  [        U5      U:w  a  [        S5      eUv   [        [        R                  " X15      5      =n(       a  MM  g g 7f)Nr   zn must be at least onezbatched(): incomplete batch)
ValueErroriterrO   	itertoolsislicelen)iterablenrb   iteratorbatchs        r   batchedr   +  sz     q5566>Y--h:;;e;#e*/ !>??K Y--h:;;e;;s   BBBr   )=r7   r   r   rm   r   platformr   	sysconfigrj   	functoolsr   r   r   r   r   r   r	   version_infor   r   exceptiongrouptyping_extensionsr   r   %hypothesis.internal.conjecture.enginer   ImportErrorpython_implementationPYPYGRAALPYsystemWINDOWSboolget_config_varFREE_THREADED_CPYTHONr,   strr:   rH   	bytearrayr?   rA   rF   rI   r   rP   rS   objectr   rh   r   r   r   r   	bit_countr-   r   r   r   asdictr   r   r   r   <module>r      s         
     w+#N   G w&MM	
#	
 %%'61

(
(
*i
7
//
y
(Y556GHI 	#> > >'* 's '#C #s #u #3 5 d t C& CT#s(^ CX	3: 	C 	c 	:I
	:); < 	: 	: BQ'!&2 /3 
0 #)) BQ'! (-  G{  	 	  #	#   	#"H	##N  :9I:sN   F: G G6 :GGG3G!!	G/*G3.G//G36	HH