+
    rpÐj¯  ã                  óØ   € R t ^ RIH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 ^RIHt ]'       d   ^ RIHt ^R	IHt ]! R
RRR7      tRt ! R R]
],          4      tR# )a:  
The MIT License (MIT)

Copyright (c) 2015-present Rapptz

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
)Úannotations)ÚTYPE_CHECKINGÚLiteralÚOptionalÚTypeVarÚUnion)ÚItem)ÚFileComponentÚUnfurledMediaItem)ÚComponentType)ÚMISSING)ÚFile)ÚSelf)Ú
LayoutViewÚVr   T)ÚboundÚ	covariantr   c                  óŠ  a € ] tR t^.tRtRtR]RR/R V 3R lllt]R R l4       t	]	P                  R	 R
 l4       t	R t]R 4       t]R R l4       t]R R l4       t]P                  R R l4       t]R R l4       t]P                  R R l4       t]R R l4       t]P                  R R l4       tR t]R R l4       tRtV ;t# ) r   a^  Represents a UI file component.

This is a top-level layout component that can only be used on :class:`LayoutView`.

.. versionadded:: 2.6

Example
-------

.. code-block:: python3

    import discord
    from discord import ui

    class MyView(ui.LayoutView):
        file = ui.File('attachment://file.txt')
        # attachment://file.txt points to an attachment uploaded alongside this view

Parameters
----------
media: Union[:class:`str`, :class:`.UnfurledMediaItem`, :class:`discord.File`]
    This file's media. If this is a string it must point to a local
    file uploaded within the parent view of this item, and must
    meet the ``attachment://<filename>`` format.
spoiler: :class:`bool`
    Whether to flag this file as a spoiler. Defaults to ``False``.
id: Optional[:class:`int`]
    The ID of this component. This must be unique across the view.
ÚspoilerÚidNc               ó(   € V ^8„  d   QhRRRRRRRR/# )	é   Úmediaz+Union[str, UnfurledMediaItem, SendableFile]r   Úboolr   úOptional[int]ÚreturnÚNone© )Úformats   "ÚA/opt/hermes/.venv/lib/python3.14/site-packages/discord/ui/file.pyÚ__annotate__ÚFile.__annotate__S   s2   € ÷ ñ à:ðð ð	ð
 ðð 
ñó    c               	ór  <€ \         SV `  4        \        V\        4      '       dJ   \        P
                  ! \        VP                  4      V\        J d   VP                  MTVR 7      V n
        R# \        P
                  ! \        V\        4      '       d   \        V4      MT\        V4      VR 7      V n
        R# )©r   r   r   N)ÚsuperÚ__init__Ú
isinstanceÚSendableFiler	   Ú_raw_constructr
   Úurir   r   Ú_underlyingÚstrr   )Úselfr   r   r   Ú	__class__s   &&$$€r   r&   ÚFile.__init__S   s…   ø€ ô 	‰ÑÔÜ�eœ\×*Ò*Ü,×;Ò;Ü'¨¯	©	Ó2Ø)0´GÓ);˜ŸšÀØô ˆDÖô  -×;Ò;Ü2<¸UÄC×2HÒ2HÔ'¨Ô.ÈeÜ˜W›Øô ˆDÖr"   c               ó   € V ^8„  d   QhRR/# )r   r   r   r   )r   s   "r   r    r!   i   s   € ÷ #ñ #�Mñ #r"   c                ó.   € V P                   P                  # )z6Optional[:class:`int`]: The ID of this file component.©r+   r   ©r-   s   &r   r   ÚFile.idh   s   € ð ×Ñ×"Ñ"Ð"r"   c               ó    € V ^8„  d   QhRRRR/# )r   Úvaluer   r   r   r   )r   s   "r   r    r!   n   s   € ÷ $ñ $˜ð $¨$ñ $r"   c                	ó&   € WP                   n        R # ©Nr2   ©r-   r6   s   &&r   r   r4   m   s   € à#×ÑÖr"   c                	ó   € R # )Tr   r3   s   &r   Ú_is_v2ÚFile._is_v2q   s   € Ùr"   c                	ó   € ^# )é   r   r3   s   &r   ÚwidthÚ
File.widtht   s   € ár"   c               ó   € V ^8„  d   QhRR/# )r   r   zLiteral[ComponentType.file]r   )r   s   "r   r    r!   y   s   € ÷ %ñ %Ð1ñ %r"   c                	ó.   € V P                   P                  # r8   )r+   Útyper3   s   &r   rC   Ú	File.typex   s   € à×Ñ×$Ñ$Ð$r"   c               ó   € V ^8„  d   QhRR/# )r   r   r
   r   )r   s   "r   r    r!   }   s   € ÷ &ñ &Ð(ñ &r"   c                ó.   € V P                   P                  # )z5:class:`.UnfurledMediaItem`: Returns this file media.)r+   r   r3   s   &r   r   Ú
File.media|   s   € ð ×Ñ×%Ñ%Ð%r"   c               ó    € V ^8„  d   QhRRRR/# )r   r6   z+Union[str, SendableFile, UnfurledMediaItem]r   r   r   )r   s   "r   r    r!   ‚   s   € ÷ nñ nÐFð nÈ4ñ nr"   c                	ót  € \        V\        4      '       d   \        V4      V P                  n        R# \        V\        4      '       d   WP                  n        R# \        V\
        4      '       d'   \        VP                  4      V P                  n        R# \        R VP                  P                  : 24      h)z1expected a str or UnfurledMediaItem or File, not N)
r'   r,   r
   r+   r   r(   r*   Ú	TypeErrorr.   Ú__name__r9   s   &&r   r   rG   �   s�   € ä�eœS×!Ò!Ü%6°uÓ%=ˆD×ÑÖ"Ü˜Ô0×1Ò1Ø%*×ÑÖ"Ü˜œ|×,Ò,Ü%6°u·y±yÓ%AˆD×ÑÖ"äÐOÐPU×P_ÑP_×PhÑPhÑOkÐlÓmÐmr"   c               ó   € V ^8„  d   QhRR/# )r   r   r,   r   )r   s   "r   r    r!   �   s   € ÷ *ñ *�Sñ *r"   c                óB   € V P                   P                  P                  # )z&:class:`str`: Returns this file's url.)r+   r   Úurlr3   s   &r   rN   ÚFile.urlŒ   s   € ð ×Ñ×%Ñ%×)Ñ)Ð)r"   c               ó    € V ^8„  d   QhRRRR/# )r   r6   r,   r   r   r   )r   s   "r   r    r!   ’   s   € ÷ :ñ :˜ð : ñ :r"   c                	ó:   € \        V4      V P                  n        R # r8   )r
   r+   r   r9   s   &&r   rN   rO   ‘   s   € ä!2°5Ó!9ˆ×ÑÖr"   c               ó   € V ^8„  d   QhRR/# )r   r   r   r   )r   s   "r   r    r!   –   s   € ÷ (ñ (˜ñ (r"   c                ó.   € V P                   P                  # )zH:class:`bool`: Returns whether this file should be flagged as a spoiler.©r+   r   r3   s   &r   r   ÚFile.spoiler•   s   € ð ×Ñ×'Ñ'Ð'r"   c               ó    € V ^8„  d   QhRRRR/# )r   r6   r   r   r   r   )r   s   "r   r    r!   ›   s   € ÷ )ñ )˜Tð ) dñ )r"   c                	ó&   € WP                   n        R # r8   rT   r9   s   &&r   r   rU   š   s   € à#(×ÑÖ r"   c                	ó6   € V P                   P                  4       # r8   )r+   Úto_dictr3   s   &r   Úto_component_dictÚFile.to_component_dictž   s   € Ø×Ñ×'Ñ'Ó)Ð)r"   c               ó    € V ^8„  d   QhRRRR/# )r   Ú	componentr	   r   r   r   )r   s   "r   r    r!   ¢   s   € ÷ 
ñ 
 }ð 
¸ñ 
r"   c                	óT   € V ! VP                   VP                  VP                  R 7      # )r$   r$   )Úclsr]   s   &&r   Úfrom_componentÚFile.from_component¡   s&   € áØ—/‘/Ø×%Ñ%Ø�|‰|ô
ð 	
r"   )r+   r$   )rK   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__item_repr_attributes__r   r&   Úpropertyr   Úsetterr;   r?   rC   r   rN   r   rZ   Úclassmethodr`   Ú__static_attributes__Ú__classcell__)r.   s   @r   r   r   .   s&  ø† ñð< Ððð  ð	ð
 !÷ò ð* ô#ó ð#ð ‡Y�Yô$ó ð$òð ñó ðð ô%ó ð%ð ô&ó ð&ð ‡\�\ônó ðnð ô*ó ð*ð 	‡Z�Zô:ó ð:ð ô(ó ð(ð ‡^�^ô)ó ð)ò*ð ô
ó ö
r"   N)re   Ú
__future__r   Útypingr   r   r   r   r   Úitemr   Ú
componentsr	   r
   Úenumsr   Úutilsr   Úfiler   r(   Útyping_extensionsr   Úviewr   r   Ú__all__r   r"   r   Ú<module>rv      sT   ðñõ0 #ç CÕ Cõ ß 9Ý !Ý Ý 'çÝ&å áˆC�|¨tÔ4€à
€ôy
ˆ4��7ö y
r"   