luckyphoenix 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alist-web/assets/{2fa-legacy.3350d44d.js → 2fa-legacy.5fa60b44.js} +1 -1
- package/alist-web/assets/{2fa.0dab7189.js → 2fa.87b607b7.js} +1 -1
- package/alist-web/assets/{About-legacy.e1597551.js → About-legacy.0ff31d02.js} +1 -1
- package/alist-web/assets/{About.11e2f3bb.js → About.14d416ca.js} +1 -1
- package/alist-web/assets/{AddOrEdit-legacy.6ac6f516.js → AddOrEdit-legacy.102d61ae.js} +1 -1
- package/alist-web/assets/{AddOrEdit-legacy.432f6c0e.js → AddOrEdit-legacy.78842fbc.js} +1 -1
- package/alist-web/assets/{AddOrEdit-legacy.2a02db88.js → AddOrEdit-legacy.ac9f5415.js} +1 -1
- package/alist-web/assets/{AddOrEdit.f0ec5bf9.js → AddOrEdit.971a8ba8.js} +1 -1
- package/alist-web/assets/{AddOrEdit.e641a9bd.js → AddOrEdit.9ee0bb50.js} +1 -1
- package/alist-web/assets/{AddOrEdit.79c069f9.js → AddOrEdit.c9b47599.js} +1 -1
- package/alist-web/assets/Common-legacy.41405c0c.js +1 -0
- package/alist-web/assets/Common.0404cf82.js +1 -0
- package/alist-web/assets/{Copy-legacy.3d846482.js → Copy-legacy.bb1c54a1.js} +1 -1
- package/alist-web/assets/Copy.b44f12a7.js +1 -0
- package/alist-web/assets/DeletePopover-legacy.0ac898a9.js +1 -0
- package/alist-web/assets/{DeletePopover.f7887d88.js → DeletePopover.610bc212.js} +1 -1
- package/alist-web/assets/File-legacy.7813c6bd.js +1 -0
- package/alist-web/assets/File.779fcca6.js +1 -0
- package/alist-web/assets/{Folder-legacy.a4550db5.js → Folder-legacy.6de85b2c.js} +3 -3
- package/alist-web/assets/{Folder.7e9202ae.js → Folder.744549da.js} +2 -2
- package/alist-web/assets/{FolderTree-legacy.2cffdb64.js → FolderTree-legacy.df0711f0.js} +1 -1
- package/alist-web/assets/{FolderTree.3d6d889d.js → FolderTree.b115623c.js} +1 -1
- package/alist-web/assets/Grid-legacy.0e5d85e0.js +1 -0
- package/alist-web/assets/Grid.100c9fa0.js +1 -0
- package/alist-web/assets/{GridItem-legacy.2300a556.js → GridItem-legacy.41480c5c.js} +1 -1
- package/alist-web/assets/{GridItem.5502f946.js → GridItem.c2d8d04b.js} +1 -1
- package/alist-web/assets/{ImageWithError-legacy.184872e5.js → ImageWithError-legacy.33680aa7.js} +1 -1
- package/alist-web/assets/{ImageWithError.fbebe083.js → ImageWithError.e84b4adb.js} +1 -1
- package/alist-web/assets/{Images-legacy.47953965.js → Images-legacy.ac934929.js} +1 -1
- package/alist-web/assets/{Images.cc1e423a.js → Images.5f4d59ff.js} +1 -1
- package/alist-web/assets/{Layout-legacy.bbe308ea.js → Layout-legacy.c23a00d4.js} +1 -1
- package/alist-web/assets/{Layout.683e33e3.js → Layout.edacf8b3.js} +4 -4
- package/alist-web/assets/{List-legacy.dc5a2a38.js → List-legacy.b954608e.js} +1 -1
- package/alist-web/assets/List.a7695a79.js +1 -0
- package/alist-web/assets/{Messenger-legacy.15747cf4.js → Messenger-legacy.ce777b2d.js} +1 -1
- package/alist-web/assets/{Messenger.0de50ee8.js → Messenger.0a4ddaae.js} +1 -1
- package/alist-web/assets/{Metas-legacy.9a37ad69.js → Metas-legacy.a8d69714.js} +1 -1
- package/alist-web/assets/{Metas.94282135.js → Metas.ecf1dfa9.js} +1 -1
- package/alist-web/assets/{Other-legacy.1defd90b.js → Other-legacy.9df9fca0.js} +1 -1
- package/alist-web/assets/{Other.c698471d.js → Other.20617503.js} +1 -1
- package/alist-web/assets/{PackageDownload-legacy.13e43bb9.js → PackageDownload-legacy.ab740d94.js} +1 -1
- package/alist-web/assets/{PackageDownload.89e4ecc4.js → PackageDownload.9136ed46.js} +1 -1
- package/alist-web/assets/{Paginator-legacy.6f9f1dcb.js → Paginator-legacy.df584da0.js} +1 -1
- package/alist-web/assets/{Paginator.758bcfa3.js → Paginator.56ed88cb.js} +1 -1
- package/alist-web/assets/{Password-legacy.5e5cbd20.js → Password-legacy.1e6250d0.js} +1 -1
- package/alist-web/assets/{Password.500d1886.js → Password.789eac32.js} +1 -1
- package/alist-web/assets/{Profile-legacy.ccf1ddd4.js → Profile-legacy.b2ff967c.js} +1 -1
- package/alist-web/assets/{Profile.33671ffe.js → Profile.5ddab9f2.js} +1 -1
- package/alist-web/assets/ResponsiveGrid-legacy.26c50421.js +1 -0
- package/alist-web/assets/{ResponsiveGrid.04e247e9.js → ResponsiveGrid.a8ef36b9.js} +1 -1
- package/alist-web/assets/{S3-legacy.fb41a1b8.js → S3-legacy.62387b8e.js} +1 -1
- package/alist-web/assets/{S3.135ba8ad.js → S3.d58d82f5.js} +1 -1
- package/alist-web/assets/{SettingItem-legacy.51bf5808.js → SettingItem-legacy.434fc01f.js} +1 -1
- package/alist-web/assets/{SettingItem.d9757149.js → SettingItem.e3e93238.js} +1 -1
- package/alist-web/assets/{Storages-legacy.6fe86e3a.js → Storages-legacy.c8c85437.js} +1 -1
- package/alist-web/assets/{Storages.22e89c36.js → Storages.c8aa56c5.js} +1 -1
- package/alist-web/assets/{Tasks-legacy.bcf4e457.js → Tasks-legacy.71eeb831.js} +1 -1
- package/alist-web/assets/{Tasks.f607862a.js → Tasks.a6e3b1c8.js} +1 -1
- package/alist-web/assets/{Upload-legacy.cb936202.js → Upload-legacy.02e5198e.js} +1 -1
- package/alist-web/assets/{Upload-legacy.7dd2be21.js → Upload-legacy.bfe63038.js} +1 -1
- package/alist-web/assets/{Upload.d35bb47b.js → Upload.42f49d82.js} +1 -1
- package/alist-web/assets/Upload.73d9bb5f.js +1 -0
- package/alist-web/assets/Users-legacy.e7985152.js +1 -0
- package/alist-web/assets/{Users.7eb39296.js → Users.f66892fc.js} +1 -1
- package/alist-web/assets/{Wether-legacy.66b7b0d3.js → Wether-legacy.d0956749.js} +1 -1
- package/alist-web/assets/{Wether.f17d6a97.js → Wether.8a05f999.js} +1 -1
- package/alist-web/assets/{aliyun_office-legacy.7e1c4ff6.js → aliyun_office-legacy.24261e1a.js} +1 -1
- package/alist-web/assets/{aliyun_office.627eb2ac.js → aliyun_office.1fdba9c9.js} +1 -1
- package/alist-web/assets/{aliyun_video-legacy.dfd303c5.js → aliyun_video-legacy.f70aedd2.js} +1 -1
- package/alist-web/assets/{aliyun_video.681fb5ee.js → aliyun_video.ac65f8dc.js} +1 -1
- package/alist-web/assets/{asciinema-legacy.554330ec.js → asciinema-legacy.12c69213.js} +1 -1
- package/alist-web/assets/{asciinema.a6e925e9.js → asciinema.40312582.js} +1 -1
- package/alist-web/assets/{audio-legacy.d6ef56f6.js → audio-legacy.b7fd7635.js} +1 -1
- package/alist-web/assets/{audio.0cad5cce.js → audio.c44e6fbf.js} +1 -1
- package/alist-web/assets/{backup-restore-legacy.f4c8daf0.js → backup-restore-legacy.5fa545c8.js} +1 -1
- package/alist-web/assets/{backup-restore.db700ca0.js → backup-restore.c236599d.js} +1 -1
- package/alist-web/assets/entry-legacy.7af3675d.js +1 -0
- package/alist-web/assets/entry-legacy.c6e3ee6f.js +1 -0
- package/alist-web/assets/entry.8b118df9.js +9 -0
- package/alist-web/assets/entry.f7c5bc9e.js +5 -0
- package/alist-web/assets/{helper-legacy.646eb2d9.js → helper-legacy.628706d4.js} +1 -1
- package/alist-web/assets/{helper.d54883e3.js → helper.b9cc6b8e.js} +1 -1
- package/alist-web/assets/{hls-legacy.9e0f7edb.js → hls-legacy.5de4cc7e.js} +7 -7
- package/alist-web/assets/{hls.1623c369.js → hls.35474569.js} +1 -1
- package/alist-web/assets/{html-legacy.fa26963f.js → html-legacy.b684ae31.js} +1 -1
- package/alist-web/assets/{html.8b79f6ca.js → html.94f79f48.js} +1 -1
- package/alist-web/assets/{icon-legacy.2d7c0a16.js → icon-legacy.d23aa70f.js} +1 -1
- package/alist-web/assets/{icon.94f94d81.js → icon.3be36f76.js} +3 -3
- package/alist-web/assets/{image-legacy.236a9cca.js → image-legacy.c33664c4.js} +1 -1
- package/alist-web/assets/{image.82ca8574.js → image.4ca2e490.js} +1 -1
- package/alist-web/assets/{index-legacy.840e3d82.js → index-legacy.1159bd68.js} +1 -1
- package/alist-web/assets/{index-legacy.efef9df2.js → index-legacy.20004795.js} +1 -1
- package/alist-web/assets/{index-legacy.0bd3a7f2.js → index-legacy.56429d46.js} +1 -1
- package/alist-web/assets/{index-legacy.a7c40fe3.js → index-legacy.700115ce.js} +4 -4
- package/alist-web/assets/index-legacy.7aba107c.js +1 -0
- package/alist-web/assets/{index-legacy.61172c95.js → index-legacy.8ef32e28.js} +1 -1
- package/alist-web/assets/{index-legacy.fb7fb711.js → index-legacy.a5798ce8.js} +1 -1
- package/alist-web/assets/{index-legacy.91fe7355.js → index-legacy.b820f693.js} +1 -1
- package/alist-web/assets/{index-legacy.40b50240.js → index-legacy.f807ff76.js} +1 -1
- package/alist-web/assets/{index.7409b67a.js → index.17befc27.js} +1 -1
- package/alist-web/assets/{index.afa471fc.js → index.4e746469.js} +1 -1
- package/alist-web/assets/{index.0adfc44b.js → index.6a851756.js} +1 -1
- package/alist-web/assets/{index.72e3f724.js → index.7b37ac3e.js} +1 -1
- package/alist-web/assets/{index.26f5b473.js → index.7f73cfca.js} +1 -1
- package/alist-web/assets/{index.c15f7469.js → index.b9404cdc.js} +1 -1
- package/alist-web/assets/{index.952b63b2.js → index.e0a3345f.js} +1 -1
- package/alist-web/assets/{index.dcae211e.js → index.e86a9d96.js} +1 -1
- package/alist-web/assets/{index.fae3cea4.js → index.f27bc3a3.js} +48 -48
- package/alist-web/assets/{indexes-legacy.2c89d2d8.js → indexes-legacy.c0a7de92.js} +1 -1
- package/alist-web/assets/{indexes.9cb6f537.js → indexes.a5ed9461.js} +2 -2
- package/alist-web/assets/{ipa-legacy.7a49e0e2.js → ipa-legacy.79da7f5e.js} +1 -1
- package/alist-web/assets/{ipa.97543f5f.js → ipa.d3534733.js} +1 -1
- package/alist-web/assets/{markdown-legacy.164943d8.js → markdown-legacy.06eecfab.js} +1 -1
- package/alist-web/assets/{markdown.3a932f53.js → markdown.98083d2f.js} +1 -1
- package/alist-web/assets/{markdown_with_word_wrap-legacy.5e032546.js → markdown_with_word_wrap-legacy.db40475c.js} +1 -1
- package/alist-web/assets/{markdown_with_word_wrap.0efe2540.js → markdown_with_word_wrap.01a053ec.js} +1 -1
- package/alist-web/assets/offline_download-legacy.8eefa027.js +1 -0
- package/alist-web/assets/{offline_download.940ca54b.js → offline_download.cb36ca7f.js} +1 -1
- package/alist-web/assets/{plist-legacy.c76fc720.js → plist-legacy.38fc4f6e.js} +1 -1
- package/alist-web/assets/plist.9ceca224.js +1 -0
- package/alist-web/assets/{polyfills-legacy.5f28c7ae.js → polyfills-legacy.7ea5ffba.js} +1 -1
- package/alist-web/assets/{text-editor-legacy.6e126724.js → text-editor-legacy.c08cc307.js} +1 -1
- package/alist-web/assets/{text-editor.45600bb2.js → text-editor.b6dbae2b.js} +3 -3
- package/alist-web/assets/{url-legacy.e95c5b8b.js → url-legacy.11f4f29a.js} +1 -1
- package/alist-web/assets/url.4723617b.js +1 -0
- package/alist-web/assets/{useTitle-legacy.e942225f.js → useTitle-legacy.1ab50c72.js} +1 -1
- package/alist-web/assets/{useTitle.630c0b7f.js → useTitle.c1b8fc88.js} +1 -1
- package/alist-web/assets/{video-legacy.5198eeb8.js → video-legacy.34f028da.js} +7 -7
- package/alist-web/assets/{video.afae2b68.js → video.2736f6ce.js} +1 -1
- package/alist-web/assets/{video360-legacy.227ed7df.js → video360-legacy.0da2ad24.js} +1 -1
- package/alist-web/assets/{video360.c8385eb2.js → video360.5f4a14b9.js} +1 -1
- package/alist-web/assets/{video_box-legacy.d60b6928.js → video_box-legacy.24a54504.js} +1 -1
- package/alist-web/assets/{video_box.bfb0d4a5.js → video_box.ea9d6184.js} +3 -3
- package/alist-web/index.html +11 -9
- package/alist-web/static/manifest.json +1 -1
- package/alist-web/static/pdf.js/web/viewer.mjs +1 -0
- package/css/alist_wallpaper.css +7 -7
- package/package.json +1 -1
- package/alist-web/assets/Common-legacy.5144e9c0.js +0 -1
- package/alist-web/assets/Common.6eff9060.js +0 -1
- package/alist-web/assets/Copy.d1980101.js +0 -1
- package/alist-web/assets/DeletePopover-legacy.1906395c.js +0 -1
- package/alist-web/assets/File-legacy.889dd355.js +0 -1
- package/alist-web/assets/File.23490613.js +0 -1
- package/alist-web/assets/Grid-legacy.a63ef469.js +0 -1
- package/alist-web/assets/Grid.7759c684.js +0 -1
- package/alist-web/assets/List.249d43e3.js +0 -1
- package/alist-web/assets/ResponsiveGrid-legacy.d58d4dfe.js +0 -1
- package/alist-web/assets/Upload.4c54bcbf.js +0 -1
- package/alist-web/assets/Users-legacy.b992a339.js +0 -1
- package/alist-web/assets/entry-legacy.01f22349.js +0 -1
- package/alist-web/assets/entry-legacy.31390e6c.js +0 -1
- package/alist-web/assets/entry-legacy.5119e4e8.js +0 -1
- package/alist-web/assets/entry-legacy.d3b909f7.js +0 -1
- package/alist-web/assets/entry-legacy.e017de3e.js +0 -1
- package/alist-web/assets/entry-legacy.eec15c4b.js +0 -1
- package/alist-web/assets/entry-legacy.fa23a37d.js +0 -1
- package/alist-web/assets/entry.2eaf5bb3.js +0 -5
- package/alist-web/assets/entry.371138c7.js +0 -7
- package/alist-web/assets/entry.5c41c532.js +0 -5
- package/alist-web/assets/entry.6cce3889.js +0 -5
- package/alist-web/assets/entry.8acdb7f9.js +0 -9
- package/alist-web/assets/entry.abb9e6ed.js +0 -5
- package/alist-web/assets/entry.e83ea613.js +0 -6
- package/alist-web/assets/index-legacy.d72e643a.js +0 -1
- package/alist-web/assets/offline_download-legacy.11c4744c.js +0 -1
- package/alist-web/assets/plist.3c9cbb1a.js +0 -1
- package/alist-web/assets/url.f7914d75.js +0 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{co as s}from"./index.f27bc3a3.js";const r="Backup",a="Restore",i="Start backup",n="Finish backup",d="[ {{item}} ] Backup was successful",l="[ {{item}} ] Backup failed",c="No file selected",_="Start restore",p="Finish restore",u="[ {{item}} ] Restore was successful",h="[ {{item}} ] Restore failed",m="Override",f="Leave empty if you don't need encryption",g="Encryption password",y="Wrong encryption password",k={backup:r,restore:a,start_backup:i,finish_backup:n,success_backup_item:d,failed_backup_item:l,no_file:c,start_restore:_,finish_restore:p,success_restore_item:u,failed_restore_item:h,override:m,encrypt_password_placeholder:f,encrypt_password:g,wrong_encrypt_password:y},w={download_concurrency:"Download concurrency","download_concurrency-tips":"Need to enable proxy",download_part_size:"Download part size","download_part_size-tips":"Need to enable proxy. Unit: KB",paths:"Paths",protect_same_name:"Protect same name","protect_same_name-tips":"Protects same-name files from Delete or Rename",writable:"Writable"},b={internal_upload:"Internal upload",order_by:"Order by",order_bys:{created_at:"Created at",name:"Name",size:"Size",updated_at:"Updated at"},order_direction:"Order direction",order_directions:{ASC:"ASC",DESC:"DESC"},rapid_upload:"Rapid upload",refresh_token:"Refresh token",root_folder_id:"Root folder id"},v={client_id:"Client id","client_id-tips":"Keep it empty if you don't have one",client_secret:"Client secret","client_secret-tips":"Keep it empty if you don't have one",drive_type:"Drive type",drive_types:{backup:"Backup",default:"Default",resource:"Resource"},internal_upload:"Internal upload","internal_upload-tips":"If you are using Aliyun ECS is located in Beijing, you can turn it on to boost the upload speed",livp_download_format:"Livp download format",livp_download_formats:{jpeg:"Jpeg",mov:"Mov"},oauth_token_url:"Oauth token url",order_by:"Order by",order_bys:{created_at:"Created at",name:"Name",size:"Size",updated_at:"Updated at"},order_direction:"Order direction",order_directions:{ASC:"ASC",DESC:"DESC"},rapid_upload:"Rapid upload","rapid_upload-tips":"If you enable this option, the file will be uploaded to the server first, so the progress will be incorrect",refresh_token:"Refresh token",remove_way:"Remove way",remove_ways:{delete:"Delete",trash:"Trash"},root_folder_id:"Root folder id"},S={order_by:"Order by",order_bys:{created_at:"Created at",name:"Name",size:"Size",updated_at:"Updated at"},order_direction:"Order direction",order_directions:{ASC:"ASC",DESC:"DESC"},refresh_token:"Refresh token",root_folder_id:"Root folder id",share_id:"Share id",share_pwd:"Share pwd"},x={client_id:"Client id",client_secret:"Client secret",custom_crack_ua:"Custom crack ua",custom_upload_part_size:"Custom upload part size","custom_upload_part_size-tips":"0 for auto",download_api:"Download api",download_apis:{crack:"Crack",crack_video:"Crack video",official:"Official"},low_bandwith_upload_mode:"Low bandwith upload mode",only_list_video_file:"Only list video file",order_by:"Order by",order_bys:{name:"Name",size:"Size",time:"Time"},order_direction:"Order direction",order_directions:{asc:"Asc",desc:"Desc"},refresh_token:"Refresh token",root_folder_path:"Root folder path",upload_api:"Upload api",upload_thread:"Upload thread","upload_thread-tips":"1<=thread<=32"},P={album_id:"Album id",cookie:"Cookie",delete_origin:"Delete origin",show_type:"Show type",show_types:{root:"Root",root_only_album:"Root only album",root_only_file:"Root only file"},upload_thread:"Upload thread","upload_thread-tips":"1<=thread<=32"},C={BDUSS:"BDUSS",pwd:"Pwd",root_folder_path:"Root folder path",surl:"Surl"},R={bbsid:"Bbsid",cookie:"Cookie",password:"Password",root_folder_id:"Root folder id",user_name:"User name"},A={address:"Address",cookie:"Cookie",custom_ua:"Custom ua",enable_thumb_and_folder_size:"Enable thumb and folder size",password:"Password",root_folder_path:"Root folder path",username:"Username"},T={directory_name_encryption:"Directory name encryption",directory_name_encryptions:{false:"False",true:"True"},encrypted_suffix:"Encrypted suffix","encrypted_suffix-tips":"for advanced user only! encrypted files will have this suffix",filename_encoding:"Filename encoding","filename_encoding-tips":"for advanced user only!",filename_encodings:{base32:"Base32",base32768:"Base32768",base64:"Base64"},filename_encryption:"Filename encryption",filename_encryptions:{obfuscate:"Obfuscate",off:"Off",standard:"Standard"},password:"Password","password-tips":"the main password",remote_path:"Remote path","remote_path-tips":"This is where the encrypted data stores",salt:"Salt","salt-tips":"If you don't know what is salt, treat it as a second password. Optional but recommended",show_hidden:"Show hidden","show_hidden-tips":"show hidden directories and files",thumbnail:"Thumbnail","thumbnail-tips":"enable thumbnail which pre-generated under .thumbnails folder"},D={access_key_id:"Access key id",add_filename_to_disposition:"Add filename to disposition","add_filename_to_disposition-tips":"Add filename to Content-Disposition header.",bucket:"Bucket",custom_host:"Custom host",enable_custom_host_presign:"Enable custom host presign",endpoint:"Endpoint",force_path_style:"Force path style",list_object_version:"List object version",list_object_versions:{v1:"V1",v2:"V2"},placeholder:"Placeholder",region:"Region",remove_bucket:"Remove bucket","remove_bucket-tips":"Remove bucket name from path when using custom host.",root_folder_path:"Root folder path",secret_access_key:"Secret access key",session_token:"Session token",sign_url_expire:"Sign url expire"},U={cookie:"Cookie",download_api:"Download api",download_apis:{get_download_info:"Get download info",get_file_url:"Get file url"},root_folder_id:"Root folder id",upload_thread:"Upload thread"},z={cookie:"Cookie",root_folder_path:"Root folder path",share_ids:"Share ids"},O={client_id:"Client id","client_id-tips":"Keep it empty if you don't have one",client_secret:"Client secret","client_secret-tips":"Keep it empty if you don't have one",oauth_token_url:"Oauth token url",refresh_token:"Refresh token",root_folder_path:"Root folder path"},F={address:"Address",encoding:"Encoding",password:"Password",root_folder_path:"Root folder path",username:"Username"},L={client_id:"Client id",client_secret:"Client secret",page_size:"Page size","page_size-tips":"list api per page size of FebBox driver",root_folder_id:"Root folder id",sort_rule:"Sort rule",sort_rules:{ext_asc:"Ext asc",ext_desc:"Ext desc",name_asc:"Name asc",name_desc:"Name desc",size_asc:"Size asc",size_desc:"Size desc",update_asc:"Update asc",update_desc:"Update desc"},user_ip:"User ip","user_ip-tips":"user ip address for download link which can speed up the download"},B={ip:"Ip",password:"Password",root_folder_id:"Root folder id",username:"Username"},E={chunk_size:"Chunk size","chunk_size-tips":"chunk size while uploading (unit: MB)",client_id:"Client id",client_secret:"Client secret",order_by:"Order by","order_by-tips":"such as: folder,name,modifiedTime",order_direction:"Order direction",order_directions:{asc:"Asc",desc:"Desc"},refresh_token:"Refresh token",root_folder_id:"Root folder id"},q={client_id:"Client id",client_secret:"Client secret",refresh_token:"Refresh token",root_folder_id:"Root folder id",show_archive:"Show archive"},M={app_id:"App id",app_secret:"App secret",app_version:"App version",refresh_token:"Refresh token","refresh_token-tips":"login type is refresh_token,this is required",root_folder_path:"Root folder path",upload_thread:"Upload thread","upload_thread-tips":"1 <= thread <= 32"},N={ip:"Ip",password:"Password",root_folder_id:"Root folder id",username:"Username"},I={address:"Address",password:"Password",root_folder_path:"Root folder path",username:"Username"},V={account:"Account",baseUrl:"BaseUrl","baseUrl-tips":"basic URL for file operation",cookie:"Cookie","cookie-tips":"about 15 days valid, ignore if shareUrl is used",password:"Password",repair_file_info:"Repair file info","repair_file_info-tips":"To use webdav, you need to enable it",root_folder_id:"Root folder id",shareUrl:"ShareUrl","shareUrl-tips":"used to get the sharing page",share_password:"Share password",type:"Type",types:{account:"Account",cookie:"Cookie",url:"Url"},user_agent:"User agent"},G={app_id:"App id","app_id-tips":"app id",app_secret:"App secret","app_secret-tips":"app secret",external_mode:"External mode","external_mode-tips":"external mode",root_folder_path:"Root folder path",tenant_url_prefix:"Tenant url prefix","tenant_url_prefix-tips":"tenant url prefix"},j={host:"Host","host-tips":"You can change it to your local area network",root_folder_path:"Root folder path",share_id:"Share id","share_id-tips":"The part after the last / in the shared link",share_pwd:"Share pwd","share_pwd-tips":"The password of the shared link"},W={mkdir_perm:"Mkdir perm",recycle_bin_path:"Recycle bin path","recycle_bin_path-tips":"path to recycle bin, delete permanently if empty or keep 'delete permanently'",root_folder_path:"Root folder path",show_hidden:"Show hidden","show_hidden-tips":"show hidden directories and files",thumb_cache_folder:"Thumb cache folder",thumb_concurrency:"Thumb concurrency","thumb_concurrency-tips":"Number of concurrent thumbnail generation goroutines. This controls how many thumbnails can be generated in parallel.",thumbnail:"Thumbnail","thumbnail-tips":"enable thumbnail",video_thumb_pos:"Video thumb pos","video_thumb_pos-tips":"The position of the video thumbnail. If the value is a number (integer ot floating point), it represents the time in seconds. If the value ends with '%', it represents the percentage of the video duration."},Q={access_token:"Access token",order_by:"Order by",order_bys:{size:"Size",title:"Title",updated_at:"Updated at"},order_desc:"Order desc",project_id:"Project id",root_folder_id:"Root folder id"},H={email:"Email",password:"Password",two_fa_code:"Two fa code","two_fa_code-tips":"2FA 6-digit code, filling in the 2FA code alone will not support reloading driver",two_fa_secret:"Two fa secret","two_fa_secret-tips":"2FA secret"},Y={access_token:"Access token",endpoint:"Endpoint",root_folder_path:"Root folder path"},X={cloud_id:"Cloud id",device_info:"Device info",order_by:"Order by",order_bys:{filename:"Filename",filesize:"Filesize",lastOpTime:"LastOpTime"},order_direction:"Order direction",order_directions:{asc:"Asc",desc:"Desc"},password:"Password",phone:"Phone",root_folder_id:"Root folder id",sms_code:"Sms code","sms_code-tips":"input 'send' send sms ",upload_thread:"Upload thread","upload_thread-tips":"1<=thread<=32"},K={cookie:"Cookie",song_limit:"Song limit","song_limit-tips":"only get 200 songs by default"},$={chunk_size:"Chunk size",client_id:"Client id",client_secret:"Client secret",custom_host:"Custom host","custom_host-tips":"Custom host for onedrive download link",is_sharepoint:"Is sharepoint",redirect_uri:"Redirect uri",refresh_token:"Refresh token",region:"Region",regions:{cn:"Cn",de:"De",global:"Global",us:"Us"},root_folder_path:"Root folder path",site_id:"Site id"},Z={chunk_size:"Chunk size",client_id:"Client id",client_secret:"Client secret",custom_host:"Custom host","custom_host-tips":"Custom host for onedrive download link",email:"Email",region:"Region",regions:{cn:"Cn",de:"De",global:"Global",us:"Us"},root_folder_path:"Root folder path",tenant_id:"Tenant id"},J={captcha_token:"Captcha token",device_id:"Device id",disable_media_link:"Disable media link",password:"Password",platform:"Platform",platforms:{android:"Android",pc:"Pc",web:"Web"},refresh_token:"Refresh token",root_folder_id:"Root folder id",username:"Username"},ee={device_id:"Device id",platform:"Platform",platforms:{android:"Android",pc:"Pc",web:"Web"},root_folder_id:"Root folder id",share_id:"Share id",share_pwd:"Share pwd",use_transcoding_address:"Use transcoding address"},oe={cookie:"Cookie",order_by:"Order by",order_bys:{file_name:"File name",file_type:"File type",none:"None",updated_at:"Updated at"},order_direction:"Order direction",order_directions:{asc:"Asc",desc:"Desc"},root_folder_id:"Root folder id"},te={device_id:"Device id",query_token:"Query token","query_token-tips":"don't edit'",refresh_token:"Refresh token",root_folder_id:"Root folder id"},se={cdn:"Cdn","cdn-tips":"If you enable this option, the download speed can be increased, but there will be some performance loss",cookie:"Cookie","cookie-tips":"Cookie can be used on multiple clients at the same time",password:"Password",phone:"Phone",root_folder_id:"Root folder id"},re={access_key_id:"Access key id",add_filename_to_disposition:"Add filename to disposition","add_filename_to_disposition-tips":"Add filename to Content-Disposition header.",bucket:"Bucket",custom_host:"Custom host",enable_custom_host_presign:"Enable custom host presign",endpoint:"Endpoint",force_path_style:"Force path style",list_object_version:"List object version",list_object_versions:{v1:"V1",v2:"V2"},placeholder:"Placeholder",region:"Region",remove_bucket:"Remove bucket","remove_bucket-tips":"Remove bucket name from path when using custom host.",root_folder_path:"Root folder path",secret_access_key:"Secret access key",session_token:"Session token",sign_url_expire:"Sign url expire"},ae={address:"Address",ignore_symlink_error:"Ignore symlink error",passphrase:"Passphrase",password:"Password",private_key:"Private key",root_folder_path:"Root folder path",username:"Username"},ie={address:"Address",password:"Password",root_folder_path:"Root folder path",share_name:"Share name",username:"Username"},ne={address:"Address",password:"Password",repoId:"RepoId",repoPwd:"RepoPwd",root_folder_path:"Root folder path",token:"Token",username:"Username"},de={cookie:"Cookie",order_by:"Order by",order_bys:{created:"Created",fileName:"FileName",fileSize:"FileSize",updated:"Updated"},order_direction:"Order direction",order_directions:{Asc:"Asc",Desc:"Desc"},project_id:"Project id",region:"Region",regions:{china:"China",international:"International"},root_folder_id:"Root folder id",use_s3_upload_method:"Use s3 upload method"},le={cookie:"Cookie",download_api:"Download api",download_apis:{crack:"Crack",official:"Official"},order_by:"Order by",order_bys:{name:"Name",size:"Size",time:"Time"},order_direction:"Order direction",order_directions:{asc:"Asc",desc:"Desc"},root_folder_path:"Root folder path"},ce={captcha_token:"Captcha token",credit_key:"Credit key","credit_key-tips":"credit key,used for login",device_id:"Device id",password:"Password",root_folder_id:"Root folder id",username:"Username"},_e={captcha_token:"Captcha token",password:"Password",remove_way:"Remove way",remove_ways:{delete:"Delete",trash:"Trash"},root_folder_id:"Root folder id",safe_password:"Safe password",use_video_url:"Use video url",username:"Username"},pe={algorithms:"Algorithms","algorithms-tips":"sign type is algorithms,this is required",captcha_sign:"Captcha sign","captcha_sign-tips":"sign type is captcha_sign,this is required",captcha_token:"Captcha token",client_id:"Client id",client_secret:"Client secret",client_version:"Client version",device_id:"Device id",download_user_agent:"Download user agent",login_type:"Login type",login_types:{refresh_token:"Refresh token",user:"User"},package_name:"Package name",password:"Password","password-tips":"login type is user,this is required",refresh_token:"Refresh token","refresh_token-tips":"login type is refresh_token,this is required",remove_way:"Remove way",remove_ways:{delete:"Delete",trash:"Trash"},root_folder_id:"Root folder id",safe_password:"Safe password","safe_password-tips":"super safe password",sign_type:"Sign type",sign_types:{algorithms:"Algorithms",captcha_sign:"Captcha sign"},timestamp:"Timestamp","timestamp-tips":"sign type is captcha_sign,this is required",use_video_url:"Use video url",user_agent:"User agent",username:"Username","username-tips":"login type is user,this is required"},ue={algorithms:"Algorithms","algorithms-tips":"sign type is algorithms,this is required",captcha_sign:"Captcha sign","captcha_sign-tips":"sign type is captcha_sign,this is required",captcha_token:"Captcha token",client_id:"Client id",client_secret:"Client secret",client_version:"Client version",credit_key:"Credit key","credit_key-tips":"credit key,used for login",device_id:"Device id",download_user_agent:"Download user agent",login_type:"Login type",login_types:{refresh_token:"Refresh token",user:"User"},package_name:"Package name",password:"Password","password-tips":"login type is user,this is required",refresh_token:"Refresh token","refresh_token-tips":"login type is refresh_token,this is required",root_folder_id:"Root folder id",sign_type:"Sign type",sign_types:{algorithms:"Algorithms",captcha_sign:"Captcha sign"},timestamp:"Timestamp","timestamp-tips":"sign type is captcha_sign,this is required",use_video_url:"Use video url",user_agent:"User agent",username:"Username","username-tips":"login type is user,this is required"},he={captcha_token:"Captcha token",password:"Password",root_folder_id:"Root folder id",use_video_url:"Use video url",username:"Username"},me={algorithms:"Algorithms","algorithms-tips":"sign type is algorithms,this is required",captcha_sign:"Captcha sign","captcha_sign-tips":"sign type is captcha_sign,this is required",captcha_token:"Captcha token",client_id:"Client id",client_secret:"Client secret",client_version:"Client version",device_id:"Device id",download_user_agent:"Download user agent",login_type:"Login type",login_types:{refresh_token:"Refresh token",user:"User"},package_name:"Package name",password:"Password","password-tips":"login type is user,this is required",refresh_token:"Refresh token","refresh_token-tips":"login type is refresh_token,this is required",root_folder_id:"Root folder id",sign_type:"Sign type",sign_types:{algorithms:"Algorithms",captcha_sign:"Captcha sign"},timestamp:"Timestamp","timestamp-tips":"sign type is captcha_sign,this is required",use_video_url:"Use video url",user_agent:"User agent",username:"Username","username-tips":"login type is user,this is required"},fe={AUSHELLPORTAL:"AUSHELLPORTAL",apikey:"Apikey",root_folder_id:"Root folder id"},ge={cookie:"Cookie",order_by:"Order by",order_bys:{file_name:"File name",file_type:"File type",none:"None",updated_at:"Updated at"},order_direction:"Order direction",order_directions:{asc:"Asc",desc:"Desc"},root_folder_id:"Root folder id"},ye={device_id:"Device id",query_token:"Query token","query_token-tips":"don't edit'",refresh_token:"Refresh token",root_folder_id:"Root folder id"},ke={anti_theft_chain_token:"Anti theft chain token",bucket:"Bucket",endpoint:"Endpoint",operator_name:"Operator name",operator_password:"Operator password",root_folder_path:"Root folder path",sign_url_expire:"Sign url expire"},we={head_size:"Head size","head_size-tips":"Use head method to get file size, but it may be failed.",url_structure:"Url structure","url_structure-tips":`structure:FolderName:
|
|
2
|
+
[FileName:][FileSize:][Modified:]Url`,writable:"Writable"},be={cookie:"Cookie",order_by:"Order by",order_bys:{CreatTime:"CreatTime",Name:"Name",Size:"Size",UpdateTime:"UpdateTime"},order_direction:"Order direction",order_directions:{Asc:"Asc",Desc:"Desc"},root_folder_id:"Root folder id",tf_uid:"Tf uid"},ve={max_file_size:"Max file size",min_file_size:"Min file size",num_file:"Num file",num_folder:"Num folder",root_folder_path:"Root folder path"},Se={address:"Address",password:"Password",root_folder_path:"Root folder path",tls_insecure_skip_verify:"Tls insecure skip verify",username:"Username",vendor:"Vendor",vendors:{other:"Other",sharepoint:"Sharepoint"}},xe={cookies:"Cookies",order_by:"Order by",order_bys:{name:"Name",size:"Size",updated_at:"Updated at"},order_direction:"Order direction",order_directions:{asc:"Asc",desc:"Desc"},root_folder_id:"Root folder id",upload_thread:"Upload thread","upload_thread-tips":"4<=thread<=32"},Pe={access_token:"Access token",family_id:"Family id","family_id-tips":"Keep it empty if you want to use your personal drive",refresh_token:"Refresh token",root_folder_id:"Root folder id",sort_rule:"Sort rule",sort_rules:{name_asc:"Name asc",name_desc:"Name desc",size_asc:"Size asc",size_desc:"Size desc",time_asc:"Time asc",time_desc:"Time desc"}},Ce={client_id:"Client id",client_secret:"Client secret",order_by:"Order by",order_bys:{created:"Created",modified:"Modified",name:"Name",path:"Path",size:"Size"},order_direction:"Order direction",order_directions:{asc:"Asc",desc:"Desc"},refresh_token:"Refresh token",root_folder_path:"Root folder path"},Re={"115 Cloud":{},"115 Open":{},"115 Share":{},"123Pan":{},"123PanLink":{},"123PanShare":{},"139Yun":{},"189Cloud":{alert:"You can try to use 189PC driver if this driver does not work."},"189CloudPC":{},"AList V2":{},"AList V3":{},Alias:{},Aliyundrive:{alert:`There may be an infinite loop bug in this driver.
|
|
3
|
+
Deprecated, no longer maintained and will be removed in a future version.
|
|
4
|
+
We recommend using the official driver AliyundriveOpen.`},AliyundriveOpen:{},AliyundriveShare:{},"Azure Blob Storage":{},BaiduNetdisk:{},BaiduPhoto:{},BaiduShare:{},ChaoXingGroupDrive:{},Cloudreve:{},"Cloudreve V4":{},Crypt:{},Doge:{},Doubao:{},DoubaoShare:{},Dropbox:{},FTP:{},FebBox:{},FeijiPan:{},"GitHub API":{},"GitHub Releases":{},GoogleDrive:{},GooglePhoto:{},HalalCloud:{},ILanZou:{},"IPFS API":{},KodBox:{},Lanzou:{},Lark:{},LenovoNasShare:{},Local:{},MediaTrack:{},Mega_nz:{},Misskey:{},MoPan:{alert:"This network disk may store your password in clear text. Please set your password carefully"},NeteaseMusic:{},Onedrive:{},"Onedrive Sharelink":{},OnedriveAPP:{},PikPak:{},PikPakShare:{},Quark:{},QuarkTV:{},Quqi:{},S3:{},SFTP:{},SMB:{},Seafile:{},Teambition:{},Terabox:{},Thunder:{},ThunderBrowser:{},ThunderBrowserExpert:{},ThunderExpert:{},ThunderX:{},ThunderXExpert:{},Trainbit:{},UC:{},UCTV:{},USS:{},UrlTree:{},VTencent:{},Virtual:{},WebDav:{},WeiYun:{},WoPan:{},YandexDisk:{}},Ae={"115 Cloud":"115 Cloud","115 Open":"115 Open","115 Share":"115 Share","123Pan":"123Pan","123PanLink":"123PanLink","123PanShare":"123PanShare","139Yun":"139Yun","189Cloud":"189Cloud","189CloudPC":"189CloudPC","AList V2":"AList V2","AList V3":"AList V3",Alias:"Alias",Aliyundrive:"Aliyundrive",AliyundriveOpen:"AliyundriveOpen",AliyundriveShare:"AliyundriveShare","Azure Blob Storage":"Azure Blob Storage",BaiduNetdisk:"BaiduNetdisk",BaiduPhoto:"BaiduPhoto",BaiduShare:"BaiduShare",ChaoXingGroupDrive:"ChaoXingGroupDrive",Cloudreve:"Cloudreve","Cloudreve V4":"Cloudreve V4",Crypt:"Crypt",Doge:"Doge",Doubao:"Doubao",DoubaoShare:"DoubaoShare",Dropbox:"Dropbox",FTP:"FTP",FebBox:"FebBox",FeijiPan:"FeijiPan","GitHub API":"GitHub API","GitHub Releases":"GitHub Releases",GoogleDrive:"GoogleDrive",GooglePhoto:"GooglePhoto",HalalCloud:"HalalCloud",ILanZou:"ILanZou","IPFS API":"IPFS API",KodBox:"KodBox",Lanzou:"Lanzou",Lark:"Lark",LenovoNasShare:"LenovoNasShare",Local:"Local",MediaTrack:"MediaTrack",Mega_nz:"Mega nz",Misskey:"Misskey",MoPan:"MoPan",NeteaseMusic:"NeteaseMusic",Onedrive:"Onedrive","Onedrive Sharelink":"Onedrive Sharelink",OnedriveAPP:"OnedriveAPP",PikPak:"PikPak",PikPakShare:"PikPakShare",Quark:"Quark",QuarkTV:"QuarkTV",Quqi:"Quqi",S3:"S3",SFTP:"SFTP",SMB:"SMB",Seafile:"Seafile",Teambition:"Teambition",Terabox:"Terabox",Thunder:"Thunder",ThunderBrowser:"ThunderBrowser",ThunderBrowserExpert:"ThunderBrowserExpert",ThunderExpert:"ThunderExpert",ThunderX:"ThunderX",ThunderXExpert:"ThunderXExpert",Trainbit:"Trainbit",UC:"UC",UCTV:"UCTV",USS:"USS",UrlTree:"UrlTree",VTencent:"VTencent",Virtual:"Virtual",WebDav:"WebDav",WeiYun:"WeiYun",WoPan:"WoPan",YandexDisk:"YandexDisk"},Te={"115 Cloud":{cookie:"Cookie","cookie-tips":"one of QR code token and cookie required",limit_rate:"Limit rate","limit_rate-tips":"limit all api request rate ([limit]r/1s)",page_size:"Page size","page_size-tips":"list api per page size of 115 driver",qrcode_source:"Qrcode source","qrcode_source-tips":"select the QR code device, default linux",qrcode_sources:{alipaymini:"Alipaymini",android:"Android",ios:"Ios",qandroid:"Qandroid",tv:"Tv",web:"Web",wechatmini:"Wechatmini"},qrcode_token:"Qrcode token","qrcode_token-tips":"one of QR code token and cookie required",root_folder_id:"Root folder id"},"115 Open":{limit_rate:"Limit rate","limit_rate-tips":"limit all api request rate ([limit]r/1s)",order_by:"Order by",order_bys:{file_name:"File name",file_size:"File size",file_type:"File type",user_utime:"User utime"},order_direction:"Order direction",order_directions:{asc:"Asc",desc:"Desc"},refresh_token:"Refresh token",root_folder_id:"Root folder id"},"115 Share":{cookie:"Cookie","cookie-tips":"one of QR code token and cookie required",limit_rate:"Limit rate","limit_rate-tips":"limit all api request rate (1r/[limit_rate]s)",page_size:"Page size","page_size-tips":"list api per page size of 115 driver",qrcode_source:"Qrcode source","qrcode_source-tips":"select the QR code device, default linux",qrcode_sources:{alipaymini:"Alipaymini",android:"Android",ios:"Ios",qandroid:"Qandroid",tv:"Tv",web:"Web",wechatmini:"Wechatmini"},qrcode_token:"Qrcode token","qrcode_token-tips":"one of QR code token and cookie required",receive_code:"Receive code","receive_code-tips":"receive code of 115 share link",root_folder_id:"Root folder id",share_code:"Share code","share_code-tips":"share code of 115 share link"},"123Pan":{password:"Password",root_folder_id:"Root folder id",username:"Username"},"123PanLink":{origin_urls:"Origin urls","origin_urls-tips":`structure:FolderName:
|
|
5
|
+
[FileSize:][Modified:]Url`,private_key:"Private key",uid:"Uid",valid_duration:"Valid duration","valid_duration-tips":"minutes"},"123PanShare":{accesstoken:"Accesstoken",root_folder_id:"Root folder id",sharekey:"Sharekey",sharepassword:"Sharepassword"},"139Yun":{authorization:"Authorization",cloud_id:"Cloud id",custom_upload_part_size:"Custom upload part size","custom_upload_part_size-tips":"0 for auto",report_real_size:"Report real size","report_real_size-tips":"Enable to report the real file size during upload",root_folder_id:"Root folder id",type:"Type",types:{family:"Family",group:"Group",personal:"Personal",personal_new:"Personal new"},use_large_thumbnail:"Use large thumbnail","use_large_thumbnail-tips":"Enable to use large thumbnail for images"},"189Cloud":{cookie:"Cookie","cookie-tips":"Fill in the cookie if need captcha",password:"Password",root_folder_id:"Root folder id",username:"Username"},"189CloudPC":{family_id:"Family id",family_transfer:"Family transfer",no_use_ocr:"No use ocr",order_by:"Order by",order_bys:{filename:"Filename",filesize:"Filesize",lastOpTime:"LastOpTime"},order_direction:"Order direction",order_directions:{asc:"Asc",desc:"Desc"},password:"Password",rapid_upload:"Rapid upload",root_folder_id:"Root folder id",type:"Type",types:{family:"Family",personal:"Personal"},upload_method:"Upload method",upload_methods:{old:"Old",rapid:"Rapid",stream:"Stream"},upload_thread:"Upload thread","upload_thread-tips":"1<=thread<=32",username:"Username",validate_code:"Validate code"},"AList V2":{access_token:"Access token",password:"Password",root_folder_path:"Root folder path",url:"Url"},"AList V3":{forward_archive_requests:"Forward archive requests",meta_password:"Meta password",pass_ua_to_upsteam:"Pass ua to upsteam",password:"Password",root_folder_path:"Root folder path",token:"Token",url:"Url",username:"Username"},Alias:w,Aliyundrive:b,AliyundriveOpen:v,AliyundriveShare:S,"Azure Blob Storage":{access_key:"Access key","access_key-tips":"The access key for Azure Storage, used for authentication. https://learn.microsoft.com/azure/storage/common/storage-account-keys-manage",container_name:"Container name","container_name-tips":"The name of the container in Azure Storage (created in the Azure portal). https://learn.microsoft.com/azure/storage/blobs/blob-containers-portal",endpoint:"Endpoint","endpoint-tips":"e.g. https://accountname.blob.core.windows.net/. The full endpoint URL for Azure Storage, including the unique storage account name (3 ~ 24 numbers and lowercase letters only).",sign_url_expire:"Sign url expire","sign_url_expire-tips":"The expiration time for SAS URLs, in hours."},BaiduNetdisk:x,BaiduPhoto:P,BaiduShare:C,ChaoXingGroupDrive:R,Cloudreve:A,"Cloudreve V4":{access_token:"Access token",address:"Address",custom_ua:"Custom ua",enable_folder_size:"Enable folder size",enable_thumb:"Enable thumb",enable_version_upload:"Enable version upload",order_by:"Order by",order_bys:{created_at:"Created at",name:"Name",size:"Size",updated_at:"Updated at"},order_direction:"Order direction",order_directions:{asc:"Asc",desc:"Desc"},password:"Password",refresh_token:"Refresh token",root_folder_path:"Root folder path",username:"Username"},Crypt:T,Doge:D,Doubao:U,DoubaoShare:z,Dropbox:O,FTP:F,FebBox:L,FeijiPan:B,"GitHub API":{author_email:"Author email",author_name:"Author name",committer_email:"Committer email",committer_name:"Committer name",copy_commit_message:"Copy commit message",delete_commit_message:"Delete commit message",gh_proxy:"Gh proxy","gh_proxy-tips":"GitHub proxy, e.g. https://ghproxy.net/raw.githubusercontent.com or https://gh-proxy.com/raw.githubusercontent.com",gpg_key_passphrase:"Gpg key passphrase",gpg_private_key:"Gpg private key",mkdir_commit_message:"Mkdir commit message",move_commit_message:"Move commit message",owner:"Owner",put_commit_message:"Put commit message",ref:"Ref","ref-tips":"A branch, a tag or a commit SHA, main branch by default.",rename_commit_message:"Rename commit message",repo:"Repo",root_folder_path:"Root folder path",token:"Token"},"GitHub Releases":{gh_proxy:"Gh proxy","gh_proxy-tips":"GitHub proxy, e.g. https://ghproxy.net/github.com or https://gh-proxy.com/github.com ",repo_structure:"Repo structure","repo_structure-tips":"structure:[path:]org/repo",root_folder_id:"Root folder id",show_all_version:"Show all version","show_all_version-tips":"show all versions",show_readme:"Show readme","show_readme-tips":"show README\u3001LICENSE file",token:"Token","token-tips":"GitHub token, if you want to access private repositories or increase the rate limit"},GoogleDrive:E,GooglePhoto:q,HalalCloud:M,ILanZou:N,"IPFS API":{endpoint:"Endpoint",gateway:"Gateway",mode:"Mode",modes:{ipfs:"Ipfs",ipns:"Ipns",mfs:"Mfs"},root_folder_path:"Root folder path"},KodBox:I,Lanzou:V,Lark:G,LenovoNasShare:j,Local:W,MediaTrack:Q,Mega_nz:H,Misskey:Y,MoPan:X,NeteaseMusic:K,Onedrive:$,"Onedrive Sharelink":{password:"Password",root_folder_path:"Root folder path",url:"Url"},OnedriveAPP:Z,PikPak:J,PikPakShare:ee,Quark:oe,QuarkTV:te,Quqi:se,S3:re,SFTP:ae,SMB:ie,Seafile:ne,Teambition:de,Terabox:le,Thunder:ce,ThunderBrowser:_e,ThunderBrowserExpert:pe,ThunderExpert:ue,ThunderX:he,ThunderXExpert:me,Trainbit:fe,UC:ge,UCTV:ye,USS:ke,UrlTree:we,VTencent:be,Virtual:ve,WebDav:Se,WeiYun:xe,WoPan:Pe,YandexDisk:Ce,config:Re,drivers:Ae},De="Refresh",Ue="Add",ze="Edit",Oe="Save",Fe="Update",Le="Copied",Be="Deleted successfully",Ee="Saved successfully",qe="Updated successfully",Me="Choose",Ne="Confirm",Ie="Cancel",Ve="Are you sure you want to delete [{{name}}]?",Ge="Operations",je="Yes",We="No",Qe="Clear",He="Select folder",Ye="Select folder or input path",Xe="Disable",Ke="Enable",$e="OK",Ze="Back",Je="Have an account?",eo="Go to login",oo="Close",to="Not currently supported",so="Please enter",ro="Name",ao={refresh:De,add:Ue,edit:ze,delete:"Delete",save:Oe,update:Fe,copied:Le,delete_success:Be,save_success:Ee,update_success:qe,choose:Me,confirm:Ne,cancel:Ie,delete_confirm:Ve,operations:Ge,yes:je,no:We,clear:Qe,choose_folder:He,choose_or_input_path:Ye,disable:Xe,enable:Ke,ok:$e,back:Ze,have_account:Je,go_login:eo,close:oo,no_support_now:to,empty_input:so,name:ro},io={name:"Name",size:"Size",modified:"Modified"},no={download:"Download",failed_load_img:"Failed to load image",open_with:"Open with ...",play_with:"Play with ...",install:"Install",installing:"Installing","tr-install":"TrollStore","tr-installing":"TrollStore Installing",open_in_new_window:"Open in new window",auto_next:"Auto next"},lo={list:"List View",grid:"Grid View",image:"Image View"},co="No images in the current folder",_o="Load more",po="No more",uo="Please input password",ho={more:"More",refresh:"Refresh",toggle_theme:"Toggle Theme",switch_lang:"Switch Language",toggle_markdown_toc:"Toggle Outline",toggle_checkbox:"Toggle Checkbox",rename:"Rename",input_new_name:"Input new name",move:"Move",copy:"Copy",choose_dst_folder:"Select destination folder",delete:"Delete","delete-tips":"Are you sure to delete the selected object?",decompress:"Decompress","decompress-pass":"Extraction password: ","decompress-cache-full":"Cache full into a temp-file","decompress-put-into-new":"Decompress into a new sub-folder",extract:"Extract to",archive:{input_password:"Please input extraction password",incorrect_password:"Incorrect password",extract_header:"Extract {{path}} to..."},copy_link:"Copy link",preview_page:"Preview page",down_link:"Download link",encode_down_link:"Encode download link",mkdir:"New Folder",input_dir_name:"Input folder name",new_file:"New File",input_filename:"Input filename",cancel_select:"Cancel Select",offline_download:"Offline download","offline_download-tips":"One URL per line",delete_policy:{delete_on_upload_succeed:"Delete on upload succeed",delete_on_upload_failed:"Delete on upload failed",delete_never:"Never delete",delete_always:"Always delete"},download:"Download",batch_download:"Batch Download",package_download:"Package Download",package_download_disabled:"Package download is disabled",send_aria2:"Send to Aria2",aria2_not_set:"Please set aria2 rpc url",send_aria2_success:"Send to aria2 successfully","pre_package_download-tips":"Using streamsaver in the browser instead of the server for package download requires the corresponding storage to support cors, and the unsupported storage will fail.","package_download-tips":"Downloading, please wait don't close the page",playlist_download:"Playlist Download",upload:"Upload",local_settings:"Local Settings",recursive_move:"Recursive Move","recursive_move_directory-tips":"Are you sure you want to move all files in the current folder and its subfolders to the specified folder?",remove_empty_directory:"Remove Empty Folder","remove_empty_directory-tips":"Are you sure to delete all its empty subfolders?",batch_rename:"Batch Rename",regex_rename:"Regex Rename",sequential_renaming:"Sequential Rename",regex_rename_preview:"Changed Files",regex_rename_preview_old_name:"Old Name",regex_rename_preview_new_name:"New Name",regular_rename:"Regular expression file renaming. Input the source file name regular expression on the first line, and input the new file name regular expression on the second line.",sequential_renaming_desc:"The new file name will have a numerical starting value appended to it, and it will be displayed sequentially by adding 1 to the starting value. Enter the new file name on the first line and the starting value on the second line."},mo={add_as_task:"Add as task",try_rapid:"Try rapid","upload-tips":"Drag files here to upload, or click:",release:"Release to upload",no_files_drag:"No files were dragged in.",upload_files:"Choose Files",upload_folder:"Choose Folder",pending:"Pending",uploading:"Uploading",backending:"Uploading in the backend",success:"Success",error:"Error",back:"Back to Upload",clear_done:"Clear Done"},fo={aria2_rpc_url:"Aria2 RPC URL",aria2_rpc_secret:"Aria2 RPC secret",aria2_dir:"Aria2 download directory",show_folder_in_image_view:"Show folder in image view",show_folder_in_image_view_options:{top:"Top",bottom:"Bottom",none:"None"},global_default_layout:"Global default layout",global_default_layout_options:{list:"List View",grid:"Grid View",image:"Image View"},position_of_header_navbar:"Position of header & nav bar",position_of_header_navbar_options:{static:"Normal",sticky:"Stick to top of page",only_navbar_sticky:"Only nav bar sticky"},show_sidebar:"Show sidebar",show_sidebar_options:{none:"None",visible:"Visible"},list_item_filename_overflow:"List item filename overflow",list_item_filename_overflow_options:{ellipsis:"Ellipsis",scrollable:"Scrollable",multi_line:"Multi-line"},open_item_on_checkbox:"Open item on Checkbox",open_item_on_checkbox_options:{direct:"Direct",dblclick:"Double click",disable_while_checked:"Disable while checked"}},go={current_status:"Current Status",initializing:"Initializing",fetching_struct:"Fetching folder structure",fetching_struct_failed:"Failed to fetch folder structure",downloading:"Downloading files, don't close or refresh the page",failed:"Failed to package download",success:"Download completed"},yo={powered_by:"Powered by AList",manage:"Manage"},ko={search:"Search",no_result:"No result yet",scopes:{all:"All",folder:"Folder",file:"File"}},wo="Failed fetching settings: ",bo="Failed get current user: ",vo={cancel_if_exists:"Cancel if file exists",overwrite_existing:"Overwrite existing files",skip_existing:"Skip existing files"},So={obj:io,preview:no,layouts:lo,no_images:co,load_more:_o,no_more:po,input_password:uo,toolbar:ho,upload:mo,local_settings:fo,package_download:go,footer:yo,search:ko,fetching_settings_failed:wo,get_current_user_failed:bo,"Loading storage, please wait":"Loading storage, please wait",conflict_policy:vo},xo="Search index",Po="Current indexes",Co="Build indexes",Ro="Rebuild indexes",Ao="Paths to update",To="Max depth",Do="Update indexes",Uo="Object count",zo="Last done time",Oo="Unknown",Fo="Stop",Lo="Clear",Bo="Error",Eo={search_index:xo,current:Po,build:Co,rebuild:Ro,paths_to_update:Ao,max_depth:To,update:Do,obj_count:Uo,last_done_time:zo,unknown:Oo,stop:Fo,clear:Lo,error:Bo},qo="Login to the",Mo="Remember me",No="Forget password?",Io="https://alist.nn.ci/faq/howto.html#how-to-get-password-if-i-forget-it",Vo="Clear",Go="Login",jo="Browse as a guest",Wo="Login successfully",Qo={login_to:qo,"username-tips":"Input your username","password-tips":"Input your password","otp-tips":"Input your OTP Code",remember:Mo,forget:No,forget_url:Io,clear:Vo,login:Go,use_guest:jo,success:Wo},Ho={dashboard:"Dashboard",settings:"Settings",site:"Site",style:"Style",preview:"Preview",global:"Global",other:"Other",users:"Users",storages:"Storages",metas:"Metas",profile:"Profile",about:"About",tasks:"Tasks",upload:"Upload",copy:"Copy",decompress:"Decompress","backup-restore":"Backup & Restore",home:"Home",indexes:"Indexes",sso:"Single Sign-on",docs:"Documentation",offline_download:"Offline Download",ldap:"LDAP",s3:"S3",ftp:"FTP",traffic:"Traffic"},Yo="AList Manage",Xo="You are not admin user, please login with admin account.",Ko="Logout successfully",$o="Send",Zo="Receive",Jo="Received messages",et={sidemenu:Ho,title:Yo,not_admin:Xo,logout_success:Ko,send:$o,receive:Zo,received_msgs:Jo,"add_storage-tips":"You may need to fill in some information in the newly opened tab.","messenger-tips":"You may need to fill in some information on this tab as prompted."},ot="Path",tt="Password",st="Write",rt="Hide",at="Readme",it="Render a markdown at the bottom, support content or link",nt="Header",dt="Render a markdown at the top, support content or link",lt="Apply to sub folder",ct="One regular expression per line",_t={path:ot,password:tt,write:st,hide:rt,readme:at,readme_help:it,header:nt,header_help:dt,apply_sub:lt,hide_help:ct},pt="Allow indexed",ut="Allow mounted",ht="Announcement",mt="Aria2 secret",ft="Aria2 uri",gt="Audio autoplay",yt="Audio cover",kt="Audio types",wt="Auto update index",bt="Copy task threads num",vt="Customize body",St="Customize head",xt="Decompress download task threads num",Pt="Decompress upload task threads num",Ct="Default page size",Rt="External previews",At="Favicon",Tt="Filename char mapping",Dt="Filter readme scripts",Ut="Forward direct link params",zt="Ftp implicit tls",Ot="Ftp mandatory tls",Ft="Ftp pasv port map",Lt="Ftp proxy user agent",Bt="Ftp public host",Et="Ftp tls private key path",qt="Ftp tls public cert path",Mt="Hide files",Nt="Home container",It={hope_container:"Hope container",max_980px:"Max 980px"},Vt="Home icon",Gt="Iframe previews",jt="Ignore direct link params",Wt="Ignore paths",Qt="Image types",Ht="Index progress",Yt="Ldap default dir",Xt="Ldap default permission",Kt="Ldap login enabled",$t="Ldap login tips",Zt="Ldap manager dn",Jt="Ldap manager password",es="Ldap server",os="Ldap user search base",ts="Ldap user search filter",ss="Link expiration",rs="Logo",as="Main color",is="Max client download speed",ns="Max client upload speed",ds="Max index depth",ls="Max server download speed",cs="Max server upload speed",_s="Ocr api",ps="Offline download task threads num",us="Offline download transfer task threads num",hs="Package download",ms="Pagination type",fs={all:"All",auto_load_more:"Auto load more",load_more:"Load more",pagination:"Pagination"},gs="Preview archives by default",ys="Privacy regs",ks="Proxy ignore headers",ws="Proxy types",bs="Qbittorrent seedtime",vs="Qbittorrent url",Ss="Readme autorender",xs="Robots txt",Ps="S3 access key id",Cs="S3 buckets",Rs="S3 secret access key",As="Search index",Ts={bleve:"Bleve",database:"Database",database_non_full_text:"Database non full text",meilisearch:"Meilisearch",none:"None"},Ds="Settings layout",Us={list:"List",responsive:"Responsive"},zs="Sign all",Os="Site title",Fs="Sso application name",Ls="Sso auto register",Bs="Sso client id",Es="Sso client secret",qs="Sso compatibility mode",Ms="Sso default dir",Ns="Sso default permission",Is="Sso endpoint name",Vs="Sso extra scopes",Gs="Sso jwt public key",js="Sso login enabled",Ws="Sso login platform",Qs={Casdoor:"Casdoor",Dingtalk:"Dingtalk",Github:"Github",Google:"Google",Microsoft:"Microsoft",OIDC:"OIDC"},Hs="Sso oidc username key",Ys="Sso organization name",Xs="Text types",Ks="Token",$s="Transmission seedtime",Zs="Transmission uri",Js="Upload task threads num",er="Version",or="Video autoplay",tr="Video types",sr="Webauthn login enabled",rr={allow_indexed:pt,allow_mounted:ut,announcement:ht,aria2_secret:mt,aria2_uri:ft,audio_autoplay:gt,audio_cover:yt,audio_types:kt,auto_update_index:wt,copy_task_threads_num:bt,customize_body:vt,customize_head:St,decompress_download_task_threads_num:xt,decompress_upload_task_threads_num:Pt,default_page_size:Ct,external_previews:Rt,favicon:At,filename_char_mapping:Tt,filter_readme_scripts:Dt,forward_direct_link_params:Ut,ftp_implicit_tls:zt,ftp_mandatory_tls:Ot,ftp_pasv_port_map:Ft,ftp_proxy_user_agent:Lt,ftp_public_host:Bt,ftp_tls_private_key_path:Et,ftp_tls_public_cert_path:qt,hide_files:Mt,home_container:Nt,home_containers:It,home_icon:Vt,iframe_previews:Gt,ignore_direct_link_params:jt,ignore_paths:Wt,"ignore_paths-tips":"one path per line",image_types:Qt,index_progress:Ht,ldap_default_dir:Yt,ldap_default_permission:Xt,ldap_login_enabled:Kt,ldap_login_tips:$t,ldap_manager_dn:Zt,ldap_manager_password:Jt,ldap_server:es,ldap_user_search_base:os,ldap_user_search_filter:ts,link_expiration:ss,logo:rs,main_color:as,max_client_download_speed:is,max_client_upload_speed:ns,max_index_depth:ds,"max_index_depth-tips":"max depth of index",max_server_download_speed:ls,max_server_upload_speed:cs,ocr_api:_s,offline_download_task_threads_num:ps,offline_download_transfer_task_threads_num:us,package_download:hs,pagination_type:ms,pagination_types:fs,preview_archives_by_default:gs,privacy_regs:ys,proxy_ignore_headers:ks,proxy_types:ws,qbittorrent_seedtime:bs,qbittorrent_url:vs,readme_autorender:Ss,robots_txt:xs,s3_access_key_id:Ps,s3_buckets:Cs,s3_secret_access_key:Rs,search_index:As,search_indexs:Ts,settings_layout:Ds,settings_layouts:Us,sign_all:zs,site_title:Os,sso_application_name:Fs,sso_auto_register:Ls,sso_client_id:Bs,sso_client_secret:Es,sso_compatibility_mode:qs,sso_default_dir:Ms,sso_default_permission:Ns,sso_endpoint_name:Is,sso_extra_scopes:Vs,sso_jwt_public_key:Gs,sso_login_enabled:js,sso_login_platform:Ws,sso_login_platforms:Qs,sso_oidc_username_key:Hs,sso_organization_name:Ys,text_types:Xs,token:Ks,transmission_seedtime:$s,transmission_uri:Zs,upload_task_threads_num:Js,version:er,video_autoplay:or,video_types:tr,webauthn_login_enabled:sr},ar="Aria2",ir="Aria2 Version:",nr="Set aria2",dr="Copy Token",lr="Reset Token",cr="Reset Token Successfully",_r="Unknown type",pr="Set qBittorrent",ur="qBittorrent",hr="Transmission",mr="Set Transmission",fr="Set 115",gr="PikPak",yr="Set PikPak",kr="Thunder",wr="Set Thunder",br={115:"115",aria2:ar,aria2_version:ir,set_aria2:nr,copy_token:dr,reset_token:lr,reset_token_success:cr,unknown_type:_r,set_qbit:pr,qbittorrent:ur,transmission:hr,set_transmission:mr,set_115:fr,pikpak:gr,set_pikpak:yr,thunder:kr,set_thunder:wr},vr={mount_path:"Mount Path","mount_path-tips":"The path you want to mount to, it is unique and cannot be repeated",driver:"Driver",order:"Order","order-tips":"Use to sort",status:"Status",remark:"Remark",cache_expiration:"Cache Expiration","cache_expiration-tips":"The cache expiration time for this storage(minutes)",down_proxy_url:"Download proxy URL",web_proxy:"Web proxy",webdav_policy:"WebDAV policy",proxy_range:"Proxy Range","proxy_range-tips":"Need to enable proxy",webdav_policys:{"302_redirect":"302 redirect",use_proxy_url:"use proxy URL",native_proxy:"native proxy"},order_by:"Order by",order_bys:{name:"Name",size:"Size",modified:"Modified"},order_direction:"Order direction",order_directions:{asc:"Ascending",desc:"Descending"},extract_folder:"Extract folder",extract_folders:{front:"Extract to front",back:"Extract to back"},enable_sign:"Enable sign",disable_index:"Disable index"},Sr={start_load_success:"Start loading",load_all:"Reload All",filter_by_driver:"Filter by driver",table_layout:"Table layout"},xr={common:vr,other:Sr},Pr="Download file to local machine",Cr="Transfer downloaded file to corresponding storage",Rr="Upload file to corresponding storage",Ar="Copy file from a storage to another storage",Tr="Download and decompress an archive file",Dr="Upload extracted file into target storage",Ur="Completed",zr="Running",Or="Clear Succeeded",Fr="Retry",Lr="Retry Failed",Br={0:"Pending",1:"Running",2:"Succeeded",3:"Canceling",4:"Canceled",5:"Errored",6:"Failing",7:"Failed",8:"WaitingRetry",9:"BeforeRetry"},Er="Retry Selected",qr="Cancel Selected",Mr="Delete Selected",Nr="Filter",Ir="Expand",Vr="Fold",Gr="Expand All",jr="Fold All",Wr={name:"Name",creator:"Creator",state:"State",progress:"Progress",speed:"Speed",operation:"Operation",copy:{src:"Source Path",dst:"Destination Path"},upload:{path:"Path"},offline_download:{url:"URL",path:"Destination Path",transfer_src:"Source Path",transfer_src_local:"Source Path (Local)",transfer_dst:"Destination Path"},decompress:{src:"Source Path",dst:"Destination Path",inner:"Inner Path",password:"Extraction Password"},time_elapsed:"Time Elapsed",status:"Status",err:"Error"},Qr="Show only my tasks",Hr={offline_download:Pr,offline_download_transfer:Cr,upload:Rr,copy:Ar,decompress:Tr,decompress_upload:Dr,done:Ur,undone:zr,clear_succeeded:Or,retry:Fr,retry_failed:Lr,state:Br,retry_selected:Er,cancel_selected:qr,delete_selected:Mr,filter:Nr,expand:Ir,fold:Vr,expand_all:Gr,fold_all:jr,attr:Wr,show_only_mine:Qr},Yr={see_hides:"Can see hides",access_without_password:"Access without password",offline_download:"Add offline download tasks",write:"Make dir or upload",rename:"Rename",move:"Move",copy:"Copy",delete:"Delete",webdav_read:"Webdav read",webdav_manage:"Webdav manage",ftp_read:"FTP read",ftp_manage:"FTP manage",read_archives:"Read archives",decompress:"Decompress"},Xr="Username",Kr="Password",$r="Base path",Zr="Role",Jr="Permission",ea="Disabled",oa="Available",ta="Update Profile",sa="Update profile successfully, please re-login.",ra="Change Username",aa="Change Password",ia="Confirm Password",na="The password you input twice is not the same",da="Enable 2FA",la="Cancel 2FA",ca="Cancel 2FA successfully",_a="Scan the QR code to save the secret key",pa="Or input the secret key manually",ua="Input the code of your 2FA app",ha="Verify",ma="So you cannot modify anything in the manage page.",fa="Single sign-on Login",ga="Connect Single sign-on Platform",ya="Disconnect Single sign-on Platform",ka="WebAuthn",wa="Add a Webauthn credential",ba="Webauthn credential successfully added!",va="Webauthn is not supported in your browser or you are in an unsafe origin",Sa={heading:"SSH keys",add_heading:"Add new SSH key",title:"Title",key:"Key",fingerprint:"Fingerprint",last_used:"Last used time",operation:"Operation"},xa={permissions:Yr,username:Xr,password:Kr,base_path:$r,role:Zr,permission:Jr,disabled:ea,available:oa,update_profile:ta,update_profile_success:sa,change_username:ra,change_password:aa,"change_password-tips":"Keep the password empty if you don't want to change it",confirm_password:ia,"confirm_password-tips":"Repeat the password that you just input",confirm_password_not_same:na,enable_2fa:da,cancel_2fa:la,cancel_2fa_success:ca,"2fa_already_enabled":"2FA is already enabled",scan_qr:_a,or_manual:pa,input_code:ua,verify:ha,"guest-tips":"You are currently visiting as a guest.",modify_nothing:ma,sso_login:fa,connect_sso:ga,disconnect_sso:ya,webauthn:ka,add_webauthn:wa,add_webauthn_success:ba,webauthn_not_supported:va,ssh_keys:Sa},o=Object.assign({"./br.json":k,"./drivers.json":Te,"./global.json":ao,"./home.json":So,"./index.json":s,"./indexes.json":Eo,"./login.json":Qo,"./manage.json":et,"./metas.json":_t,"./settings.json":rr,"./settings_other.json":br,"./storages.json":xr,"./tasks.json":Hr,"./users.json":xa}),Pa={};for(const e in o){const t=e.split("/")[1].split(".")[0];Pa[t]=o[e]}export{Pa as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function e(){return e="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var i=t(e,n);if(i){var o=Object.getOwnPropertyDescriptor(i,n);return o.get?o.get.call(arguments.length<3?e:r):o.value}},e.apply(this,arguments)}function t(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}function r(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}function i(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function a(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);l=!0);}catch(s){a=!0,i=s}finally{try{l||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){a=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(a)throw o}}}}function d(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}System.register(["./index-legacy.a7c40fe3.js","./index-legacy.0bd3a7f2.js","./Folder-legacy.a4550db5.js"],(function(t){"use strict";var i,s,u,d,v,y,b,g,E,S,w,x,A,k,O,T;return{setters:[function(e){i=e.cE,s=e.ch,u=e.m,d=e.l,v=e.x,y=e.aA,b=e.aN,g=e.dv,E=e.aM,S=e.aO,w=e.dr,x=e.e,A=e.b0,k=e.a1},function(e){O=e.c},function(e){T=e.b}],execute:function(){t({a:function(){var e=function(){return!(g||"disabled"===d.select_with_mouse||E())},t=T({id:1}).show;return{isMouseSupported:e,registerSelectContainer:function(){v((function(){if(e()){var t=new Y({selectionAreaClass:"viselect-selection-area",startAreas:[".viselect-container"],boundaries:[".viselect-container"],selectables:[".viselect-item"]});t.on("start",(function(e){var n=e.event;t.clearSelection(!0,!0),t.select(".viselect-item.selected",!0),n.ctrlKey||n.metaKey||(S(!1),t.clearSelection())})),t.on("move",(function(e){var t,n=e.store.changed,r=n.added,i=n.removed,o=f(r);try{for(o.s();!(t=o.n()).done;){var l=t.value;w(Number(l.getAttribute("data-index")),!0)}}catch(u){o.e(u)}finally{o.f()}var a,s=f(i);try{for(s.s();!(a=s.n()).done;){var c=a.value;w(Number(c.getAttribute("data-index")),!1)}}catch(u){s.e(u)}finally{s.f()}})),x((function(){return t.destroy()}))}}))},captureContentMenu:function(e){if(e.preventDefault(),b()&&!A()){var n=e.target.closest(".viselect-item"),r=Number(null==n?void 0:n.getAttribute("data-index"));if(Number.isNaN(r)||!k.objs[r].selected)return;e.stopPropagation(),t(e,{props:k.obj})}}}},u:function(){var e=h(u("direct"===d.open_item_on_checkbox),2),t=e[0],n=e[1],r=O("Alt",{preventDefault:!1}),i=O("Meta",{preventDefault:!1}),o=O("Control",{preventDefault:!1});return v((function(){switch(d.open_item_on_checkbox){case"direct":n(!0);break;case"disable_while_checked":n(!b());break;case"with_ctrl":n(y?i():o());break;case"with_alt":n(r())}})),t}});/*! @viselect/vanilla v3.5.0 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */var j=Object.defineProperty,M=function(e,t,n){return function(e,t,n){t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=_(t)?t+"":t,n),n},P=function(){function e(){p(this,e),M(this,"_listeners",new Map),M(this,"on",this.addEventListener),M(this,"off",this.removeEventListener),M(this,"emit",this.dispatchEvent)}return m(e,[{key:"addEventListener",value:function(e,t){var n,r=null!==(n=this._listeners.get(e))&&void 0!==n?n:new Set;return this._listeners.set(e,r),r.add(t),this}},{key:"removeEventListener",value:function(e,t){var n;return null==(n=this._listeners.get(e))||n.delete(t),this}},{key:"dispatchEvent",value:function(e){for(var t,n=!0,r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var l,a=f(null!==(t=this._listeners.get(e))&&void 0!==t?t:[]);try{for(a.s();!(l=a.n()).done;){var s=l.value;n=!1!==s.apply(void 0,i)&&n}}catch(c){a.e(c)}finally{a.f()}return n}},{key:"unbindAllListeners",value:function(){this._listeners.clear()}}]),e}(),L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return"number"==typeof e?e+t:e};function C(e,t,n){var r=e.style;if("object"==_(t))for(var i=0,o=Object.entries(t);i<o.length;i++){var l=h(o[i],2),a=l[0],s=l[1];void 0!==s&&(r[a]=L(s))}else void 0!==n&&(r[t]=L(n))}var R=function(e){return function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t instanceof HTMLCollection||t instanceof NodeList?t=Array.from(t):Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);var o,l=f(t);try{for(l.s();!(o=l.n()).done;){var a=o.value;if(a){var s,u=f(n);try{for(u.s();!(s=u.n()).done;){var h=s.value;a[e](h,r,c({capture:!1},i))}}catch(d){u.e(d)}finally{u.f()}}}}catch(d){l.e(d)}finally{l.f()}return[t,n,r,i]}},D=R("addEventListener"),I=R("removeEventListener"),N=function(e){var t,n,r=null!==(t=null==(n=e.touches)?void 0:n[0])&&void 0!==t?t:e;return{x:r.clientX,y:r.clientY,target:r.target}};function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"touch";switch(n){case"center":var r=t.left+t.width/2,i=t.top+t.height/2;return r>=e.left&&r<=e.right&&i>=e.top&&i<=e.bottom;case"cover":return t.left>=e.left&&t.top>=e.top&&t.right<=e.right&&t.bottom<=e.bottom;case"touch":return e.right>=t.left&&e.left<=t.right&&e.bottom>=t.top&&e.top<=t.bottom}}function K(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n=Array.isArray(e)?e:[e],r=[],i=0,o=n.length;i<o;i++){var l=n[i];"string"==typeof l?r=r.concat(Array.from(t.querySelectorAll(l))):l instanceof Element&&r.push(l)}return r}function F(e,t){var n,r=f(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if("number"==typeof i)return e.button===i;if("object"==_(i)){var o=i.button===e.button,l=i.modifiers.every((function(t){switch(t){case"alt":return e.altKey;case"ctrl":return e.ctrlKey||e.metaKey;case"shift":return e.shiftKey}}));return o&&l}}}catch(a){r.e(a)}finally{r.f()}return!1}var H=Math.abs,q=Math.max,W=Math.min,X=Math.ceil,Y=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)}(s,t);var i=r(s);function s(e){var t,n,r,l,u,h;p(this,s),t=i.call(this),M(o(t),"_options"),M(o(t),"_selection",{stored:[],selected:[],touched:[],changed:{added:[],removed:[]}}),M(o(t),"_area"),M(o(t),"_clippingElement"),M(o(t),"_targetElement"),M(o(t),"_targetRect"),M(o(t),"_selectables",[]),M(o(t),"_latestElement"),M(o(t),"_areaRect",new DOMRect),M(o(t),"_areaLocation",{y1:0,x2:0,y2:0,x1:0}),M(o(t),"_singleClick",!0),M(o(t),"_frame"),M(o(t),"_scrollAvailable",!0),M(o(t),"_scrollingActive",!1),M(o(t),"_scrollSpeed",{x:0,y:0}),M(o(t),"_scrollDelta",{x:0,y:0}),M(o(t),"disable",t._bindStartEvents.bind(o(t),!1)),M(o(t),"enable",t._bindStartEvents),t._options=c(c({selectionAreaClass:"selection-area",selectionContainerClass:void 0,selectables:[],document:window.document,startAreas:["html"],boundaries:["html"],container:"body"},e),{},{behaviour:c(c({overlap:"invert",intersect:"touch",triggers:[0]},e.behaviour),{},{startThreshold:null!=(n=e.behaviour)&&n.startThreshold?"number"==typeof e.behaviour.startThreshold?e.behaviour.startThreshold:c({x:10,y:10},e.behaviour.startThreshold):{x:10,y:10},scrolling:c(c({speedDivider:10,manualSpeed:750},null==(r=e.behaviour)?void 0:r.scrolling),{},{startScrollMargins:c({x:0,y:0},null==(u=null==(l=e.behaviour)?void 0:l.scrolling)?void 0:u.startScrollMargins)})}),features:c(c({range:!0,touch:!0},e.features),{},{singleTap:c({allow:!0,intersect:"native"},null==(h=e.features)?void 0:h.singleTap)})});var d,v=f(Object.getOwnPropertyNames(Object.getPrototypeOf(o(t))));try{for(v.s();!(d=v.n()).done;){var y=d.value;"function"==typeof t[y]&&(t[y]=t[y].bind(o(t)))}}catch(E){v.e(E)}finally{v.f()}var m=t._options,_=m.document,b=m.selectionAreaClass,g=m.selectionContainerClass;return t._area=_.createElement("div"),t._clippingElement=_.createElement("div"),t._clippingElement.appendChild(t._area),t._area.classList.add(b),g&&t._clippingElement.classList.add(g),C(t._area,{willChange:"top, left, bottom, right, width, height",top:0,left:0,position:"fixed"}),C(t._clippingElement,{overflow:"hidden",position:"fixed",transform:"translate3d(0, 0, 0)",pointerEvents:"none",zIndex:"1"}),t._frame=function(e){var t,n=-1,r=!1;return{next:function(){for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];t=o,r||(r=!0,n=requestAnimationFrame((function(){e.apply(void 0,a(t)),r=!1})))},cancel:function(){cancelAnimationFrame(n),r=!1}}}((function(e){t._recalculateSelectionAreaRect(),t._updateElementSelection(),t._emitEvent("move",e),t._redrawSelectionArea()})),t.enable(),t}return m(s,[{key:"_bindStartEvents",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this._options,n=t.document,r=t.features,i=e?D:I;i(n,"mousedown",this._onTapStart),r.touch&&i(n,"touchstart",this._onTapStart,{passive:!1})}},{key:"_onTapStart",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=N(e),i=r.x,o=r.y,l=r.target,a=this._options,s=this._options.document,c=l.getBoundingClientRect();if(!(e instanceof MouseEvent)||F(e,a.behaviour.triggers)){var u=K(a.startAreas,a.document),h=K(a.boundaries,a.document);this._targetElement=h.find((function(e){return B(e.getBoundingClientRect(),c)}));var f=e.composedPath();if(this._targetElement&&u.find((function(e){return f.includes(e)}))&&h.find((function(e){return f.includes(e)}))&&(n||!1!==this._emitEvent("beforestart",e))){this._areaLocation={x1:i,y1:o,x2:0,y2:0};var d=null!==(t=s.scrollingElement)&&void 0!==t?t:s.body;this._scrollDelta={x:d.scrollLeft,y:d.scrollTop},this._singleClick=!0,this.clearSelection(!1,!0),D(s,["touchmove","mousemove"],this._delayedTapMove,{passive:!1}),D(s,["mouseup","touchcancel","touchend"],this._onTapStop),D(s,"scroll",this._onScroll)}}}},{key:"_onSingleTap",value:function(e){var t,n=this,r=this._options.features,i=r.singleTap.intersect,o=r.range,l=N(e);if("native"===i)t=l.target;else if("touch"===i){this.resolveSelectables();var s=l.x,c=l.y;t=this._selectables.find((function(e){var t=e.getBoundingClientRect(),n=t.right,r=t.left,i=t.top,o=t.bottom;return s<n&&s>r&&c<o&&c>i}))}if(t){for(this.resolveSelectables();!this._selectables.includes(t);){if(!t.parentElement)return;t=t.parentElement}var u=this._selection.stored;if(this._emitEvent("start",e),e.shiftKey&&o&&this._latestElement){var f=this._latestElement,d=h(4&f.compareDocumentPosition(t)?[t,f]:[f,t],2),v=d[0],p=d[1],y=[].concat(a(this._selectables.filter((function(e){return 4&e.compareDocumentPosition(v)&&2&e.compareDocumentPosition(p)}))),[v,p]);this.select(y),this._latestElement=f}else u.includes(t)&&(1===u.length||e.ctrlKey||u.every((function(e){return n._selection.stored.includes(e)})))?this.deselect(t):(this.select(t),this._latestElement=t);this._emitEvent("stop",e)}}},{key:"_delayedTapMove",value:function(e){var t=this,n=this._options,r=n.container,i=n.document,o=n.behaviour.startThreshold,l=this._areaLocation,a=l.x1,s=l.y1,c=N(e),u=c.x,h=c.y;if("number"==typeof o&&H(u+h-(a+s))>=o||"object"==_(o)&&H(u-a)>=o.x||H(h-s)>=o.y){if(I(i,["mousemove","touchmove"],this._delayedTapMove,{passive:!1}),!1===this._emitEvent("beforedrag",e))return void I(i,["mouseup","touchcancel","touchend"],this._onTapStop);D(i,["mousemove","touchmove"],this._onTapMove,{passive:!1}),C(this._area,"display","block"),K(r,i)[0].appendChild(this._clippingElement),this.resolveSelectables(),this._singleClick=!1,this._targetRect=this._targetElement.getBoundingClientRect(),this._scrollAvailable=this._targetElement.scrollHeight!==this._targetElement.clientHeight||this._targetElement.scrollWidth!==this._targetElement.clientWidth,this._scrollAvailable&&(D(this._targetElement,"wheel",this._manualScroll,{passive:!1}),this._selectables=this._selectables.filter((function(e){return t._targetElement.contains(e)}))),this._setupSelectionArea(),this._emitEvent("start",e),this._onTapMove(e)}this._handleMoveEvent(e)}},{key:"_setupSelectionArea",value:function(){var e=this._clippingElement,t=this._targetElement,n=this._area,r=this._targetRect=t.getBoundingClientRect();this._scrollAvailable?(C(e,{top:r.top,left:r.left,width:r.width,height:r.height}),C(n,{marginTop:-r.top,marginLeft:-r.left})):(C(e,{top:0,left:0,width:"100%",height:"100%"}),C(n,{marginTop:0,marginLeft:0}))}},{key:"_onTapMove",value:function(e){var t=this,n=N(e),r=n.x,i=n.y,o=this._scrollSpeed,l=this._areaLocation,a=this._options,s=this._frame,c=a.behaviour.scrolling.speedDivider,u=this._targetElement;if(l.x2=r,l.y2=i,this._scrollAvailable&&!this._scrollingActive&&(o.y||o.x)){this._scrollingActive=!0;requestAnimationFrame((function n(){if(o.x||o.y){var r=u.scrollTop,i=u.scrollLeft;o.y&&(u.scrollTop+=X(o.y/c),l.y1-=u.scrollTop-r),o.x&&(u.scrollLeft+=X(o.x/c),l.x1-=u.scrollLeft-i),s.next(e),requestAnimationFrame(n)}else t._scrollingActive=!1}))}else s.next(e);this._handleMoveEvent(e)}},{key:"_handleMoveEvent",value:function(e){(this._options.features.touch&&matchMedia("(hover: none), (pointer: coarse)").matches||this._scrollAvailable&&"safari"in window)&&e.preventDefault()}},{key:"_onScroll",value:function(){var e,t=this._scrollDelta,n=this._options.document,r=null!==(e=n.scrollingElement)&&void 0!==e?e:n.body,i=r.scrollTop,o=r.scrollLeft;this._areaLocation.x1+=t.x-o,this._areaLocation.y1+=t.y-i,t.x=o,t.y=i,this._setupSelectionArea(),this._frame.next(null)}},{key:"_manualScroll",value:function(e){var t=this._options.behaviour.scrolling.manualSpeed,n=e.deltaY?e.deltaY>0?1:-1:0,r=e.deltaX?e.deltaX>0?1:-1:0;this._scrollSpeed.y+=n*t,this._scrollSpeed.x+=r*t,this._onTapMove(e),e.preventDefault()}},{key:"_recalculateSelectionAreaRect",value:function(){var e=this._scrollSpeed,t=this._areaLocation,n=this._areaRect,r=this._targetElement,i=this._options,o=r.scrollTop,l=r.scrollHeight,a=r.clientHeight,s=r.scrollLeft,c=r.scrollWidth,u=r.clientWidth,h=this._targetRect,f=t.x1,d=t.y1,v=t.x2,p=t.y2,y=i.behaviour.scrolling.startScrollMargins;v<h.left+y.x?(e.x=s?-H(h.left-v+y.x):0,v=v<h.left?h.left:v):v>h.right-y.x?(e.x=c-s-u?H(h.left+h.width-v-y.x):0,v=v>h.right?h.right:v):e.x=0,p<h.top+y.y?(e.y=o?-H(h.top-p+y.y):0,p=p<h.top?h.top:p):p>h.bottom-y.y?(e.y=l-o-a?H(h.top+h.height-p-y.y):0,p=p>h.bottom?h.bottom:p):e.y=0;var m=W(f,v),_=W(d,p),b=q(f,v),g=q(d,p);n.x=m,n.y=_,n.width=b-m,n.height=g-_}},{key:"_redrawSelectionArea",value:function(){var e=this._areaRect,t=e.x,n=e.y,r=e.width,i=e.height,o=this._area.style;o.left="".concat(t,"px"),o.top="".concat(n,"px"),o.width="".concat(r,"px"),o.height="".concat(i,"px")}},{key:"_onTapStop",value:function(e,t){var n,r=this._options,i=r.document,o=r.features,l=this._singleClick;I(i,["mousemove","touchmove"],this._delayedTapMove),I(i,["touchmove","mousemove"],this._onTapMove),I(i,["mouseup","touchcancel","touchend"],this._onTapStop),I(i,"scroll",this._onScroll),this._keepSelection(),e&&l&&o.singleTap.allow?this._onSingleTap(e):!l&&!t&&(this._updateElementSelection(),this._emitEvent("stop",e)),this._scrollSpeed.x=0,this._scrollSpeed.y=0,I(this._targetElement,"wheel",this._manualScroll,{passive:!0}),this._clippingElement.remove(),null==(n=this._frame)||n.cancel(),C(this._area,"display","none")}},{key:"_updateElementSelection",value:function(){for(var e=this._selectables,t=this._options,n=this._selection,r=this._areaRect,i=n.stored,o=n.selected,l=n.touched,s=t.behaviour,c=s.intersect,u=s.overlap,h="invert"===u,f=[],d=[],v=[],p=0;p<e.length;p++){var y=e[p];if(B(r,y.getBoundingClientRect(),c)){if(o.includes(y))i.includes(y)&&!l.includes(y)&&l.push(y);else{if(h&&i.includes(y)){v.push(y);continue}d.push(y)}f.push(y)}}h&&d.push.apply(d,a(i.filter((function(e){return!o.includes(e)}))));for(var m="keep"===u,_=0;_<o.length;_++){var b=o[_];!f.includes(b)&&(!m||!i.includes(b))&&v.push(b)}n.selected=f,n.changed={added:d,removed:v},this._latestElement=void 0}},{key:"_emitEvent",value:function(e,t){return this.emit(e,{event:t,store:this._selection,selection:this})}},{key:"_keepSelection",value:function(){var e=this._options,t=this._selection,n=t.selected,r=t.changed,i=t.touched,o=t.stored,l=n.filter((function(e){return!o.includes(e)}));switch(e.behaviour.overlap){case"drop":t.stored=[].concat(a(l),a(o.filter((function(e){return!i.includes(e)}))));break;case"invert":t.stored=[].concat(a(l),a(o.filter((function(e){return!r.removed.includes(e)}))));break;case"keep":t.stored=[].concat(a(o),a(n.filter((function(e){return!o.includes(e)}))))}}},{key:"trigger",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._onTapStart(e,t)}},{key:"resolveSelectables",value:function(){this._selectables=K(this._options.selectables,this._options.document)}},{key:"clearSelection",value:function(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this._selection,i=r.selected,o=r.stored,l=r.changed;l.added=[],(e=l.removed).push.apply(e,a(i).concat(a(t?o:[]))),n||(this._emitEvent("move",null),this._emitEvent("stop",null)),this._selection={stored:t?[]:o,selected:[],touched:[],changed:{added:[],removed:[]}}}},{key:"getSelection",value:function(){return this._selection.stored}},{key:"getSelectionArea",value:function(){return this._area}},{key:"cancel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._onTapStop(null,!e)}},{key:"destroy",value:function(){this.cancel(),this.disable(),this._clippingElement.remove(),e(l(s.prototype),"unbindAllListeners",this).call(this)}},{key:"select",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this._selection,i=r.changed,o=r.selected,l=r.stored,s=K(e,this._options.document).filter((function(e){return!o.includes(e)&&!l.includes(e)}));return l.push.apply(l,a(s)),o.push.apply(o,a(s)),(t=i.added).push.apply(t,a(s)),i.removed=[],this._latestElement=void 0,n||(this._emitEvent("move",null),this._emitEvent("stop",null)),s}},{key:"deselect",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this._selection,i=r.selected,o=r.stored,l=r.changed,s=K(e,this._options.document).filter((function(e){return i.includes(e)||o.includes(e)}));s.length&&(this._selection.stored=o.filter((function(e){return!s.includes(e)})),this._selection.selected=i.filter((function(e){return!s.includes(e)})),this._selection.changed.added=[],(t=this._selection.changed.removed).push.apply(t,a(s.filter((function(e){return!l.removed.includes(e)})))),this._latestElement=void 0,n||(this._emitEvent("move",null),this._emitEvent("stop",null)))}}]),s}(P);M(Y,"version","3.5.0");t("I",i(s,{baseStyle:{_before:{content:"",pos:"absolute",top:-10,right:-2,bottom:-10,left:-10}}}))}}}))}();
|
|
1
|
+
!function(){function e(){return e="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,n,r){var i=t(e,n);if(i){var o=Object.getOwnPropertyDescriptor(i,n);return o.get?o.get.call(arguments.length<3?e:r):o.value}},e.apply(this,arguments)}function t(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}function r(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}function i(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function a(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);l=!0);}catch(s){a=!0,i=s}finally{try{l||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){a=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(a)throw o}}}}function d(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}System.register(["./index-legacy.700115ce.js","./index-legacy.56429d46.js","./Folder-legacy.6de85b2c.js"],(function(t){"use strict";var i,s,u,d,v,y,b,g,E,S,w,x,A,k,O,T;return{setters:[function(e){i=e.cz,s=e.ch,u=e.m,d=e.l,v=e.x,y=e.aA,b=e.aN,g=e.dq,E=e.aM,S=e.aO,w=e.dl,x=e.e,A=e.b0,k=e.a1},function(e){O=e.c},function(e){T=e.b}],execute:function(){t({a:function(){var e=function(){return!(g||"disabled"===d.select_with_mouse||E())},t=T({id:1}).show;return{isMouseSupported:e,registerSelectContainer:function(){v((function(){if(e()){var t=new Y({selectionAreaClass:"viselect-selection-area",startAreas:[".viselect-container"],boundaries:[".viselect-container"],selectables:[".viselect-item"]});t.on("start",(function(e){var n=e.event;t.clearSelection(!0,!0),t.select(".viselect-item.selected",!0),n.ctrlKey||n.metaKey||(S(!1),t.clearSelection())})),t.on("move",(function(e){var t,n=e.store.changed,r=n.added,i=n.removed,o=f(r);try{for(o.s();!(t=o.n()).done;){var l=t.value;w(Number(l.getAttribute("data-index")),!0)}}catch(u){o.e(u)}finally{o.f()}var a,s=f(i);try{for(s.s();!(a=s.n()).done;){var c=a.value;w(Number(c.getAttribute("data-index")),!1)}}catch(u){s.e(u)}finally{s.f()}})),x((function(){return t.destroy()}))}}))},captureContentMenu:function(e){if(e.preventDefault(),b()&&!A()){var n=e.target.closest(".viselect-item"),r=Number(null==n?void 0:n.getAttribute("data-index"));if(Number.isNaN(r)||!k.objs[r].selected)return;e.stopPropagation(),t(e,{props:k.obj})}}}},u:function(){var e=h(u("direct"===d.open_item_on_checkbox),2),t=e[0],n=e[1],r=O("Alt",{preventDefault:!1}),i=O("Meta",{preventDefault:!1}),o=O("Control",{preventDefault:!1});return v((function(){switch(d.open_item_on_checkbox){case"direct":n(!0);break;case"disable_while_checked":n(!b());break;case"with_ctrl":n(y?i():o());break;case"with_alt":n(r())}})),t}});/*! @viselect/vanilla v3.5.0 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */var j=Object.defineProperty,M=function(e,t,n){return function(e,t,n){t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=_(t)?t+"":t,n),n},P=function(){function e(){p(this,e),M(this,"_listeners",new Map),M(this,"on",this.addEventListener),M(this,"off",this.removeEventListener),M(this,"emit",this.dispatchEvent)}return m(e,[{key:"addEventListener",value:function(e,t){var n,r=null!==(n=this._listeners.get(e))&&void 0!==n?n:new Set;return this._listeners.set(e,r),r.add(t),this}},{key:"removeEventListener",value:function(e,t){var n;return null==(n=this._listeners.get(e))||n.delete(t),this}},{key:"dispatchEvent",value:function(e){for(var t,n=!0,r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var l,a=f(null!==(t=this._listeners.get(e))&&void 0!==t?t:[]);try{for(a.s();!(l=a.n()).done;){var s=l.value;n=!1!==s.apply(void 0,i)&&n}}catch(c){a.e(c)}finally{a.f()}return n}},{key:"unbindAllListeners",value:function(){this._listeners.clear()}}]),e}(),L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return"number"==typeof e?e+t:e};function C(e,t,n){var r=e.style;if("object"==_(t))for(var i=0,o=Object.entries(t);i<o.length;i++){var l=h(o[i],2),a=l[0],s=l[1];void 0!==s&&(r[a]=L(s))}else void 0!==n&&(r[t]=L(n))}var R=function(e){return function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t instanceof HTMLCollection||t instanceof NodeList?t=Array.from(t):Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);var o,l=f(t);try{for(l.s();!(o=l.n()).done;){var a=o.value;if(a){var s,u=f(n);try{for(u.s();!(s=u.n()).done;){var h=s.value;a[e](h,r,c({capture:!1},i))}}catch(d){u.e(d)}finally{u.f()}}}}catch(d){l.e(d)}finally{l.f()}return[t,n,r,i]}},D=R("addEventListener"),I=R("removeEventListener"),N=function(e){var t,n,r=null!==(t=null==(n=e.touches)?void 0:n[0])&&void 0!==t?t:e;return{x:r.clientX,y:r.clientY,target:r.target}};function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"touch";switch(n){case"center":var r=t.left+t.width/2,i=t.top+t.height/2;return r>=e.left&&r<=e.right&&i>=e.top&&i<=e.bottom;case"cover":return t.left>=e.left&&t.top>=e.top&&t.right<=e.right&&t.bottom<=e.bottom;case"touch":return e.right>=t.left&&e.left<=t.right&&e.bottom>=t.top&&e.top<=t.bottom}}function K(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n=Array.isArray(e)?e:[e],r=[],i=0,o=n.length;i<o;i++){var l=n[i];"string"==typeof l?r=r.concat(Array.from(t.querySelectorAll(l))):l instanceof Element&&r.push(l)}return r}function q(e,t){var n,r=f(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if("number"==typeof i)return e.button===i;if("object"==_(i)){var o=i.button===e.button,l=i.modifiers.every((function(t){switch(t){case"alt":return e.altKey;case"ctrl":return e.ctrlKey||e.metaKey;case"shift":return e.shiftKey}}));return o&&l}}}catch(a){r.e(a)}finally{r.f()}return!1}var F=Math.abs,H=Math.max,W=Math.min,X=Math.ceil,Y=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)}(s,t);var i=r(s);function s(e){var t,n,r,l,u,h;p(this,s),t=i.call(this),M(o(t),"_options"),M(o(t),"_selection",{stored:[],selected:[],touched:[],changed:{added:[],removed:[]}}),M(o(t),"_area"),M(o(t),"_clippingElement"),M(o(t),"_targetElement"),M(o(t),"_targetRect"),M(o(t),"_selectables",[]),M(o(t),"_latestElement"),M(o(t),"_areaRect",new DOMRect),M(o(t),"_areaLocation",{y1:0,x2:0,y2:0,x1:0}),M(o(t),"_singleClick",!0),M(o(t),"_frame"),M(o(t),"_scrollAvailable",!0),M(o(t),"_scrollingActive",!1),M(o(t),"_scrollSpeed",{x:0,y:0}),M(o(t),"_scrollDelta",{x:0,y:0}),M(o(t),"disable",t._bindStartEvents.bind(o(t),!1)),M(o(t),"enable",t._bindStartEvents),t._options=c(c({selectionAreaClass:"selection-area",selectionContainerClass:void 0,selectables:[],document:window.document,startAreas:["html"],boundaries:["html"],container:"body"},e),{},{behaviour:c(c({overlap:"invert",intersect:"touch",triggers:[0]},e.behaviour),{},{startThreshold:null!=(n=e.behaviour)&&n.startThreshold?"number"==typeof e.behaviour.startThreshold?e.behaviour.startThreshold:c({x:10,y:10},e.behaviour.startThreshold):{x:10,y:10},scrolling:c(c({speedDivider:10,manualSpeed:750},null==(r=e.behaviour)?void 0:r.scrolling),{},{startScrollMargins:c({x:0,y:0},null==(u=null==(l=e.behaviour)?void 0:l.scrolling)?void 0:u.startScrollMargins)})}),features:c(c({range:!0,touch:!0},e.features),{},{singleTap:c({allow:!0,intersect:"native"},null==(h=e.features)?void 0:h.singleTap)})});var d,v=f(Object.getOwnPropertyNames(Object.getPrototypeOf(o(t))));try{for(v.s();!(d=v.n()).done;){var y=d.value;"function"==typeof t[y]&&(t[y]=t[y].bind(o(t)))}}catch(E){v.e(E)}finally{v.f()}var m=t._options,_=m.document,b=m.selectionAreaClass,g=m.selectionContainerClass;return t._area=_.createElement("div"),t._clippingElement=_.createElement("div"),t._clippingElement.appendChild(t._area),t._area.classList.add(b),g&&t._clippingElement.classList.add(g),C(t._area,{willChange:"top, left, bottom, right, width, height",top:0,left:0,position:"fixed"}),C(t._clippingElement,{overflow:"hidden",position:"fixed",transform:"translate3d(0, 0, 0)",pointerEvents:"none",zIndex:"1"}),t._frame=function(e){var t,n=-1,r=!1;return{next:function(){for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];t=o,r||(r=!0,n=requestAnimationFrame((function(){e.apply(void 0,a(t)),r=!1})))},cancel:function(){cancelAnimationFrame(n),r=!1}}}((function(e){t._recalculateSelectionAreaRect(),t._updateElementSelection(),t._emitEvent("move",e),t._redrawSelectionArea()})),t.enable(),t}return m(s,[{key:"_bindStartEvents",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this._options,n=t.document,r=t.features,i=e?D:I;i(n,"mousedown",this._onTapStart),r.touch&&i(n,"touchstart",this._onTapStart,{passive:!1})}},{key:"_onTapStart",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=N(e),i=r.x,o=r.y,l=r.target,a=this._options,s=this._options.document,c=l.getBoundingClientRect();if(!(e instanceof MouseEvent)||q(e,a.behaviour.triggers)){var u=K(a.startAreas,a.document),h=K(a.boundaries,a.document);this._targetElement=h.find((function(e){return B(e.getBoundingClientRect(),c)}));var f=e.composedPath();if(this._targetElement&&u.find((function(e){return f.includes(e)}))&&h.find((function(e){return f.includes(e)}))&&(n||!1!==this._emitEvent("beforestart",e))){this._areaLocation={x1:i,y1:o,x2:0,y2:0};var d=null!==(t=s.scrollingElement)&&void 0!==t?t:s.body;this._scrollDelta={x:d.scrollLeft,y:d.scrollTop},this._singleClick=!0,this.clearSelection(!1,!0),D(s,["touchmove","mousemove"],this._delayedTapMove,{passive:!1}),D(s,["mouseup","touchcancel","touchend"],this._onTapStop),D(s,"scroll",this._onScroll)}}}},{key:"_onSingleTap",value:function(e){var t,n=this,r=this._options.features,i=r.singleTap.intersect,o=r.range,l=N(e);if("native"===i)t=l.target;else if("touch"===i){this.resolveSelectables();var s=l.x,c=l.y;t=this._selectables.find((function(e){var t=e.getBoundingClientRect(),n=t.right,r=t.left,i=t.top,o=t.bottom;return s<n&&s>r&&c<o&&c>i}))}if(t){for(this.resolveSelectables();!this._selectables.includes(t);){if(!t.parentElement)return;t=t.parentElement}var u=this._selection.stored;if(this._emitEvent("start",e),e.shiftKey&&o&&this._latestElement){var f=this._latestElement,d=h(4&f.compareDocumentPosition(t)?[t,f]:[f,t],2),v=d[0],p=d[1],y=[].concat(a(this._selectables.filter((function(e){return 4&e.compareDocumentPosition(v)&&2&e.compareDocumentPosition(p)}))),[v,p]);this.select(y),this._latestElement=f}else u.includes(t)&&(1===u.length||e.ctrlKey||u.every((function(e){return n._selection.stored.includes(e)})))?this.deselect(t):(this.select(t),this._latestElement=t);this._emitEvent("stop",e)}}},{key:"_delayedTapMove",value:function(e){var t=this,n=this._options,r=n.container,i=n.document,o=n.behaviour.startThreshold,l=this._areaLocation,a=l.x1,s=l.y1,c=N(e),u=c.x,h=c.y;if("number"==typeof o&&F(u+h-(a+s))>=o||"object"==_(o)&&F(u-a)>=o.x||F(h-s)>=o.y){if(I(i,["mousemove","touchmove"],this._delayedTapMove,{passive:!1}),!1===this._emitEvent("beforedrag",e))return void I(i,["mouseup","touchcancel","touchend"],this._onTapStop);D(i,["mousemove","touchmove"],this._onTapMove,{passive:!1}),C(this._area,"display","block"),K(r,i)[0].appendChild(this._clippingElement),this.resolveSelectables(),this._singleClick=!1,this._targetRect=this._targetElement.getBoundingClientRect(),this._scrollAvailable=this._targetElement.scrollHeight!==this._targetElement.clientHeight||this._targetElement.scrollWidth!==this._targetElement.clientWidth,this._scrollAvailable&&(D(this._targetElement,"wheel",this._manualScroll,{passive:!1}),this._selectables=this._selectables.filter((function(e){return t._targetElement.contains(e)}))),this._setupSelectionArea(),this._emitEvent("start",e),this._onTapMove(e)}this._handleMoveEvent(e)}},{key:"_setupSelectionArea",value:function(){var e=this._clippingElement,t=this._targetElement,n=this._area,r=this._targetRect=t.getBoundingClientRect();this._scrollAvailable?(C(e,{top:r.top,left:r.left,width:r.width,height:r.height}),C(n,{marginTop:-r.top,marginLeft:-r.left})):(C(e,{top:0,left:0,width:"100%",height:"100%"}),C(n,{marginTop:0,marginLeft:0}))}},{key:"_onTapMove",value:function(e){var t=this,n=N(e),r=n.x,i=n.y,o=this._scrollSpeed,l=this._areaLocation,a=this._options,s=this._frame,c=a.behaviour.scrolling.speedDivider,u=this._targetElement;if(l.x2=r,l.y2=i,this._scrollAvailable&&!this._scrollingActive&&(o.y||o.x)){this._scrollingActive=!0;requestAnimationFrame((function n(){if(o.x||o.y){var r=u.scrollTop,i=u.scrollLeft;o.y&&(u.scrollTop+=X(o.y/c),l.y1-=u.scrollTop-r),o.x&&(u.scrollLeft+=X(o.x/c),l.x1-=u.scrollLeft-i),s.next(e),requestAnimationFrame(n)}else t._scrollingActive=!1}))}else s.next(e);this._handleMoveEvent(e)}},{key:"_handleMoveEvent",value:function(e){(this._options.features.touch&&matchMedia("(hover: none), (pointer: coarse)").matches||this._scrollAvailable&&"safari"in window)&&e.preventDefault()}},{key:"_onScroll",value:function(){var e,t=this._scrollDelta,n=this._options.document,r=null!==(e=n.scrollingElement)&&void 0!==e?e:n.body,i=r.scrollTop,o=r.scrollLeft;this._areaLocation.x1+=t.x-o,this._areaLocation.y1+=t.y-i,t.x=o,t.y=i,this._setupSelectionArea(),this._frame.next(null)}},{key:"_manualScroll",value:function(e){var t=this._options.behaviour.scrolling.manualSpeed,n=e.deltaY?e.deltaY>0?1:-1:0,r=e.deltaX?e.deltaX>0?1:-1:0;this._scrollSpeed.y+=n*t,this._scrollSpeed.x+=r*t,this._onTapMove(e),e.preventDefault()}},{key:"_recalculateSelectionAreaRect",value:function(){var e=this._scrollSpeed,t=this._areaLocation,n=this._areaRect,r=this._targetElement,i=this._options,o=r.scrollTop,l=r.scrollHeight,a=r.clientHeight,s=r.scrollLeft,c=r.scrollWidth,u=r.clientWidth,h=this._targetRect,f=t.x1,d=t.y1,v=t.x2,p=t.y2,y=i.behaviour.scrolling.startScrollMargins;v<h.left+y.x?(e.x=s?-F(h.left-v+y.x):0,v=v<h.left?h.left:v):v>h.right-y.x?(e.x=c-s-u?F(h.left+h.width-v-y.x):0,v=v>h.right?h.right:v):e.x=0,p<h.top+y.y?(e.y=o?-F(h.top-p+y.y):0,p=p<h.top?h.top:p):p>h.bottom-y.y?(e.y=l-o-a?F(h.top+h.height-p-y.y):0,p=p>h.bottom?h.bottom:p):e.y=0;var m=W(f,v),_=W(d,p),b=H(f,v),g=H(d,p);n.x=m,n.y=_,n.width=b-m,n.height=g-_}},{key:"_redrawSelectionArea",value:function(){var e=this._areaRect,t=e.x,n=e.y,r=e.width,i=e.height,o=this._area.style;o.left="".concat(t,"px"),o.top="".concat(n,"px"),o.width="".concat(r,"px"),o.height="".concat(i,"px")}},{key:"_onTapStop",value:function(e,t){var n,r=this._options,i=r.document,o=r.features,l=this._singleClick;I(i,["mousemove","touchmove"],this._delayedTapMove),I(i,["touchmove","mousemove"],this._onTapMove),I(i,["mouseup","touchcancel","touchend"],this._onTapStop),I(i,"scroll",this._onScroll),this._keepSelection(),e&&l&&o.singleTap.allow?this._onSingleTap(e):!l&&!t&&(this._updateElementSelection(),this._emitEvent("stop",e)),this._scrollSpeed.x=0,this._scrollSpeed.y=0,I(this._targetElement,"wheel",this._manualScroll,{passive:!0}),this._clippingElement.remove(),null==(n=this._frame)||n.cancel(),C(this._area,"display","none")}},{key:"_updateElementSelection",value:function(){for(var e=this._selectables,t=this._options,n=this._selection,r=this._areaRect,i=n.stored,o=n.selected,l=n.touched,s=t.behaviour,c=s.intersect,u=s.overlap,h="invert"===u,f=[],d=[],v=[],p=0;p<e.length;p++){var y=e[p];if(B(r,y.getBoundingClientRect(),c)){if(o.includes(y))i.includes(y)&&!l.includes(y)&&l.push(y);else{if(h&&i.includes(y)){v.push(y);continue}d.push(y)}f.push(y)}}h&&d.push.apply(d,a(i.filter((function(e){return!o.includes(e)}))));for(var m="keep"===u,_=0;_<o.length;_++){var b=o[_];!f.includes(b)&&(!m||!i.includes(b))&&v.push(b)}n.selected=f,n.changed={added:d,removed:v},this._latestElement=void 0}},{key:"_emitEvent",value:function(e,t){return this.emit(e,{event:t,store:this._selection,selection:this})}},{key:"_keepSelection",value:function(){var e=this._options,t=this._selection,n=t.selected,r=t.changed,i=t.touched,o=t.stored,l=n.filter((function(e){return!o.includes(e)}));switch(e.behaviour.overlap){case"drop":t.stored=[].concat(a(l),a(o.filter((function(e){return!i.includes(e)}))));break;case"invert":t.stored=[].concat(a(l),a(o.filter((function(e){return!r.removed.includes(e)}))));break;case"keep":t.stored=[].concat(a(o),a(n.filter((function(e){return!o.includes(e)}))))}}},{key:"trigger",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._onTapStart(e,t)}},{key:"resolveSelectables",value:function(){this._selectables=K(this._options.selectables,this._options.document)}},{key:"clearSelection",value:function(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this._selection,i=r.selected,o=r.stored,l=r.changed;l.added=[],(e=l.removed).push.apply(e,a(i).concat(a(t?o:[]))),n||(this._emitEvent("move",null),this._emitEvent("stop",null)),this._selection={stored:t?[]:o,selected:[],touched:[],changed:{added:[],removed:[]}}}},{key:"getSelection",value:function(){return this._selection.stored}},{key:"getSelectionArea",value:function(){return this._area}},{key:"cancel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._onTapStop(null,!e)}},{key:"destroy",value:function(){this.cancel(),this.disable(),this._clippingElement.remove(),e(l(s.prototype),"unbindAllListeners",this).call(this)}},{key:"select",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this._selection,i=r.changed,o=r.selected,l=r.stored,s=K(e,this._options.document).filter((function(e){return!o.includes(e)&&!l.includes(e)}));return l.push.apply(l,a(s)),o.push.apply(o,a(s)),(t=i.added).push.apply(t,a(s)),i.removed=[],this._latestElement=void 0,n||(this._emitEvent("move",null),this._emitEvent("stop",null)),s}},{key:"deselect",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this._selection,i=r.selected,o=r.stored,l=r.changed,s=K(e,this._options.document).filter((function(e){return i.includes(e)||o.includes(e)}));s.length&&(this._selection.stored=o.filter((function(e){return!s.includes(e)})),this._selection.selected=i.filter((function(e){return!s.includes(e)})),this._selection.changed.added=[],(t=this._selection.changed.removed).push.apply(t,a(s.filter((function(e){return!l.removed.includes(e)})))),this._latestElement=void 0,n||(this._emitEvent("move",null),this._emitEvent("stop",null)))}}]),s}(P);M(Y,"version","3.5.0");t("I",i(s,{baseStyle:{_before:{content:"",pos:"absolute",top:-10,right:-2,bottom:-10,left:-10}}}))}}}))}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cE as q,ch as F,m as $,l as w,x as j,aA as X,aN as N,dv as Y,aM as z,aO as G,dr as k,e as J,b0 as Q,a1 as L}from"./index.fae3cea4.js";import{c as T}from"./index.dcae211e.js";import{b as U}from"./Folder.7e9202ae.js";/*! @viselect/vanilla v3.5.0 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */var V=Object.defineProperty,Z=(r,e,t)=>e in r?V(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,u=(r,e,t)=>(Z(r,typeof e!="symbol"?e+"":e,t),t);class ee{constructor(){u(this,"_listeners",new Map),u(this,"on",this.addEventListener),u(this,"off",this.removeEventListener),u(this,"emit",this.dispatchEvent)}addEventListener(e,t){var s;const i=(s=this._listeners.get(e))!=null?s:new Set;return this._listeners.set(e,i),i.add(t),this}removeEventListener(e,t){var i;return(i=this._listeners.get(e))==null||i.delete(t),this}dispatchEvent(e,...t){var s;let i=!0;for(const o of(s=this._listeners.get(e))!=null?s:[])i=o(...t)!==!1&&i;return i}unbindAllListeners(){this._listeners.clear()}}const R=(r,e="px")=>typeof r=="number"?r+e:r;function b({style:r},e,t){if(typeof e=="object")for(const[i,s]of Object.entries(e))s!==void 0&&(r[i]=R(s));else t!==void 0&&(r[e]=R(t))}const B=r=>(e,t,i,s={})=>{e instanceof HTMLCollection||e instanceof NodeList?e=Array.from(e):Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]);for(const o of e)if(o)for(const n of t)o[r](n,i,{capture:!1,...s});return[e,t,i,s]},x=B("addEventListener"),y=B("removeEventListener"),A=r=>{var o;var e;const{clientX:t,clientY:i,target:s}=(o=(e=r.touches)==null?void 0:e[0])!=null?o:r;return{x:t,y:i,target:s}};function O(r,e,t="touch"){switch(t){case"center":{const i=e.left+e.width/2,s=e.top+e.height/2;return i>=r.left&&i<=r.right&&s>=r.top&&s<=r.bottom}case"cover":return e.left>=r.left&&e.top>=r.top&&e.right<=r.right&&e.bottom<=r.bottom;case"touch":return r.right>=e.left&&r.left<=e.right&&r.bottom>=e.top&&r.top<=e.bottom}}function S(r,e=document){const t=Array.isArray(r)?r:[r];let i=[];for(let s=0,o=t.length;s<o;s++){const n=t[s];typeof n=="string"?i=i.concat(Array.from(e.querySelectorAll(n))):n instanceof Element&&i.push(n)}return i}const te=()=>matchMedia("(hover: none), (pointer: coarse)").matches,se=()=>"safari"in window,ie=r=>{let e,t=-1,i=!1;return{next(...s){e=s,i||(i=!0,t=requestAnimationFrame(()=>{r(...e),i=!1}))},cancel(){cancelAnimationFrame(t),i=!1}}};function oe(r,e){for(const t of e){if(typeof t=="number")return r.button===t;if(typeof t=="object"){const i=t.button===r.button,s=t.modifiers.every(o=>{switch(o){case"alt":return r.altKey;case"ctrl":return r.ctrlKey||r.metaKey;case"shift":return r.shiftKey}});return i&&s}}return!1}const{abs:E,max:D,min:K,ceil:P}=Math;class H extends ee{constructor(e){var t,i,s,o,n;super(),u(this,"_options"),u(this,"_selection",{stored:[],selected:[],touched:[],changed:{added:[],removed:[]}}),u(this,"_area"),u(this,"_clippingElement"),u(this,"_targetElement"),u(this,"_targetRect"),u(this,"_selectables",[]),u(this,"_latestElement"),u(this,"_areaRect",new DOMRect),u(this,"_areaLocation",{y1:0,x2:0,y2:0,x1:0}),u(this,"_singleClick",!0),u(this,"_frame"),u(this,"_scrollAvailable",!0),u(this,"_scrollingActive",!1),u(this,"_scrollSpeed",{x:0,y:0}),u(this,"_scrollDelta",{x:0,y:0}),u(this,"disable",this._bindStartEvents.bind(this,!1)),u(this,"enable",this._bindStartEvents),this._options={selectionAreaClass:"selection-area",selectionContainerClass:void 0,selectables:[],document:window.document,startAreas:["html"],boundaries:["html"],container:"body",...e,behaviour:{overlap:"invert",intersect:"touch",triggers:[0],...e.behaviour,startThreshold:(t=e.behaviour)!=null&&t.startThreshold?typeof e.behaviour.startThreshold=="number"?e.behaviour.startThreshold:{x:10,y:10,...e.behaviour.startThreshold}:{x:10,y:10},scrolling:{speedDivider:10,manualSpeed:750,...(i=e.behaviour)==null?void 0:i.scrolling,startScrollMargins:{x:0,y:0,...(o=(s=e.behaviour)==null?void 0:s.scrolling)==null?void 0:o.startScrollMargins}}},features:{range:!0,touch:!0,...e.features,singleTap:{allow:!0,intersect:"native",...(n=e.features)==null?void 0:n.singleTap}}};for(const _ of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))typeof this[_]=="function"&&(this[_]=this[_].bind(this));const{document:l,selectionAreaClass:a,selectionContainerClass:d}=this._options;this._area=l.createElement("div"),this._clippingElement=l.createElement("div"),this._clippingElement.appendChild(this._area),this._area.classList.add(a),d&&this._clippingElement.classList.add(d),b(this._area,{willChange:"top, left, bottom, right, width, height",top:0,left:0,position:"fixed"}),b(this._clippingElement,{overflow:"hidden",position:"fixed",transform:"translate3d(0, 0, 0)",pointerEvents:"none",zIndex:"1"}),this._frame=ie(_=>{this._recalculateSelectionAreaRect(),this._updateElementSelection(),this._emitEvent("move",_),this._redrawSelectionArea()}),this.enable()}_bindStartEvents(e=!0){const{document:t,features:i}=this._options,s=e?x:y;s(t,"mousedown",this._onTapStart),i.touch&&s(t,"touchstart",this._onTapStart,{passive:!1})}_onTapStart(e,t=!1){var v;const{x:i,y:s,target:o}=A(e),{_options:n}=this,{document:l}=this._options,a=o.getBoundingClientRect();if(e instanceof MouseEvent&&!oe(e,n.behaviour.triggers))return;const d=S(n.startAreas,n.document),_=S(n.boundaries,n.document);this._targetElement=_.find(f=>O(f.getBoundingClientRect(),a));const m=e.composedPath();if(!this._targetElement||!d.find(f=>m.includes(f))||!_.find(f=>m.includes(f))||!t&&this._emitEvent("beforestart",e)===!1)return;this._areaLocation={x1:i,y1:s,x2:0,y2:0};const c=(v=l.scrollingElement)!=null?v:l.body;this._scrollDelta={x:c.scrollLeft,y:c.scrollTop},this._singleClick=!0,this.clearSelection(!1,!0),x(l,["touchmove","mousemove"],this._delayedTapMove,{passive:!1}),x(l,["mouseup","touchcancel","touchend"],this._onTapStop),x(l,"scroll",this._onScroll)}_onSingleTap(e){const{singleTap:{intersect:t},range:i}=this._options.features,s=A(e);let o;if(t==="native")o=s.target;else if(t==="touch"){this.resolveSelectables();const{x:l,y:a}=s;o=this._selectables.find(d=>{const{right:_,left:m,top:c,bottom:v}=d.getBoundingClientRect();return l<_&&l>m&&a<v&&a>c})}if(!o)return;for(this.resolveSelectables();!this._selectables.includes(o);){if(!o.parentElement)return;o=o.parentElement}const{stored:n}=this._selection;if(this._emitEvent("start",e),e.shiftKey&&i&&this._latestElement){const l=this._latestElement,[a,d]=l.compareDocumentPosition(o)&4?[o,l]:[l,o],_=[...this._selectables.filter(m=>m.compareDocumentPosition(a)&4&&m.compareDocumentPosition(d)&2),a,d];this.select(_),this._latestElement=l}else n.includes(o)&&(n.length===1||e.ctrlKey||n.every(l=>this._selection.stored.includes(l)))?this.deselect(o):(this.select(o),this._latestElement=o);this._emitEvent("stop",e)}_delayedTapMove(e){const{container:t,document:i,behaviour:{startThreshold:s}}=this._options,{x1:o,y1:n}=this._areaLocation,{x:l,y:a}=A(e);if(typeof s=="number"&&E(l+a-(o+n))>=s||typeof s=="object"&&E(l-o)>=s.x||E(a-n)>=s.y){if(y(i,["mousemove","touchmove"],this._delayedTapMove,{passive:!1}),this._emitEvent("beforedrag",e)===!1){y(i,["mouseup","touchcancel","touchend"],this._onTapStop);return}x(i,["mousemove","touchmove"],this._onTapMove,{passive:!1}),b(this._area,"display","block"),S(t,i)[0].appendChild(this._clippingElement),this.resolveSelectables(),this._singleClick=!1,this._targetRect=this._targetElement.getBoundingClientRect(),this._scrollAvailable=this._targetElement.scrollHeight!==this._targetElement.clientHeight||this._targetElement.scrollWidth!==this._targetElement.clientWidth,this._scrollAvailable&&(x(this._targetElement,"wheel",this._manualScroll,{passive:!1}),this._selectables=this._selectables.filter(d=>this._targetElement.contains(d))),this._setupSelectionArea(),this._emitEvent("start",e),this._onTapMove(e)}this._handleMoveEvent(e)}_setupSelectionArea(){const{_clippingElement:e,_targetElement:t,_area:i}=this,s=this._targetRect=t.getBoundingClientRect();this._scrollAvailable?(b(e,{top:s.top,left:s.left,width:s.width,height:s.height}),b(i,{marginTop:-s.top,marginLeft:-s.left})):(b(e,{top:0,left:0,width:"100%",height:"100%"}),b(i,{marginTop:0,marginLeft:0}))}_onTapMove(e){const{x:t,y:i}=A(e),{_scrollSpeed:s,_areaLocation:o,_options:n,_frame:l}=this,{speedDivider:a}=n.behaviour.scrolling,d=this._targetElement;if(o.x2=t,o.y2=i,this._scrollAvailable&&!this._scrollingActive&&(s.y||s.x)){this._scrollingActive=!0;const _=()=>{if(!s.x&&!s.y){this._scrollingActive=!1;return}const{scrollTop:m,scrollLeft:c}=d;s.y&&(d.scrollTop+=P(s.y/a),o.y1-=d.scrollTop-m),s.x&&(d.scrollLeft+=P(s.x/a),o.x1-=d.scrollLeft-c),l.next(e),requestAnimationFrame(_)};requestAnimationFrame(_)}else l.next(e);this._handleMoveEvent(e)}_handleMoveEvent(e){const{features:t}=this._options;(t.touch&&te()||this._scrollAvailable&&se())&&e.preventDefault()}_onScroll(){var o;const{_scrollDelta:e,_options:{document:t}}=this,{scrollTop:i,scrollLeft:s}=(o=t.scrollingElement)!=null?o:t.body;this._areaLocation.x1+=e.x-s,this._areaLocation.y1+=e.y-i,e.x=s,e.y=i,this._setupSelectionArea(),this._frame.next(null)}_manualScroll(e){const{manualSpeed:t}=this._options.behaviour.scrolling,i=e.deltaY?e.deltaY>0?1:-1:0,s=e.deltaX?e.deltaX>0?1:-1:0;this._scrollSpeed.y+=i*t,this._scrollSpeed.x+=s*t,this._onTapMove(e),e.preventDefault()}_recalculateSelectionAreaRect(){const{_scrollSpeed:e,_areaLocation:t,_areaRect:i,_targetElement:s,_options:o}=this,{scrollTop:n,scrollHeight:l,clientHeight:a,scrollLeft:d,scrollWidth:_,clientWidth:m}=s,c=this._targetRect,{x1:v,y1:f}=t;let{x2:p,y2:h}=t;const{behaviour:{scrolling:{startScrollMargins:g}}}=o;p<c.left+g.x?(e.x=d?-E(c.left-p+g.x):0,p=p<c.left?c.left:p):p>c.right-g.x?(e.x=_-d-m?E(c.left+c.width-p-g.x):0,p=p>c.right?c.right:p):e.x=0,h<c.top+g.y?(e.y=n?-E(c.top-h+g.y):0,h=h<c.top?c.top:h):h>c.bottom-g.y?(e.y=l-n-a?E(c.top+c.height-h-g.y):0,h=h>c.bottom?c.bottom:h):e.y=0;const C=K(v,p),M=K(f,h),I=D(v,p),W=D(f,h);i.x=C,i.y=M,i.width=I-C,i.height=W-M}_redrawSelectionArea(){const{x:e,y:t,width:i,height:s}=this._areaRect,{style:o}=this._area;o.left=`${e}px`,o.top=`${t}px`,o.width=`${i}px`,o.height=`${s}px`}_onTapStop(e,t){var i;const{document:s,features:o}=this._options,{_singleClick:n}=this;y(s,["mousemove","touchmove"],this._delayedTapMove),y(s,["touchmove","mousemove"],this._onTapMove),y(s,["mouseup","touchcancel","touchend"],this._onTapStop),y(s,"scroll",this._onScroll),this._keepSelection(),e&&n&&o.singleTap.allow?this._onSingleTap(e):!n&&!t&&(this._updateElementSelection(),this._emitEvent("stop",e)),this._scrollSpeed.x=0,this._scrollSpeed.y=0,y(this._targetElement,"wheel",this._manualScroll,{passive:!0}),this._clippingElement.remove(),(i=this._frame)==null||i.cancel(),b(this._area,"display","none")}_updateElementSelection(){const{_selectables:e,_options:t,_selection:i,_areaRect:s}=this,{stored:o,selected:n,touched:l}=i,{intersect:a,overlap:d}=t.behaviour,_=d==="invert",m=[],c=[],v=[];for(let p=0;p<e.length;p++){const h=e[p];if(O(s,h.getBoundingClientRect(),a)){if(n.includes(h))o.includes(h)&&!l.includes(h)&&l.push(h);else if(_&&o.includes(h)){v.push(h);continue}else c.push(h);m.push(h)}}_&&c.push(...o.filter(p=>!n.includes(p)));const f=d==="keep";for(let p=0;p<n.length;p++){const h=n[p];!m.includes(h)&&!(f&&o.includes(h))&&v.push(h)}i.selected=m,i.changed={added:c,removed:v},this._latestElement=void 0}_emitEvent(e,t){return this.emit(e,{event:t,store:this._selection,selection:this})}_keepSelection(){const{_options:e,_selection:t}=this,{selected:i,changed:s,touched:o,stored:n}=t,l=i.filter(a=>!n.includes(a));switch(e.behaviour.overlap){case"drop":{t.stored=[...l,...n.filter(a=>!o.includes(a))];break}case"invert":{t.stored=[...l,...n.filter(a=>!s.removed.includes(a))];break}case"keep":{t.stored=[...n,...i.filter(a=>!n.includes(a))];break}}}trigger(e,t=!0){this._onTapStart(e,t)}resolveSelectables(){this._selectables=S(this._options.selectables,this._options.document)}clearSelection(e=!0,t=!1){const{selected:i,stored:s,changed:o}=this._selection;o.added=[],o.removed.push(...i,...e?s:[]),t||(this._emitEvent("move",null),this._emitEvent("stop",null)),this._selection={stored:e?[]:s,selected:[],touched:[],changed:{added:[],removed:[]}}}getSelection(){return this._selection.stored}getSelectionArea(){return this._area}cancel(e=!1){this._onTapStop(null,!e)}destroy(){this.cancel(),this.disable(),this._clippingElement.remove(),super.unbindAllListeners()}select(e,t=!1){const{changed:i,selected:s,stored:o}=this._selection,n=S(e,this._options.document).filter(l=>!s.includes(l)&&!o.includes(l));return o.push(...n),s.push(...n),i.added.push(...n),i.removed=[],this._latestElement=void 0,t||(this._emitEvent("move",null),this._emitEvent("stop",null)),n}deselect(e,t=!1){const{selected:i,stored:s,changed:o}=this._selection,n=S(e,this._options.document).filter(l=>i.includes(l)||s.includes(l));n.length&&(this._selection.stored=s.filter(l=>!n.includes(l)),this._selection.selected=i.filter(l=>!n.includes(l)),this._selection.changed.added=[],this._selection.changed.removed.push(...n.filter(l=>!o.removed.includes(l))),this._latestElement=void 0,t||(this._emitEvent("move",null),this._emitEvent("stop",null)))}}u(H,"version","3.5.0");function ae(){const[r,e]=$(w.open_item_on_checkbox==="direct"),t=T("Alt",{preventDefault:!1}),i=T("Meta",{preventDefault:!1}),s=T("Control",{preventDefault:!1});return j(()=>{switch(w.open_item_on_checkbox){case"direct":{e(!0);break}case"disable_while_checked":{e(!N());break}case"with_ctrl":{e(X?i():s());break}case"with_alt":e(t())}}),r}function ce(){const r=()=>w.select_with_mouse==="disabled",e=()=>!Y&&!r()&&!z(),t=()=>{j(()=>{if(!e())return;const o=new H({selectionAreaClass:"viselect-selection-area",startAreas:[".viselect-container"],boundaries:[".viselect-container"],selectables:[".viselect-item"]});o.on("start",({event:n})=>{const l=n;o.clearSelection(!0,!0),o.select(".viselect-item.selected",!0),!l.ctrlKey&&!l.metaKey&&(G(!1),o.clearSelection())}),o.on("move",({store:{changed:{added:n,removed:l}}})=>{for(const a of n)k(Number(a.getAttribute("data-index")),!0);for(const a of l)k(Number(a.getAttribute("data-index")),!1)}),J(()=>o.destroy())})},{show:i}=U({id:1});return{isMouseSupported:e,registerSelectContainer:t,captureContentMenu:o=>{if(o.preventDefault(),N()&&!Q()){const l=o.target.closest(".viselect-item"),a=Number(l==null?void 0:l.getAttribute("data-index"));if(Number.isNaN(a)||!(()=>!!L.objs[a].selected)())return;o.stopPropagation(),i(o,{props:L.obj})}}}}const he=q(F,{baseStyle:{_before:{content:"",pos:"absolute",top:-10,right:-2,bottom:-10,left:-10}}});export{he as I,ce as a,ae as u};
|
|
1
|
+
import{cz as q,ch as F,m as $,l as w,x as j,aA as X,aN as N,dq as Y,aM as z,aO as G,dl as k,e as J,b0 as Q,a1 as L}from"./index.f27bc3a3.js";import{c as T}from"./index.e86a9d96.js";import{b as U}from"./Folder.744549da.js";/*! @viselect/vanilla v3.5.0 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */var V=Object.defineProperty,Z=(r,e,t)=>e in r?V(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,u=(r,e,t)=>(Z(r,typeof e!="symbol"?e+"":e,t),t);class ee{constructor(){u(this,"_listeners",new Map),u(this,"on",this.addEventListener),u(this,"off",this.removeEventListener),u(this,"emit",this.dispatchEvent)}addEventListener(e,t){var s;const i=(s=this._listeners.get(e))!=null?s:new Set;return this._listeners.set(e,i),i.add(t),this}removeEventListener(e,t){var i;return(i=this._listeners.get(e))==null||i.delete(t),this}dispatchEvent(e,...t){var s;let i=!0;for(const o of(s=this._listeners.get(e))!=null?s:[])i=o(...t)!==!1&&i;return i}unbindAllListeners(){this._listeners.clear()}}const R=(r,e="px")=>typeof r=="number"?r+e:r;function b({style:r},e,t){if(typeof e=="object")for(const[i,s]of Object.entries(e))s!==void 0&&(r[i]=R(s));else t!==void 0&&(r[e]=R(t))}const B=r=>(e,t,i,s={})=>{e instanceof HTMLCollection||e instanceof NodeList?e=Array.from(e):Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]);for(const o of e)if(o)for(const n of t)o[r](n,i,{capture:!1,...s});return[e,t,i,s]},x=B("addEventListener"),y=B("removeEventListener"),A=r=>{var o;var e;const{clientX:t,clientY:i,target:s}=(o=(e=r.touches)==null?void 0:e[0])!=null?o:r;return{x:t,y:i,target:s}};function O(r,e,t="touch"){switch(t){case"center":{const i=e.left+e.width/2,s=e.top+e.height/2;return i>=r.left&&i<=r.right&&s>=r.top&&s<=r.bottom}case"cover":return e.left>=r.left&&e.top>=r.top&&e.right<=r.right&&e.bottom<=r.bottom;case"touch":return r.right>=e.left&&r.left<=e.right&&r.bottom>=e.top&&r.top<=e.bottom}}function S(r,e=document){const t=Array.isArray(r)?r:[r];let i=[];for(let s=0,o=t.length;s<o;s++){const n=t[s];typeof n=="string"?i=i.concat(Array.from(e.querySelectorAll(n))):n instanceof Element&&i.push(n)}return i}const te=()=>matchMedia("(hover: none), (pointer: coarse)").matches,se=()=>"safari"in window,ie=r=>{let e,t=-1,i=!1;return{next(...s){e=s,i||(i=!0,t=requestAnimationFrame(()=>{r(...e),i=!1}))},cancel(){cancelAnimationFrame(t),i=!1}}};function oe(r,e){for(const t of e){if(typeof t=="number")return r.button===t;if(typeof t=="object"){const i=t.button===r.button,s=t.modifiers.every(o=>{switch(o){case"alt":return r.altKey;case"ctrl":return r.ctrlKey||r.metaKey;case"shift":return r.shiftKey}});return i&&s}}return!1}const{abs:E,max:D,min:K,ceil:P}=Math;class H extends ee{constructor(e){var t,i,s,o,n;super(),u(this,"_options"),u(this,"_selection",{stored:[],selected:[],touched:[],changed:{added:[],removed:[]}}),u(this,"_area"),u(this,"_clippingElement"),u(this,"_targetElement"),u(this,"_targetRect"),u(this,"_selectables",[]),u(this,"_latestElement"),u(this,"_areaRect",new DOMRect),u(this,"_areaLocation",{y1:0,x2:0,y2:0,x1:0}),u(this,"_singleClick",!0),u(this,"_frame"),u(this,"_scrollAvailable",!0),u(this,"_scrollingActive",!1),u(this,"_scrollSpeed",{x:0,y:0}),u(this,"_scrollDelta",{x:0,y:0}),u(this,"disable",this._bindStartEvents.bind(this,!1)),u(this,"enable",this._bindStartEvents),this._options={selectionAreaClass:"selection-area",selectionContainerClass:void 0,selectables:[],document:window.document,startAreas:["html"],boundaries:["html"],container:"body",...e,behaviour:{overlap:"invert",intersect:"touch",triggers:[0],...e.behaviour,startThreshold:(t=e.behaviour)!=null&&t.startThreshold?typeof e.behaviour.startThreshold=="number"?e.behaviour.startThreshold:{x:10,y:10,...e.behaviour.startThreshold}:{x:10,y:10},scrolling:{speedDivider:10,manualSpeed:750,...(i=e.behaviour)==null?void 0:i.scrolling,startScrollMargins:{x:0,y:0,...(o=(s=e.behaviour)==null?void 0:s.scrolling)==null?void 0:o.startScrollMargins}}},features:{range:!0,touch:!0,...e.features,singleTap:{allow:!0,intersect:"native",...(n=e.features)==null?void 0:n.singleTap}}};for(const _ of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))typeof this[_]=="function"&&(this[_]=this[_].bind(this));const{document:l,selectionAreaClass:a,selectionContainerClass:d}=this._options;this._area=l.createElement("div"),this._clippingElement=l.createElement("div"),this._clippingElement.appendChild(this._area),this._area.classList.add(a),d&&this._clippingElement.classList.add(d),b(this._area,{willChange:"top, left, bottom, right, width, height",top:0,left:0,position:"fixed"}),b(this._clippingElement,{overflow:"hidden",position:"fixed",transform:"translate3d(0, 0, 0)",pointerEvents:"none",zIndex:"1"}),this._frame=ie(_=>{this._recalculateSelectionAreaRect(),this._updateElementSelection(),this._emitEvent("move",_),this._redrawSelectionArea()}),this.enable()}_bindStartEvents(e=!0){const{document:t,features:i}=this._options,s=e?x:y;s(t,"mousedown",this._onTapStart),i.touch&&s(t,"touchstart",this._onTapStart,{passive:!1})}_onTapStart(e,t=!1){var v;const{x:i,y:s,target:o}=A(e),{_options:n}=this,{document:l}=this._options,a=o.getBoundingClientRect();if(e instanceof MouseEvent&&!oe(e,n.behaviour.triggers))return;const d=S(n.startAreas,n.document),_=S(n.boundaries,n.document);this._targetElement=_.find(f=>O(f.getBoundingClientRect(),a));const m=e.composedPath();if(!this._targetElement||!d.find(f=>m.includes(f))||!_.find(f=>m.includes(f))||!t&&this._emitEvent("beforestart",e)===!1)return;this._areaLocation={x1:i,y1:s,x2:0,y2:0};const c=(v=l.scrollingElement)!=null?v:l.body;this._scrollDelta={x:c.scrollLeft,y:c.scrollTop},this._singleClick=!0,this.clearSelection(!1,!0),x(l,["touchmove","mousemove"],this._delayedTapMove,{passive:!1}),x(l,["mouseup","touchcancel","touchend"],this._onTapStop),x(l,"scroll",this._onScroll)}_onSingleTap(e){const{singleTap:{intersect:t},range:i}=this._options.features,s=A(e);let o;if(t==="native")o=s.target;else if(t==="touch"){this.resolveSelectables();const{x:l,y:a}=s;o=this._selectables.find(d=>{const{right:_,left:m,top:c,bottom:v}=d.getBoundingClientRect();return l<_&&l>m&&a<v&&a>c})}if(!o)return;for(this.resolveSelectables();!this._selectables.includes(o);){if(!o.parentElement)return;o=o.parentElement}const{stored:n}=this._selection;if(this._emitEvent("start",e),e.shiftKey&&i&&this._latestElement){const l=this._latestElement,[a,d]=l.compareDocumentPosition(o)&4?[o,l]:[l,o],_=[...this._selectables.filter(m=>m.compareDocumentPosition(a)&4&&m.compareDocumentPosition(d)&2),a,d];this.select(_),this._latestElement=l}else n.includes(o)&&(n.length===1||e.ctrlKey||n.every(l=>this._selection.stored.includes(l)))?this.deselect(o):(this.select(o),this._latestElement=o);this._emitEvent("stop",e)}_delayedTapMove(e){const{container:t,document:i,behaviour:{startThreshold:s}}=this._options,{x1:o,y1:n}=this._areaLocation,{x:l,y:a}=A(e);if(typeof s=="number"&&E(l+a-(o+n))>=s||typeof s=="object"&&E(l-o)>=s.x||E(a-n)>=s.y){if(y(i,["mousemove","touchmove"],this._delayedTapMove,{passive:!1}),this._emitEvent("beforedrag",e)===!1){y(i,["mouseup","touchcancel","touchend"],this._onTapStop);return}x(i,["mousemove","touchmove"],this._onTapMove,{passive:!1}),b(this._area,"display","block"),S(t,i)[0].appendChild(this._clippingElement),this.resolveSelectables(),this._singleClick=!1,this._targetRect=this._targetElement.getBoundingClientRect(),this._scrollAvailable=this._targetElement.scrollHeight!==this._targetElement.clientHeight||this._targetElement.scrollWidth!==this._targetElement.clientWidth,this._scrollAvailable&&(x(this._targetElement,"wheel",this._manualScroll,{passive:!1}),this._selectables=this._selectables.filter(d=>this._targetElement.contains(d))),this._setupSelectionArea(),this._emitEvent("start",e),this._onTapMove(e)}this._handleMoveEvent(e)}_setupSelectionArea(){const{_clippingElement:e,_targetElement:t,_area:i}=this,s=this._targetRect=t.getBoundingClientRect();this._scrollAvailable?(b(e,{top:s.top,left:s.left,width:s.width,height:s.height}),b(i,{marginTop:-s.top,marginLeft:-s.left})):(b(e,{top:0,left:0,width:"100%",height:"100%"}),b(i,{marginTop:0,marginLeft:0}))}_onTapMove(e){const{x:t,y:i}=A(e),{_scrollSpeed:s,_areaLocation:o,_options:n,_frame:l}=this,{speedDivider:a}=n.behaviour.scrolling,d=this._targetElement;if(o.x2=t,o.y2=i,this._scrollAvailable&&!this._scrollingActive&&(s.y||s.x)){this._scrollingActive=!0;const _=()=>{if(!s.x&&!s.y){this._scrollingActive=!1;return}const{scrollTop:m,scrollLeft:c}=d;s.y&&(d.scrollTop+=P(s.y/a),o.y1-=d.scrollTop-m),s.x&&(d.scrollLeft+=P(s.x/a),o.x1-=d.scrollLeft-c),l.next(e),requestAnimationFrame(_)};requestAnimationFrame(_)}else l.next(e);this._handleMoveEvent(e)}_handleMoveEvent(e){const{features:t}=this._options;(t.touch&&te()||this._scrollAvailable&&se())&&e.preventDefault()}_onScroll(){var o;const{_scrollDelta:e,_options:{document:t}}=this,{scrollTop:i,scrollLeft:s}=(o=t.scrollingElement)!=null?o:t.body;this._areaLocation.x1+=e.x-s,this._areaLocation.y1+=e.y-i,e.x=s,e.y=i,this._setupSelectionArea(),this._frame.next(null)}_manualScroll(e){const{manualSpeed:t}=this._options.behaviour.scrolling,i=e.deltaY?e.deltaY>0?1:-1:0,s=e.deltaX?e.deltaX>0?1:-1:0;this._scrollSpeed.y+=i*t,this._scrollSpeed.x+=s*t,this._onTapMove(e),e.preventDefault()}_recalculateSelectionAreaRect(){const{_scrollSpeed:e,_areaLocation:t,_areaRect:i,_targetElement:s,_options:o}=this,{scrollTop:n,scrollHeight:l,clientHeight:a,scrollLeft:d,scrollWidth:_,clientWidth:m}=s,c=this._targetRect,{x1:v,y1:f}=t;let{x2:p,y2:h}=t;const{behaviour:{scrolling:{startScrollMargins:g}}}=o;p<c.left+g.x?(e.x=d?-E(c.left-p+g.x):0,p=p<c.left?c.left:p):p>c.right-g.x?(e.x=_-d-m?E(c.left+c.width-p-g.x):0,p=p>c.right?c.right:p):e.x=0,h<c.top+g.y?(e.y=n?-E(c.top-h+g.y):0,h=h<c.top?c.top:h):h>c.bottom-g.y?(e.y=l-n-a?E(c.top+c.height-h-g.y):0,h=h>c.bottom?c.bottom:h):e.y=0;const C=K(v,p),M=K(f,h),I=D(v,p),W=D(f,h);i.x=C,i.y=M,i.width=I-C,i.height=W-M}_redrawSelectionArea(){const{x:e,y:t,width:i,height:s}=this._areaRect,{style:o}=this._area;o.left=`${e}px`,o.top=`${t}px`,o.width=`${i}px`,o.height=`${s}px`}_onTapStop(e,t){var i;const{document:s,features:o}=this._options,{_singleClick:n}=this;y(s,["mousemove","touchmove"],this._delayedTapMove),y(s,["touchmove","mousemove"],this._onTapMove),y(s,["mouseup","touchcancel","touchend"],this._onTapStop),y(s,"scroll",this._onScroll),this._keepSelection(),e&&n&&o.singleTap.allow?this._onSingleTap(e):!n&&!t&&(this._updateElementSelection(),this._emitEvent("stop",e)),this._scrollSpeed.x=0,this._scrollSpeed.y=0,y(this._targetElement,"wheel",this._manualScroll,{passive:!0}),this._clippingElement.remove(),(i=this._frame)==null||i.cancel(),b(this._area,"display","none")}_updateElementSelection(){const{_selectables:e,_options:t,_selection:i,_areaRect:s}=this,{stored:o,selected:n,touched:l}=i,{intersect:a,overlap:d}=t.behaviour,_=d==="invert",m=[],c=[],v=[];for(let p=0;p<e.length;p++){const h=e[p];if(O(s,h.getBoundingClientRect(),a)){if(n.includes(h))o.includes(h)&&!l.includes(h)&&l.push(h);else if(_&&o.includes(h)){v.push(h);continue}else c.push(h);m.push(h)}}_&&c.push(...o.filter(p=>!n.includes(p)));const f=d==="keep";for(let p=0;p<n.length;p++){const h=n[p];!m.includes(h)&&!(f&&o.includes(h))&&v.push(h)}i.selected=m,i.changed={added:c,removed:v},this._latestElement=void 0}_emitEvent(e,t){return this.emit(e,{event:t,store:this._selection,selection:this})}_keepSelection(){const{_options:e,_selection:t}=this,{selected:i,changed:s,touched:o,stored:n}=t,l=i.filter(a=>!n.includes(a));switch(e.behaviour.overlap){case"drop":{t.stored=[...l,...n.filter(a=>!o.includes(a))];break}case"invert":{t.stored=[...l,...n.filter(a=>!s.removed.includes(a))];break}case"keep":{t.stored=[...n,...i.filter(a=>!n.includes(a))];break}}}trigger(e,t=!0){this._onTapStart(e,t)}resolveSelectables(){this._selectables=S(this._options.selectables,this._options.document)}clearSelection(e=!0,t=!1){const{selected:i,stored:s,changed:o}=this._selection;o.added=[],o.removed.push(...i,...e?s:[]),t||(this._emitEvent("move",null),this._emitEvent("stop",null)),this._selection={stored:e?[]:s,selected:[],touched:[],changed:{added:[],removed:[]}}}getSelection(){return this._selection.stored}getSelectionArea(){return this._area}cancel(e=!1){this._onTapStop(null,!e)}destroy(){this.cancel(),this.disable(),this._clippingElement.remove(),super.unbindAllListeners()}select(e,t=!1){const{changed:i,selected:s,stored:o}=this._selection,n=S(e,this._options.document).filter(l=>!s.includes(l)&&!o.includes(l));return o.push(...n),s.push(...n),i.added.push(...n),i.removed=[],this._latestElement=void 0,t||(this._emitEvent("move",null),this._emitEvent("stop",null)),n}deselect(e,t=!1){const{selected:i,stored:s,changed:o}=this._selection,n=S(e,this._options.document).filter(l=>i.includes(l)||s.includes(l));n.length&&(this._selection.stored=s.filter(l=>!n.includes(l)),this._selection.selected=i.filter(l=>!n.includes(l)),this._selection.changed.added=[],this._selection.changed.removed.push(...n.filter(l=>!o.removed.includes(l))),this._latestElement=void 0,t||(this._emitEvent("move",null),this._emitEvent("stop",null)))}}u(H,"version","3.5.0");function ae(){const[r,e]=$(w.open_item_on_checkbox==="direct"),t=T("Alt",{preventDefault:!1}),i=T("Meta",{preventDefault:!1}),s=T("Control",{preventDefault:!1});return j(()=>{switch(w.open_item_on_checkbox){case"direct":{e(!0);break}case"disable_while_checked":{e(!N());break}case"with_ctrl":{e(X?i():s());break}case"with_alt":e(t())}}),r}function ce(){const r=()=>w.select_with_mouse==="disabled",e=()=>!Y&&!r()&&!z(),t=()=>{j(()=>{if(!e())return;const o=new H({selectionAreaClass:"viselect-selection-area",startAreas:[".viselect-container"],boundaries:[".viselect-container"],selectables:[".viselect-item"]});o.on("start",({event:n})=>{const l=n;o.clearSelection(!0,!0),o.select(".viselect-item.selected",!0),!l.ctrlKey&&!l.metaKey&&(G(!1),o.clearSelection())}),o.on("move",({store:{changed:{added:n,removed:l}}})=>{for(const a of n)k(Number(a.getAttribute("data-index")),!0);for(const a of l)k(Number(a.getAttribute("data-index")),!1)}),J(()=>o.destroy())})},{show:i}=U({id:1});return{isMouseSupported:e,registerSelectContainer:t,captureContentMenu:o=>{if(o.preventDefault(),N()&&!Q()){const l=o.target.closest(".viselect-item"),a=Number(l==null?void 0:l.getAttribute("data-index"));if(Number.isNaN(a)||!(()=>!!L.objs[a].selected)())return;o.stopPropagation(),i(o,{props:L.obj})}}}}const he=q(F,{baseStyle:{_before:{content:"",pos:"absolute",top:-10,right:-2,bottom:-10,left:-10}}});export{he as I,ce as a,ae as u};
|