+
    ‚°ñj‰�  ã                   ó   € R t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIH	t	H
t
Ht ^ RIHtHtHt ^ RIHtHt ^ RIt^ RIHt ^ RIHtHtHt ^ RIHtHtHt ^ RIHtH t  ^ R	I!H"t"H#t# ^ R
I$H%t%H&t&H't'H(t( ^ RI)H*t* ^ RI+H,t, ^ RI-H.t.H/t/H0t0H1t1 ^ RI2H3t3H4t4H5t5H6t6H7t7 ^ RI8H9t9 ^ RI:H;t;H<t< R R lt=RLR R llt>R R lt?]P€                  ! R4      tAR R ltBR R ltCR R ltDR R ltE ! R  R!]F4      tG ! R" R#]F4      tH ! R$ R%]F4      tI^tJR& R' ltKR( R) ltLR* R+ ltMR, R- ltNR. R/ ltOR0 R1 ltPR2 R3 ltQ ! R4 R5]
4      tRR6 R7 ltSR8 R9 ltTR: R; ltU ! R< R=]
4      tVR> R? ltWRMR@ RA lltXRLRBRC/RD RE llltYRNRF RG lltZRLRH RI llt[RORJ RK llt\R# )PaY  Turns incoming bytes into catalogued assets: multipart uploads moved into a
hash-addressed destination, files registered where they already sit, and
records created from a hash the catalog already holds. Registration persists
the stat that hashing verified, so a row's recorded size and mtime describe the
same observation as its hash; an upload records the stat of the file once it is
in place, since a copy across volumes has its own mtime. A live row already at
the destination is reconciled before the write, so an upload never adopts a
fresh hash onto records created for bytes it just replaced.
N)ÚAnyÚ
NamedTupleÚSequence)ÚfalseÚfuncÚselect)ÚSessionÚaliased)Úmode)ÚAssetÚAssetContentÚAssetTag)Úcreate_content_reporting_insertÚcreate_recordÚmark_content_missing)Únormalize_tagsÚto_stored_hash)Úget_mtime_nsÚget_size_and_mtime_ns)Úclaim_qualified_contentÚlookup_for_from_hashÚlookup_for_viewÚrefresh_qualified_content)Úextract_media_metadata)Úextract_file_metadata)Úcompute_loader_pathÚ!get_name_and_tags_from_asset_pathÚresolve_destination_from_tagsÚvalidate_path_within_base)Ú	AssetDataÚRegisteredAssetÚReferenceDataÚUploadResultÚUserMetadata)Úsnapshot_hash)Úcreate_sessionÚcreate_write_sessionc                ó0   € V ^8„  d   QhR\         R\         /# )é   Úhash_strÚreturn©Ústr)Úformats   "Ú>C:\Ai_Coding\apps\studio\ComfyUI\app\assets\services\ingest.pyÚ__annotate__r/   :   s   € ÷ "ñ "¤Cð "¬Cñ "ó    c                 ó¬   € V '       g   V # V P                  4       P                  4       pVP                  R 4      ^,          ;'       g    Tp\        V4      # )Ú:)ÚstripÚlowerÚ	partitionr   )r)   Ú
normalizedÚdigests   &  r.   Ú_normalize_hash_inputr8   :   sG   € ßØˆØ—‘Ó!×'Ñ'Ó)€JØ×!Ñ! #Ó& qÕ)×7Ð7¨Z€FÜ˜&Ó!Ð!r0   c          
      óš   € V ^8„  d   QhR\         R\         R,          R\        P                  R,          R\        \         \        3,          /# )r(   ÚlocatorÚ	mime_typeNÚstat_resultr*   )r,   Úosr<   Údictr   )r-   s   "r.   r/   r/   B   sE   € ÷ ñ Üðä�T�zðô —‘ $Õ&ðô 
Œ#Œsˆ(…^ñ	r0   c                óž   € \        V V\        V 4      R7      pVP                  4       p\        WR7      pV'       d   VP	                  V4       V# )a  Extract ``system_metadata`` at registration time (S29/D8).

Mirrors the ``scanner.enrich`` pass: tier-1/tier-2 file metadata plus media
metadata for image and video MIME types, so records carry metadata at creation
instead of waiting for the background enrich pass to fill it.
)r<   Úrelative_filename)r;   )r   r   Úto_user_metadatar   Úupdate)r:   r;   r<   ÚmetadataÚsystem_metadataÚdimss   &&&   r.   Ú_extract_system_metadata_syncrF   B   sM   € ô %ØØÜ-¨gÓ6ô€Hð
 ×/Ñ/Ó1€OÜ! 'Ô?€DßØ×Ñ˜tÔ$ØÐr0   c                óJ   € V ^8„  d   QhR\         R\        R\        R,          /# ©r(   ÚsessionÚ
content_idr*   N©r   r,   )r-   s   "r.   r/   r/   Y   s*   € ÷ Yñ Y¤gð Y¼3ð YÄ3ÈÅ:ñ Yr0   c                óº  € \        \        4      p\        \        4      pV P                  \	        \        P
                  VP                  4      P                  W"P                  \        P
                  8H  4      P                  W3P                  VP                  8H  4      P                  \        \        P                  VP                  8H  \        P                  R8H  ,          4      P                  \        P                  V8H  VP                  \        4       8H  4      P!                  \        P"                  P%                  4       4      4      p\'        R V 4       R4      # )z¼A ``preview``-tagged preview another record of the same content has, if its file is still there.

A preview tagged otherwise was nominated by hand for that record, not made for the bytes.
Úpreviewc              3   óx   "  € T F0  w  r\         P                  P                  V4      '       g   K,  Vx € K2  	  R # 5i©N)r=   ÚpathÚisfile)Ú.0Ú
preview_idrP   s   &  r.   Ú	<genexpr>Ú+_live_sibling_preview_id.<locals>.<genexpr>l   s$   é € ÐQ±DÑ 0 
¼B¿G¹G¿N¹NÈ4×<P—’³Dùs   ‚):°
:N)r	   r   r   Úexecuter   rS   rP   ÚjoinÚidrJ   r   Úasset_idÚtag_nameÚwhereÚ
is_missingr   Úorder_byÚ
created_atÚdescÚnext)rI   rJ   rM   Úpreview_contentÚrowss   &&   r.   Ú_live_sibling_preview_idrc   Y   sô   € ô
 ”e‹n€GÜœlÓ+€OØ�?‰?ÜŒu×Ñ ×!5Ñ!5Ó6ß	‰ˆg—z‘z¤U×%5Ñ%5Ñ5Ó	6ß	‰ˆo×1Ñ1°W×5GÑ5GÑGÓ	Hß	‰Œhœ×*Ñ*¨g¯j©jÑ8¼X×=NÑ=NÐR[Ñ=[Õ\Ó	]ß	‰Ü×Ñ 
Ñ*Ø×&Ñ&¬%«'Ñ1ó

÷ 
‰”%×"Ñ"×'Ñ'Ó)Ó	*ó
€Dô ÑQ±DÓQÐSWÓXÐXr0   z[0-9a-f]{64}\.(jpg|webp)c          	      ó    € V ^8„  d   QhR\         R,          R\        \        \        \        \        \        P
                  3,          R,          /# )r(   Úpreview_refNr*   )r>   Útupler,   Úintr=   r<   )r-   s   "r.   r/   r/   r   s;   € ÷ ñ ¤t¨d¥{ð ´u¼SÄ#ÄsÌCÔQS×Q_ÑQ_Ð=_Õ7`ÐcgÕ7gñ r0   c                óÒ  € V f   R#  V R,          p\        V\        4      '       d   \        P                  V4      '       g   \	        RV: 24      h\
        P                  P                  \        P                  ! 4       V4      pW!\        V R,          4      \        V R,          4      \
        P                  ! V4      3#   \         d    \        P                  ! RT RR7        R# i ; i)	zRThe file a save node named as its output's preview: trusted by name, so stat only.NÚfilenameznot a preview file name: ÚwidthÚheightz,Ignoring the preview named for an output: %rT©Úexc_info)Ú
isinstancer,   Ú_PREVIEW_FILENAMEÚ	fullmatchÚ
ValueErrorr=   rP   rW   Úfolder_pathsÚget_previews_directoryrg   ÚstatÚ	ExceptionÚloggingÚwarning)re   ri   rP   s   &  r.   Ú_probe_output_previewrx   r   s¼   € àÒÙðØ˜zÕ*ˆÜ˜(¤C×(Ò(Ô0A×0KÑ0KÈH×0UÒ0UÜÐ8¸¹ÐEÓFÐFÜ�w‰w�|‰|œL×?Ò?ÓAÀ8ÓLˆØœs ;¨wÕ#7Ó8¼#¸kÈ(Õ>SÓ:TÔVX×V]ÒV]Ð^bÓVcÐcÐcøÜô Ü�ŠÐFÈÐ^bÕcÚðús   ˆ9B> ÁA;B> Â>$C&Ã%C&c                ó”   € V ^8„  d   QhR\         R\        R\        \        \        \        \        \
        P                  3,          RR/# )r(   rI   ÚrecordrM   r*   N)r   r   rf   r,   rg   r=   r<   )r-   s   "r.   r/   r/   �   sH   € ÷ Rñ R¤'ð R´5ð RÄ5ÌÌcÔSVÔX[Ô]_×]kÑ]kÐIkÕClð RÐquñ Rr0   c                óÂ  € Vw  r4rVp V P                  4       ;_uu_ 4        \        P                  P                  V4      '       g    RRR4       R# \	        WRVP                  R4      ^ ,           2VP                  \        V4      4      w  r‰V P                  \        \        P                  4      P                  \        \        P                  \        P                  8H  \        P                  R8H  ,          4      P!                  \        P"                  VP                  8H  4      P%                  ^4      4      p
V
fF   \'        T VP                  TVP)                  R4      '       d   RMRR.RR	R
VRV/R7      P                  p
W¡n        V P-                  4        RRR4       R#   + '       g   i     R# ; i  \.         d    \0        P2                  ! RTRR7        R# i ; i)zZLink the output to its preview's record, creating it on first use; never fails the output.Nzblake3:Ú.rM   z.webpz
image/webpz
image/jpegÚkindÚimagerj   rk   )r;   ÚtagsrD   zCould not link the preview %sTrl   )Úbegin_nestedr=   rP   rQ   r   r5   Úst_sizer   Úscalarr   r   rX   rW   r   rY   rZ   r[   rJ   Úlimitr   ÚendswithrS   Úflushru   rv   rw   )rI   rz   rM   rP   ri   rj   rk   r<   ÚcontentÚ_rS   s   &&&        r.   Ú_link_output_previewrˆ   �   s�  € à18Ñ.€D�E ;ðRØ×!Ñ!×#Õ#Ü—7‘7—>‘> $×'Ò'Ø÷ $Ñ#ô 9Ø ¨×);Ñ);¸CÓ)@ÀÕ)CÐ(DÐEÀ{×GZÑGZÔ\hÐitÓ\uó‰JˆGð !Ÿ™Ü”u—x‘xÓ ß‘”h¤×!2Ñ!2´e·h±hÑ!>Ä8×CTÑCTÐXaÑCaÕ bÓcß‘”u×'Ñ'¨7¯:©:Ñ5Ó6ß‘�q“ó	ˆJð Ò!Ü*ØØ—J‘JØØ.6×.?Ñ.?À×.HÒ.H™lÈlØ#˜Ø%+¨W°g¸uÀhÐPVÐ$Wô÷ ‘"ð ð !+ÔØ�M‰MŒO÷- $×#×#Ò#ûô. ô RÜ�ŠÐ7¸ÈD×QÐQðRús;   ˆF6  'F"ÁF6 ÁEF"ÆF6 Æ"F3	Æ-F6 Æ3F6 Æ6$GÇGc                ó4   € V ^8„  d   QhR\         R\        RR/# rH   rK   )r-   s   "r.   r/   r/       s&   € ÷ Mñ M¬7ð MÄð MÈñ Mr0   c                ó¨  €  V P                  \        \        P                  ! 4       4      P	                  \
        4      P                  \
        P                  V8H  4      4      pV'       d   R# V P                  \        V4      pVe$   V P                  V4       V P                  4        R# R#   \         d    \        P                  ! RT4        R# i ; i)aö  Remove a content row left orphaned by a failed registration.

``create_content`` inserts inside a SAVEPOINT (``begin_nested``); under
pysqlite that insert survives the enclosing ``rollback`` because pysqlite
has no real nested transaction. When the follow-on ``create_record`` fails
we would otherwise leak an unreferenced content row, so delete it explicitly
once we have confirmed no record points at it. Best-effort: cleanup errors
are logged and swallowed so the original failure is what surfaces.
Nz#Failed to discard orphan content %s)r‚   r   r   ÚcountÚselect_fromr   r[   rJ   Úgetr   ÚdeleteÚcommitru   rv   Ú	exception)rI   rJ   Ú	ref_countr†   s   &&  r.   Ú_discard_unreferenced_contentr’       s    € ðMØ—N‘NÜ”4—:’:“<Ó ß‰[œÓß‰U”5×#Ñ# zÑ1Ó2ó
ˆ	÷
 ÙØ—+‘+œl¨JÓ7ˆØÒØ�N‰N˜7Ô#Ø�N‰NÖñ øô ô MÜ×ÒÐ?À×LðMús   ‚A(B+ Á,;B+ Â+"CÃCc                óJ   € V ^8„  d   QhR\         R,          R\         R\         /# )r(   ÚnameNÚfallbackr*   r+   )r-   s   "r.   r/   r/   º   s%   € ÷  ñ  œS 4�Zð  ´3ð  ¼3ñ  r0   c                 óœ   € \         P                  P                  T ;'       g    R P                  4       ;'       g    T4      pV'       d   V# T# )Ú )r=   rP   Úbasenamer3   )r”   r•   Úns   && r.   Ú_sanitize_filenamerš   º   s:   € Ü
�‰×Ñ˜$Ÿ*˜* "×+Ñ+Ó-×9Ð9°Ó:€Aßˆ1Ð�xÐr0   c                   ó   € ] tR t^¿tRtR# )ÚHashMismatchError© N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__static_attributes__r�   r0   r.   rœ   rœ   ¿   ó   † Ûr0   rœ   c                   ó   € ] tR t^ÃtRtR# )ÚUploadUnstableErrorr�   Nrž   r�   r0   r.   r¦   r¦   Ã   r¤   r0   r¦   c                   ó>   a a€ ] tR t^Çt oV3R lV 3R lltRtVtV ;t# )ÚDependencyMissingErrorc                ó    <€ V ^8„  d   QhRS[ /# )r(   Úmessager+   )r-   Ú__classdict__s   "€r.   r/   Ú#DependencyMissingError.__annotate__È   s   ø€ ÷ "ñ "¡ñ "r0   c                ó2   <€ Wn         \        SV `	  V4       R # rO   )rª   ÚsuperÚ__init__)Úselfrª   Ú	__class__s   &&€r.   r¯   ÚDependencyMissingError.__init__È   s   ø€ ØŒÜ‰Ñ˜Ö!r0   )rª   )rŸ   r    r¡   r¢   r¯   r£   Ú__classdictcell__Ú__classcell__)r±   r«   s   @@r.   r¨   r¨   Ç   s   ù‡ € ÷"÷ "ó "r0   r¨   c                ó6   € V ^8„  d   QhR\         R,          RR/# )r(   Ú	temp_pathNr*   r+   )r-   s   "r.   r/   r/   Ð   s   € ÷ 	ñ 	¤ t¥ð 	°ñ 	r0   c                 óN  € V '       g   R # \         P                  ! \        4      ;_uu_ 4        \        P                  P                  V 4      '       d   \        P                  ! V 4       R R R 4       \        P                  P                  V 4      p\         P                  ! \        4      ;_uu_ 4        V'       d<   \        P                  P                  V4      '       d   \        P                  ! V4       R R R 4       R #   + '       g   i     LŸ; i  + '       g   i     R # ; irO   )
Ú
contextlibÚsuppressÚOSErrorr=   rP   ÚexistsÚremoveÚdirnameÚisdirÚrmdir)r¶   Úparents   & r.   Ú_remove_temp_pathrÁ   Ð   s    € ßÙÜ	×	Ò	œW×	%Õ	%Ü�7‰7�>‰>˜)×$Ò$Ü�IŠI�iÔ ÷ 
&ô �W‰W�_‰_˜YÓ'€FÜ	×	Ò	œW×	%Õ	%ß”b—g‘g—m‘m F×+Ò+Ü�HŠH�VÔ÷ 
&Ñ	%÷	 
&×	%ú÷ 
&×	%Ð	%ús   ­<D Â2-DÃ DÄ D	ÄD$	c                óf   € V ^8„  d   QhR\         R\        \         \        P                  3,          /# )r(   rP   r*   )r,   rf   r=   r<   )r-   s   "r.   r/   r/   Ü   s,   € ÷ Dñ D¤Cð D¬E´#´r·~±~Ð2EÕ,Fñ Dr0   c                 ój   € \        \        4       F  p\        V 4      pVf   K  Vu # 	  \        R4      h)Nz"upload file changed during hashing)ÚrangeÚ_UPLOAD_HASH_ATTEMPTSr$   r¦   )rP   r‡   Úsnapshots   &  r.   Ú_snapshot_hash_with_retryrÇ   Ü   s5   € ÜÔ(Ö)ˆÜ  Ó&ˆØÔØŠOñ *ô ÐBÓ
CÐCr0   c          
      ó†   € V ^8„  d   QhR\         \        ,          R\        R\        R,          R\        R,          R\        /# )r(   r   r7   Úclient_filenameNr”   r*   ©Úlistr,   )r-   s   "r.   r/   r/   ä   sF   € ÷ ñ Ü
Œs�)ðäðô ˜4•Zðô ��*ð	ô
 	ñr0   c                 ób  € \        V 4      w  rEV'       d#   \        P                  P                  ! V.VO5!  MTp\        P                  ! VR R7       T;'       g    T;'       g    RP                  4       pV'       dD   \        P                  P                  \        P                  P                  V4      4      ^,          MRp^ \        V4      u;8  d   ^8:  d   M MTMRp	V V	 2p
\        P                  P                  \        P                  P                  Wj4      4      p\        W´4       V# )T©Úexist_okr—   )r   r=   rP   rW   Úmakedirsr3   Úsplitextr˜   ÚlenÚabspathr   )r   r7   rÉ   r”   Úbase_dirÚsubdirsÚdest_dirÚsrc_for_extÚ_extÚextÚhashed_basenameÚdest_abss   &&&&        r.   Ú_hash_mode_dest_pathrÛ   ä   sÖ   € ô 6°dÓ;Ñ€Hß3:Œr�w‰w�|Š|˜HÐ/ wÔ/À€HÜ‡K‚K� 4Õ(Ø"×0Ð0 d×0Ð0¨b×7Ñ7Ó9€KßALŒ2�7‰7×ÑœBŸG™G×,Ñ,¨[Ó9Ó:¸1Ö=ÐRT€DØ”c˜$“iÖ% 2×%‰$¨2€CØ˜  Ð&€OÜ�w‰w�‰œrŸw™wŸ|™|¨HÓFÓG€HÜ˜hÔ1Ø€Or0   c          
      ó~   € V ^8„  d   QhR\         R,          R\         R,          R\         R,          R\         R\         /# )r(   r;   NrÉ   r”   Úfallback_basenamer*   r+   )r-   s   "r.   r/   r/   ö   sF   € ÷ 1ñ 1Ü�T�zð1ä˜4•Zð1ô ��*ð1ô ð	1ô
 	ñ1r0   c                 ó@  € T;'       g    T;'       g    R P                  4       pV '       d   V # \        P                  ! \        P                  P                  V4      RR7      ^ ,          pV'       d   V# \        P                  ! VRR7      ^ ,          pT;'       g    R# )r—   F©Ústrictzapplication/octet-stream)r3   Ú	mimetypesÚ
guess_typer=   rP   r˜   )r;   rÉ   r”   rÝ   rÖ   Úguesseds   &&&&  r.   Ú_guess_upload_mime_typerä   ö   s�   € ð #×0Ð0 d×0Ð0¨b×7Ñ7Ó9€KßØÐÜ×"Ò"¤2§7¡7×#3Ñ#3°KÓ#@ÈÔOÐPQÕR€GßØˆÜ×"Ò"Ð#4¸UÔCÀAÕF€GØ×0Ð0Ð0Ð0r0   c                ó4   € V ^8„  d   QhR\         R\         RR/# )r(   r¶   rÚ   r*   Nr+   )r-   s   "r.   r/   r/     s&   € ÷ 
Sñ 
S¤#ð 
S´ð 
S¸ñ 
Sr0   c                 ó‚  € \         P                  ! \         P                  P                  V4      R R7         \         P                  ! W4       R#   \
         dB   pTP                  \        P                  8w  d   h \        P                  ! Y4        Rp?R# Rp?ii ; i  \         d   p\        RT 24      ThRp?ii ; i)TrÍ   Nz)failed to move uploaded file into place: )r=   rÏ   rP   r½   Úreplacerº   ÚerrnoÚEXDEVÚshutilÚcopyfileru   ÚRuntimeError)r¶   rÚ   Úes   && r.   Ú_move_temp_to_destrî     s�   € Ü‡K‚K”—‘—‘ Ó)°DÕ9ðSð	1Ü�JŠJ�yÖ+øÜô 	1Ø�w‰wœ%Ÿ+™+Ô%ØÜ�OŠO˜I×0Ò0ûð	1ûô ô SÜÐFÀqÀcÐJÓKÐQRÐRûðSús5   ¸A ÁBÁ6BÂB ÂBÂB ÂB>Â*B9Â9B>c                óä   € V ^8„  d   QhR\         R\        R\        R\        R\        \        ,          R\        R,          R\        R	\        R,          R
\        \        \
        3,          R\        /
# )r(   rI   rJ   r”   Úabs_pathr   r;   NÚuser_metadatarS   rD   r*   )r   r,   r   r#   r>   r   r   )r-   s   "r.   r/   r/     s€   € ÷ ñ Üðäðô ðô ð	ô
 ”3�-ðô �T�zðô  ðô �d•
ðô œ#œs˜(•^ðô ñr0   c	           
      ó0  € Ve)   V P                  \        V4      f   \        RV: R24      hVf   \        W4      p\	        V VVV\        V4      \        V4      VR7      p	V'       d   \        V4      V	n        V'       d   Wyn	        V P                  4        V	# )Nzpreview_id z% does not reference an existing asset)r;   Úloader_pathr   rD   )r�   r   rq   rc   r   r   rË   r>   rñ   rS   r…   )
rI   rJ   r”   rð   r   r;   rñ   rS   rD   rz   s
   &&&&&&&&& r.   Ú_create_upload_recordrô     s�   € ð Ò '§+¡+¬e°ZÓ"@Ò"HÜ˜; z¡nÐ4YÐZÓ[Ð[ØÒä-¨gÓBˆ
ÜØØØØÜ'¨Ó1Ü�$‹ZØ'ô€F÷ Ü# MÓ2ˆÔßØ&ÔØ‡M�M„OØ€Mr0   c                óH   € V ^8„  d   QhR\         R\        R\        R\        /# )r(   rI   rz   Úcreated_newr*   )r   r   Úboolr"   )r-   s   "r.   r/   r/   4  s,   € ÷ $ñ $Üð$Ü#ð$Ü59ð$äñ$r0   c                ó  € V P                  \        VP                  4      p\        V P	                  \        \        P                  4      P                  \        P                  VP                  8H  4      P                  \        P                  4      4      4      pV'       d   VP                  MR p\        VP                  VP                  V'       d   VP                  MR VP                   VP"                  VP$                  VP&                  VP(                  VP*                  VP,                  VP.                  R7      p\1        TV'       d   VP2                  MR VP4                  R7      p\7        VVP                  VVVR7      # )N)rX   r”   Ú	file_pathró   rñ   rS   rD   Újob_idr^   Ú
updated_atÚlast_access_time)ÚhashÚ
size_bytesr;   )ÚrefrJ   Úassetr   rö   )r�   r   rJ   rË   Úscalarsr   r   rZ   r[   rY   rX   r]   rý   r!   r”   rP   ró   rñ   rS   rD   rú   r^   rû   rü   r   rþ   r;   r"   )rI   rz   rö   r†   Ú	tag_namesÚapi_hashrÿ   r   s   &&$     r.   Ú_record_to_upload_resultr  4  s(  € ð �k‰kœ,¨×(9Ñ(9Ó:€GÜØ�‰Ü”8×$Ñ$Ó%ß‰U”8×$Ñ$¨¯	©	Ñ1Ó2ß‰X”h×'Ñ'Ó(ó	
ó€I÷  'ˆw�|Š|¨D€HÜ
Ø�9‰9Ø�[‰[ß")�'—,’,¨tØ×&Ñ&Ø×*Ñ*Ø×$Ñ$Ø×.Ñ.Ø�}‰}Ø×$Ñ$Ø×$Ñ$Ø×0Ñ0ô€Cô Øß)0�7×%Ò%°dØ×"Ñ"ô€Eô
 ØØ×$Ñ$ØØØôð r0   c                   ó,   a € ] tR tRt o V 3R ltRtV tR# )Ú_ContentFactsi[  c                ó>   <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[;R&   # )r(   Ústored_hashrþ   Úmtime_ns)r,   rg   )r-   r«   s   "€r.   r/   Ú_ContentFacts.__annotate__[  s(   ø‡ ‚ áÑñ ñ �Oñ ñ �Mò	 r0   r�   N©rŸ   r    r¡   r¢   Ú__annotate_func__r£   r³   ©r«   s   @r.   r  r  [  ó   ø‡ ‡ „ r0   r  c          
      óL   € V ^8„  d   QhR\         R\        R\        R\        RR/# )r(   rI   r:   ÚfactsÚcontent_writtenr*   N)r   r,   r  r÷   )r-   s   "r.   r/   r/   b  s:   € ÷ =/ñ =/Üð=/äð=/ô ð=/ô
 ð=/ð 
ñ=/r0   c               óp  € V P                  \        \        4      P                  \        P                  V8H  \        P
                  \        4       8H  4      4      P                  4       pVf   R# VP                  VP                  8X  d5   VP                  Vn
        VP                  Vn        V P                  4        R# VP                  fX   V'       gP   VP                  VP                  8X  d5   VP                  Vn        VP                  Vn        V P                  4        R# \        WP                  4       R# )a�  Make the live content row at ``locator`` honest about the bytes there.

``create_content`` resolves a live-path uniqueness conflict
(``uq_asset_contents_path_live``) by handing back the row already at that
path, so a caller that registers a path without reconciling first gets the
OLD row's hash and size.

``content_written`` is the caller's own knowledge of whether it just wrote
bytes at ``locator``, and it is what makes an unhashed row readable at all:
equal ``size_bytes`` is NOT proof of equal bytes, so a caller that replaced
the file cannot adopt a fresh hash onto records that were created for the
bytes it destroyed. Cases, in order:

* the hash already matches - proof the bytes are identical, so the OBSERVED
  stat is the trustworthy one. Refresh it: a touch, a copy, or a same-bytes
  rewrite moves ``mtime_ns`` without changing a byte, and a row left stale
  fails ``lookup._stat_consistent``, which makes the content unservable by
  hash and silently routes the caller into creating a duplicate record.
* the hash is ``None`` and the caller wrote nothing - "not yet hashed" is
  NOT evidence of different bytes. Scanner-seeded rows and executed outputs
  (D14a) both defer hashing to the enrich pass, so retiring here would mark
  every record on the row missing for a file that never changed. Adopt the
  hash we just computed the way ``scanner.enrich_asset`` would, unless the
  row's recorded ``size_bytes`` positively contradicts the file. A
  differing ``mtime_ns`` is deliberately not a contradiction: renaming a
  file into place, copying it, or touching it all move the mtime while the
  bytes stay identical.
* anything else - a known but different hash, or unhashed bytes the caller
  has just overwritten. Either way the row can no longer speak for what is
  at ``locator``: retire it so the fresh ``create_content`` inserts a new
  live row and the old records keep describing the old bytes.
N)r  r   r   r[   rP   r\   r   Úfirstrý   r  rþ   r	  r…   r   rX   )rI   r:   r  r  Úexistings   &&&$ r.   Ú_reconcile_live_content_at_pathr  b  så   € ðN �‰ÜŒ|Ó×"Ñ"Ü×Ñ Ñ(Ü×#Ñ#¤u£wÑ.ó	
ó÷
 �eƒgð ð ÒÙØ‡}�}˜×)Ñ)Ô)Ø#×.Ñ.ˆÔØ!ŸN™NˆÔØ�‰ŒÙà�‰ÒßØ×Ñ 5×#3Ñ#3Ô3à×)Ñ)ˆŒØ!ŸN™NˆÔØ�‰ŒÙÜ˜§+¡+Ö.r0   c                ó¢   € V ^8„  d   QhR\         \        ,          R,          R\        R\        R,          R\        R,          R\        R,          /# )r(   r   Nr7   rÉ   r”   r*   rÊ   )r-   s   "r.   r/   r/   ¢  sO   € ÷ ñ Ü
Œs�)�dÕ
ðäðô ˜4•Zðô ��*ð	ô
 	ˆ4…Zñr0   c                 óT   € V '       g   R #  \        WW#4      #   \         d     R # i ; irO   )rÛ   rq   )r   r7   rÉ   r”   s   &&&&r.   Ú_upload_destination_or_noner  ¢  s.   € ÷ ÙðÜ# D°/ÓHÐHøÜô Úðús   Œ ˜'¦'c                ó4   € V ^8„  d   QhR\         R\        RR/# )r(   rI   rÚ   r*   NrK   )r-   s   "r.   r/   r/   °  s!   € ÷ -ñ -¬gð -Äð -Èñ -r0   c           	     óŽ  € \         P                  P                  V4      '       g   R# V P                  \	        \
        4      P                  \
        P                  V8H  \
        P                  \        4       8H  4      4      P                  4       pVf   R# \        V4      w  r4VP                  e%   VP                  V8X  d   VP                  V8X  d   R#  \        V4      w  rV\'        T T\)        \+        T4      TP,                  TP.                  4      RR7       R#   \        \         3 d    \#        YP$                  4        R# i ; i)a¨  Resolve the live row at an upload destination while its bytes still exist.

``upload_from_temp_path`` is about to replace whatever sits at ``dest_abs``,
and that write destroys the only evidence of what the incumbent row was
created for. So reconcile against the INCUMBENT file's own hash first: an
unhashed row learns the hash of the bytes it actually describes, and a row
whose hash no longer matches the file is retired. Both outcomes leave the
post-move reconciliation with a known hash to compare, so it never has to
read equal sizes as equal bytes.

Running before ``lookup_for_view`` is what keeps a merely stale row from
being skipped as stat-inconsistent and duplicated.
NF©r  )r=   rP   rQ   r  r   r   r[   r\   r   r  r   rý   rþ   r	  rÇ   r¦   rº   r   rX   r  r  r   r�   Úst_mtime_ns)rI   rÚ   r  rþ   r	  Úincumbent_digestÚverified_stats   &&     r.   Ú _settle_destination_before_writer  °  s  € ô �7‰7�>‰>˜(×#Ò#ÙØ�‰ÜŒ|Ó×"Ñ"Ü×Ñ Ñ)Ü×#Ñ#¤u£wÑ.ó	
ó÷
 �eƒgð ð ÒÙÜ0°Ó:Ñ€Jà�‰Ò!Ø×Ñ :Ô-Ø×Ñ Ô)áðÜ*CÀHÓ*MÑ'Ðô $ØØÜÜÐ+Ó,Ø×!Ñ!Ø×%Ñ%ó	
ð
 ÷	øô  ¤Ð)ô Ü˜W§k¡kÔ2Úðús   ÃD Ä&EÅEc                   ó,   a € ] tR tRt o V 3R ltRtV tR# )Ú_UploadRecordSpecià  c                ó‚   <€ V ^8„  d   Qh/ S[ ;R&   S[S[ ,          ;R&   S[ R,          ;R&   S[;R&   S[ R,          ;R&   # )r(   r”   r   Nr;   rñ   rS   )r,   rË   r#   )r-   r«   s   "€r.   r/   Ú_UploadRecordSpec.__annotate__à  sN   ø‡ ‚ á
�Iñ ñ ‰s�)�Oñ ñ �T�zÑñ	 ñ
  Ññ ñ �d•
Ñò r0   r�   Nr  r  s   @r.   r!  r!  à  r  r0   r!  c          	      óV   € V ^8„  d   QhR\         R\        R\        R\        R,          /# )r(   rI   r  Úspecr*   N)r   r,   r!  r"   )r-   s   "r.   r/   r/   é  s7   € ÷ Gñ GÜðGÜ#&ðGÜ.?ðGä�DÕñGr0   c                 óÞ  € \        W4      pVf   R # VP                  p\        VP                  VP                  4      p\        WV4      '       g   V P                  4        R # \        W4      pVf   V P                  4        R # \        V VVP                  VP                  VP                  VP                  VP                  VP                  V4	      pV P                  4        \        WRR7      # )NT©rö   )r   rX   rF   rP   r;   r   Úrollbackr   rô   r”   r   rñ   rS   r�   r  )rI   r  r%  r†   rJ   rD   rz   s   &&&    r.   Ú_reuse_qualified_contentr)  é  sÅ   € ô ˜gÓ3€GØ‚ÙØ—‘€Jä3°G·L±LÀ$Ç.Á.ÓQ€OÜ" 7¸×DÒDØ×ÑÔÙÜ'¨Ó<€GØ‚Ø×ÑÔÙÜ"ØØØ�	‰	Ø�‰Ø�	‰	Ø�‰Ø×ÑØ�‰Øó
€Fð ‡N�NÔÜ# GÀÔFÐFr0   c                óü   € V ^8„  d   QhR\         R\         R,          R\        \         ,          R,          R\        R,          R\         R,          R\         R,          R\         R,          R	\         R,          R
\        /	# )r(   r¶   r”   Nr   rñ   rÉ   Úexpected_hashr;   rS   r*   ©r,   rË   r>   r"   )r-   s   "r.   r/   r/     s™   € ÷ XKñ XKÜðXKä
��*ðXKô Œs�)�dÕ
ðXKô ˜$•;ð	XKô
 ˜4•ZðXKô ˜•:ðXKô �T�zðXKô �d•
ðXKô ñXKr0   c                 ó˜  € \        T;'       g    TR R7      pT;'       g    / p \        V 4      w  rš\	        T	4      pT'       d'   T\        T4      8w  d   \        T 4       \        R4      h\        Y)YA4      p\        4       ;_uu_ 4       pTe   \        YÜ4       TP                  4        \        TT\        T\        . T;'       g    . ORN4      TTT4      4      pRRR4       Xe   \        T 4       T# T'       g   \        T 4       \        R4      h \        Y)YA4      p\!        YdT\"        P$                  P'                  T4      4      p\)        Y4       \        T 4       \"        P*                  ! T4      pTP,                  TP.                  pp\1        TT4      p\        4       ;_uu_ 4       p\3        TT\5        TTT4      RR7       \7        YßTTT4      w  ppT'       d   TP8                  MRp \;        TTP8                  TT\        . T;'       g    . ORN4      TTTT4	      pTP                  4        \C        TTRR7      uuRRR4       #   \         d    \        T 4       h i ; i  + '       g   i     EL“; i  \        T 4       i ; i  \<         d#    TP?                  4        Te   \A        TT4       h i ; i  + '       g   i     R# ; i)	Úupload©r•   z0Uploaded file hash does not match provided hash.NÚuploadedz'tags are required for new asset uploadsTr  r'  )"rš   rÇ   r¦   rÁ   r   r8   rœ   r  r%   r  r�   r)  r!  r   rq   rÛ   rä   r=   rP   r˜   rî   rt   r�   r  rF   r  r  r   rX   rô   ru   r(  r’   r  )r¶   r”   r   rñ   rÉ   r+  r;   rS   Údisplay_namer7   r‡   r  Úsettle_targetrI   ÚreusedrÚ   Úcontent_typeÚplaced_statrþ   r	  rD   r†   ÚinsertedÚcreated_content_idrz   s   &&&&&&&&                 r.   Úupload_from_temp_pathr8    s�  € ô & d×&=Ð&=¨oÈÔQ€LØ!×'Ð' R€MðÜ-¨iÓ8‰	ˆô ! Ó(€Kß˜Ô(=¸mÓ(LÔLÜ˜)Ô$ÜÐ RÓSÐSä/°¸oÓT€MÜ	×	Ô	˜WØÒ$Ü,¨WÔDØ�N‰NÔÜ)ØØÜØÜÐ: $§* *¨"Ð:¨zÐ:Ó;ØØØóó

ˆ÷	 
ð ÒÜ˜)Ô$ØˆçÜ˜)Ô$ÜÐBÓCÐCð%Ü'¨°oÓLˆÜ.Ø¨¬b¯g©g×.>Ñ.>¸xÓ.Hó
ˆô 	˜9Ô/ä˜)Ô$ä—'’'˜(Ó#€KØ&×.Ñ.°×0GÑ0G�€JÜ3°H¸lÓK€OÜ	×	Ô	˜WÜ'ØØÜ˜+ z°8Ó<Ø õ		
ô <Ø˜{¨J¸ó
Ñˆ�÷ ,4˜WŸZšZ¸Ðð	Ü*ØØ—
‘
ØØÜÐ: $§* *¨"Ð:¨zÐ:Ó;ØØØØó
ˆFð �N‰NÔô (¨°ÀTÔJ÷; 
Ò	øôY ô Ü˜)Ô$Øðú÷ 
×	Ð	ûô< 	˜)Õ$ûô: ô 	Ø×ÑÔØ!Ò-Ü-¨gÐ7IÔJØð		ú÷1 
×	Ð	úsP   ¥I	 Â	AI$ÄAI8 Æ*AJ8Ç-!JÈ"JÈ1J8É	I!É$I5	É8JÊ-J5Ê5J8Ê8K		r  Tc                ó„   € V ^8„  d   QhR\         R\         R\        \         ,          R\         R,          R\        R\        /# )r(   rð   r”   r   r;   Nr  r*   )r,   rË   r÷   r"   )r-   s   "r.   r/   r/   c  s\   € ÷ PKñ PKÜðPKä
ðPKô Œs�)ðPKô �T�zð	PKô ðPKô ñPKr0   c               óö  € \         P                  P                  V 4      p\        V\         P                  P	                  V4      R7      p \        V4      w  rx\        . VOVORN4      p	\        W1V\         P                  P	                  V4      4      p
\        V4      w  r¼VP                  VP                  rí\        V4      p\        WZ4      p\        4       ;_uu_ 4       p\        VV\!        WýV4      VR7       VP#                  4        RRR4       \        4       ;_uu_ 4       p\%        VW_WÞ4      w  ppV'       d   VP&                  MRp \)        VVP&                  VVV	V
RRV4	      pVP#                  4        \1        TTRR7      uuRRR4       #   \         d    . p ELHi ; i  + '       g   i     L£; i  \*         d#    TP-                  4        Te   \/        TT4       h i ; i  + '       g   i     R# ; i)aö  Register an already-saved file in the asset database without moving it.

Used by ``/upload/image`` after the handler writes (or reuses) bytes on disk.
``compare_image_hash`` same-name dedup is legacy physical behavior and stays
outside hash-mode policy (parallel to path-form ``/view`` semantics).

Dedup is scoped to ``abs_path``, deliberately weaker than the multipart
endpoint's global content dedup. ``_reconcile_live_content_at_path`` already
settles the same-path row before this returns, so a global hash match adds
nothing there - the only thing it can still reach is a DIFFERENT file, and
honouring that would leave the just-written ``abs_path`` untracked and hand
back an asset describing someone else's path. Equal hashes across paths stay
discoverable by hash, they are simply not merged.
``_reconcile_live_content_at_path`` is the whole dedup story here - it leaves
at most one live row at ``abs_path``, so re-registering unchanged bytes reuses
that content row while still writing a new record, which is what a repeat save
through ``/upload/image`` is.

``content_written`` reports whether the caller just wrote bytes at
``abs_path``. The handler always knows - ``/upload/image`` skips the write
exactly when ``compare_image_hash`` proves the bytes are already there - and
it is the only sound way to reconcile an unhashed row at that path, because
the bytes it was created for are gone by the time we are called. It defaults
to the conservative answer so a caller that does not know retires rather
than adopts.
r/  r0  r  NTr'  )r=   rP   rÒ   rš   r˜   r   rq   r   rä   rÇ   r�   r  r   rF   r%   r  r  r�   r   rX   rô   ru   r(  r’   r  )rð   r”   r   r;   r  r:   r1  r‡   Ú	path_tagsÚmerged_tagsr4  r7   r  rþ   r	  r  rD   rI   r†   r6  r7  rz   s   &&&&$                 r.   Úregister_file_in_placer=  c  sÊ  € ôD �g‰g�o‰o˜hÓ'€GÜ% d´R·W±W×5EÑ5EÀgÓ5NÔO€LðÜ8¸ÓA‰ˆô !Ð!@ 9Ð!@¨tÐ!@°ZÐ!@ÓA€KÜ*Ø˜œrŸw™w×/Ñ/°Ó8ó€Lô 6°gÓ>Ñ€FØ(×0Ñ0°-×2KÑ2K�Ü  Ó(€KÜ3°GÓJ€OÜ	×	Ô	˜WÜ'ØØÜ˜+°8Ó<Ø+õ		
ð 	�‰Ô÷ 
ô 
×	Ô	˜WÜ;Ø�W¨:ó
Ñˆ�÷ ,4˜WŸZšZ¸Ðð	Ü*ØØ—
‘
ØØØØØØØó
ˆFð �N‰NÔô (¨°ÀTÔJ÷/ 
Ò	øô' ô Ø‹	ðú÷ 
×	ûô6 ô 	Ø×ÑÔØ!Ò-Ü-¨gÐ7IÔJØð		ú÷% 
×	Ð	úsB   ÁF Ã*F$Ä#'G'Å-F7Å8G'ÆF!Æ F!Æ$F4	Æ7-G$Ç$G'Ç'G8	c                óÈ   € V ^8„  d   QhR\         R\         R\        \         ,          R,          R\        R,          R\         R,          R\         R,          R\        R,          /# )	r(   r)   r”   r   Nrñ   r;   rS   r*   r,  )r-   s   "r.   r/   r/   ¶  sq   € ÷ ,Kñ ,KÜð,Kä
ð,Kô Œs�)�dÕ
ð,Kô ˜$•;ð	,Kô
 �T�zð,Kô �d•
ð,Kô �DÕñ,Kr0   c                 óì  € \         P                  ! 4       '       g   R # \        V 4      pVP                  R4      ^,          ;'       g    Tp\	        WR7      p\        4       ;_uu_ 4       p	\        W–4      p
V
f#   \        P                  ! RV 4        R R R 4       R # V
P                  p\        V
P                  V4      p\        W›V4      '       g   V	P                  4         R R R 4       R # \        W›4      p
V
f   V	P                  4         R R R 4       R # \        T	TTV
P                  T;'       g    . VVVV4	      pV	P!                  4        \#        W�RR7      uuR R R 4       #   + '       g   i     R # ; i)Nr2   r/  z,create_from_hash: no asset found for hash %sTr'  )r
   Úhashing_enabledr8   r5   rš   r%   r   rv   rw   rX   rF   rP   r   r(  r   rô   r�   r  )r)   r”   r   rñ   r;   rS   r  Úbare_digestr1  rI   r†   rJ   rD   rz   s   &&&&&&        r.   Úcreate_from_hashrB  ¶  s=  € ô ×Ò×!Ò!Ùä'¨Ó1€KØ×'Ñ'¨Ó,¨QÕ/×>Ð>°;€KÜ%Øô€Lô 
×	Ô	˜WÜ& wÓ<ˆØŠ?Ü�OŠOÐJÈHÔUØ÷	 
Ñ	ð
 —Z‘Zˆ
ä7¸¿¹ÀiÓPˆÜ& w¸K×HÒHØ×ÑÔØ÷ 
Ñ	ô ,¨GÓ@ˆØŠ?Ø×ÑÔØ÷ 
Ñ	ô 'ØØØØ�L‰LØ�JˆJ�BØØØØó

ˆð 	�‰ÔÜ'¨ÀTÔJ÷7 
×	×	Ó	ús%   Á)(E"ÂAE"Ã* E"ÄE"Ä0'E"Å"E3	c                óX   € V ^8„  d   QhR\         R\         R,          R\        R,          /# )r(   rð   rú   Nr*   )r,   r    )r-   s   "r.   r/   r/   å  s2   € ÷ Fñ FÜðFÜ �:ðFä�tÕñFr0   c                 ó¨  € \         P                  P                  V 4      p \        4       ;_uu_ 4       pVP	                  \        \        4      P                  \        P                  V8H  \        P                  \        4       8H  4      4      P                  4       pVf#   \        P                  ! RV4        R R R 4       R # \        V4      w  rV\        P                  ! VRR7      ^ ,          pVP	                  \        \         4      P                  \         P"                  VP$                  8H  4      P'                  \         P(                  P+                  4       \         P$                  P+                  4       4      P-                  ^4      4      P                  4       pVe'   VP.                  e   \1        VP.                  4      MR p	M\3        W'4      p	 \5        VVP$                  VVV\7        V4      VV	R7      p
\9        W4P$                  4      pVe   Wºn        VP=                  4        T
P$                  pT
P"                  pT
PB                  pT
PD                  pT
P:                  pR R R 4       \I        XXXXXR7      #   \>         d    TPA                  4        h i ; i  + '       g   i     L@; i  \>         d    \        PF                  ! RT4        R # i ; i)NzACached output registration is a non-event; no live content for %sFrß   ©r;   rú   ró   r   rD   z$Failed to register cached output: %s©rX   rJ   rú   r”   rS   )%r=   rP   rÒ   r%   r  r   r   r[   r\   r   r  rv   Úinfor   rá   râ   r   rJ   rX   r]   r^   Úascrƒ   rD   r>   rF   r   r   rc   rS   r�   ru   r(  rú   r”   r�   r    )rð   rú   r:   rI   r  r”   r;  r;   ÚsiblingrD   rz   Úsibling_preview_idÚ	record_idÚrecord_content_idÚrecord_job_idÚrecord_nameÚrecord_preview_ids   &&               r.   Úregister_cached_outputrP  å  sb  € ô �g‰g�o‰o˜hÓ'€Gð:Ü×Ô Ø—‘Ü”|Ó$×*Ñ*Ü ×%Ñ%¨Ñ0´,×2IÑ2IÌUËWÑ2Tóó÷ ‰e‹gð	 ð
 ÒÜ—’ðàôð
 ÷ Ñô @ÀÓH‰OˆDÜ!×,Ò,¨W¸UÔCÀAÕFˆIà—o‘oÜ”u“ß‘”u×'Ñ'¨8¯;©;Ñ6Ó7ß‘œ%×*Ñ*×.Ñ.Ó0´%·(±(·,±,³.ÓAß‘�q“ó	÷
 ‰e‹gð ð Ò"ð ×.Ñ.Ò:ô ˜×0Ñ0Ô1àñ  ô #@ÀÓ"S�ðÜ&ØØ—K‘KØØ'Ø!Ü 3°GÓ <Ø"Ø$3ô	�ô &>¸gÇ{Á{Ó%SÐ"Ø%Ò1Ø(:Ô%Ø—‘Ô ð Ÿ	™	ˆIØ &× 1Ñ 1ÐØ"ŸM™MˆMØ Ÿ+™+ˆKØ &× 1Ñ 1Ð÷m ôv ØØ$ØØØ$ôð øô ô Ø× Ñ Ô"Øðú÷_ ×ûôn ô Ü×ÒÐ@À'ÔJÚðúsU   ¡J+ ³BJÂ6J+ Ã DJÇAI8È$<JÉ J+ É8JÊJÊJ(	Ê#J+ Ê(J+ Ê+"KËKc          	      ór   € V ^8„  d   QhR\         R\         R,          R\        R,          R\        R,          /# )r(   rð   rú   Nre   r*   )r,   r>   r    )r-   s   "r.   r/   r/   .  s?   € ÷ @ñ @Üð@Ü �:ð@Ü;?À$½;ð@ä�tÕñ@r0   c                 ó¦  € \         P                  P                  V 4      p\        V4      p \         P                  ! VR R7      pVP
                  p\        V4      p\        P                  ! VRR7      ^ ,          p\        V4      w  rš\        W8V4      p\        4       ;_uu_ 4       pRp VP                  \        \        4      P                  \        P                  V8H  \        P                   \#        4       8H  4      4      P%                  4       pVe   \'        WÎP(                  4       \+        WÃRWg4      w  ppV'       d   VP(                  p\-        VVP(                  V	VV\/        V4      V
VR7      pVe   \1        VVV4       VP(                  pVP2                  pVP4                  pVP6                  pVP8                  pVP;                  4         RRR4       \G        XXXXXR7      #   \<         d"    TP?                  4        Te   \A        YÍ4       h i ; i  + '       g   i     LO; i  \<         d    \B        PD                  ! RT4        R# i ; i)T)Úfollow_symlinksFrß   NrE  z&Failed to register executed output: %srF  )$r=   rP   rÒ   rx   rt   r�   r   rá   râ   r   rF   r&   r  r   r   r[   r\   r   r  r   rX   r   r   r   rˆ   rJ   rú   r”   rS   r�   ru   r(  r’   rv   r�   r    )rð   rú   re   r:   rM   r<   rþ   r	  r;   r”   r;  rD   rI   r7  r  r†   r6  rz   rK  rL  rM  rN  rO  s   &&&                    r.   Úregister_executed_outputrT  .  s  € ô �g‰g�o‰o˜hÓ'€GÜ# KÓ0€Gð3Ü—g’g˜g°tÔ<ˆØ ×(Ñ(ˆ
Ü Ó,ˆÜ×(Ò(¨¸Ô?ÀÕBˆ	Ü;¸GÓD‰ˆÜ7Ø ó
ˆô "×#Ô# wØ-1Ðð%Ø"Ÿ?™?Üœ<Ó(×.Ñ.Ü$×)Ñ)¨WÑ4Ü$×/Ñ/´5³7Ñ:óó÷
 ‘%“'ð ð Ò'Ü(¨·+±+Ô>Ü$CØ d¨Jó%Ñ!�˜÷ Ø)0¯©Ð&Ü&ØØ—J‘JØØ'Ø!Ü 3°GÓ <Ø"Ø$3ô	�ð Ò&Ü(¨°&¸'ÔBà"ŸI™I�	Ø$*×$5Ñ$5Ð!Ø &§¡�Ø$Ÿk™k�Ø$*×$5Ñ$5Ð!Ø—‘Õ ÷E $ôX ØØ$ØØØ$ôð øô ô Ø× Ñ Ô"Ø%Ò1Ü1°'ÔNØð	ú÷G $×#ûôP ô Ü×ÒÐBÀGÔLÚðúsC   ¬A9H* Â%HÂ)D&G(ÇH* Ç(,HÈHÈH'	È"H* È'H* È*"IÉIrO   )NNNNNNN)NNNN)NN)]Ú__doc__r¸   rè   rv   rá   r=   Úrerê   Útypingr   r   r   Ú
sqlalchemyr   r   r   Úsqlalchemy.ormr   r	   rr   Ú
app.assetsr
   Úapp.assets.database.modelsr   r   r   Ú#app.assets.database.queries.recordsr   r   r   Úapp.assets.helpersr   r   Úapp.assets.services.file_utilsr   r   Úapp.assets.services.lookupr   r   r   r   Ú"app.assets.services.media_metadatar   Ú$app.assets.services.metadata_extractr   Úapp.assets.services.path_utilsr   r   r   r   Úapp.assets.services.schemasr   r    r!   r"   r#   Ú!app.assets.services.snapshot_hashr$   Úapp.database.dbr%   r&   r8   rF   rc   Úcompilero   rx   rˆ   r’   rš   ru   rœ   r¦   r¨   rÅ   rÁ   rÇ   rÛ   rä   rî   rô   r  r  r  r  r  r!  r)  r8  r=  rB  rP  rT  r�   r0   r.   Ú<module>rg     st  ðñó Û Û Û Û 	Û 	Û ß ,Ñ ,ç *Ñ *ß +ã Ý ß DÑ D÷ñ ÷
 >ß N÷ó õ FÝ F÷ó ÷õ õ <ß @õ"÷õ.Yð, —J’JÐ:Ó;Ð õõRõ>Mõ4 ô
	˜	ô 	ô	˜)ô 	ô"˜Yô "ð Ð õ	õDõõ$1õ 
SõõB$ôN�Jô õ=/õ@õ-ô`˜
ô õG÷>XKñvPKð !÷PKð PK÷f,K÷^F÷R@ñ @r0   