+
    „°ñj©  ã                   ó†   € ^ RI t ^ RIt^ RIt^ RIHt ^ RIHtHt  ! R R]P                  4      t
 ! R R]4      tR R	 ltR# )
é    N)Úoverride)ÚComfyExtensionÚioc                   óT   a € ] tR t^	t o Rt]R 4       t]RV 3R lR ll4       tRtV t	R# )ÚTextEncodeBooguEdita  Boogu-Image Edit conditioning.

The edit image is used twice, matching the reference pipeline:
  - Qwen3-VL vision tokens (instruction understanding) -> positive only
  - VAE reference latent (image identity)              -> positive and negative
The ref latent is in both conds so it cancels under CFG (identity preserved);
the vision tokens are only in the positive so CFG amplifies the instruction.
The tokenizer selects the right system prompt automatically (image -> TI2I,
empty negative -> DROP), so no template plumbing is needed here.
c                ó°  € \         P                  ! R R\         P                  P                  R4      \         P                  P                  RRRR7      \         P                  P                  RRRRR7      \         P
                  P                  R4      \         P                  P                  R	\         P                  P                  \         P                  P                  R
4      \        ^^4       Uu. uF  pRV 2NK
  	  up^ R7      RR7      .\         P                  P                  RR7      \         P                  P                  RR7      .R7      # u upi )r   zmodel/conditioning/booguÚclipÚpromptT)Ú	multilineÚdynamic_promptsÚnegative_prompt)r   r   ÚadvancedÚvaeÚimagesÚimageÚimage_)ÚnamesÚminzXReference image(s) to edit. Boogu focuses on one reference per sample; more are allowed.)ÚtemplateÚtooltipÚpositive)Údisplay_nameÚnegative)Únode_idÚcategoryÚinputsÚoutputs)r   ÚSchemaÚClipÚInputÚStringÚVaeÚAutogrowÚTemplateNamesÚImageÚrangeÚConditioningÚOutput)ÚclsÚis   & Ú<C:\Ai_Coding\apps\studio\ComfyUI\comfy_extras\nodes_boogu.pyÚdefine_schemaÚ!TextEncodeBooguEdit.define_schema   s  € ä�yŠyØ)Ø/ä—‘—‘˜fÓ%Ü—	‘	—‘ °DÈ$�ÓOÜ—	‘	—‘Ð 1¸TÐSWÐbf�ÓgÜ—‘—‘˜UÓ#Ü—‘×!Ñ!ØÜŸ[™[×6Ñ6ÜŸ™Ÿ™ wÓ/Ü5:¸1¸b´\ÓB±\° ¨ s›|±\ÑBØð 7ó ð
 wð "ó ðô  —‘×&Ñ&°JÐ&Ó?Ü—‘×&Ñ&°JÐ&Ó?ðô%
ð 	
ùò Cs   Ã1E Nc                ób   <€ V ^8„  d   QhRS[ P                  P                  RS[ P                  /# )é   r   Úreturn)r   r#   ÚTypeÚ
NodeOutput)ÚformatÚ__classdict__s   "€r+   Ú__annotate__Ú TextEncodeBooguEdit.__annotate__0   s,   ø€ ÷ %1ñ %1ÁbÇkÁk×FVÑFVð %1Ñbd×boÑboñ %1ó    c           	     ó°  € . p. pT;'       g    / p\        VR  R7       EF  pWX,          p	V	f   K  V	P                  R	^4      p
\        R
4      p\        P                  ! WºP
                  ^,          V
P
                  ^,          ,          ,          4      p\        V
P
                  ^,          V,          4      p\        V
P
                  ^,          V,          4      p\        P                  P                  W­VRR4      pVP                  VP                  ^R	4      R,          4       Vf   EK  \        R4      p\        P                  ! WºP
                  ^,          V
P
                  ^,          ,          ,          4      p\        V
P
                  ^,          V,          R,          4      ^,          p\        V
P
                  ^,          V,          R,          4      ^,          p\        P                  P                  W­VRR4      pVP                  VP                  VP                  ^R	4      R,          4      4       EK  	  VP                  VP                  W'R7      4      pVP                  VP                  V4      4      p\        V4      ^ 8”  d7   \        P                   ! VRV/RR7      p\        P                   ! VRV/RR7      p\"        P$                  ! VV4      # )c                 óF   € \        V P                  R ^4      R,          4      # )Ú_éÿÿÿÿ)ÚintÚrsplit)Úns   &r+   Ú<lambda>Ú-TextEncodeBooguEdit.execute.<locals>.<lambda>5   s   € ´°Q·X±X¸cÀ1Ó5EÀbÕ5IÔ1Jr7   )ÚkeyÚareaÚdisabledg      0@)r   Úreference_latentsT)Úappendr;   i @ )ºNNNrF   rF   :Né   Ni   )ÚsortedÚmovedimr<   ÚmathÚsqrtÚshapeÚroundÚcomfyÚutilsÚcommon_upscalerE   ÚencodeÚencode_from_tokens_scheduledÚtokenizeÚlenÚnode_helpersÚconditioning_set_valuesr   r2   )r)   r	   r
   r   r   r   Úref_latentsÚ	images_vlÚnamer   ÚsamplesÚtotalÚscale_byÚwidthÚheightÚsr   r   s   &&&&&&            r+   ÚexecuteÚTextEncodeBooguEdit.execute/   s1  € àˆØˆ	à—�˜2ˆÜ˜6Ñ'J×KÐKˆDØ•LˆEØŠ}ÙØ—m‘m B¨Ó*ˆGô ˜	“NˆEÜ—y’y ¯-©-¸Õ*:¸W¿]¹]È1Õ=MÕ*MÕ!NÓOˆHÜ˜'Ÿ-™-¨Õ*¨XÕ5Ó6ˆEÜ˜7Ÿ=™=¨Õ+¨hÕ6Ó7ˆFÜ—‘×*Ñ*¨7¸6À6È:ÓVˆAØ×Ñ˜QŸY™Y q¨"Ó-¨kÕ:Ô;ð �Ü˜KÓ(�ÜŸ9š9 U¯m©m¸AÕ.>ÀÇÁÈqÕAQÕ.QÕ%RÓS�Ü˜gŸm™m¨AÕ.°Õ9¸DÕ@ÓAÀBÕF�Ü˜wŸ}™}¨QÕ/°(Õ:¸TÕAÓBÀRÕG�Ü—K‘K×.Ñ.¨w¸vÀvÈzÓZ�Ø×"Ñ" 3§:¡:¨a¯i©i¸¸2Ó.>¸{Õ.KÓ#L×Mñ- Lð2 ×4Ñ4°T·]±]À6°]Ó5\Ó]ˆØ×4Ñ4°T·]±]À?Ó5SÓTˆäˆ{Ó˜aÔÜ#×;Ò;¸HÐGZÐ\gÐFhÐquÔvˆHÜ#×;Ò;¸HÐGZÐ\gÐFhÐquÔvˆHä�}Š}˜X xÓ0Ð0r7   © )NN)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úclassmethodr,   r`   Ú__static_attributes__Ú__classdictcell__©r4   s   @r+   r   r   	   s7   ø‡ € ñ	ð ñ
ó ð
ð2 ÷%1ñ %1ó ö%1r7   r   c                   ó<   a € ] tR t^Xt o ]V 3R lR l4       tRtV tR# )ÚBooguExtensionc                óT   <€ V ^8„  d   QhRS[ S[S[P                  ,          ,          /# ©r/   r0   )ÚlistÚtyper   Ú	ComfyNode)r3   r4   s   "€r+   r5   ÚBooguExtension.__annotate__Z   s"   ø€ ÷ 
ñ 
¡T©$©r¯|©|Õ*<Õ%=ñ 
r7   c              ƒ  ó   "  € \         .# 5i©N)r   )Úselfs   &r+   Úget_node_listÚBooguExtension.get_node_listY   s   é € ô  ð
ð 	
ùs   ‚
rb   N)rc   rd   re   rf   r   rw   ri   rj   rk   s   @r+   rm   rm   X   s   ø‡ € Ø÷
ó ö
r7   rm   c                ó$   € V ^8„  d   QhR\         /# ro   ©rm   )r3   s   "r+   r5   r5   `   s   € ÷ ñ ¤ñ r7   c               ƒ   ó   "  € \        4       # 5iru   rz   rb   r7   r+   Úcomfy_entrypointr|   `   s   é € ÜÓÐùs   ‚)rJ   rU   Úcomfy.utilsrN   Útyping_extensionsr   Úcomfy_api.latestr   r   rr   r   rm   r|   rb   r7   r+   Ú<module>r€      s8   ðÛ ã Û Ý &ß /ôL1˜"Ÿ,™,ô L1ô^
�^ô 
÷r7   