+
    =åûjÇ
  ã                   óP   € R t R tR tR tRR ltR tR tR tR	 tR
 t	R t
R tR# )z%Generic SymPy-Independent Strategies c              #   ó   "  € V x € R # 5i©N© )Úxs   &ÚXC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\sympy\strategies\branch\core.pyÚidentityr      s
   é € Ø
„Gùs   ‚	c                ó   a a€ V V3R loS# )z9Apply a branching rule repeatedly until it has no effect c              3   ó¤   <"  € V 0pS! V 4       F,  pW!9  g   K  VP                  V4       S! V4       R j  x€L
  K.  	  W08X  d   V x € R # R #  L5ir   )Úadd)ÚexprÚseenÚnexprÚbruleÚexhaust_brls   &  €€r   r   Úexhaust.<locals>.exhaust_brl
   sR   øé € ØˆvˆÙ˜4–[ˆEØÖ Ø—‘˜”Ù& uÓ-×-Ò-ñ !ð �6Œ>ØŒJñ ñ .ùs   ƒAšA¶A·Ar   )r   r   s   f@r   Úexhaustr      s   ù€ öð Ðó    c                 ó   a a€ V V3R  lpV# )c              3   óT   <"  € S! V 4       F  pW8w  d
   S! SW4       Vx € K  	  R # 5ir   r   )r   Úresultr   Úfns   & €€r   Úonaction_brlÚonaction.<locals>.onaction_brl   s(   øé € Ù˜D–kˆFØŒ~Ù�5˜$Ô'ØŒLó "ùs   ƒ%(r   )r   r   r   s   ff r   Úonactionr      s   ù€ öð
 Ðr   Nc                óF   a€ S'       g	   ^ RI Hp VoV3R lp\        W4      # )z@Print the input and output expressions at each rule application )Ústdoutc                 ó€   <€ SP                  R V P                  ,          4       SP                  RV: RV: R24       R# )z	Rule: %s
zIn: z
Out: z

N)ÚwriteÚ__name__)Úbrlr   r   Úfiles   &&&€r   r   Údebug.<locals>.write$   s)   ø€ Ø�
‰
�< #§,¡,Õ.Ô/Ø�
Š
«D³&Ð9Ö:r   )Úsysr   r   )r   r    r   r   s   &f  r   Údebugr#      s    ø€ çÝØˆõ;ô �EÓ!Ð!r   c                 ó   a € V 3R lpV# )z(Multiplex many branching rules into one c              3   óŽ   <"  € \        4       pS F/  pV! V 4       F   pW19  g   K  VP                  V4       Vx € K"  	  K1  	  R # 5ir   )Úsetr
   )r   r   r   r   Úbruless   &   €r   Úmultiplex_brlÚ multiplex.<locals>.multiplex_brl-   s;   øé € Ü‹uˆÛˆCÙ˜Tž�ØÖ$Ø—H‘H˜U”OØ”Kó #ó ùs
   ƒA¦Ar   )r'   r(   s   j r   Ú	multiplexr*   +   s   ø€ õ ð Ðr   c                ó   a a€ VV 3R lpV# )z/Only apply branching rule if condition is true c              3   óT   <"  € S! V 4      '       d   S! V 4       R j  x€L
  R # R #  L5ir   r   )r   r   Úconds   &€€r   Úconditioned_brlÚ"condition.<locals>.conditioned_brl9   s$   øé € Ù��:Š:Ù˜T“{×"Ò"áñ #ùs   ƒ(�&ž	(r   )r-   r   r.   s   ff r   Ú	conditionr0   7   s   ù€ öð
 Ðr   c                ó   a a€ VV 3R lpV# )z5Yield only those results which satisfy the predicate c              3   óH   <"  € \        SS! V 4      4       R j  x€L
  R #  L5ir   )Úfilter)r   r   Úpreds   &€€r   Úfiltered_brlÚsfilter.<locals>.filtered_brlC   s   øé € Ü˜$¡ d£Ó,×,Ô,ùs   ƒ"™ š"r   )r4   r   r5   s   ff r   Úsfilterr7   A   s   ù€ ö-àÐr   c                 ó   a € V 3R  lpV# )c              3   óZ   <"  € R pS! V 4       F	  pRpVx € K  	  V'       g   V x € R# R# 5i©FTNr   )r   Úyieldedr   r   s   &  €r   Únotempty_brlÚnotempty.<locals>.notempty_brlI   s2   øé € ØˆÙ˜4–[ˆEØˆGØŒKñ !÷ ØŒJñ ùs   ƒ+£+r   )r   r<   s   f r   Únotemptyr>   H   s   ø€ õð Ðr   c                 ó   a € V 3R lpV# )z#Execute one of the branching rules c              3   óf   <"  € R pS F#  pV! V 4       F	  pRpVx € K  	  V'       g   K"   R# 	  R# 5ir:   r   )r   r;   r   r   r'   s   &   €r   Ú
do_one_brlÚdo_one.<locals>.do_one_brlU   s7   øé € ØˆÛˆCÙ˜Tž�Ø�Ø”ñ #÷ ‰wÚó ùs   ƒ"1ª1r   )r'   rA   s   j r   Údo_onerC   S   s   ø€ õð Ðr   c                 ó   a € V 3R lpV# )zJ
Compose a sequence of brules so that they apply to the expr sequentially
c              3   óž   <"  € S'       g   V x € R # S^ ,          SR,          r!V! V 4       F  p\        V!  ! V4       R j  x€L
  K  	  R #  L
5i)N:é   NN)Úchain)r   ÚheadÚtailr   r'   s   &   €r   Ú	chain_brlÚchain.<locals>.chain_brld   sC   øé € ßØŠJÙà˜A•Y  r¥
ˆdÙ˜$–ZˆEÜ˜d’| EÓ*×*Ò*ó  Ù*ùs   ƒ=AÁ AÁAr   )r'   rJ   s   j r   rG   rG   `   s   ø€ õ+ð Ðr   c                ó   a € V 3R lpV# )z"Turn a rule into a branching rule c              3   ó$   <"  € S! V 4      x € R # 5ir   r   )r   Úrls   &€r   r   Úyieldify.<locals>.brlr   s   øé € Ù�‹hŒùs   ƒr   )rN   r   s   f r   ÚyieldifyrP   p   s   ø€ õà€Jr   r   )Ú__doc__r   r   r   r#   r*   r0   r7   r>   rC   rG   rP   r   r   r   Ú<module>rR      s?   ðÙ ,òò
òô
"ò	òòòò
òô r   