ó
    ‘Rj
  ã                  ór   • S r SSKJr  SSKrSSKrSSKJr  SSKJ	r	  \(       a  SSK
Jr   " S S	\	5      rS	/rg)
zmacOS.é    )ÚannotationsN)ÚTYPE_CHECKINGé   )ÚPlatformDirsABC)ÚPathc                  ó€  • \ rS rSrSr\SS j5       r\SS j5       r\SS j5       r\SS j5       r	\SS j5       r
\SS j5       r\SS	 j5       r\SS
 j5       r\SS j5       r\SS j5       r\SS j5       r\SS j5       r\SS j5       r\SS j5       r\SS j5       r\SS j5       r\SS j5       r\SS j5       rSrg)ÚMacOSé   aÃ  
Platform directories for the macOS operating system.

Follows the guidance from
`Apple documentation <https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html>`_.
Makes use of the `appname <platformdirs.api.PlatformDirsABC.appname>`,
`version <platformdirs.api.PlatformDirsABC.version>`,
`ensure_exists <platformdirs.api.PlatformDirsABC.ensure_exists>`.

c                ó^   • U R                  [        R                  R                  S5      5      $ )zb:return: data directory tied to the user, e.g. ``~/Library/Application Support/$appname/$version``z~/Library/Application Support©Ú_append_app_name_and_versionÚosÚpathÚ
expanduser©Úselfs    ÚJD:\diplom_project\venv\Lib\site-packages\pip/_vendor/platformdirs/macos.pyÚuser_data_dirÚMacOS.user_data_dir   s%   € ð ×0Ñ0´·±×1CÑ1CÐDcÓ1dÓeÐeó    c                ó   • [         R                  R                  S5      nU(       a  U R                  S5      /O/ nUR	                  U R                  S5      5        U R
                  (       a  [        R                  R                  U5      $ US   $ )a
  
:return: data directory shared by users, e.g. ``/Library/Application Support/$appname/$version``.
  If we're using a Python binary managed by `Homebrew <https://brew.sh>`_, the directory
  will be under the Homebrew prefix, e.g. ``/opt/homebrew/share/$appname/$version``.
  If `multipath <platformdirs.api.PlatformDirsABC.multipath>` is enabled, and we're in Homebrew,
  the response is a multi-path string separated by ":", e.g.
  ``/opt/homebrew/share/$appname/$version:/Library/Application Support/$appname/$version``
ú/opt/homebrewz/opt/homebrew/sharez/Library/Application Supportr   ©	ÚsysÚprefixÚ
startswithr   ÚappendÚ	multipathr   ÚpathsepÚjoin©r   Úis_homebrewÚ	path_lists      r   Úsite_data_dirÚMacOS.site_data_dir    so   € ô —j‘j×+Ñ+¨OÓ<ˆÞR]�T×6Ñ6Ð7LÓMÑNÐceˆ	Ø×Ñ˜×:Ñ:Ð;YÓZÔ[Ø�>�>Ü—:‘:—?‘? 9Ó-Ð-Ø˜‰|Ðr   c                ó8   • U R                  U R                  5      $ )zh:return: data path shared by users. Only return the first item, even if ``multipath`` is set to ``True``)Ú _first_item_as_path_if_multipathr$   r   s    r   Úsite_data_pathÚMacOS.site_data_path1   s   € ð ×4Ñ4°T×5GÑ5GÓHÐHr   c                ó   • U R                   $ )zC:return: config directory tied to the user, same as `user_data_dir`©r   r   s    r   Úuser_config_dirÚMacOS.user_config_dir6   ó   € ð ×!Ñ!Ð!r   c                ó   • U R                   $ )zF:return: config directory shared by the users, same as `site_data_dir`)r$   r   s    r   Úsite_config_dirÚMacOS.site_config_dir;   r.   r   c                ó^   • U R                  [        R                  R                  S5      5      $ )zV:return: cache directory tied to the user, e.g. ``~/Library/Caches/$appname/$version``z~/Library/Cachesr   r   s    r   Úuser_cache_dirÚMacOS.user_cache_dir@   s%   € ð ×0Ñ0´·±×1CÑ1CÐDVÓ1WÓXÐXr   c                ó   • [         R                  R                  S5      nU(       a  U R                  S5      /O/ nUR	                  U R                  S5      5        U R
                  (       a  [        R                  R                  U5      $ US   $ )aù  
:return: cache directory shared by users, e.g. ``/Library/Caches/$appname/$version``.
  If we're using a Python binary managed by `Homebrew <https://brew.sh>`_, the directory
  will be under the Homebrew prefix, e.g. ``/opt/homebrew/var/cache/$appname/$version``.
  If `multipath <platformdirs.api.PlatformDirsABC.multipath>` is enabled, and we're in Homebrew,
  the response is a multi-path string separated by ":", e.g.
  ``/opt/homebrew/var/cache/$appname/$version:/Library/Caches/$appname/$version``
r   z/opt/homebrew/var/cachez/Library/Cachesr   r   r!   s      r   Úsite_cache_dirÚMacOS.site_cache_dirE   so   € ô —j‘j×+Ñ+¨OÓ<ˆÞVa�T×6Ñ6Ð7PÓQÑRÐgiˆ	Ø×Ñ˜×:Ñ:Ð;LÓMÔNØ�>�>Ü—:‘:—?‘? 9Ó-Ð-Ø˜‰|Ðr   c                ó8   • U R                  U R                  5      $ )zi:return: cache path shared by users. Only return the first item, even if ``multipath`` is set to ``True``)r'   r6   r   s    r   Úsite_cache_pathÚMacOS.site_cache_pathV   s   € ð ×4Ñ4°T×5HÑ5HÓIÐIr   c                ó   • U R                   $ )zB:return: state directory tied to the user, same as `user_data_dir`r+   r   s    r   Úuser_state_dirÚMacOS.user_state_dir[   r.   r   c                ó^   • U R                  [        R                  R                  S5      5      $ )zR:return: log directory tied to the user, e.g. ``~/Library/Logs/$appname/$version``z~/Library/Logsr   r   s    r   Úuser_log_dirÚMacOS.user_log_dir`   s%   € ð ×0Ñ0´·±×1CÑ1CÐDTÓ1UÓVÐVr   c                ó@   • [         R                  R                  S5      $ )zC:return: documents directory tied to the user, e.g. ``~/Documents``z~/Documents©r   r   r   r   s    r   Úuser_documents_dirÚMacOS.user_documents_dire   ó   € ô �w‰w×!Ñ! -Ó0Ð0r   c                ó@   • [         R                  R                  S5      $ )zC:return: downloads directory tied to the user, e.g. ``~/Downloads``z~/DownloadsrB   r   s    r   Úuser_downloads_dirÚMacOS.user_downloads_dirj   rE   r   c                ó@   • [         R                  R                  S5      $ )zA:return: pictures directory tied to the user, e.g. ``~/Pictures``z
~/PicturesrB   r   s    r   Úuser_pictures_dirÚMacOS.user_pictures_diro   s   € ô �w‰w×!Ñ! ,Ó/Ð/r   c                ó@   • [         R                  R                  S5      $ )z=:return: videos directory tied to the user, e.g. ``~/Movies``z~/MoviesrB   r   s    r   Úuser_videos_dirÚMacOS.user_videos_dirt   s   € ô �w‰w×!Ñ! *Ó-Ð-r   c                ó@   • [         R                  R                  S5      $ )z;:return: music directory tied to the user, e.g. ``~/Music``z~/MusicrB   r   s    r   Úuser_music_dirÚMacOS.user_music_diry   s   € ô �w‰w×!Ñ! )Ó,Ð,r   c                ó@   • [         R                  R                  S5      $ )z?:return: desktop directory tied to the user, e.g. ``~/Desktop``z	~/DesktoprB   r   s    r   Úuser_desktop_dirÚMacOS.user_desktop_dir~   s   € ô �w‰w×!Ñ! +Ó.Ð.r   c                ó^   • U R                  [        R                  R                  S5      5      $ )zg:return: runtime directory tied to the user, e.g. ``~/Library/Caches/TemporaryItems/$appname/$version``z~/Library/Caches/TemporaryItemsr   r   s    r   Úuser_runtime_dirÚMacOS.user_runtime_dirƒ   s%   € ð ×0Ñ0´·±×1CÑ1CÐDeÓ1fÓgÐgr   c                ó   • U R                   $ )zF:return: runtime directory shared by users, same as `user_runtime_dir`)rV   r   s    r   Úsite_runtime_dirÚMacOS.site_runtime_dirˆ   s   € ð ×$Ñ$Ð$r   © N)ÚreturnÚstr)r\   r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úpropertyr   r$   r(   r,   r0   r3   r6   r9   r<   r?   rC   rG   rJ   rM   rP   rS   rV   rY   Ú__static_attributes__r[   r   r   r	   r	      s{  † ñ	ð ófó ðfð óó ðð  óIó ðIð ó"ó ð"ð ó"ó ð"ð óYó ðYð óó ðð  óJó ðJð ó"ó ð"ð óWó ðWð ó1ó ð1ð ó1ó ð1ð ó0ó ð0ð ó.ó ð.ð ó-ó ð-ð ó/ó ð/ð óhó ðhð ó%ó ó%r   r	   )rb   Ú
__future__r   Úos.pathr   r   Útypingr   Úapir   Úpathlibr   r	   Ú__all__r[   r   r   Ú<module>rk      s8   ðÙ å "ã Û 
Ý  å  æÝô|%ˆOô |%ð@ ð�r   