+
    ¿Ìj…)  ã                  ó8  € ^ RI Ht R.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HtHt ^RIHt ^RIHtHt ^RIHt ^RIHtHtHtHt ]'       d   ^R	IHt ]P<                  ! ]4      t ] PC                  ]PD                  ! 4       4        ! R
 R4      t#R# )é    )ÚannotationsÚSignedAttachmentN)ÚListÚOptionalÚTypeÚTYPE_CHECKINGÚUnion)Ú	constants)ÚAttachmentTypeÚSaveType)ÚopenMsg)ÚcreateZipOpenÚinputToStringÚmakeWeakRefÚprepareFilename)ÚMSGFilec                  ó.  € ] tR t^ tR R ltR R ltR R ltR R lt]R	 R
 l4       t	]R R l4       t
]
t]R R l4       t]R R l4       t]R R l4       t]R R l4       t]R R l4       t]R R l4       t]t]t]R R l4       t]R R l4       tRtR# )r   c               ó(   € V ^8„  d   QhRRRRRRRR/# )é   ÚdataÚbytesÚnameÚstrÚmimetypeÚnodeúemail.message.Message© )Úformats   "Ú|/home/l0st/web/w4ttz.lol/public_html/toolz/MsgDoxxer/venv/lib/python3.14/site-packages/extract_msg/attachments/signed_att.pyÚ__annotate__ÚSignedAttachment.__annotate__!   s)   € ÷ ñ  %ð ¨sð ¸cð ÐI^ñ ó    c                ó”  € W n         W0n        W@n        \        V4      V n        WPn        VP                  \        V 4      .,           V n        RV n        VR,          R8X  d)    \        V3RV P                  /VP                  B V n        V P                  '       g	   W n        R# R#   \         d    \        P                  R4        L>i ; i)a  
:param msg: The MSGFile instance this attachment is associated with.
:param data: The bytes that compose this attachment.
:param name: The reported name of the attachment.
:param mimetype: The reported mimetype of the attachment.
:param node: The email Message instance for this node.
r"   :Né   Ns   ÐÏà¡±áÚtreePathzYSigned message was an OLE file, but could not be read as an MSG file due to an exception.N)Ú_SignedAttachment__asBytesÚ_SignedAttachment__nameÚ_SignedAttachment__mimetyper   Ú_SignedAttachment__msgÚ_SignedAttachment__noder%   Ú_SignedAttachment__treePathÚ_SignedAttachment__datar   ÚkwargsÚ	ExceptionÚloggerÚ	exception)ÚselfÚmsgr   r   r   r   s   &&&&&&r   Ú__init__ÚSignedAttachment.__init__!   s¯   € ð ŒØŒØ"ŒÜ  Ó%ˆŒ
ØŒØŸ,™,¬+°dÓ*;Ð)<Õ<ˆŒàˆŒð ��8Ð:Ô:ð~ô
 & dÑU°t·±ÐUÈ#Ï*É*ÑU�”ð �{�{ˆ{ØŽKñ øô ô ~Ü× Ñ Ð!|Ö}ð~ús   Á!'B$ Â$ CÃCc               ó    € V ^8„  d   QhRRRR/# )r   Ú
customPathzpathlib.PathÚreturnr   )r   s   "r   r    r!   A   s   € ÷ (ñ (°\ð (Èlñ (r"   c                óÂ  € W2,          pVP                  RR4      pV'       d²   V'       g¨   \        P                  P                  V4      w  rxVP	                  4       p	\        V4      P                  RR4      V	9   dW   \        ^^d4       F7  p
W7 RV
 RV 2,          p\        V4      P                  RR4      V	9  g   K5  Vu # 	  \        RV R24      hV# V'       g„   VP                  4       '       dn   \        P                  P                  V4      w  rx\        ^^d4       F-  p
W7 RV
 RV 2,          pVP                  4       '       d   K+  Vu # 	  \        RV R24      hV# )	a8  
"Handle Filename Conflict"

Internal function for use in determining how to modify the saving path
when a file with the same name already exists. This is mainly because
any save function that uses files will need to do this functionality.

:returns: A ``pathlib.Path`` object to where the file should be saved.
ÚoverwriteExistingFÚ\Ú/z (Ú)z@Could not create the specified file because it already exists ("z").)
ÚgetÚosÚpathÚsplitextÚnamelistr   ÚreplaceÚrangeÚFileExistsErrorÚexists)r1   Ú_zipÚfilenamer6   r-   ÚfullFilenamer9   r   ÚextÚnameListÚiÚtestNames   &&&&&       r   Ú
_handleFncÚSignedAttachment._handleFncA   sY  € ð "Õ,ˆà"ŸJ™JÐ':¸EÓBÐçç$ÜŸG™G×,Ñ,¨XÓ6‘	�ØŸ=™=›?�Ü�|Ó$×,Ñ,¨T°3Ó7¸8ÔCÜ" 1 cž]˜Ø#-°&¸¸1¸#¸Q¸s¸eÐ0DÕ#D˜Ü˜x›=×0Ñ0°°sÓ;À8ÖKØ#+šOñ +ô .Ð0pÐq}Ðp~ð  Bð  /Có  Dð  Dð Ð÷ %¨×)<Ñ)<×)>Ò)>äŸG™G×,Ñ,¨XÓ6‘	�ä˜q #ž�AØ)¨f°B°q°c¸¸3¸%Ð,@Õ@�HØ#Ÿ?™?×,Ô,Ø'šñ 'ô *Ð,lÐmyÐlzÐz}Ð*~ÓÐàÐr"   c               ó   € V ^8„  d   QhRR/# ©r   r7   zconstants.SAVE_TYPEr   )r   s   "r   r    r!   k   s   € ÷ Xñ XÐ 3ñ Xr"   c                ó  € V P                   \        P                  J d*   VP                  R4      '       d   \        P
                  R3# V P                   \        P                  J d+   VP                  RR4      '       g   V P                  ! R/ VB # V P                  p\        \        W P                  P                  4      4      pVP                  RR4      p\        V4      V8”  d>   \        P                  P                  V4      w  rEVRV\        V4      ,
           V,           pVP                  R4      pRp V'       d”   \!        V\"        \$        P&                  34      '       d.   \(        P*                  ! VR	\(        P,                  4      pWaR&   RpMRp\$        P&                  ! VP                  R
R4      4      p\/        VP0                  4      p	Rp
M<\$        P&                  ! VP                  R
R4      4      P3                  4       pRp
\0        p	V P5                  WbW�4      pV P                   \        P6                  J d|   V	! \#        V4      V
4      ;_uu_ 4       pVP9                  V P:                  4       RRR4       \        P<                  \#        V4      3V'       d   V'       d   VP?                  4        # # # V	! \#        V4      V
4      ;_uu_ 4       pVP9                  V P@                  4       RRR4       \        P<                  \#        V4      3V'       d   V'       d   VP?                  4        # # #   + '       g   i     LÈ; i  + '       g   i     L`; i  T'       d   T'       d   TP?                  4        i i i ; i)aW  
Saves the attachment data.

The name of the file is determined by several factors. The first
thing that is checked is if you have provided :param customFilename:
to this function. If you have, that is the name that will be used.
Otherwise, the name from :attr:`name` will be used. After the name to
use has been determined, it will then be shortened to make sure that it
is not more than the value of :param maxNameLength:.

To change the directory that the attachment is saved to, set the value
of :param customPath: when calling this function. The default save
directory is the working directory.

If you want to save the contents into a ``ZipFile`` or similar object,
either pass a path to where you want to create one or pass an instance
to :param zip:. If :param zip: is an instance, :param customPath: will
refer to a location inside the zip file.
ÚskipEmbeddedNÚextractEmbeddedFÚmaxNameLengthé   ÚzipTÚar6   Ú ÚwÚ.Úwbr   )!Útyper   ÚSIGNED_EMBEDDEDr=   r   ÚNONEÚsaveEmbededMessager   r   r   r2   ÚstringEncodingÚlenr>   r?   r@   Ú
isinstancer   ÚpathlibÚPathÚzipfileÚZipFileÚZIP_DEFLATEDr   ÚopenÚabsoluterM   ÚDATAÚwriter,   ÚFILEÚcloser&   )r1   r-   rG   rT   r   rI   rF   Ú
createdZipr6   Ú_openÚmoderH   Úfs   &,           r   ÚsaveÚSignedAttachment.savek   s�  € ð, �9‰9œ×6Ñ6Ó6¸6¿:¹:Àn×;UÒ;UÜ—M‘M 4Ð(Ð(ð �I‰Iœ×7Ñ7Ó7Ø—
‘
Ð,¨e×4Ò4Ø×*Ò*Ñ4¨VÑ4Ð4ð —9‘9ˆô #¤=°¿8¹8×;RÑ;RÓ#SÓTˆð Ÿ
™
 ?°CÓ8ˆô ˆx‹=˜=Ô(ÜŸ™×(Ñ(¨Ó2‰IˆDØÐ5˜]¬S°«XÕ5Ð6¸Õ<ˆHð �z‰z˜%Ó ˆàˆ
ð'	çô ˜d¤S¬'¯,©,Ð$7×8Ò8ä"Ÿ?š?¨4°´g×6JÑ6JÓK�DØ$(˜5‘MØ!%‘Jà!&�Jô %Ÿ\š\¨&¯*©*°\À2Ó*FÓG�
ä% d§i¡iÓ0�à‘ä$Ÿ\š\¨&¯*©*°\À3Ó*GÓH×QÑQÓS�
Ø�Ü�àŸ?™?¨4¸:ÓNˆLà�y‰yœN×/Ñ/Ó/Ùœ3˜|Ó,¨d×3Ô3°qØ—G‘G˜DŸK™KÔ(÷ 4ô !Ÿ™¤s¨<Ó'8Ð9÷ Ÿ
Ø—
‘
•ð #ˆtñ œ3˜|Ó,¨d×3Ô3°qà—G‘G˜DŸN™NÔ+÷ 4ô !Ÿ™¤s¨<Ó'8Ð9÷ Ÿ
Ø—
‘
•ð #ˆt÷ 4×3ú÷
 4×3û÷ Ÿ
Ø—
‘
•ð #ˆtúsO   Ä7M Ä?DM ÉL4É4"M Ê9M ËMË/"M Ì4M	Ì?M ÍM	ÍM ÍM>Í+M>c               ó   € V ^8„  d   QhRR/# rP   r   )r   s   "r   r    r!   Å   s   € ÷ (ñ (Ð.Añ (r"   c                ó:   € V P                   P                  ! R/ VB # )zP
Seperate function from save to allow it to easily be overridden by a
subclass.
r   )r   rr   )r1   r-   s   &,r   r_   Ú#SignedAttachment.saveEmbededMessageÅ   s   € ð
 �y‰y�~Š~Ñ' Ñ'Ð'r"   c               ó   € V ^8„  d   QhRR/# )r   r7   r   r   )r   s   "r   r    r!   Í   s   € ÷ ñ ˜ñ r"   c                	ó   € V P                   # ©N)r&   ©r1   s   &r   ÚasBytesÚSignedAttachment.asBytesÌ   s   € à�~‰~Ðr"   c               ó   € V ^8„  d   QhRR/# )r   r7   ÚNoner   )r   s   "r   r    r!   Ñ   s   € ÷ ñ ˜4ñ r"   c                	ó   € R # ry   r   rz   s   &r   Ú	contentIDÚSignedAttachment.contentIDÐ   s   € ár"   c               ó   € V ^8„  d   QhRR/# )r   r7   zUnion[bytes, MSGFile]r   )r   s   "r   r    r!   ×   s   € ÷ ñ Ð+ñ r"   c                ó   € V P                   # )z)
The bytes that compose this attachment.
)r,   rz   s   &r   r   ÚSignedAttachment.dataÖ   ó   € ð
 �{‰{Ðr"   c               ó   € V ^8„  d   QhRR/# )r   r7   zOptional[Type[type]]r   )r   s   "r   r    r!   Þ   s   € ÷ ñ Ð.ñ r"   c                ót   €  V P                   f   R# V P                   P                  #   \         d     R# i ; i)zí
The class that the data type will use, if it can be retrieved.

This is a safe way to do type checking on data before knowing if it will
raise an exception. Returns ``None`` if no data will be returns or if an
exception will be raised.
N)r   Ú	__class__r.   rz   s   &r   ÚdataTypeÚSignedAttachment.dataTypeÝ   s7   € ð	ØŸ9™9Ò,�4ÐE°$·)±)×2EÑ2EÐEøÜô 	âð	ús   ‚( ’( ¨7¶7c               ó   € V ^8„  d   QhRR/# )r   r7   r   r   )r   s   "r   r    r!   í   s   € ÷ ñ Ð3ñ r"   c                ó   € V P                   # )zD
The email Message instance that is the source for this attachment.
)r*   rz   s   &r   ÚemailMessageÚSignedAttachment.emailMessageì   r…   r"   c               ó   € V ^8„  d   QhRR/# ©r   r7   r   r   )r   s   "r   r    r!   ô   s   € ÷ ñ ˜#ñ r"   c                ó   € V P                   # )z*
The reported mimetype of the attachment.
)r(   rz   s   &r   r   ÚSignedAttachment.mimetypeó   s   € ð
 �‰Ðr"   c               ó   € V ^8„  d   QhRR/# )r   r7   r   r   )r   s   "r   r    r!   û   s   € ÷ 	ñ 	�Wñ 	r"   c                óD   € V P                  4       ;pf   \        R4      hV# )z“
The ``MSGFile`` instance this attachment belongs to.

:raises ReferenceError: The associated ``MSGFile`` instance has been
    garbage collected.
zDThe MSGFile for this Attachment instance has been garbage collected.)r)   ÚReferenceError)r1   r2   s   & r   r2   ÚSignedAttachment.msgú   s&   € ð —:‘:“<ÐˆCÒ(Ü Ð!gÓhÐhØˆ
r"   c               ó   € V ^8„  d   QhRR/# r�   r   )r   s   "r   r    r!     s   € ÷ ñ �cñ r"   c                ó   € V P                   # )z'
The reported name of this attachment.
)r'   rz   s   &r   r   ÚSignedAttachment.name  r…   r"   c               ó   € V ^8„  d   QhRR/# )r   r7   zList[weakref.ReferenceType]r   )r   s   "r   r    r!     s   € ÷ ñ Ð5ñ r"   c                ó   € V P                   # )zf
A path, as a tuple of instances, needed to get to this instance through
the MSGFile-Attachment tree.
)r+   rz   s   &r   r%   ÚSignedAttachment.treePath  s   € ð �‰Ðr"   c               ó   € V ^8„  d   QhRR/# )r   r7   r   r   )r   s   "r   r    r!     s   € ÷ kñ k�nñ kr"   c                	ó‚   € \        V P                  \        4      '       d   \        P                  # \        P
                  # ry   )rb   r,   r   r   ÚSIGNEDr]   rz   s   &r   r\   ÚSignedAttachment.type  s)   € ä(2°4·;±;Ä×(FÒ(FŒ~×$Ñ$ÐjÌN×LjÑLjÐjr"   )Ú	__asBytesÚ__dataÚ
__mimetypeÚ__msgÚ__nameÚ__nodeÚ
__treePathN)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r3   rM   rr   r_   Úpropertyr{   r€   Úcidr   r‰   r�   r   r2   r   ÚlongFilenameÚshortFilenamer%   r\   Ú__static_attributes__r   r"   r   r   r       só   † õõ@(õTXõt(ð ôó ðð ôó ðð €Càôó ðð ôó ðð ôó ðð ôó ðð ô	ó ð	ð ôó ðð €LØ€Màôó ðð ôkó ôkr"   )$Ú
__future__r   Ú__all__Úemail.messageÚemailÚloggingr>   rc   Úweakrefre   Útypingr   r   r   r   r	   rX   r
   Úenumsr   r   Úopen_msgr   Úutilsr   r   r   r   Úmsg_classes.msgr   Ú	getLoggerr¨   r/   Ú
addHandlerÚNullHandlerr   r   r"   r   Ú<module>r¿      sz   ðÝ "ð ð€ó
 Û Û 	Û Û Û ç =Õ =å ß ,Ý ß NÓ N÷ Ý)à	×	Ò	˜8Ó	$€Ø × Ñ �'×%Ò%Ó'Ô (÷zkó zkr"   