+
    7*iI  c                  s    R t ^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RIH	t	H
t
HtHtHtHtHtHt ^ RIHt ^ RIHtHt ^RIHtHtHtHtHt ^RIHt ^RIHt ^R	I H!t! ^R
I"H#t# ^RI$H%t%H&t&H't' ]	'       d   ^RI(H)t) ^RI*H+t+ R3t,]! R4      t-]P\                  R48  dv   ]! ]P^                  ]%]'3R7      ]RRRRRRRRRRRRRRRRRRRR/
R R ll4       4       t0]! ]P^                  ]%]'3R7      ]RRRRRRRRRRRRRRRRRRRR/
R R  ll4       4       t0Ml]! ]P^                  ]%]'3R7      ]RRRRRRRRRRRRRRRR/R! R" ll4       4       t0]! ]P^                  ]%]'3R7      ]RRRRRRRRRRRRRRRR/R# R$ ll4       4       t0]! ]P^                  ]%]'3R7      R5RRRRRRRRRRRRRRRRRRRR/
R% R& lll4       t0R' R( lt1]! ]24      t3]P\                  R68  d   R) R* lt4]4]Pj                  n6        R+RR,RR-^R.R/R/ R0 llt7R1 R2 lt8R# )7z7Provide an enhanced dataclass that performs validation.)annotationsN)TYPE_CHECKINGAnyCallableGenericLiteralNoReturnTypeVaroverload)warn)	TypeGuarddataclass_transform)_config_decorators_mock_val_ser_namespace_utils_typing_extra)_dataclasses)getattr_migration)
ConfigDict)PydanticUserError)Field	FieldInfoPrivateAttr)PydanticDataclass)MappingNamespace_T)Zfield_specifiersinitFreprTeqorderunsafe_hashfrozenconfigvalidate_on_initkw_only.slotsc               sD    V ^8  d   QhRRRRRRRRRRRRR	R
RRRRRRRR/# )   r   Literal[False]r   boolr   r   r   r    r!    ConfigDict | type[object] | Noner"   bool | Noner#   r$   return-Callable[[type[_T]], type[PydanticDataclass]] Zformat   "9/usr/lib/python3.14/site-packages/pydantic/dataclasses.py__annotate__r0   !   sx        	
    1 &   
7    c        
            R # Nr,   )
r   r   r   r   r   r    r!   r"   r#   r$   s
   $$$$$$$$$$r/   	dataclassr4      s     	r1   c               H    V ^8  d   QhRRRRRRRRRRR	RR
RRRRRRRRRRR/# )r%   _clstype[_T]r   r&   r   r'   r   r   r   r    r)   r!   r(   r"   r#   r$   r*   type[PydanticDataclass]r,   r-   r.   r/   r0   r0   2   s     & && & 	&
 & & & & 1& && & & 
!&r1   c       
        r2   r3   r,   )r6   r   r   r   r   r   r    r!   r"   r#   r$   s   &$$$$$$$$$$r/   r4   r4   0   s     #&r1   c               s<    V ^8  d   QhRRRRRRRRRRRR	R
RRR	RR/	# )r%   r   r&   r   r'   r   r   r   r    r)   r!   r(   r"   r*   r+   r,   r-   r.   r/   r0   r0   E   sd        	
    1 & 
7r1   c                r2   r3   r,   )r   r   r   r   r   r    r!   r"   s   $$$$$$$$r/   r4   r4   C   s     	r1   c               s@    V ^8  d   QhRRRRRRRRRRR	RR
RRRRRRR/
# )r%   r6   r7   r   r&   r   r'   r   r   r   r    r)   r!   r(   r"   r*   r8   r,   r-   r.   r/   r0   r0   T   sn     & && & 	&
 & & & & 1& && 
!&r1   c               r2   r3   r,   )	r6   r   r   r   r   r   r    r!   r"   s	   &$$$$$$$$r/   r4   r4   R   s     #&r1   c               r5   )r%   r6   ztype[_T] | Noner   r&   r   r'   r   r   r   r    r)   r!   r(   r"   r#   r$   r*   zGCallable[[type[_T]], type[PydanticDataclass]] | type[PydanticDataclass]r,   r-   r.   r/   r0   r0   c   s     VH VH
VH VH 	VH
 	VH VH VH VH -VH "VH VH VH MVHr1   c       
   	     s   aaaaaaa
a \         P                  R8  d   RV	RS
/oM/ oR VVVVVVV
V3R llpV f   V# V! V 4      # )ar  !!! abstract "Usage Documentation"
    [`dataclasses`](../concepts/dataclasses.md)

A decorator used to create a Pydantic-enhanced dataclass, similar to the standard Python `dataclass`,
but with added validation.

This function should be used similarly to `dataclasses.dataclass`.

Args:
    _cls: The target `dataclass`.
    init: Included for signature compatibility with `dataclasses.dataclass`, and is passed through to
        `dataclasses.dataclass` when appropriate. If specified, must be set to `False`, as pydantic inserts its
        own  `__init__` function.
    repr: A boolean indicating whether to include the field in the `__repr__` output.
    eq: Determines if a `__eq__` method should be generated for the class.
    order: Determines if comparison magic methods should be generated, such as `__lt__`, but not `__eq__`.
    unsafe_hash: Determines if a `__hash__` method should be included in the class, as in `dataclasses.dataclass`.
    frozen: Determines if the generated class should be a 'frozen' `dataclass`, which does not allow its
        attributes to be modified after it has been initialized. If not set, the value from the provided `config` argument will be used (and will default to `False` otherwise).
    config: The Pydantic config to use for the `dataclass`.
    validate_on_init: A deprecated parameter included for backwards compatibility; in V2, all Pydantic dataclasses
        are validated on init.
    kw_only: Determines if `__init__` method parameters must be specified by keyword only. Defaults to `False`.
    slots: Determines if the generated class should be a 'slots' `dataclass`, which does not allow the addition of
        new attributes after instantiation.

Returns:
    A decorator that accepts a class as its argument and returns a Pydantic `dataclass`.

Raises:
    AssertionError: Raised if `init` is not `False` or `validate_on_init` is `False`.
r#   r$   c                    V ^8  d   QhRRRR/# )r%   cls	type[Any]r*   r8   r,   r-   r.   r/   r0   Zdataclass.<locals>.__annotate__   s     ^ ^i ^,C ^r1   c                s  <aa ^RI Hp V! V 4      '       d   \        RV P                   R2RR7      hT p\        ;QJ d&    R V P
                   4       F  '       g   K   RM	  RM! R V P
                   4       4      pV'       g7   Se3   \        V R
4      '       d!   \        RV P                   R2\        ^R7       Se   SM\        V R
R	4      p\        P                  ! V4      p\        P                  P                  V 4      pVP                  V4       V P                   p\"        P$                  ! V 4      '       d]   R	pV 3p\'        V \(        4      '       d!   \(        V P*                  ,          p	W3,           p\,        P.                  ! V P                  V4      p Se7   SoVP0                  '       d"   \        RV P                  : R2\        ^R7       MVP0                  ;'       g    Ro\2        P4                  ! V 4      p
V
 FG  p\        WR	4      p\7        V\8        4      '       g   K'  \;        W\"        P<                  ! V4      4       KI  	  \"        P>                  ! V 4      ;_uu_ 4        \@        PB                  ! V 3RRRSRSRSRSRS/SB p R	R	R	4       VPD                  '       d   V PF                  o\H        PJ                  ! V PF                  4      R VV3R ll4       pVPM                  R	V 4      V n#        S'       d+   \        V R4      '       g   R R lpR R lpWn'        Wn(        RV n)        W`n*        Wpn        \        VRR	4      pVPV                  V n+        \X        PZ                  R8  d   Ve   VVn.        VV n.        VP^                  V n/        \a        \b        4      V n2        RV n3        \"        Ph                  ! WRR7       V #   + '       g   i     ELC; i) zCreate a Pydantic dataclass from a regular dataclass.

Args:
    cls: The class to create the Pydantic dataclass from.

Returns:
    A Pydantic dataclass.
)is_model_classz(Cannot create a Pydantic dataclass from z" as it is already a Pydantic modelzdataclass-on-model)Zcodec              3  sN   "   T F  p\         P                  ! V4      x  K  	  R # 5ir3   )dataclassesis_dataclass).0Zbase   & r/   	<genexpr>Z6dataclass.<locals>.create_dataclass.<locals>.<genexpr>   s      ZMD!9!9$!?!?Ms   #%TFN__pydantic_config__z[`config` is set via both the `dataclass` decorator and `__pydantic_config__` for dataclass zK. The `config` specification from `dataclass` decorator will take priority.)ZcategoryZ
stacklevelzN`frozen` is set via both the `dataclass` decorator and `config` for dataclass zW.This is not recommended. The `frozen` specification on `dataclass` will take priority.r   r   r   r   r   r    c               s(    V ^8  d   QhRRRRRRRR/# )	r%   instancer   nameZstrvaluer   r*   Noner,   r-   r.   r/   r0   9dataclass.<locals>.create_dataclass.<locals>.__annotate__   s1     _ _,= _S _QT _\` _r1   c               s\  < S'       d
   S! WV4      # \        V 4      p\        W1R 4      p\        V\        4      '       d   VP	                  W4       R # \        V\
        P                  4      '       d   V P                  P                  W4       R # VP                  P                  WV4       R # r3   )Ztypegetattr
isinstanceZpropertyZ__set__	functoolsZcached_property__dict__Z__setitem____pydantic_validator__validate_assignment)rC   rD   rE   Zinst_clsattrfrozen_original_setattrs   """  r/   validated_setattrZ>dataclass.<locals>.create_dataclass.<locals>.validated_setattr   s    +HEBB>xt4dH--LL1i&?&?@@%%11$>33GGX]^r1   __setstate__c               r9   )r%   selfr   r*   	list[Any]r,   r-   r.   r/   r0   rG     s     U Uc Ui Ur1   c                s~    \         P                  ! V 4       Uu. uF  p\        WP                  4      NK  	  up# u upi r3   )r=   fieldsrH   rD   )rS   Zfr@   r/   _dataclass_getstateZ@dataclass.<locals>.create_dataclass.<locals>._dataclass_getstate  s0    ;F;M;Md;ST;SaGD&&1;STTTs   :c               s$    V ^8  d   QhRRRRRR/# )r%   rS   r   staterT   r*   rF   r,   r-   r.   r/   r0   rG     s&     D Dc D) D Dr1   c                s    \        \        P                  ! V 4      V4       F%  w  r#\        P	                  WP
                  V4       K'  	  R # r3   )Zzipr=   rU   Zobject__setattr__rD   )rS   rW   fieldrE   s   &&  r/   _dataclass_setstateZ@dataclass.<locals>.create_dataclass.<locals>._dataclass_setstate  s5    (+K,>,>t,De(L**4UC )Mr1   __firstlineno__)raise_errors)   i   )5Z_internal._utilsr<   r   __name__ZanyZ	__bases__Zhasattrr	   ZUserWarningrH   r   ConfigWrapperr   ZDecoratorInfosZbuildZupdate_from_config__doc___pydantic_dataclassesZis_stdlib_dataclassZ
issubclassr   Z__parameters__typesZ	new_classr    r   Zsafe_get_annotationsrI   r   ZsetattrZas_dataclass_fieldZpatch_base_fieldsr=   r4   rM   rX   rJ   ZwrapsZ__get__Z__getstate__rR   __is_pydantic_dataclass__Z__pydantic_decorators__Z
__module__sysversion_infor[   Z__qualname__Zclassmethod_pydantic_fields_completeZ__pydantic_fields_complete____pydantic_complete__complete_dataclass)r:   r<   Zoriginal_clsZhas_dataclass_baseZconfig_dictZconfig_wrapperZ
decoratorsZoriginal_docZbasesZgeneric_baseZcls_annsZ
field_nameZfield_valuerQ   rV   rZ   ZfirstlinenorO   rP   r!   r   r    kwargsr   r   r$   r   s   &                @@r/   create_dataclassZ#dataclass.<locals>.create_dataclass   s    	5##:3<<.Hjk) 
  !S ZCMM ZSSS ZCMM ZZ!f&8WSJ_=`=`mnqnznzm{ |\ ]$	 !' 2fEZ\`8a ..{; //55c:
%%n5
 {{ 44S99  L
 FE#w''&s'9'9:///#,,6C G$$$deheqeqdt um m( 	 %++44uG !55c:"J "#48K+y11)>)Q)QR])^_ # #44S99''
 
 	

 
 
 (
 
 
C : ---"__S__-_ _ ._ 077cBCOWS.99UD $7 #6  )-%&0#"l,=tD%00w&;+B ,7L("-C'44+67P+Q($)! 	00SXY
S :99s   )$OO	r]   i
   )rd   re   )r6   r   r   r   r   r   r    r!   r"   r#   r$   rj   ri   s   &$dddddd$$d @r/   r4   r4   b   sL    d 7"Wgu5^ ^@  $|G1A$1GGr1   c               r9   )r%   r:   r8   r*   r'   r,   r-   r.   r/   r0   r0   <  s     X X#: Xt Xr1   c                s    \         ;QJ d4    R V P                  P                  4        4       F  '       d   K   R# 	  R# ! R V P                  P                  4        4       4      # )zReturn whether the fields where successfully collected (i.e. type hints were successfully resolves).

This is a private property, not meant to be used outside Pydantic.
c              3  s8   "   T F  qP                   x  K  	  R # 5ir3   )Z	_complete)r?   Z
field_infor@   r/   rA   Z,_pydantic_fields_complete.<locals>.<genexpr>A  s     W6V
##6Vs   FT)ZallZ__pydantic_fields__Zvalues)r:   s   &r/   rf   rf   <  sK    
 3Wc6M6M6T6T6VW33W3W3Wc6M6M6T6T6VWWWr1   c               s$    V ^8  d   QhRRRRRR/# )r%   argsr   ri   r*   r   r,   r-   r.   r/   r0   r0   J  s!     < <S <C <H <r1   c                 s    \        R4      h)a!  This function does nothing but raise an error that is as similar as possible to what you'd get
if you were to try calling `InitVar[int]()` without this monkeypatch. The whole purpose is just
to ensure typing._type_check does not error if the type hint evaluates to `InitVar[<parameter>]`.
z 'InitVar' object is not callable)Z	TypeError)rl   ri   s   *,r/   _call_initvarrm   J  s    
 :;;r1   forcer\   _parent_namespace_depth_types_namespacec               s0    V ^8  d   QhRRRRRRRRRR	R
R/# )r%   r:   r8   rn   r'   r\   ro   Zintrp   zMappingNamespace | Noner*   r)   r,   r-   r.   r/   r0   r0   T  sF     : :	 : : 	:
 !: .: :r1   c               s   V'       g   V P                   '       d   R# R FK  pWPP                  9   g   K  \        \        W4      \        P
                  4      '       d   K@  \        W4       KM  	  RV n         Ve   TpM,V^ 8  d$   \        P                  ! VRR7      ;'       g    / pM/ p\        P                  ! VR7      p\        P                  ! V \        P                  ! V P                  RR7      VVRR7      # )	aD  Try to rebuild the pydantic-core schema for the dataclass.

This may be necessary when one of the annotations is a ForwardRef which could not be resolved during
the initial attempt to build the schema, and automatic rebuilding fails.

This is analogous to `BaseModel.model_rebuild`.

Args:
    cls: The class to rebuild the pydantic-core schema for.
    force: Whether to force the rebuilding of the schema, defaults to `False`.
    raise_errors: Whether to raise errors, defaults to `True`.
    _parent_namespace_depth: The depth level of the parent namespace, defaults to 2.
    _types_namespace: The types namespace, defaults to `None`.

Returns:
    Returns `None` if the schema is already "complete" and rebuilding was not required.
    If rebuilding _was_ required, returns `True` if rebuilding was successful, otherwise `False`.
NFT)Zparent_depthrn   )Zparent_namespace)Zcheck)r\   ns_resolverZ_force_build)Z__pydantic_core_schema__rL   Z__pydantic_serializer__)rg   rK   rI   rH   r   Z
MockValSerZdelattrr   Zparent_frame_namespacer   Z
NsResolverra   rh   r   r_   rB   )r:   rn   r\   ro   rp   rN   Z
rebuild_nsrq   s   &$$$$   r/   rebuild_dataclassrr   T  s    4 S...a<<
733E}G_G_(`(` C	 b !&C#%
	 1	$"99G^fjkqqoq

"--#K !33c55UC!
 
 
r1   c               r9   )r%   class_r;   r*   z"TypeGuard[type[PydanticDataclass]]r,   r-   r.   r/   r0   r0     s      ) 3U r1   c               s     RV P                   9   ;'       d    \        P                  ! V 4      #   \         d     R# i ; i)zWhether a class is a pydantic dataclass.

Args:
    class_: The class.

Returns:
    `True` if the class is a pydantic dataclass, `False` otherwise.
rc   F)rK   r=   r>   ZAttributeError)rs   r.   r/   is_pydantic_dataclassrt     s<    *foo=bb+BZBZ[aBbb s   / / >>)r4   rr   rk   r3   )r]   i   )9r`   Z
__future__r    Z_annotationsr=   rJ   rd   rb   Ztypingr   r   r   r   r   r   r   r   Zwarningsr	   Ztyping_extensionsr
   r   Z	_internalr   r   r   r   r   r   ra   Z
_migrationr   r!   r   Zerrorsr   rU   r   r   r   Z_internal._dataclassesr   Z_internal._namespace_utilsr   Z__all__r   re   rY   r4   rf   r^   Z__getattr__rm   ZInitVarZ__call__rr   rt   r,   r1   r/   <module>ru      s   = 2   
  ^ ^ ^  < [ [ < )  % 1 19<
*T]w;+<+<e[*QR$  	
  "  48 )-    S ;+<+<e[*QR&  %& 	&
 & & "& #& 48& )-& & &  S&" ;+<+<e[*QR$  	
  " # 48 )-  S ;+<+<e[*QR&  %& 	&
 & & "& #& 48& )-&  S& {'8'8%&MNVH !VH 	VH
 VH VH VH VH 04VH %)VH VH VH OVHrX  )g< $1K : : 	:
 $%: 15:zr1   