+
    BiW;                         ^ RI t ^ RIHt ^ RIHt ^ RIHt R tR tR t	R t
R	 tR
 tR tR tR tR tR tR tR tR tR tR tR tR tR# )    N)lookup_recursive_ref)_utils)ValidationErrorc                V    V P                  R4      pVe   RV3.# V P                  4       # )z
Ignore siblings of ``$ref`` if it is present.

Otherwise, return all keywords.

Suitable for use with `create`'s ``applicable_validators`` argument.
$ref)getitems)schemarefs   & Y/var/www/html/photoedit/myenv/lib/python3.14/site-packages/jsonschema/_legacy_keywords.pyignore_ref_siblingsr   	   s/     **V
C
||~    c              #     "   V P                  VR 4      '       g   R# VP                  4        F  w  rEWB9  d   K  V P                  VR 4      '       d   V P                  W%VR7       Rj  xL
  KB  V P                  VR4      '       d!   WR9  d   V: RV: 2p\        V4      x  Kx  Kz  V F!  pWr9  g   K  V: RV: 2p\        V4      x  K#  	  K  	  R#  Lk5i)objectNschema_pathstring is a dependency of )is_typer	   descendr   )	validatordependenciesinstancer
   property
dependencymessageeachs   &&&&    r   dependencies_draft3r      s     Xx00 , 2 2 4#Z22 ((( )    z844)'N*>xlK%g.. * #'!%(<XLIG)'22 # !5
s$   ACC(C)C(C4!Cc              #  @  "   V P                  VR4      '       g   R# VP                  4        Fi  w  rEWB9  d   K  V P                  VR4      '       d*   V F!  pWb9  g   K  V: RV: 2p\        V4      x  K#  	  KN  V P                  W%VR7       Rj  xL
  Kk  	  R#  L
5i)z
Support for the ``dependencies`` keyword from pre-draft 2019-09.

In later drafts, the keyword was split into separate
``dependentRequired`` and ``dependentSchemas`` validators.
r   Narrayr   r   )r   r	   r   r   )r   r   r   r
   r   r   r   r   s   &&&&    r   !dependencies_draft4_draft6_draft7r!   /   s      Xx00 , 2 2 4#Z11"'!%(<XLIG)'22 #
 !((( )    !5s   ABB2BBBc              #      "   \         P                  ! V4       FE  pV P                  R V./R7      P                  V4      '       g   K/  V: RV: 2p\	        V4      x  KG  	  R# 5i)typer
   z is disallowed for N)r   ensure_listevolveis_validr   )r   disallowr   r
   
disallowedr   s   &&&&  r   disallow_draft3r*   M   s\     ((2
FZL#9:CCHMM#&9(FG!'** 3s   AA$A$c              #      "   V P                  VR 4      '       d   V P                  W!4       Rj  xL
  R# \        V4       F   w  rEV P                  W%VR7       Rj  xL
  K"  	  R#  L7 L5i)r   Nr   )r   r   	enumerate)r   extendsr   r
   index	subschemas   &&&&  r   extends_draft3r0   T   se     (++$$X777%g.$$Xe$LLL / 	8 	Ms!   -A+A',A+A)A+)A+c              #   T  "   V P                  VR 4      '       g   R# V P                  VR4      '       d2   \        V4       F   w  rEV P                  WQVR7       Rj  xL
  K"  	  R# \        \        V4      V4       F#  w  w  rEpV P                  WVWDR7       Rj  xL
  K%  	  R#  LH L5i)r    Nr   pathr3   r   )r   r,   r   zipr   r	   r   r
   r.   itemr/   s   &&&&   r   items_draft3_draft4r8   \   s     Xw//))$X.KE ((5(AAA / ),Ih,?(G$MU9 ((e )    )H Bs(   2B(&B(B$=B(B&B(&B(c              #   \  "   V P                  VR 4      '       d)   V P                  VP                  R/ 4      R4      '       d   R# \        VP                  R. 4      4      pV P                  VR4      '       d6   \        W$R VR7       F   w  rVV P	                  WaVR7       Rj  xL
  K"  	  R# V'       gt   \        V4      \        VP                  R. 4      4      8  dI   Rp\        V\        P                  ! V\        VP                  R. 4      4      R 4      ,          4      x  R# R# R#  L5i)r    r	   r   N)startr2   z3Additional items are not allowed (%s %s unexpected))r   r   lenr,   r   r   r   
extras_msg)r   aIr   r
   	len_itemsr.   r7   errors   &&&&    r   additionalItemsr@   j   s     h00VZZ4h??FJJw+,IX&&$Xj%9KKE (((>>> LCMC

7B(?$@@EF%%hs6::gr3J/K/L&MNN
 	
 AR ?s    A D,AD,"D*#D,5A6D,c              #   T  "   V P                  VR 4      '       g   R# V P                  VR 4      '       d?   \        \        V4      V4       F#  w  w  rEpV P                  WVWDR7       Rj  xL
  K%  	  R# \        V4       F   w  rEV P                  WQVR7       Rj  xL
  K"  	  R#  L; L5i)r    Nr4   r2   )r   r5   r,   r   r6   s   &&&&   r   items_draft6_draft7_draft201909rB   |   s     Xw//(((+Ih,?(G$MU9 ((e )    )H
 %X.KE ((5(AAA /	
 Bs(   2B(3B((B$)0B(B&B(&B(c              #      "   V P                  VR 4      '       g   R# VP                  RR4      '       d   W!8*  pRpMW!8  pRpV'       d   V: RV RV: 2p\        V4      x  R# R# 5i)numberNexclusiveMinimumFzless than or equal toz	less than is z the minimum of r   r   r   )r   minimumr   r
   failedcmpr   s   &&&&   r   minimum_draft3_draft4rK      sq     Xx00zz$e,,$%#LSE)9'Eg&&    2A'A'
A'c              #      "   V P                  VR 4      '       g   R# VP                  RR4      '       d   W!8  pRpMW!8  pRpV'       d   V: RV RV: 2p\        V4      x  R# R# 5i)rD   NexclusiveMaximumFzgreater than or equal tozgreater thanrF   z the maximum of rG   )r   maximumr   r
   rI   rJ   r   s   &&&&   r   maximum_draft3_draft4rP      sq     Xx00zz$e,,$(#LSE)9'Eg&& rL   c              #     "   V P                  VR 4      '       g   R# VP                  4        F  w  rEWB9   d&   V P                  W$,          VVVR7       Rj  xL
  K0  VP                  RR4      '       g   KJ  \	        V: R24      pVP                  RVR,          VVR7       VP                  P                  V4       VP                  P                  VR.4       Vx  K  	  R#  L5i)r   Nr4   requiredFz is a required property)r   validator_valuer   r
   )
r   r	   r   r   r   _setr3   
appendleftr   extend)r   
propertiesr   r
   r   r/   r?   s   &&&&   r   properties_draft3rX      s     Xx00)//1 (("$	 )    ]]:u--#xl2I$JKEJJ$ )* 5!	   JJ!!(+$$h
%;<K%  2s   AC&C$C&7A.C&c           	   #   8  "   \         P                  ! V4      p. p\        V4       Fq  w  rVV P                  VR 4      '       d;   \	        V P                  W&VR7      4      pV'       g    R# VP                  V4       KW  V P                  W&4      '       g   Kp   R# 	  . pV F%  p VP                  \        VR,          4      4       K'  	  \        V: RRP                  V4       2VR7      x  R#   \         d    TP                  \        T4      4        Kw  i ; i5i)r   r   Nnamez is not of type z, )context)r   r%   r,   r   listr   rV   appendrepr	Exceptionr   join)	r   typesr   r
   
all_errorsr.   r#   errorsreprss	   &&&&     r   type_draft3re      s     u%EJ 'T8,,)++H+NOFf%x.. ( E	%LLd6l+, 
 ,&tyy'7&89   	%LLd$	%s0   BDD#!C.*D.%DDDDc              #      a a"   S P                  VR 4      '       g   R# \        ;QJ d     VV 3R lV 4       F  '       g   K   RM	  RM! VV 3R lV 4       4      '       g   \        RV: R24      x  R# R# 5i)r    Nc              3   f   <"   T F&  pSP                  SR 7      P                  V4      x  K(  	  R# 5i)r$   N)r&   r'   ).0elementcontainsr   s   & r   	<genexpr>)contains_draft6_draft7.<locals>.<genexpr>   s4      G 	)227;;s   .1TFzNone of z! are valid under the given schema)r   anyr   )r   rj   r   r
   s   ff&&r   contains_draft6_draft7rn      sl     Xw//3 333    xl"CD
 	
	s   %A7A7A7!A7c              #      "   \        V P                  4      pV P                  VVP                  VP                  R 7       Rj  xL
  R#  L5i))resolverN)r   	_resolverr   contentsrp   )r   recursiveRefr   r
   resolveds   &&&& r   rs   rs      sG     #I$7$78H  "" !   s   AAA
Ac           	        V P                  VR4      '       d   . # . pVP                  R4      pVeg   V P                  P                  V4      pVP	                  \        V P                  VP                  VP                  R7      VVP                  4      4       RV9   da   \        V P                  4      pVP	                  \        V P                  VP                  VP                  R7      VVP                  4      4       RV9   d   RV9   d   \        \        \        V4      4      4      # V P                  VR,          R4      '       d   \        \        \        V4      4      4      # V\        \        \        VR,          4      4      4      ,          pR	V9   d   V P                  VR	,          R
7      P                  V4      '       d=   V\        WVR	,          4      ,          pRV9   d   V\        WVR,          4      ,          pM!RV9   d   V\        WVR,          4      ,          pR F_  pWb9   g   K  \        V4       FE  w  rxV P                  W&,          R
7      P                  V4      '       g   K4  VP                  V4       KG  	  Ka  	  R FN  pWb9   g   K  W&,           F7  p	\!        V P#                  W4      R4      p
V
e   K$  V\        WV	4      ,          pK9  	  KP  	  V# )z
Get all indexes of items that get evaluated under the current schema.

Covers all keywords related to unevaluatedItems: items, prefixItems, if,
then, else, contains, unevaluatedItems, allOf, oneOf, anyOf
booleanr   Nr
   rq   $recursiveRefr	   r@   r   ifr$   thenelse)rj   unevaluatedItemsallOfoneOfanyOf)r   r   rq   lookuprV   %find_evaluated_item_indexes_by_schemar&   rr   rp   r   r\   ranger;   r'   r,   r]   nextr   )r   r   r
   evaluated_indexesr   rt   keywordkvr/   errss   &&&        r   r   r      s    ++	
**V
C
&&--c2  1  #,,&// !  !!		
 & '	(;(;<  1  #,,&// !  !!		
 &&c(m,--VG_h77c(m,--T%F7O(<"=>>v~6$<099(CC!FVD\"  !%J& ! v!FVF^"  4!(+##6?#;DDQGG%,,Q/ , 4 /#__	I--hBDI<%)N!Y* % - / r   c              #     "   V P                  VR 4      '       g   R# \        WV4      p\        V4       UUu. uF  w  rVWT9  g   K  VNK  	  pppV'       d-   Rp\        V\        P
                  ! V4      ,          4      x  R# R# u uppi 5i)r    Nz4Unevaluated items are not allowed (%s %s unexpected))r   r   r,   r   r   r<   )	r   r|   r   r
   evaluated_item_indexesr.   r7   unevaluated_itemsr?   s	   &&&&     r   unevaluatedItems_draft2019r   @  s     Xw//BV !*( 3 3. 	 3   Fef&7&78I&JJKK 	s   5B
BB?Bc           	         V P                  VR 4      '       d   . # . pVP                  R4      pVeg   V P                  P                  V4      pVP	                  \        V P                  VP                  VP                  R7      VVP                  4      4       RV9   da   \        V P                  4      pVP	                  \        V P                  VP                  VP                  R7      VVP                  4      4       R F  pWb9   g   K  W&,          pV P                  VR 4      '       d!   V'       d   W1P                  4       ,          pKK  V P                  VR4      '       g   Ke  V F  pW9   g   K  VP                  V4       K  	  K  	  RV9   dI   V FB  pVR,           F2  p	\        P                  ! W4      '       g   K!  VP                  V4       K4  	  KD  	  RV9   d<   VR,          P                  4        F   w  rW9  d   K  V\        WV
4      ,          pK"  	  R FN  pWb9   g   K  W&,           F7  p
\        V P!                  W4      R4      pVe   K$  V\        WV
4      ,          pK9  	  KP  	  RV9   d   V P                  VR,          R	7      P#                  V4      '       d>   V\        WVR,          4      ,          pR
V9   d   V\        WVR
,          4      ,          pV# RV9   d   V\        WVR,          4      ,          pV# )rv   r   Nrw   rx   r   patternPropertiesdependentSchemasry   r$   rz   r{   )rW   additionalPropertiesunevaluatedPropertiesr}   )r   r   rq   r   rV   &find_evaluated_property_keys_by_schemar&   rr   rp   r   keysr]   researchr	   r   r   r'   )r   r   r
   evaluated_keysr   rt   r   schema_valuer   patternr/   r   s   &&&         r   r   r   O  s   ++	N
**V
C
&&--c22  #,,&// !  !!		
 & '	(;(;<2  #,,&// !  !!		
 !?L  y99l--/1""<:: ,H+&--h7 !- f$ H!"56699W//"))(3 7 !
 V##)*<#=#C#C#EH'DY N $F /#__	I--hBDI<"&L!Y' N - / v~6$<099(CCDVD\ N "H#   vDVF^ N r   c              #     "   V P                  VR 4      '       g   R# \        WV4      p. pV F>  pWd9  g   K  V P                  W&,          VVVR7       F  pVP                  V4       K  	  K@  	  V'       dp   VRJ d>   Rp\	        V\
        R7      p	\        V\        P                  ! V	4      ,          4      x  R# Rp\        V\        P                  ! V4      ,          4      x  R# R# 5i)r   Nr4   Fz9Unevaluated properties are not allowed (%s %s unexpected))keyz[Unevaluated properties are not valid under the given schema (%s %s unevaluated and invalid))	r   r   r   r]   sortedstrr   r   r<   )
r   uPr   r
   r   unevaluated_keysr   _r?   extrass
   &&&&      r   unevaluatedProperties_draft2019r     s     Xx00;VN )&&"$	 '  !''1  ;OE,#6F!%&*;*;F*C"CDDC  "%&*;*;<L*M"MNN s   1C(>C(7A1C()r   referencing.jsonschemar   
jsonschemar   jsonschema.exceptionsr   r   r   r!   r*   r0   r8   r@   rB   rK   rP   rX   re   rn   rs   r   r   r   r    r   r   <module>r      ss    	 7  13.<+M
$B' ' 22

K\LRjOr   