alistgo-alist-web 3.63.0 → 3.64.0
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/dist/assets/{2fa-abc3de78.js → 2fa-4e84c410.js} +1 -1
- package/dist/assets/{2fa-legacy.55737098.js → 2fa-legacy.f6d2ef4d.js} +1 -1
- package/dist/assets/{About-ebade33f.js → About-190507e6.js} +1 -1
- package/dist/assets/{About-legacy.1ab87d8b.js → About-legacy.b327ecf8.js} +1 -1
- package/dist/assets/{AddLabelDialog-d838839b.js → AddLabelDialog-9914fe78.js} +1 -1
- package/dist/assets/{AddLabelDialog-legacy.0c773d90.js → AddLabelDialog-legacy.036a9ab6.js} +1 -1
- package/dist/assets/{AddOrEdit-616ec90f.js → AddOrEdit-47e0ac05.js} +1 -1
- package/dist/assets/{AddOrEdit-b4bb1c42.js → AddOrEdit-67238002.js} +1 -1
- package/dist/assets/{AddOrEdit-ebed8ac0.js → AddOrEdit-79a98c71.js} +1 -1
- package/dist/assets/{AddOrEdit-81330314.js → AddOrEdit-83e5bdd3.js} +1 -1
- package/dist/assets/{AddOrEdit-legacy.2fd88478.js → AddOrEdit-legacy.3db7bb35.js} +1 -1
- package/dist/assets/{AddOrEdit-legacy.acbb24c8.js → AddOrEdit-legacy.4c3acaab.js} +1 -1
- package/dist/assets/{AddOrEdit-legacy.3af450b0.js → AddOrEdit-legacy.cd047027.js} +1 -1
- package/dist/assets/{AddOrEdit-legacy.abd115d9.js → AddOrEdit-legacy.e74c5c7c.js} +1 -1
- package/dist/assets/{Common-ca550843.js → Common-0e68477f.js} +1 -1
- package/dist/assets/{Common-legacy.b3ab5071.js → Common-legacy.c2861b24.js} +1 -1
- package/dist/assets/{Copy-0384ca0d.js → Copy-279e327d.js} +1 -1
- package/dist/assets/{Copy-legacy.e201e664.js → Copy-legacy.fde30af5.js} +1 -1
- package/dist/assets/Decompress-43856ece.js +1 -0
- package/dist/assets/{Decompress-legacy.3df460b6.js → Decompress-legacy.babd980c.js} +1 -1
- package/dist/assets/{DeletePopover-3958d0ad.js → DeletePopover-8805036c.js} +1 -1
- package/dist/assets/{DeletePopover-legacy.49680594.js → DeletePopover-legacy.c02233f5.js} +1 -1
- package/dist/assets/{EditLabelDialog-ea31ea23.js → EditLabelDialog-caa825c7.js} +1 -1
- package/dist/assets/{EditLabelDialog-legacy.2b5bee02.js → EditLabelDialog-legacy.f130f84a.js} +1 -1
- package/dist/assets/{File-9c374f1a.js → File-a608e169.js} +1 -1
- package/dist/assets/{File-legacy.9d2c3ca7.js → File-legacy.ba03acb0.js} +1 -1
- package/dist/assets/{Folder-14a25b89.js → Folder-26f37994.js} +2 -2
- package/dist/assets/{Folder-legacy.de37bd62.js → Folder-legacy.f5072a96.js} +2 -2
- package/dist/assets/{FolderTree-7ae29384.js → FolderTree-89544a6b.js} +1 -1
- package/dist/assets/{FolderTree-legacy.53528cb3.js → FolderTree-legacy.4bc9cb59.js} +1 -1
- package/dist/assets/{Frp-f7302299.js → Frp-056a26c6.js} +1 -1
- package/dist/assets/{Frp-legacy.71102175.js → Frp-legacy.f5b4d8c3.js} +1 -1
- package/dist/assets/Grid-37629e6d.js +1 -0
- package/dist/assets/{Grid-legacy.164386d7.js → Grid-legacy.dc4aab9b.js} +1 -1
- package/dist/assets/{GridItem-657d21bd.js → GridItem-be9067db.js} +1 -1
- package/dist/assets/{GridItem-legacy.2c3dbff8.js → GridItem-legacy.76a1e630.js} +1 -1
- package/dist/assets/ImageWithError-ad444cc4.js +1 -0
- package/dist/assets/{ImageWithError-legacy.991e20db.js → ImageWithError-legacy.d1f48994.js} +1 -1
- package/dist/assets/{Images-1b5fd472.js → Images-83a8d60b.js} +1 -1
- package/dist/assets/{Images-legacy.d3a439bd.js → Images-legacy.4d33680c.js} +1 -1
- package/dist/assets/{Layout-77c54d54.js → Layout-897b8819.js} +4 -4
- package/dist/assets/{Layout-legacy.d9c36690.js → Layout-legacy.76d8e726.js} +1 -1
- package/dist/assets/{List-cb3f2b1f.js → List-e85a0b2a.js} +1 -1
- package/dist/assets/{List-legacy.d509dbd5.js → List-legacy.401536e5.js} +1 -1
- package/dist/assets/{Messenger-69bf75f1.js → Messenger-68d3a6f9.js} +1 -1
- package/dist/assets/{Messenger-legacy.2447ffbd.js → Messenger-legacy.bc15d42f.js} +1 -1
- package/dist/assets/{Metas-6fc6206f.js → Metas-e05f9ce1.js} +1 -1
- package/dist/assets/{Metas-legacy.a22fda65.js → Metas-legacy.fbb019f8.js} +1 -1
- package/dist/assets/{Other-bf0c8f40.js → Other-359d1308.js} +1 -1
- package/dist/assets/{Other-legacy.0b52198b.js → Other-legacy.98d34500.js} +1 -1
- package/dist/assets/{PackageDownload-f1225dad.js → PackageDownload-519b9a38.js} +1 -1
- package/dist/assets/{PackageDownload-legacy.5ce2ee6a.js → PackageDownload-legacy.99bfadfb.js} +1 -1
- package/dist/assets/{Paginator-8b9321c4.js → Paginator-c9173645.js} +1 -1
- package/dist/assets/{Paginator-legacy.25f9c490.js → Paginator-legacy.20830174.js} +1 -1
- package/dist/assets/{Password-b98cef17.js → Password-ecb0e10f.js} +1 -1
- package/dist/assets/{Password-legacy.f4c14222.js → Password-legacy.6428b474.js} +1 -1
- package/dist/assets/{PermissionForm-7a161a53.js → PermissionForm-c3eb17c8.js} +1 -1
- package/dist/assets/{PermissionForm-legacy.14a9fe69.js → PermissionForm-legacy.7c5eb6c6.js} +1 -1
- package/dist/assets/{Profile-e8195cc8.js → Profile-3ee435be.js} +1 -1
- package/dist/assets/{Profile-legacy.876024b1.js → Profile-legacy.b4580d6f.js} +1 -1
- package/dist/assets/{ResponsiveGrid-0e943896.js → ResponsiveGrid-c7c746e7.js} +1 -1
- package/dist/assets/{ResponsiveGrid-legacy.a9062597.js → ResponsiveGrid-legacy.f9981337.js} +1 -1
- package/dist/assets/{Role-3e2c225c.js → Role-9912dd61.js} +1 -1
- package/dist/assets/{Role-legacy.2745cfe3.js → Role-legacy.6533ab1b.js} +1 -1
- package/dist/assets/{S3-3211311d.js → S3-0aa994e6.js} +1 -1
- package/dist/assets/{S3-legacy.6b587900.js → S3-legacy.0fefd5e0.js} +1 -1
- package/dist/assets/{S3Transition-4b41bf18.js → S3Transition-89090584.js} +1 -1
- package/dist/assets/{S3Transition-legacy.cf3cde2a.js → S3Transition-legacy.87d826d5.js} +1 -1
- package/dist/assets/{SettingItem-e7a7bfc9.js → SettingItem-004aa8f7.js} +1 -1
- package/dist/assets/{SettingItem-legacy.b5a9ffeb.js → SettingItem-legacy.4459beb0.js} +1 -1
- package/dist/assets/{Storages-baae5b17.js → Storages-41749b58.js} +1 -1
- package/dist/assets/{Storages-legacy.bf0c1aa1.js → Storages-legacy.06dcad07.js} +1 -1
- package/dist/assets/StrmGenerate-59595312.js +1 -0
- package/dist/assets/{StrmGenerate-d4f07081.js → StrmGenerate-a872c94f.js} +1 -1
- package/dist/assets/{StrmGenerate-legacy.ecbb8e9d.js → StrmGenerate-legacy.bd455ae0.js} +1 -1
- package/dist/assets/{StrmGenerate-legacy.4402360f.js → StrmGenerate-legacy.cabca006.js} +1 -1
- package/dist/assets/{Tag-ffe1a992.js → Tag-090a70de.js} +1 -1
- package/dist/assets/{Tag-legacy.971a1953.js → Tag-legacy.4d08ea51.js} +1 -1
- package/dist/assets/{Task-438c4d6b.js → Task-305456a7.js} +1 -1
- package/dist/assets/{Task-legacy.607e52ad.js → Task-legacy.bef00b05.js} +1 -1
- package/dist/assets/{Tasks-c0229b29.js → Tasks-bcb27730.js} +1 -1
- package/dist/assets/{Tasks-legacy.f3598230.js → Tasks-legacy.e4e4be39.js} +1 -1
- package/dist/assets/Upload-dea525de.js +1 -0
- package/dist/assets/{Upload-958e240c.js → Upload-f8f5df20.js} +1 -1
- package/dist/assets/{Upload-legacy.698d3c2b.js → Upload-legacy.3167d140.js} +1 -1
- package/dist/assets/{Upload-legacy.03c286e2.js → Upload-legacy.ea24de65.js} +1 -1
- package/dist/assets/{Users-bdf25bea.js → Users-00f028b6.js} +1 -1
- package/dist/assets/{Users-legacy.b0075433.js → Users-legacy.6adffa4b.js} +1 -1
- package/dist/assets/{Wether-891c8709.js → Wether-2ad383a0.js} +1 -1
- package/dist/assets/{Wether-legacy.7a5c9f59.js → Wether-legacy.c0dbd869.js} +1 -1
- package/dist/assets/{aliyun_office-a22ac966.js → aliyun_office-70f9e774.js} +1 -1
- package/dist/assets/{aliyun_office-legacy.910c67dd.js → aliyun_office-legacy.01ab1f19.js} +1 -1
- package/dist/assets/{aliyun_video-72e75696.js → aliyun_video-8ecd5833.js} +1 -1
- package/dist/assets/{aliyun_video-legacy.3ca538ae.js → aliyun_video-legacy.b463b3a2.js} +1 -1
- package/dist/assets/{archive-15d8b252.js → archive-734c2ae5.js} +1 -1
- package/dist/assets/{archive-legacy.141ed6de.js → archive-legacy.665b85a4.js} +1 -1
- package/dist/assets/{asciinema-befe680b.js → asciinema-63cb7e53.js} +1 -1
- package/dist/assets/{asciinema-legacy.0e111ef8.js → asciinema-legacy.4d730bad.js} +1 -1
- package/dist/assets/{audio-37bb4f75.js → audio-99be5f4b.js} +1 -1
- package/dist/assets/{audio-legacy.9c9e6fd9.js → audio-legacy.cb5be320.js} +1 -1
- package/dist/assets/{backup-restore-8d5112f2.js → backup-restore-87d007a6.js} +1 -1
- package/dist/assets/{backup-restore-legacy.21994194.js → backup-restore-legacy.fca2a0a0.js} +1 -1
- package/dist/assets/{doubao-4962e438.js → doubao-edc7ea0c.js} +1 -1
- package/dist/assets/{doubao-legacy.e8e5bddc.js → doubao-legacy.1a73dcb5.js} +1 -1
- package/dist/assets/{download-cf222578.js → download-fe955410.js} +1 -1
- package/dist/assets/{download-legacy.6b17b261.js → download-legacy.40f6adf0.js} +1 -1
- package/dist/assets/entry-47b2abb1.js +5 -0
- package/dist/assets/entry-53f2edcc.js +5 -0
- package/dist/assets/entry-65f35baf.js +5 -0
- package/dist/assets/entry-76e6ff37.js +8 -0
- package/dist/assets/entry-7bf2f5c5.js +5 -0
- package/dist/assets/entry-8a764c5e.js +5 -0
- package/dist/assets/entry-8e81cbee.js +6 -0
- package/dist/assets/entry-ad0c322e.js +5 -0
- package/dist/assets/entry-cd479580.js +9 -0
- package/dist/assets/entry-dbda7502.js +5 -0
- package/dist/assets/entry-legacy.113b27f4.js +1 -0
- package/dist/assets/entry-legacy.12fb7042.js +1 -0
- package/dist/assets/entry-legacy.205b85a6.js +1 -0
- package/dist/assets/entry-legacy.84c5b84d.js +1 -0
- package/dist/assets/entry-legacy.99944f7e.js +1 -0
- package/dist/assets/entry-legacy.a1e4c725.js +1 -0
- package/dist/assets/entry-legacy.ccf750f1.js +1 -0
- package/dist/assets/entry-legacy.d79bc047.js +1 -0
- package/dist/assets/entry-legacy.e342d8cc.js +1 -0
- package/dist/assets/entry-legacy.e6d5043a.js +1 -0
- package/dist/assets/{helper-bcff9934.js → helper-cfffcdeb.js} +1 -1
- package/dist/assets/{helper-8d6da87f.js → helper-e7a18c7f.js} +1 -1
- package/dist/assets/{helper-legacy.fc3cc7d5.js → helper-legacy.ecf72a12.js} +1 -1
- package/dist/assets/{helper-legacy.c67cf50b.js → helper-legacy.f3369b5d.js} +1 -1
- package/dist/assets/{hls-34ad2bf0.js → hls-86ec98bf.js} +1 -1
- package/dist/assets/{hls-legacy.258e62dc.js → hls-legacy.7eb02010.js} +1 -1
- package/dist/assets/{html-772e9d83.js → html-f0c8404b.js} +1 -1
- package/dist/assets/{html-legacy.d0f89f46.js → html-legacy.6b46728d.js} +1 -1
- package/dist/assets/{image-73b55447.js → image-aee483b3.js} +1 -1
- package/dist/assets/{image-legacy.944e86c3.js → image-legacy.293578fc.js} +1 -1
- package/dist/assets/{index-6021c988.js → index-1c7df6bb.js} +1 -1
- package/dist/assets/{index-cbfadd9b.js → index-1da4255f.js} +1 -1
- package/dist/assets/index-1eca9bf7.js +1 -0
- package/dist/assets/{index-76fcdbdf.js → index-286258af.js} +1 -1
- package/dist/assets/{index-66f271c4.js → index-3409ca0b.js} +1 -1
- package/dist/assets/{index-003b5203.js → index-425600b4.js} +1 -1
- package/dist/assets/{index-14204052.js → index-63d411f6.js} +1 -1
- package/dist/assets/{index-6cfcfd46.js → index-653e8df2.js} +1 -1
- package/dist/assets/{index-ccd3c2df.js → index-9f389c06.js} +1 -1
- package/dist/assets/{index-0af67a26.js → index-b0560a31.js} +3 -3
- package/dist/assets/{index-bc854cf4.js → index-b8456ee7.js} +1 -1
- package/dist/assets/{index-66bc0c4a.js → index-bfb42663.js} +1 -1
- package/dist/assets/{index-2da9ca8e.js → index-d2ee9913.js} +1 -1
- package/dist/assets/{index-314d6447.js → index-e2343554.js} +1 -1
- package/dist/assets/{index-legacy.35aba8a0.js → index-legacy.04ddeb6e.js} +1 -1
- package/dist/assets/{index-legacy.53efc4c8.js → index-legacy.510e67dc.js} +1 -1
- package/dist/assets/{index-legacy.5a403980.js → index-legacy.5f2e7154.js} +1 -1
- package/dist/assets/{index-legacy.7b9d362b.js → index-legacy.766df57d.js} +1 -1
- package/dist/assets/{index-legacy.14cbd866.js → index-legacy.77dc574f.js} +1 -1
- package/dist/assets/{index-legacy.2ecd8568.js → index-legacy.7d5d9c7c.js} +1 -1
- package/dist/assets/{index-legacy.24d29f81.js → index-legacy.93f532c8.js} +1 -1
- package/dist/assets/{index-legacy.257815ef.js → index-legacy.a2e25f9b.js} +1 -1
- package/dist/assets/{index-legacy.9a995a78.js → index-legacy.cdce98e1.js} +3 -3
- package/dist/assets/{index-legacy.831645c0.js → index-legacy.d888bbd6.js} +1 -1
- package/dist/assets/{index-legacy.aa1b93bf.js → index-legacy.e544ccf2.js} +1 -1
- package/dist/assets/{index-legacy.f9d48ec7.js → index-legacy.e65fdd44.js} +1 -1
- package/dist/assets/{index-legacy.b2067bd5.js → index-legacy.e932630e.js} +1 -1
- package/dist/assets/{index-legacy.06ba96c2.js → index-legacy.eb264a4b.js} +1 -1
- package/dist/assets/{indexes-39a5b1ff.js → indexes-d17840a6.js} +1 -1
- package/dist/assets/{indexes-legacy.8769beeb.js → indexes-legacy.4a5b688a.js} +1 -1
- package/dist/assets/{info-6b46a634.js → info-a9253ca6.js} +1 -1
- package/dist/assets/{info-legacy.dc8f48be.js → info-legacy.a104f6ee.js} +1 -1
- package/dist/assets/{ipa-86dc8896.js → ipa-adf70a53.js} +1 -1
- package/dist/assets/{ipa-legacy.17ae2e8d.js → ipa-legacy.b0527f0c.js} +1 -1
- package/dist/assets/{lark-73a41a60.js → lark-1a7cae41.js} +1 -1
- package/dist/assets/{lark-legacy.24acf7f1.js → lark-legacy.05b566b8.js} +1 -1
- package/dist/assets/{lark_tools-649a02b3.js → lark_tools-fb000845.js} +1 -1
- package/dist/assets/{lark_tools-legacy.eecb6c72.js → lark_tools-legacy.6fedd7ea.js} +1 -1
- package/dist/assets/{layout-5d35ffe8.js → layout-28afe0f0.js} +1 -1
- package/dist/assets/{layout-legacy.ae9754f2.js → layout-legacy.e0cfb4c0.js} +1 -1
- package/dist/assets/{management-0c24b19e.js → management-01a86f43.js} +1 -1
- package/dist/assets/{management-legacy.8848a8f8.js → management-legacy.77a4015b.js} +1 -1
- package/dist/assets/{markdown-8d906270.js → markdown-5ea99b9a.js} +1 -1
- package/dist/assets/{markdown-legacy.9eb66931.js → markdown-legacy.ff36c111.js} +1 -1
- package/dist/assets/{markdown_with_word_wrap-c0408f23.js → markdown_with_word_wrap-a0b244a5.js} +1 -1
- package/dist/assets/{markdown_with_word_wrap-legacy.3463bef2.js → markdown_with_word_wrap-legacy.a6da7d19.js} +1 -1
- package/dist/assets/{mySession-884023ca.js → mySession-084533dd.js} +1 -1
- package/dist/assets/{mySession-legacy.68203a3e.js → mySession-legacy.2f5e1d14.js} +1 -1
- package/dist/assets/offline_download-ed30f8c1.js +1 -0
- package/dist/assets/{offline_download-legacy.d0f875cd.js → offline_download-legacy.fe7fa221.js} +1 -1
- package/dist/assets/{open-with-7bd13257.js → open-with-79c445c3.js} +1 -1
- package/dist/assets/{open-with-legacy.89db98a3.js → open-with-legacy.a62babc1.js} +1 -1
- package/dist/assets/{plist-18445805.js → plist-90c2d892.js} +1 -1
- package/dist/assets/{plist-legacy.c128376d.js → plist-legacy.3de6335c.js} +1 -1
- package/dist/assets/{polyfills-legacy.bfccebe0.js → polyfills-legacy.03573a32.js} +1 -1
- package/dist/assets/{shares-d862241a.js → shares-63cf54ab.js} +1 -1
- package/dist/assets/{shares-legacy.2e408931.js → shares-legacy.63ed175b.js} +1 -1
- package/dist/assets/{solid-contextmenu-389460bd.js → solid-contextmenu-905ecc32.js} +1 -1
- package/dist/assets/{solid-contextmenu-legacy.0f1769af.js → solid-contextmenu-legacy.b73c8617.js} +1 -1
- package/dist/assets/{text-editor-ffff6c54.js → text-editor-4451aa37.js} +1 -1
- package/dist/assets/{text-editor-legacy.cd9e1a2d.js → text-editor-legacy.1d233d02.js} +1 -1
- package/dist/assets/{url-23fb7cc0.js → url-755a9cce.js} +1 -1
- package/dist/assets/{url-legacy.b18d3809.js → url-legacy.a69a518d.js} +1 -1
- package/dist/assets/{useTitle-394ae64f.js → useTitle-838069b0.js} +1 -1
- package/dist/assets/{useTitle-legacy.2e69d9a6.js → useTitle-legacy.b3b2613b.js} +1 -1
- package/dist/assets/{video-ebb98b67.js → video-08e3c2a6.js} +1 -1
- package/dist/assets/{video-legacy.768a1779.js → video-legacy.a9ff6ce2.js} +1 -1
- package/dist/assets/{video360-a4d64816.js → video360-fc95901a.js} +1 -1
- package/dist/assets/{video360-legacy.8266ee4a.js → video360-legacy.e051fc87.js} +1 -1
- package/dist/assets/{video_box-a8a43c3b.js → video_box-de39a6c5.js} +1 -1
- package/dist/assets/{video_box-legacy.53fe4ab0.js → video_box-legacy.86e3adf4.js} +1 -1
- package/dist/index.html +3 -3
- package/package.json +1 -1
- package/dist/assets/Decompress-272f91b5.js +0 -1
- package/dist/assets/Grid-f0c4d013.js +0 -1
- package/dist/assets/ImageWithError-270ffbd0.js +0 -1
- package/dist/assets/StrmGenerate-768d6021.js +0 -1
- package/dist/assets/Upload-e69eb0ff.js +0 -1
- package/dist/assets/entry-23d0eac8.js +0 -5
- package/dist/assets/entry-2abbb591.js +0 -5
- package/dist/assets/entry-55b019b5.js +0 -6
- package/dist/assets/entry-6fb77620.js +0 -5
- package/dist/assets/entry-9896052e.js +0 -5
- package/dist/assets/entry-9a9c06fb.js +0 -5
- package/dist/assets/entry-d1529af3.js +0 -8
- package/dist/assets/entry-d2b2146e.js +0 -5
- package/dist/assets/entry-d9866ffb.js +0 -5
- package/dist/assets/entry-f67c0939.js +0 -9
- package/dist/assets/entry-legacy.1c11c4ce.js +0 -1
- package/dist/assets/entry-legacy.6066ebc9.js +0 -1
- package/dist/assets/entry-legacy.60876545.js +0 -1
- package/dist/assets/entry-legacy.62cc3c3d.js +0 -1
- package/dist/assets/entry-legacy.8088e3bc.js +0 -1
- package/dist/assets/entry-legacy.b99b54c1.js +0 -1
- package/dist/assets/entry-legacy.b9b7580f.js +0 -1
- package/dist/assets/entry-legacy.c9424c94.js +0 -1
- package/dist/assets/entry-legacy.d1b30365.js +0 -1
- package/dist/assets/entry-legacy.f43d27fe.js +0 -1
- package/dist/assets/index-54ddc888.js +0 -1
- package/dist/assets/offline_download-6fa0e9d2.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}function r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var e={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(O){l=function(t,r,e){return t[r]=e}}function s(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return k()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=L(a,e);if(c){if(c===h)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var u=f(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(O){return{type:"throw",arg:O}}}e.wrap=s;var h={};function d(){}function p(){}function y(){}var v={};l(v,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(_([])));m&&m!==n&&o.call(m,a)&&(v=m);var w=y.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function x(r,e){function n(i,a,c,u){var l=f(r[i],r,a);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==t(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,u)}))}u(l.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}}function L(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,L(t,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,h;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function S(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function E(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function _(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,n=function r(){for(;++e<t.length;)if(o.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r};return n.next=n}}return{next:k}}function k(){return{value:void 0,done:!0}}return p.prototype=y,l(w,"constructor",y),l(y,"constructor",p),p.displayName=l(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===p||"GeneratorFunction"===(r.displayName||r.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),l(w,u,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=_,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function e(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),h},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),E(e),h}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;E(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:_(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},e}function e(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(l){return void e(l)}c.done?r(u):Promise.resolve(u).then(n,o)}function n(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function c(t){e(a,o,i,c,u,"next",t)}function u(t){e(a,o,i,c,u,"throw",t)}c(void 0)}))}}function o(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var n,o,i=[],a=!0,c=!1;try{for(e=e.call(t);!(a=(n=e.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==e.return||e.return()}finally{if(c)throw o}}return i}(t,r)||i(t,r)||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 i(t,r){if(t){if("string"==typeof t)return a(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?a(t,r):void 0}}function a(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}System.register(["./index-legacy.9a995a78.js","./useTitle-legacy.2e69d9a6.js","./DeletePopover-legacy.49680594.js","./Wether-legacy.7a5c9f59.js"],(function(t,e){"use strict";var a,c,u,l,s,f,h,d,p,y,v,g,m,w,b,x,L,S,E,j,_,k,O,A,I,P,G,N;return{setters:[function(t){a=t.b,c=t.d,u=t.ba,l=t.bq,s=t.C,f=t.B,h=t.r,d=t.er,p=t.y,y=t.aw,v=t.R,g=t.av,m=t.dM,w=t.dN,b=t.dO,x=t.a6,L=t.dP,S=t.dQ,E=t.dR,j=t.S,_=t.cI,k=t.a3,O=t.n,A=t.Y,I=t.ep},function(t){P=t.b},function(t){G=t.D},function(t){N=t.W}],execute:function(){var e=function(t){return p(y,{spacing:"$1",get children(){return p(x,{get each(){return t.role},children:function(r){return p(_,{get colorScheme(){return function(t){switch(t){case 1:return"neutral";case 2:return"success";default:return"info"}}(r)},get children(){var e;return null!==(e=t.roleMap[r])&&void 0!==e?e:r}})}})}})};t("default",(function(){var t=a();P("manage.sidemenu.users");var T=c().to,C=o(u((function(){return l.get("/admin/user/list")})),2),$=C[0],F=C[1],M=o(s([]),2),Y=M[0],q=M[1],D=function(){var t=n(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,F();case 2:e=t.sent,k(e,(function(t){return q(t.content)}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),R=o(s([]),2),W=R[0],B=R[1],H=f((function(){var t,r={},e=function(t,r){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=i(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 a,c=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return c=t.done,t},e:function(t){u=!0,a=t},f:function(){try{c||null==e.return||e.return()}finally{if(u)throw a}}}}(W());try{for(e.s();!(t=e.n()).done;){var n=t.value;r[n.id]=n.name}}catch(o){e.e(o)}finally{e.f()}return r})),J=function(){var t=n(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I();case 2:e=t.sent,k(e,(function(t){return B(t.content)}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();h((function(){J(),D()}));var Q=o(d((function(t){return l.post("/admin/user/delete?id=".concat(t))})),2),U=Q[0],X=Q[1],z=o(d((function(t){return l.post("/admin/user/cancel_2fa?id=".concat(t))})),2),K=z[0],V=z[1];return p(A,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[p(y,{spacing:"$2",get children(){return[p(v,{colorScheme:"accent",get loading(){return $()},onClick:D,get children(){return t("global.refresh")}}),p(v,{onClick:function(){T("/@manage/users/add")},get children(){return t("global.add")}})]}}),p(g,{w:"$full",overflowX:"auto",get children(){return p(m,{highlightOnHover:!0,dense:!0,get children(){return[p(w,{get children(){return p(b,{get children(){return[p(x,{each:["username","role","available"],children:function(r){return p(L,{get children(){return t("users.".concat(r))}})}}),p(L,{get children(){return t("global.operations")}})]}})}}),p(S,{get children(){return p(x,{get each(){return Y()},children:function(o){return p(b,{get children(){return[p(E,{get children(){return o.username}}),p(E,{get children(){return p(j,{get when(){return Object.keys(H()).length>0},get fallback(){return p(_,{children:"..."})},get children(){return p(e,{get role(){return o.role},get roleMap(){return H()}})}})}}),p(E,{get children(){return p(N,{get yes(){return!o.disabled}})}}),p(E,{get children(){return p(y,{spacing:"$2",get children(){return[p(v,{onClick:function(){T("/@manage/users/edit/".concat(o.id))},get children(){return t("global.edit")}}),p(G,{get name(){return o.username},get loading(){return U()===o.id},onClick:(i=n(r().mark((function e(){var n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,X(o.id);case 2:n=r.sent,k(n,(function(){O.success(t("global.delete_success")),D()}));case 4:case"end":return r.stop()}}),e)}))),function(){return i.apply(this,arguments)})}),p(v,{colorScheme:"accent",get loading(){return K()===o.id},onClick:(e=n(r().mark((function e(){var n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,V(o.id);case 2:n=r.sent,k(n,(function(){O.success(t("users.cancel_2fa_success")),D()}));case 4:case"end":return r.stop()}}),e)}))),function(){return e.apply(this,arguments)}),get children(){return t("users.cancel_2fa")}})];var e,i}})}})]}})}})}})]}})}})]}})}))}}}))}();
|
|
1
|
+
!function(){function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}function r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var e={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(O){l=function(t,r,e){return t[r]=e}}function s(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return k()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=L(a,e);if(c){if(c===h)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var u=f(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(O){return{type:"throw",arg:O}}}e.wrap=s;var h={};function d(){}function p(){}function y(){}var v={};l(v,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(_([])));m&&m!==n&&o.call(m,a)&&(v=m);var w=y.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function x(r,e){function n(i,a,c,u){var l=f(r[i],r,a);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==t(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,u)}))}u(l.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}}function L(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,L(t,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,h;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function S(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function E(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function _(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,n=function r(){for(;++e<t.length;)if(o.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r};return n.next=n}}return{next:k}}function k(){return{value:void 0,done:!0}}return p.prototype=y,l(w,"constructor",y),l(y,"constructor",p),p.displayName=l(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===p||"GeneratorFunction"===(r.displayName||r.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),l(w,u,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=_,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function e(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),h},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),E(e),h}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;E(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:_(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},e}function e(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(l){return void e(l)}c.done?r(u):Promise.resolve(u).then(n,o)}function n(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function c(t){e(a,o,i,c,u,"next",t)}function u(t){e(a,o,i,c,u,"throw",t)}c(void 0)}))}}function o(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var n,o,i=[],a=!0,c=!1;try{for(e=e.call(t);!(a=(n=e.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==e.return||e.return()}finally{if(c)throw o}}return i}(t,r)||i(t,r)||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 i(t,r){if(t){if("string"==typeof t)return a(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?a(t,r):void 0}}function a(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}System.register(["./index-legacy.cdce98e1.js","./useTitle-legacy.b3b2613b.js","./DeletePopover-legacy.c02233f5.js","./Wether-legacy.c0dbd869.js"],(function(t,e){"use strict";var a,c,u,l,s,f,h,d,p,y,v,g,m,w,b,x,L,S,E,j,_,k,O,A,I,P,G,N;return{setters:[function(t){a=t.b,c=t.d,u=t.ba,l=t.bq,s=t.C,f=t.B,h=t.r,d=t.er,p=t.y,y=t.aw,v=t.R,g=t.av,m=t.dM,w=t.dN,b=t.dO,x=t.a6,L=t.dP,S=t.dQ,E=t.dR,j=t.S,_=t.cI,k=t.a3,O=t.n,A=t.Y,I=t.ep},function(t){P=t.b},function(t){G=t.D},function(t){N=t.W}],execute:function(){var e=function(t){return p(y,{spacing:"$1",get children(){return p(x,{get each(){return t.role},children:function(r){return p(_,{get colorScheme(){return function(t){switch(t){case 1:return"neutral";case 2:return"success";default:return"info"}}(r)},get children(){var e;return null!==(e=t.roleMap[r])&&void 0!==e?e:r}})}})}})};t("default",(function(){var t=a();P("manage.sidemenu.users");var T=c().to,C=o(u((function(){return l.get("/admin/user/list")})),2),$=C[0],F=C[1],M=o(s([]),2),Y=M[0],q=M[1],D=function(){var t=n(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,F();case 2:e=t.sent,k(e,(function(t){return q(t.content)}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),R=o(s([]),2),W=R[0],B=R[1],H=f((function(){var t,r={},e=function(t,r){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=i(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 a,c=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return c=t.done,t},e:function(t){u=!0,a=t},f:function(){try{c||null==e.return||e.return()}finally{if(u)throw a}}}}(W());try{for(e.s();!(t=e.n()).done;){var n=t.value;r[n.id]=n.name}}catch(o){e.e(o)}finally{e.f()}return r})),J=function(){var t=n(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I();case 2:e=t.sent,k(e,(function(t){return B(t.content)}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();h((function(){J(),D()}));var Q=o(d((function(t){return l.post("/admin/user/delete?id=".concat(t))})),2),U=Q[0],X=Q[1],z=o(d((function(t){return l.post("/admin/user/cancel_2fa?id=".concat(t))})),2),K=z[0],V=z[1];return p(A,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[p(y,{spacing:"$2",get children(){return[p(v,{colorScheme:"accent",get loading(){return $()},onClick:D,get children(){return t("global.refresh")}}),p(v,{onClick:function(){T("/@manage/users/add")},get children(){return t("global.add")}})]}}),p(g,{w:"$full",overflowX:"auto",get children(){return p(m,{highlightOnHover:!0,dense:!0,get children(){return[p(w,{get children(){return p(b,{get children(){return[p(x,{each:["username","role","available"],children:function(r){return p(L,{get children(){return t("users.".concat(r))}})}}),p(L,{get children(){return t("global.operations")}})]}})}}),p(S,{get children(){return p(x,{get each(){return Y()},children:function(o){return p(b,{get children(){return[p(E,{get children(){return o.username}}),p(E,{get children(){return p(j,{get when(){return Object.keys(H()).length>0},get fallback(){return p(_,{children:"..."})},get children(){return p(e,{get role(){return o.role},get roleMap(){return H()}})}})}}),p(E,{get children(){return p(N,{get yes(){return!o.disabled}})}}),p(E,{get children(){return p(y,{spacing:"$2",get children(){return[p(v,{onClick:function(){T("/@manage/users/edit/".concat(o.id))},get children(){return t("global.edit")}}),p(G,{get name(){return o.username},get loading(){return U()===o.id},onClick:(i=n(r().mark((function e(){var n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,X(o.id);case 2:n=r.sent,k(n,(function(){O.success(t("global.delete_success")),D()}));case 4:case"end":return r.stop()}}),e)}))),function(){return i.apply(this,arguments)})}),p(v,{colorScheme:"accent",get loading(){return K()===o.id},onClick:(e=n(r().mark((function e(){var n;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,V(o.id);case 2:n=r.sent,k(n,(function(){O.success(t("users.cancel_2fa_success")),D()}));case 4:case"end":return r.stop()}}),e)}))),function(){return e.apply(this,arguments)}),get children(){return t("users.cancel_2fa")}})];var e,i}})}})]}})}})}})]}})}})]}})}))}}}))}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as t,y as s,cI as n}from"./index-
|
|
1
|
+
import{b as t,y as s,cI as n}from"./index-b0560a31.js";const c=e=>{const r=t();return s(n,{get colorScheme(){return e.yes?"success":"danger"},get children(){return r(`global.${e.yes?"yes":"no"}`)}})};export{c as W};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./index-legacy.
|
|
1
|
+
System.register(["./index-legacy.cdce98e1.js"],(function(e,t){"use strict";var n,r,c;return{setters:[function(e){n=e.b,r=e.y,c=e.cI}],execute:function(){e("W",(function(e){var t=n();return r(c,{get colorScheme(){return e.yes?"success":"danger"},get children(){return t("global.".concat(e.yes?"yes":"no"))}})}))}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as r,ba as i,bq as c,_ as p,y as o,av as d,cY as u,a3 as l}from"./index-
|
|
1
|
+
import{d as r,ba as i,bq as c,_ as p,y as o,av as d,cY as u,a3 as l}from"./index-b0560a31.js";const m=()=>{const{pathname:t}=r(),[s,n]=i(()=>c.post("/fs/other",{path:t(),password:p(),method:"doc_preview"}));return(async()=>{const a=await n();l(a,e=>{aliyun.config({mount:document.querySelector("#office-preview"),url:e.preview_url}).setToken({token:e.access_token})})})(),o(u,{get loading(){return s()},get children(){return o(d,{w:"$full",h:"70vh",id:"office-preview"})}})};export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}function r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var e={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function f(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(k){f=function(t,r,e){return t[r]=e}}function l(t,r,e,n){var o=r&&r.prototype instanceof p?r:p,i=Object.create(o.prototype),a=new _(n||[]);return i._invoke=function(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return O()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=L(a,e);if(c){if(c===h)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var u=s(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(k){return{type:"throw",arg:k}}}e.wrap=l;var h={};function p(){}function y(){}function v(){}var d={};f(d,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(j([])));g&&g!==n&&o.call(g,a)&&(d=g);var w=v.prototype=p.prototype=Object.create(d);function b(t){["next","throw","return"].forEach((function(r){f(t,r,(function(t){return this._invoke(r,t)}))}))}function x(r,e){function n(i,a,c,u){var f=s(r[i],r,a);if("throw"!==f.type){var l=f.arg,h=l.value;return h&&"object"==t(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(h).then((function(t){l.value=t,c(l)}),(function(t){return n("throw",t,c,u)}))}u(f.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}}function L(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,L(t,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=s(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,h;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function E(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function S(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,n=function r(){for(;++e<t.length;)if(o.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r};return n.next=n}}return{next:O}}function O(){return{value:void 0,done:!0}}return y.prototype=v,f(w,"constructor",v),f(v,"constructor",y),y.displayName=f(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===y||"GeneratorFunction"===(r.displayName||r.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,f(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},b(x.prototype),f(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),f(w,u,"Generator"),f(w,a,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=j,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function e(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),h},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),S(e),h}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;S(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:j(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},e}function e(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(f){return void e(f)}c.done?r(u):Promise.resolve(u).then(n,o)}function n(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var n,o,i=[],a=!0,c=!1;try{for(e=e.call(t);!(a=(n=e.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==e.return||e.return()}finally{if(c)throw o}}return i}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return o(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return o(t,r)}(t,r)||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 o(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}System.register(["./index-legacy.
|
|
1
|
+
!function(){function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}function r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var e={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function f(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(k){f=function(t,r,e){return t[r]=e}}function l(t,r,e,n){var o=r&&r.prototype instanceof p?r:p,i=Object.create(o.prototype),a=new _(n||[]);return i._invoke=function(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return O()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=L(a,e);if(c){if(c===h)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var u=s(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(k){return{type:"throw",arg:k}}}e.wrap=l;var h={};function p(){}function y(){}function v(){}var d={};f(d,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(j([])));g&&g!==n&&o.call(g,a)&&(d=g);var w=v.prototype=p.prototype=Object.create(d);function b(t){["next","throw","return"].forEach((function(r){f(t,r,(function(t){return this._invoke(r,t)}))}))}function x(r,e){function n(i,a,c,u){var f=s(r[i],r,a);if("throw"!==f.type){var l=f.arg,h=l.value;return h&&"object"==t(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(h).then((function(t){l.value=t,c(l)}),(function(t){return n("throw",t,c,u)}))}u(f.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}}function L(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,L(t,r),"throw"===r.method))return h;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=s(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,h;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function E(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function S(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,n=function r(){for(;++e<t.length;)if(o.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r};return n.next=n}}return{next:O}}function O(){return{value:void 0,done:!0}}return y.prototype=v,f(w,"constructor",v),f(v,"constructor",y),y.displayName=f(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===y||"GeneratorFunction"===(r.displayName||r.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,f(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},b(x.prototype),f(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),f(w,u,"Generator"),f(w,a,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=j,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function e(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),h},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),S(e),h}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;S(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:j(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),h}},e}function e(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(f){return void e(f)}c.done?r(u):Promise.resolve(u).then(n,o)}function n(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var n,o,i=[],a=!0,c=!1;try{for(e=e.call(t);!(a=(n=e.next()).done)&&(i.push(n.value),!r||i.length!==r);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==e.return||e.return()}finally{if(c)throw o}}return i}(t,r)||function(t,r){if(!t)return;if("string"==typeof t)return o(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return o(t,r)}(t,r)||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 o(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}System.register(["./index-legacy.cdce98e1.js"],(function(t,o){"use strict";var i,a,c,u,f,l,s,h;return{setters:[function(t){i=t.d,a=t.ba,c=t.bq,u=t._,f=t.y,l=t.av,s=t.cY,h=t.a3}],execute:function(){t("default",(function(){var t=i().pathname,o=n(a((function(){return c.post("/fs/other",{path:t(),password:u(),method:"doc_preview"})})),2),p=o[0],y=o[1],v=function(){var t,n=(t=r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,y();case 2:e=t.sent,h(e,(function(t){aliyun.config({mount:document.querySelector("#office-preview"),url:t.preview_url}).setToken({token:t.access_token})}));case 4:case"end":return t.stop()}}),t)})),function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function c(t){e(a,o,i,c,u,"next",t)}function u(t){e(a,o,i,c,u,"throw",t)}c(void 0)}))});return function(){return n.apply(this,arguments)}}();return v(),f(s,{get loading(){return p()},get children(){return f(l,{w:"$full",h:"70vh",id:"office-preview"})}})}))}}}))}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as B,cT as H,cG as D,an as c,cU as E,aV as W,aD as U,eQ as C,cX as w,aX as $,bR as J,bS as X,eR as G,ba as Q,bq as K,_ as Y,r as Z,a3 as z,n as M,x as ee,C as A,y as p,av as te,S as re,aJ as se,aA as oe,j,eS as L}from"./index-
|
|
1
|
+
import{d as B,cT as H,cG as D,an as c,cU as E,aV as W,aD as U,eQ as C,cX as w,aX as $,bR as J,bS as X,eR as G,ba as Q,bq as K,_ as Y,r as Z,a3 as z,n as M,x as ee,C as A,y as p,av as te,S as re,aJ as se,aA as oe,j,eS as L}from"./index-b0560a31.js";import{A as ne,a as le,V as ae}from"./video_box-de39a6c5.js";import{H as ie,a as ue,b as ce}from"./hls-86ec98bf.js";import{c as pe}from"./index-bfb42663.js";import"./_commonjs-dynamic-modules-302442b1.js";const he=oe("<span></span>"),be=()=>{var _,P,S;const{pathname:y,searchParams:O}=B(),{proxyLink:h}=H(),m=D();let u=c.objs.filter(e=>e.type===E.VIDEO);u.length===0&&(u=[c.obj]);const g=()=>{const e=u.findIndex(o=>o.name===c.obj.name);e<u.length-1&&m(j(L(location.pathname),u[e+1].name)+"?auto_fullscreen="+r.fullscreen)},F=()=>{const e=u.findIndex(o=>o.name===c.obj.name);e>0&&m(j(L(location.pathname),u[e-1].name)+"?auto_fullscreen="+r.fullscreen)};let r,i={id:y(),container:"#video-player",title:c.obj.name,volume:.5,autoplay:W("video_autoplay"),autoSize:!1,autoMini:!0,controls:[{name:"previous-button",index:10,position:"left",html:'<svg fill="none" stroke-width="2" xmlns="http://www.w3.org/2000/svg" height="22" width="22" class="icon icon-tabler icon-tabler-player-track-prev-filled" width="1em" height="1em" viewBox="0 0 24 24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" style="overflow: visible; color: currentcolor;"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M20.341 4.247l-8 7a1 1 0 0 0 0 1.506l8 7c.647 .565 1.659 .106 1.659 -.753v-14c0 -.86 -1.012 -1.318 -1.659 -.753z" stroke-width="0" fill="currentColor"></path><path d="M9.341 4.247l-8 7a1 1 0 0 0 0 1.506l8 7c.647 .565 1.659 .106 1.659 -.753v-14c0 -.86 -1.012 -1.318 -1.659 -.753z" stroke-width="0" fill="currentColor"></path></svg>',tooltip:"Previous",click:function(){F()}},{name:"next-button",index:11,position:"left",html:'<svg fill="none" stroke-width="2" xmlns="http://www.w3.org/2000/svg" height="22" width="22" class="icon icon-tabler icon-tabler-player-track-next-filled" width="1em" height="1em" viewBox="0 0 24 24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" style="overflow: visible; color: currentcolor;"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M2 5v14c0 .86 1.012 1.318 1.659 .753l8 -7a1 1 0 0 0 0 -1.506l-8 -7c-.647 -.565 -1.659 -.106 -1.659 .753z" stroke-width="0" fill="currentColor"></path><path d="M13 5v14c0 .86 1.012 1.318 1.659 .753l8 -7a1 1 0 0 0 0 -1.506l-8 -7c-.647 -.565 -1.659 -.106 -1.659 .753z" stroke-width="0" fill="currentColor"></path></svg>',tooltip:"Next",click:function(){g()}}],loop:!1,flip:!0,playbackRate:!0,aspectRatio:!0,setting:!0,hotkey:!0,pip:!0,mutex:!0,fullscreen:!0,fullscreenWeb:!0,subtitleOffset:!0,miniProgressBar:!1,playsInline:!0,theme:U(),quality:[],plugins:[ne],whitelist:[],screenshot:!0,settings:[],moreVideoAttr:{"webkit-playsinline":!0,playsInline:!0,crossOrigin:"anonymous"},type:"m3u8",customType:{m3u8:function(e,o){const l=new ie;l.loadSource(o),l.attachMedia(e),e.src||(e.src=o)}},lang:["en","zh-cn","zh-tw"].includes(C().toLowerCase())?C().toLowerCase():"en",lock:!0,fastForward:!0,autoPlayback:!0,autoOrientation:!0,airplay:!0};const f=c.related.filter(e=>{for(const o of[".srt",".ass",".vtt"])if(e.name.endsWith(o))return!0;return!1}),b=c.related.find(e=>{for(const o of[".xml"])if(e.name.endsWith(o))return!0;return!1});if(f.length!=0){let a=function(t){switch(e?"ass":"webvtt"){case"ass":r.subtitle.show=!1,r.emit("artplayer-plugin-ass:visible",t);break;case"webvtt":default:r.subtitle.show=t,r.emit("artplayer-plugin-ass:visible",!1);break}},e=!1;const o=f[0];w(o.name).toLowerCase()==="ass"?(e=!0,(_=i.plugins)==null||_.push(ue({subUrl:h(o,!0)}))):i.subtitle={url:h(o,!0),type:w(o.name)};const l=[{id:"setting_subtitle_display",html:"Display",tooltip:"Show",switch:!0,onSwitch:function(t){var s;t.tooltip=t.switch?"Hide":"Show",a(!t.switch);const n=(s=i.settings)==null?void 0:s.find(d=>d.id==="setting_subtitle");return n&&(n.tooltip=t.tooltip),!t.switch}}];f.forEach((t,n)=>{l.push({default:n===0,html:(()=>{const s=he.cloneNode(!0);return s.style.setProperty("max-width","200px"),s.style.setProperty("overflow","hidden"),s.style.setProperty("text-overflow","ellipsis"),s.style.setProperty("word-break","break-all"),s.style.setProperty("white-space","normal"),s.style.setProperty("display","-webkit-box"),s.style.setProperty("-webkit-line-clamp","2"),s.style.setProperty("-webkit-box-orient","vertical"),s.style.setProperty("font-size","12px"),$(s,()=>t.name),J(()=>X(s,"title",t.name)),s})(),name:t.name,url:h(t,!0)})}),(P=i.settings)==null||P.push({id:"setting_subtitle",html:"Subtitle",tooltip:"Show",icon:G({size:24}),selector:l,onSelect:function(t){var s,d;w(t.name).toLowerCase()==="ass"?(e=!0,this.emit("artplayer-plugin-ass:switch",t.url),a(!0)):(e=!1,this.subtitle.switch(t.url,{name:t.name}),this.once("subtitleLoad",a.bind(this,!0)));const n=l.find(q=>q.id==="setting_subtitle_display");return n&&!n.switch&&((d=(s=n.$html)==null?void 0:s.click)==null||d.call(s)),n==null?void 0:n.tooltip}})}b&&((S=i.plugins)==null||S.push(ce({danmuku:h(b,!0),speed:5,opacity:1,fontSize:25,color:"#FFFFFF",mode:0,margin:[0,"0%"],antiOverlap:!1,synchronousPlayback:!1,lockTime:5,maxLength:100,theme:"dark"})));const[de,v]=Q(()=>K.post("/fs/other",{path:y(),password:Y(),method:"video_preview"}));Z(async()=>{const e=await v();R(e.code!==200),z(e,o=>{const l=o.video_preview_play_info.live_transcoding_task_list.filter(t=>t.url);if(l.length===0){M.error("No transcoding video found");return}i.url=l[l.length-1].url,i.quality=l.map((t,n)=>({html:t.template_id,url:t.url,default:n===l.length-1})),r=new le(i);let a;switch(O.auto_fullscreen){case"true":a=!0;break;case"false":a=!1;break;default:a=!1}r.on("ready",()=>{r.fullscreen=a}),r.on("video:ended",()=>{N()&&g()}),k=window.setInterval(I,1e3*60*14)}),r.on("error",()=>{r.video.crossOrigin&&(console.log("Error detected. Trying to remove Cross-Origin attribute. Screenshot may not be available."),r.video.crossOrigin=null)})});let k,x;async function I(){const e=await v();z(e,async o=>{const l=o.video_preview_play_info.live_transcoding_task_list.filter(n=>n.url);if(l.length===0){M.error("No transcoding video found");return}const a=l.map((n,s)=>({html:n.template_id,url:n.url,default:s===l.length-1}));i.quality=a,r.quality=a,x=r.currentTime;let t=r.playing;await r.switchUrl(a[a.length-1].url),t||r.pause(),setTimeout(()=>{r.seek=x},1e3)})}ee(()=>{r==null||r.destroy(),window.clearInterval(k)});const[N,T]=A(),[V,R]=A(!1);return p(ae,{onAutoNextChange:T,get children(){return[p(te,{w:"$full",h:"60vh",id:"video-player"}),p(re,{get when(){return V()},get children(){return p(se,{w:"100%",h:"60vh",bgColor:"black",get children(){return p(pe,{size:"4rem"})}})}})]}})};export{be as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(O){c=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return E()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=k(a,r);if(l){if(l===h)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(O){return{type:"throw",arg:O}}}r.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};c(y,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(j([])));g&&g!==n&&o.call(g,a)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(i,a,l,u){var c=f(e[i],e,a);if("throw"!==c.type){var s=c.arg,h=s.value;return h&&"object"==t(h)&&o.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,l,u)}),(function(t){n("throw",t,l,u)})):r.resolve(h).then((function(t){s.value=t,l(s)}),(function(t){return n("throw",t,l,u)}))}u(c.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function k(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:E}}function E(){return{value:void 0,done:!0}}return d.prototype=v,c(w,"constructor",v),c(v,"constructor",d),d.displayName=c(v,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},b(x.prototype),c(x.prototype,l,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),c(w,u,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=j,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e,r,n,o,i,a){try{var l=t[i](a),u=l.value}catch(c){return void r(c)}l.done?e(u):Promise.resolve(u).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function l(t){r(a,o,i,l,u,"next",t)}function u(t){r(a,o,i,l,u,"throw",t)}l(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,l=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}System.register(["./index-legacy.9a995a78.js","./video_box-legacy.53fe4ab0.js","./hls-legacy.258e62dc.js","./index-legacy.831645c0.js","./_commonjs-dynamic-modules-legacy.57769aa1.js"],(function(t,r){"use strict";var i,a,l,u,c,s,f,h,p,d,v,y,m,g,w,b,x,k,_,L,S,j,E,O,P,C,z,I,N,A,F,T,G,M,q;return{setters:[function(t){i=t.d,a=t.cT,l=t.cG,u=t.an,c=t.cU,s=t.aV,f=t.aD,h=t.eQ,p=t.cX,d=t.aX,v=t.bR,y=t.bS,m=t.eR,g=t.ba,w=t.bq,b=t._,x=t.r,k=t.a3,_=t.n,L=t.x,S=t.C,j=t.y,E=t.av,O=t.S,P=t.aJ,C=t.aA,z=t.j,I=t.eS},function(t){N=t.A,A=t.a,F=t.V},function(t){T=t.H,G=t.a,M=t.b},function(t){q=t.c},null],execute:function(){var r=C("<span></span>");t("default",(function(){var t=i(),C=t.pathname,H=t.searchParams,R=a().proxyLink,U=l(),V=u.objs.filter((function(t){return t.type===c.VIDEO}));0===V.length&&(V=[u.obj]);var B,D,W=function(){var t=V.findIndex((function(t){return t.name===u.obj.name}));t<V.length-1&&U(z(I(location.pathname),V[t+1].name)+"?auto_fullscreen="+B.fullscreen)},$={id:C(),container:"#video-player",title:u.obj.name,volume:.5,autoplay:s("video_autoplay"),autoSize:!1,autoMini:!0,controls:[{name:"previous-button",index:10,position:"left",html:'<svg fill="none" stroke-width="2" xmlns="http://www.w3.org/2000/svg" height="22" width="22" class="icon icon-tabler icon-tabler-player-track-prev-filled" width="1em" height="1em" viewBox="0 0 24 24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" style="overflow: visible; color: currentcolor;"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M20.341 4.247l-8 7a1 1 0 0 0 0 1.506l8 7c.647 .565 1.659 .106 1.659 -.753v-14c0 -.86 -1.012 -1.318 -1.659 -.753z" stroke-width="0" fill="currentColor"></path><path d="M9.341 4.247l-8 7a1 1 0 0 0 0 1.506l8 7c.647 .565 1.659 .106 1.659 -.753v-14c0 -.86 -1.012 -1.318 -1.659 -.753z" stroke-width="0" fill="currentColor"></path></svg>',tooltip:"Previous",click:function(){var t;(t=V.findIndex((function(t){return t.name===u.obj.name})))>0&&U(z(I(location.pathname),V[t-1].name)+"?auto_fullscreen="+B.fullscreen)}},{name:"next-button",index:11,position:"left",html:'<svg fill="none" stroke-width="2" xmlns="http://www.w3.org/2000/svg" height="22" width="22" class="icon icon-tabler icon-tabler-player-track-next-filled" width="1em" height="1em" viewBox="0 0 24 24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" style="overflow: visible; color: currentcolor;"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M2 5v14c0 .86 1.012 1.318 1.659 .753l8 -7a1 1 0 0 0 0 -1.506l-8 -7c-.647 -.565 -1.659 -.106 -1.659 .753z" stroke-width="0" fill="currentColor"></path><path d="M13 5v14c0 .86 1.012 1.318 1.659 .753l8 -7a1 1 0 0 0 0 -1.506l-8 -7c-.647 -.565 -1.659 -.106 -1.659 .753z" stroke-width="0" fill="currentColor"></path></svg>',tooltip:"Next",click:function(){W()}}],loop:!1,flip:!0,playbackRate:!0,aspectRatio:!0,setting:!0,hotkey:!0,pip:!0,mutex:!0,fullscreen:!0,fullscreenWeb:!0,subtitleOffset:!0,miniProgressBar:!1,playsInline:!0,theme:f(),quality:[],plugins:[N],whitelist:[],screenshot:!0,settings:[],moreVideoAttr:{"webkit-playsinline":!0,playsInline:!0,crossOrigin:"anonymous"},type:"m3u8",customType:{m3u8:function(t,e){var r=new T;r.loadSource(e),r.attachMedia(t),t.src||(t.src=e)}},lang:["en","zh-cn","zh-tw"].includes(h().toLowerCase())?h().toLowerCase():"en",lock:!0,fastForward:!0,autoPlayback:!0,autoOrientation:!0,airplay:!0},X=u.related.filter((function(t){for(var e=0,r=[".srt",".ass",".vtt"];e<r.length;e++){var n=r[e];if(t.name.endsWith(n))return!0}return!1})),Y=u.related.find((function(t){for(var e=0,r=[".xml"];e<r.length;e++){var n=r[e];if(t.name.endsWith(n))return!0}return!1}));if(0!=X.length){var J,Q,K=!1,Z=X[0];if("ass"===p(Z.name).toLowerCase())K=!0,null===(Q=$.plugins)||void 0===Q||Q.push(G({subUrl:R(Z,!0)}));else $.subtitle={url:R(Z,!0),type:p(Z.name)};var tt=[{id:"setting_subtitle_display",html:"Display",tooltip:"Show",switch:!0,onSwitch:function(t){var e;t.tooltip=t.switch?"Hide":"Show",pt(!t.switch);var r=null===(e=$.settings)||void 0===e?void 0:e.find((function(t){return"setting_subtitle"===t.id}));return r&&(r.tooltip=t.tooltip),!t.switch}}];function pt(t){if("ass"===(K?"ass":"webvtt"))B.subtitle.show=!1,B.emit("artplayer-plugin-ass:visible",t);else B.subtitle.show=t,B.emit("artplayer-plugin-ass:visible",!1)}X.forEach((function(t,e){var n;tt.push({default:0===e,html:(n=r.cloneNode(!0),n.style.setProperty("max-width","200px"),n.style.setProperty("overflow","hidden"),n.style.setProperty("text-overflow","ellipsis"),n.style.setProperty("word-break","break-all"),n.style.setProperty("white-space","normal"),n.style.setProperty("display","-webkit-box"),n.style.setProperty("-webkit-line-clamp","2"),n.style.setProperty("-webkit-box-orient","vertical"),n.style.setProperty("font-size","12px"),d(n,(function(){return t.name})),v((function(){return y(n,"title",t.name)})),n),name:t.name,url:R(t,!0)})})),null===(J=$.settings)||void 0===J||J.push({id:"setting_subtitle",html:"Subtitle",tooltip:"Show",icon:m({size:24}),selector:tt,onSelect:function(t){var e,r;"ass"===p(t.name).toLowerCase()?(K=!0,this.emit("artplayer-plugin-ass:switch",t.url),pt(!0)):(K=!1,this.subtitle.switch(t.url,{name:t.name}),this.once("subtitleLoad",pt.bind(this,!0)));var n=tt.find((function(t){return"setting_subtitle_display"===t.id}));return n&&!n.switch&&(null===(e=n.$html)||void 0===e||null===(r=e.click)||void 0===r||r.call(e)),null==n?void 0:n.tooltip}})}Y&&(null===(D=$.plugins)||void 0===D||D.push(M({danmuku:R(Y,!0),speed:5,opacity:1,fontSize:25,color:"#FFFFFF",mode:0,margin:[0,"0%"],antiOverlap:!1,synchronousPlayback:!1,lockTime:5,maxLength:100,theme:"dark"})));var et,rt,nt=o(g((function(){return w.post("/fs/other",{path:C(),password:b(),method:"video_preview"})})),2),ot=(nt[0],nt[1]);function it(){return at.apply(this,arguments)}function at(){return at=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ot();case 2:r=t.sent,k(r,function(){var t=n(e().mark((function t(r){var n,o,i;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==(n=r.video_preview_play_info.live_transcoding_task_list.filter((function(t){return t.url}))).length){t.next=4;break}return _.error("No transcoding video found"),t.abrupt("return");case 4:return o=n.map((function(t,e){return{html:t.template_id,url:t.url,default:e===n.length-1}})),$.quality=o,B.quality=o,rt=B.currentTime,i=B.playing,t.next=11,B.switchUrl(o[o.length-1].url);case 11:i||B.pause(),setTimeout((function(){B.seek=rt}),1e3);case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 4:case"end":return t.stop()}}),t)}))),at.apply(this,arguments)}x(n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ot();case 2:r=t.sent,ht(200!==r.code),k(r,(function(t){var e=t.video_preview_play_info.live_transcoding_task_list.filter((function(t){return t.url}));if(0!==e.length){var r;if($.url=e[e.length-1].url,$.quality=e.map((function(t,r){return{html:t.template_id,url:t.url,default:r===e.length-1}})),B=new A($),"true"===H.auto_fullscreen)r=!0;else r=!1;B.on("ready",(function(){B.fullscreen=r})),B.on("video:ended",(function(){ut()&&W()})),et=window.setInterval(it,84e4)}else _.error("No transcoding video found")})),B.on("error",(function(){B.video.crossOrigin&&(console.log("Error detected. Trying to remove Cross-Origin attribute. Screenshot may not be available."),B.video.crossOrigin=null)}));case 6:case"end":return t.stop()}}),t)})))),L((function(){var t;null===(t=B)||void 0===t||t.destroy(),window.clearInterval(et)}));var lt=o(S(),2),ut=lt[0],ct=lt[1],st=o(S(!1),2),ft=st[0],ht=st[1];return j(F,{onAutoNextChange:ct,get children(){return[j(E,{w:"$full",h:"60vh",id:"video-player"}),j(O,{get when(){return ft()},get children(){return j(P,{w:"100%",h:"60vh",bgColor:"black",get children(){return j(q,{size:"4rem"})}})}})]}})}))}}}))}();
|
|
1
|
+
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(O){c=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return E()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=k(a,r);if(l){if(l===h)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(O){return{type:"throw",arg:O}}}r.wrap=s;var h={};function p(){}function d(){}function v(){}var y={};c(y,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(j([])));g&&g!==n&&o.call(g,a)&&(y=g);var w=v.prototype=p.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(i,a,l,u){var c=f(e[i],e,a);if("throw"!==c.type){var s=c.arg,h=s.value;return h&&"object"==t(h)&&o.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,l,u)}),(function(t){n("throw",t,l,u)})):r.resolve(h).then((function(t){s.value=t,l(s)}),(function(t){return n("throw",t,l,u)}))}u(c.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function k(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:E}}function E(){return{value:void 0,done:!0}}return d.prototype=v,c(w,"constructor",v),c(v,"constructor",d),d.displayName=c(v,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},b(x.prototype),c(x.prototype,l,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),c(w,u,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=j,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e,r,n,o,i,a){try{var l=t[i](a),u=l.value}catch(c){return void r(c)}l.done?e(u):Promise.resolve(u).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function l(t){r(a,o,i,l,u,"next",t)}function u(t){r(a,o,i,l,u,"throw",t)}l(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,l=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}System.register(["./index-legacy.cdce98e1.js","./video_box-legacy.86e3adf4.js","./hls-legacy.7eb02010.js","./index-legacy.d888bbd6.js","./_commonjs-dynamic-modules-legacy.57769aa1.js"],(function(t,r){"use strict";var i,a,l,u,c,s,f,h,p,d,v,y,m,g,w,b,x,k,_,L,S,j,E,O,P,C,z,I,N,A,F,T,G,M,q;return{setters:[function(t){i=t.d,a=t.cT,l=t.cG,u=t.an,c=t.cU,s=t.aV,f=t.aD,h=t.eQ,p=t.cX,d=t.aX,v=t.bR,y=t.bS,m=t.eR,g=t.ba,w=t.bq,b=t._,x=t.r,k=t.a3,_=t.n,L=t.x,S=t.C,j=t.y,E=t.av,O=t.S,P=t.aJ,C=t.aA,z=t.j,I=t.eS},function(t){N=t.A,A=t.a,F=t.V},function(t){T=t.H,G=t.a,M=t.b},function(t){q=t.c},null],execute:function(){var r=C("<span></span>");t("default",(function(){var t=i(),C=t.pathname,H=t.searchParams,R=a().proxyLink,U=l(),V=u.objs.filter((function(t){return t.type===c.VIDEO}));0===V.length&&(V=[u.obj]);var B,D,W=function(){var t=V.findIndex((function(t){return t.name===u.obj.name}));t<V.length-1&&U(z(I(location.pathname),V[t+1].name)+"?auto_fullscreen="+B.fullscreen)},$={id:C(),container:"#video-player",title:u.obj.name,volume:.5,autoplay:s("video_autoplay"),autoSize:!1,autoMini:!0,controls:[{name:"previous-button",index:10,position:"left",html:'<svg fill="none" stroke-width="2" xmlns="http://www.w3.org/2000/svg" height="22" width="22" class="icon icon-tabler icon-tabler-player-track-prev-filled" width="1em" height="1em" viewBox="0 0 24 24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" style="overflow: visible; color: currentcolor;"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M20.341 4.247l-8 7a1 1 0 0 0 0 1.506l8 7c.647 .565 1.659 .106 1.659 -.753v-14c0 -.86 -1.012 -1.318 -1.659 -.753z" stroke-width="0" fill="currentColor"></path><path d="M9.341 4.247l-8 7a1 1 0 0 0 0 1.506l8 7c.647 .565 1.659 .106 1.659 -.753v-14c0 -.86 -1.012 -1.318 -1.659 -.753z" stroke-width="0" fill="currentColor"></path></svg>',tooltip:"Previous",click:function(){var t;(t=V.findIndex((function(t){return t.name===u.obj.name})))>0&&U(z(I(location.pathname),V[t-1].name)+"?auto_fullscreen="+B.fullscreen)}},{name:"next-button",index:11,position:"left",html:'<svg fill="none" stroke-width="2" xmlns="http://www.w3.org/2000/svg" height="22" width="22" class="icon icon-tabler icon-tabler-player-track-next-filled" width="1em" height="1em" viewBox="0 0 24 24" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" style="overflow: visible; color: currentcolor;"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M2 5v14c0 .86 1.012 1.318 1.659 .753l8 -7a1 1 0 0 0 0 -1.506l-8 -7c-.647 -.565 -1.659 -.106 -1.659 .753z" stroke-width="0" fill="currentColor"></path><path d="M13 5v14c0 .86 1.012 1.318 1.659 .753l8 -7a1 1 0 0 0 0 -1.506l-8 -7c-.647 -.565 -1.659 -.106 -1.659 .753z" stroke-width="0" fill="currentColor"></path></svg>',tooltip:"Next",click:function(){W()}}],loop:!1,flip:!0,playbackRate:!0,aspectRatio:!0,setting:!0,hotkey:!0,pip:!0,mutex:!0,fullscreen:!0,fullscreenWeb:!0,subtitleOffset:!0,miniProgressBar:!1,playsInline:!0,theme:f(),quality:[],plugins:[N],whitelist:[],screenshot:!0,settings:[],moreVideoAttr:{"webkit-playsinline":!0,playsInline:!0,crossOrigin:"anonymous"},type:"m3u8",customType:{m3u8:function(t,e){var r=new T;r.loadSource(e),r.attachMedia(t),t.src||(t.src=e)}},lang:["en","zh-cn","zh-tw"].includes(h().toLowerCase())?h().toLowerCase():"en",lock:!0,fastForward:!0,autoPlayback:!0,autoOrientation:!0,airplay:!0},X=u.related.filter((function(t){for(var e=0,r=[".srt",".ass",".vtt"];e<r.length;e++){var n=r[e];if(t.name.endsWith(n))return!0}return!1})),Y=u.related.find((function(t){for(var e=0,r=[".xml"];e<r.length;e++){var n=r[e];if(t.name.endsWith(n))return!0}return!1}));if(0!=X.length){var J,Q,K=!1,Z=X[0];if("ass"===p(Z.name).toLowerCase())K=!0,null===(Q=$.plugins)||void 0===Q||Q.push(G({subUrl:R(Z,!0)}));else $.subtitle={url:R(Z,!0),type:p(Z.name)};var tt=[{id:"setting_subtitle_display",html:"Display",tooltip:"Show",switch:!0,onSwitch:function(t){var e;t.tooltip=t.switch?"Hide":"Show",pt(!t.switch);var r=null===(e=$.settings)||void 0===e?void 0:e.find((function(t){return"setting_subtitle"===t.id}));return r&&(r.tooltip=t.tooltip),!t.switch}}];function pt(t){if("ass"===(K?"ass":"webvtt"))B.subtitle.show=!1,B.emit("artplayer-plugin-ass:visible",t);else B.subtitle.show=t,B.emit("artplayer-plugin-ass:visible",!1)}X.forEach((function(t,e){var n;tt.push({default:0===e,html:(n=r.cloneNode(!0),n.style.setProperty("max-width","200px"),n.style.setProperty("overflow","hidden"),n.style.setProperty("text-overflow","ellipsis"),n.style.setProperty("word-break","break-all"),n.style.setProperty("white-space","normal"),n.style.setProperty("display","-webkit-box"),n.style.setProperty("-webkit-line-clamp","2"),n.style.setProperty("-webkit-box-orient","vertical"),n.style.setProperty("font-size","12px"),d(n,(function(){return t.name})),v((function(){return y(n,"title",t.name)})),n),name:t.name,url:R(t,!0)})})),null===(J=$.settings)||void 0===J||J.push({id:"setting_subtitle",html:"Subtitle",tooltip:"Show",icon:m({size:24}),selector:tt,onSelect:function(t){var e,r;"ass"===p(t.name).toLowerCase()?(K=!0,this.emit("artplayer-plugin-ass:switch",t.url),pt(!0)):(K=!1,this.subtitle.switch(t.url,{name:t.name}),this.once("subtitleLoad",pt.bind(this,!0)));var n=tt.find((function(t){return"setting_subtitle_display"===t.id}));return n&&!n.switch&&(null===(e=n.$html)||void 0===e||null===(r=e.click)||void 0===r||r.call(e)),null==n?void 0:n.tooltip}})}Y&&(null===(D=$.plugins)||void 0===D||D.push(M({danmuku:R(Y,!0),speed:5,opacity:1,fontSize:25,color:"#FFFFFF",mode:0,margin:[0,"0%"],antiOverlap:!1,synchronousPlayback:!1,lockTime:5,maxLength:100,theme:"dark"})));var et,rt,nt=o(g((function(){return w.post("/fs/other",{path:C(),password:b(),method:"video_preview"})})),2),ot=(nt[0],nt[1]);function it(){return at.apply(this,arguments)}function at(){return at=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ot();case 2:r=t.sent,k(r,function(){var t=n(e().mark((function t(r){var n,o,i;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==(n=r.video_preview_play_info.live_transcoding_task_list.filter((function(t){return t.url}))).length){t.next=4;break}return _.error("No transcoding video found"),t.abrupt("return");case 4:return o=n.map((function(t,e){return{html:t.template_id,url:t.url,default:e===n.length-1}})),$.quality=o,B.quality=o,rt=B.currentTime,i=B.playing,t.next=11,B.switchUrl(o[o.length-1].url);case 11:i||B.pause(),setTimeout((function(){B.seek=rt}),1e3);case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 4:case"end":return t.stop()}}),t)}))),at.apply(this,arguments)}x(n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ot();case 2:r=t.sent,ht(200!==r.code),k(r,(function(t){var e=t.video_preview_play_info.live_transcoding_task_list.filter((function(t){return t.url}));if(0!==e.length){var r;if($.url=e[e.length-1].url,$.quality=e.map((function(t,r){return{html:t.template_id,url:t.url,default:r===e.length-1}})),B=new A($),"true"===H.auto_fullscreen)r=!0;else r=!1;B.on("ready",(function(){B.fullscreen=r})),B.on("video:ended",(function(){ut()&&W()})),et=window.setInterval(it,84e4)}else _.error("No transcoding video found")})),B.on("error",(function(){B.video.crossOrigin&&(console.log("Error detected. Trying to remove Cross-Origin attribute. Screenshot may not be available."),B.video.crossOrigin=null)}));case 6:case"end":return t.stop()}}),t)})))),L((function(){var t;null===(t=B)||void 0===t||t.destroy(),window.clearInterval(et)}));var lt=o(S(),2),ut=lt[0],ct=lt[1],st=o(S(!1),2),ft=st[0],ht=st[1];return j(F,{onAutoNextChange:ct,get children(){return[j(E,{w:"$full",h:"60vh",id:"video-player"}),j(O,{get when(){return ft()},get children(){return j(P,{w:"100%",h:"60vh",bgColor:"black",get children(){return j(q,{size:"4rem"})}})}})]}})}))}}}))}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as K,d as le,ba as N,e_ as ce,e$ as de,B as ue,C as d,I as ge,y as e,ae as he,a8 as V,a9 as Y,a6 as G,ad as fe,al as me,am as P,ao as we,S as H,ar as h,aG as be,cY as pe,Y as J,a7 as xe,cy as _e,aw as z,aa as $e,aE as Q,aD as ke,ds as ye,de as Ce,dS as je,au as ve,V as Se,dh as Me,aO as Pe,ay as Oe,az as Ie,W as Le,_ as O,F as f,f0 as Be,q as ze,aN as Ee}from"./index-
|
|
1
|
+
import{b as K,d as le,ba as N,e_ as ce,e$ as de,B as ue,C as d,I as ge,y as e,ae as he,a8 as V,a9 as Y,a6 as G,ad as fe,al as me,am as P,ao as we,S as H,ar as h,aG as be,cY as pe,Y as J,a7 as xe,cy as _e,aw as z,aa as $e,aE as Q,aD as ke,ds as ye,de as Ce,dS as je,au as ve,V as Se,dh as Me,aO as Pe,ay as Oe,az as Ie,W as Le,_ as O,F as f,f0 as Be,q as ze,aN as Ee}from"./index-b0560a31.js";import{a as Ae,c as m}from"./List-e85a0b2a.js";import{T as qe,e as Fe}from"./index-653e8df2.js";import Te from"./Password-ecb0e10f.js";import{u as De}from"./helper-e7a18c7f.js";import{x as I,w as Re,b as Ue}from"./solid-contextmenu-905ecc32.js";/* empty css */import"./storage-class-1ac53f89.js";import"./color-a58de010.js";function We(){let n=!1,o=[];return{acquire:()=>new Promise(a=>{n?o.push(a):(n=!0,a())}),release:()=>{o.length>0?o.shift()():n=!1}}}const X=n=>{window.open(n,"_blank")},Ne=n=>{const{show:o}=Ue({id:2}),{isMouseSupported:a}=De(),u=()=>ze.list_item_filename_overflow;return e(ve.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.2},style:{width:"100%"},get children(){return e(z,{class:"list-item viselect-item",get"data-index"(){return n.index},w:"$full",p:"$2",rounded:"$lg",transition:"all 0.3s",get _hover(){return{transform:"scale(1.01)",bgColor:$e()}},get cursor(){return a()?"default":"pointer"},"on:click":w=>{n.obj.is_dir?n.jumpCallback():n.url&&X(n.url)},onContextMenu:w=>{o(w,{props:n})},get children(){return[e(z,{class:"name-box",spacing:"$1",get w(){return m[0].w},get children(){return[e(Q,{class:"icon",boxSize:"$6",get color(){return ke()},get as(){return ye(n.obj)},mr:"$1"}),e(h,{class:"name",get css(){return{wordBreak:"break-all",whiteSpace:u()==="multi_line"?"unset":"nowrap","overflow-x":u()==="scrollable"?"auto":"hidden",textOverflow:u()==="ellipsis"?"ellipsis":"unset","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}}},get title(){return n.obj.name},get children(){return n.obj.name}})]}}),e(h,{class:"size",get w(){return m[1].w},get textAlign(){return m[1].textAlign},get children(){return Ce(n.obj.size)}}),e(h,{class:"modified",display:{"@initial":"none","@md":"inline"},get w(){return m[2].w},get textAlign(){return m[2].textAlign},get children(){return je(n.obj.modified)}})]}})}})},L={extract:{icon:qe,color:"$success9"},copy_link:{icon:Fe,color:"$info9"},download:{icon:Ee,color:"$primary9"}},Ve=()=>{const{copy:n}=Se(),{colorMode:o}=Me();return e(Re,{id:2,animation:"scale",get theme(){return o()!=="dark"?"light":"dark"},style:"z-index: var(--hope-zIndices-popover)",get children(){return[e(I,{hidden:({props:a})=>a.obj.is_dir,onClick:({props:a})=>{X(a.url)},get children(){return e(B,{name:"download"})}}),e(I,{hidden:({props:a})=>a.obj.is_dir,onClick:({props:a})=>{n(a.url)},get children(){return e(B,{name:"copy_link"})}}),e(I,{hidden:()=>{const a=Pe.findIndex(u=>u==="decompress");return!Oe.can(Ie(),a)},onClick:({props:a})=>{Le.emit("extract",JSON.stringify({inner:a.innerPath,pass:a.pass}))},get children(){return e(B,{name:"extract"})}})]}})},B=n=>{const o=K();return e(z,{spacing:"$2",get children(){return[e(Q,{get p(){return L[n.name].p?"$1":void 0},get as(){return L[n.name].icon},boxSize:"$7",get color(){return L[n.name].color}}),e(h,{get children(){return o(`home.toolbar.${n.name}`)}})]}})},tt=()=>{const n=K(),{pathname:o}=le(),[a,u]=N(ce),[w,E]=N(de),Z=ue(()=>a()||w());let l="",$="",k="",b=null;const[y,p]=d(""),[ee,A]=d(!1),[C,j]=d(!1),[q,te]=d(""),[c,v]=d([]),[S,F]=d(),[re,T]=d(!1),[ne,D]=d(""),g=We(),x=r=>{let s={};return r.forEach(t=>{s[t.name]={...t,children:t.children?x(t.children):null}}),s},M=r=>r.code===200?!1:(r.code===202?f(()=>{l!==""&&A(!0),j(!0),p("")}):p(r.message),!0),R=async r=>{if(await g.acquire(),C()&&l==="")return g.release(),[];if($===""){const t=await u(o(),O(),l);if(M(t))return g.release(),[];if(t.data.content!==null&&(b=x(t.data.content)),$=t.data.raw_url,k=t.data.sign,te(t.data.comment),t.data.sort!==void 0){let i;t.data.sort.order_by!==""&&(i=t.data.sort.order_by);let _=t.data.sort.order_direction==="desc",oe=t.data.sort.extract_folder;f(()=>{F(i),T(_),D(oe)})}if(t.data.encrypted&&l==="")return f(()=>{j(!0),p("")}),g.release(),[]}if(b===null){const t=await E(o(),O(),l,"/");if(M(t))return g.release(),[];b=x(t.data.content)}let s=b;for(let t=0;t<r.length;t++){if(s[r[t]].children===null){const i=await E(o(),O(),l,"/"+r.slice(0,t+1).join("/"));if(M(i))return g.release(),[];s[r[t]].children=x(i.data.content)}s=s[r[t]].children}return f(()=>{j(!1),A(!1),p("")}),g.release(),Object.values(s)},[ae,U]=d([]);ge(()=>{R(c()).then(r=>U(r))});const W=()=>{R(c()).then(r=>U(r))};W();const se=()=>{let r=ae();S()&&(r=r.sort((t,i)=>(re()?-1:1)*Be(t[S()],i[S()])));let s=ne();if(s!==""){let t=[],i=[];r.forEach(_=>(_.is_dir?t:i).push(_)),r=s==="front"?t.concat(i):i.concat(t)}return r},ie=(r,s)=>{f(()=>{D(""),F(r),s!==void 0&&T(s)})};return e(J,{spacing:"$2",w:"$full",get children(){return[e(he,{pl:"$2",pr:"$2",w:"$full",get children(){return[e(V,{get children(){return e(Y,{get currentPage(){return c().length===0},"on:click":()=>v([]),children:"."})}}),e(G,{get each(){return c()},children:(r,s)=>e(V,{get children(){return[e(fe,{}),e(Y,{get currentPage(){return c().length===s()+1},"on:click":()=>v(c().slice(0,s()+1)),children:r})]}})})]}}),e(me,{get children(){return[e(P,{get when(){return y()!==""},get children(){return e(we,{get msg(){return y()},disableColor:!0})}}),e(P,{get when(){return C()},get children(){return e(Te,{get title(){return n("home.toolbar.archive.input_password")},password:()=>l,setPassword:r=>l=r,enterCallback:()=>W(),get children(){return e(H,{get when(){return ee()},get children(){return e(h,{color:"$danger9",get children(){return n("home.toolbar.archive.incorrect_password")}})}})}})}}),e(P,{get when(){return be(()=>!C(),!0)()&&y()===""},get children(){return e(pe,{get loading(){return Z()},get children(){return e(J,{class:"list",w:"$full",spacing:"$1",get children(){return[e(Ae,{sortCallback:ie,disableCheckbox:!0}),e(G,{get each(){return se()},children:(r,s)=>{let t,i=(c().length>0?"/"+c().join("/"):"")+"/"+r.name;return r.is_dir||(t=$+"?inner="+xe(i,!0),l!==""&&(t=t+"&pass="+encodeURIComponent(l)),k!==""&&(t=t+"&sign="+k)),e(Ne,{obj:r,get index(){return s()},jumpCallback:()=>v(c().concat(r.name)),innerPath:i,url:t,pass:l})}}),e(Ve,{})]}})}})}})]}}),e(H,{get when(){return q()!==""},get children(){return[e(_e,{}),e(h,{w:"$full",pl:"$1",pr:"$1",get children(){return q()}})]}})]}})};export{tt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(E){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=j(a,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}r.wrap=s;var h={};function d(){}function p(){}function g(){}var y={};l(y,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(L([])));m&&m!==n&&o.call(m,a)&&(y=m);var b=g.prototype=d.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(i,a,c,u){var l=f(e[i],e,a);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==t(h)&&o.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):r.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,u)}))}u(l.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function j(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,j(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function L(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=g,l(b,"constructor",g),l(g,"constructor",p),p.displayName=l(g,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},r.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,c,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),l(b,u,"Generator"),l(b,a,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=L,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(l){return void r(l)}c.done?e(u):Promise.resolve(u).then(n,o)}function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t,e)||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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}System.register(["./index-legacy.9a995a78.js","./List-legacy.d509dbd5.js","./index-legacy.257815ef.js","./Password-legacy.f4c14222.js","./helper-legacy.c67cf50b.js","./solid-contextmenu-legacy.0f1769af.js","./style-legacy.7dd9ebfd.js","./storage-class-legacy.7f6d9768.js","./color-legacy.24148ccb.js"],(function(t,n){"use strict";var a,u,l,s,f,h,d,p,g,y,v,m,b,w,x,j,O,_,k,L,S,E,P,$,C,A,I,N,G,z,T,F,D,M,Y,q,B,U,J,R,V,W,H,K,Q,X,Z,tt,et,rt,nt,ot;return{setters:[function(t){a=t.b,u=t.d,l=t.ba,s=t.e_,f=t.e$,h=t.B,d=t.C,p=t.I,g=t.y,y=t.ae,v=t.a8,m=t.a9,b=t.a6,w=t.ad,x=t.al,j=t.am,O=t.ao,_=t.S,k=t.ar,L=t.aG,S=t.cY,E=t.Y,P=t.a7,$=t.cy,C=t.aw,A=t.aa,I=t.aE,N=t.aD,G=t.ds,z=t.de,T=t.dS,F=t.au,D=t.V,M=t.dh,Y=t.aO,q=t.ay,B=t.az,U=t.W,J=t._,R=t.F,V=t.f0,W=t.q,H=t.aN},function(t){K=t.a,Q=t.c},function(t){X=t.T,Z=t.e},function(t){tt=t.default},function(t){et=t.u},function(t){rt=t.x,nt=t.w,ot=t.b},null,null,null],execute:function(){var n=function(t){window.open(t,"_blank")},it=function(t){var e=ot({id:2}).show,r=et().isMouseSupported,o=function(){return W.list_item_filename_overflow};return g(F.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.2},style:{width:"100%"},get children(){var i,a,u;return g(C,(a={class:"list-item viselect-item"},(u={})[i="data-index"]=u[i]||{},u[i].get=function(){return t.index},c(a,"w","$full"),c(a,"p","$2"),c(a,"rounded","$lg"),c(a,"transition","all 0.3s"),"_hover",u._hover=u._hover||{},u._hover.get=function(){return{transform:"scale(1.01)",bgColor:A()}},"cursor",u.cursor=u.cursor||{},u.cursor.get=function(){return r()?"default":"pointer"},c(a,"on:click",(function(e){t.obj.is_dir?t.jumpCallback():t.url&&n(t.url)})),c(a,"onContextMenu",(function(r){e(r,{props:t})})),"children",u.children=u.children||{},u.children.get=function(){return[g(C,{class:"name-box",spacing:"$1",get w(){return Q[0].w},get children(){return[g(I,{class:"icon",boxSize:"$6",get color(){return N()},get as(){return G(t.obj)},mr:"$1"}),g(k,{class:"name",get css(){return{wordBreak:"break-all",whiteSpace:"multi_line"===o()?"unset":"nowrap","overflow-x":"scrollable"===o()?"auto":"hidden",textOverflow:"ellipsis"===o()?"ellipsis":"unset","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}}},get title(){return t.obj.name},get children(){return t.obj.name}})]}}),g(k,{class:"size",get w(){return Q[1].w},get textAlign(){return Q[1].textAlign},get children(){return z(t.obj.size)}}),g(k,{class:"modified",display:{"@initial":"none","@md":"inline"},get w(){return Q[2].w},get textAlign(){return Q[2].textAlign},get children(){return T(t.obj.modified)}})]},function(t,e){for(var r in e)(i=e[r]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r,i);if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(e),o=0;o<n.length;o++){var i,a=n[o];(i=e[a]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a,i)}}(a,u),a))}})},at={extract:{icon:X,color:"$success9"},copy_link:{icon:Z,color:"$info9"},download:{icon:H,color:"$primary9"}},ct=function(){var t=D().copy,e=M().colorMode;return g(nt,{id:2,animation:"scale",get theme(){return"dark"!==e()?"light":"dark"},style:"z-index: var(--hope-zIndices-popover)",get children(){return[g(rt,{hidden:function(t){return t.props.obj.is_dir},onClick:function(t){var e=t.props;n(e.url)},get children(){return g(ut,{name:"download"})}}),g(rt,{hidden:function(t){return t.props.obj.is_dir},onClick:function(e){var r=e.props;t(r.url)},get children(){return g(ut,{name:"copy_link"})}}),g(rt,{hidden:function(){var t=Y.findIndex((function(t){return"decompress"===t}));return!q.can(B(),t)},onClick:function(t){var e=t.props;U.emit("extract",JSON.stringify({inner:e.innerPath,pass:e.pass}))},get children(){return g(ut,{name:"extract"})}})]}})},ut=function(t){var e=a();return g(C,{spacing:"$2",get children(){return[g(I,{get p(){return at[t.name].p?"$1":void 0},get as(){return at[t.name].icon},boxSize:"$7",get color(){return at[t.name].color}}),g(k,{get children(){return e("home.toolbar.".concat(t.name))}})]}})};t("default",(function(){var t,n,c=a(),C=u().pathname,A=i(l(s),2),I=A[0],N=A[1],G=i(l(f),2),z=G[0],T=G[1],F=h((function(){return I()||z()})),D="",M="",Y="",q=null,B=i(d(""),2),U=B[0],W=B[1],H=i(d(!1),2),Q=H[0],X=H[1],Z=i(d(!1),2),et=Z[0],rt=Z[1],nt=i(d(""),2),ot=nt[0],at=nt[1],ut=i(d([]),2),lt=ut[0],st=ut[1],ft=i(d(),2),ht=ft[0],dt=ft[1],pt=i(d(!1),2),gt=pt[0],yt=pt[1],vt=i(d(""),2),mt=vt[0],bt=vt[1],wt=(t=!1,n=[],{acquire:function(){return new Promise((function(e){t?n.push(e):(t=!0,e())}))},release:function(){n.length>0?n.shift()():t=!1}}),xt=function t(e){var r={};return e.forEach((function(e){r[e.name]=o(o({},e),{},{children:e.children?t(e.children):null})})),r},jt=function(t){return 200!==t.code&&(202===t.code?R((function(){""!==D&&X(!0),rt(!0),W("")})):W(t.message),!0)},Ot=function(){var t,n=(t=e().mark((function t(r){var n,o,i,a,c,u,l,s;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,wt.acquire();case 2:if(!et()||""!==D){t.next=5;break}return wt.release(),t.abrupt("return",[]);case 5:if(""!==M){t.next=21;break}return t.next=8,N(C(),J(),D);case 8:if(n=t.sent,!jt(n)){t.next=12;break}return wt.release(),t.abrupt("return",[]);case 12:if(null!==n.data.content&&(q=xt(n.data.content)),M=n.data.raw_url,Y=n.data.sign,at(n.data.comment),void 0!==n.data.sort&&(o=void 0,""!==n.data.sort.order_by&&(o=n.data.sort.order_by),i="desc"===n.data.sort.order_direction,a=n.data.sort.extract_folder,R((function(){dt(o),yt(i),bt(a)}))),!n.data.encrypted||""!==D){t.next=21;break}return R((function(){rt(!0),W("")})),wt.release(),t.abrupt("return",[]);case 21:if(null!==q){t.next=29;break}return t.next=24,T(C(),J(),D,"/");case 24:if(c=t.sent,!jt(c)){t.next=28;break}return wt.release(),t.abrupt("return",[]);case 28:q=xt(c.data.content);case 29:u=q,l=0;case 31:if(!(l<r.length)){t.next=44;break}if(null!==u[r[l]].children){t.next=40;break}return t.next=35,T(C(),J(),D,"/"+r.slice(0,l+1).join("/"));case 35:if(s=t.sent,!jt(s)){t.next=39;break}return wt.release(),t.abrupt("return",[]);case 39:u[r[l]].children=xt(s.data.content);case 40:u=u[r[l]].children;case 41:l++,t.next=31;break;case 44:return R((function(){rt(!1),X(!1),W("")})),wt.release(),t.abrupt("return",Object.values(u));case 47:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function c(t){r(a,o,i,c,u,"next",t)}function u(t){r(a,o,i,c,u,"throw",t)}c(void 0)}))});return function(t){return n.apply(this,arguments)}}(),_t=i(d([]),2),kt=_t[0],Lt=_t[1];p((function(){Ot(lt()).then((function(t){return Lt(t)}))}));var St=function(){Ot(lt()).then((function(t){return Lt(t)}))};St();var Et=function(t,e){R((function(){bt(""),dt(t),void 0!==e&&yt(e)}))};return g(E,{spacing:"$2",w:"$full",get children(){return[g(y,{pl:"$2",pr:"$2",w:"$full",get children(){return[g(v,{get children(){return g(m,{get currentPage(){return 0===lt().length},"on:click":function(){return st([])},children:"."})}}),g(b,{get each(){return lt()},children:function(t,e){return g(v,{get children(){return[g(w,{}),g(m,{get currentPage(){return lt().length===e()+1},"on:click":function(){return st(lt().slice(0,e()+1))},children:t})]}})}})]}}),g(x,{get children(){return[g(j,{get when(){return""!==U()},get children(){return g(O,{get msg(){return U()},disableColor:!0})}}),g(j,{get when(){return et()},get children(){return g(tt,{get title(){return c("home.toolbar.archive.input_password")},password:function(){return D},setPassword:function(t){return D=t},enterCallback:function(){return St()},get children(){return g(_,{get when(){return Q()},get children(){return g(k,{color:"$danger9",get children(){return c("home.toolbar.archive.incorrect_password")}})}})}})}}),g(j,{get when(){return L((function(){return!et()}),!0)()&&""===U()},get children(){return g(S,{get loading(){return F()},get children(){return g(E,{class:"list",w:"$full",spacing:"$1",get children(){return[g(K,{sortCallback:Et,disableCheckbox:!0}),g(b,{get each(){return function(){var t=kt();ht()&&(t=t.sort((function(t,e){return(gt()?-1:1)*V(t[ht()],e[ht()])})));var e=mt();if(""!==e){var r=[],n=[];t.forEach((function(t){return(t.is_dir?r:n).push(t)})),t="front"===e?r.concat(n):n.concat(r)}return t}()},children:function(t,e){var r=void 0,n=(lt().length>0?"/"+lt().join("/"):"")+"/"+t.name;return t.is_dir||(r=M+"?inner="+P(n,!0),""!==D&&(r=r+"&pass="+encodeURIComponent(D)),""!==Y&&(r=r+"&sign="+Y)),g(it,{obj:t,get index(){return e()},jumpCallback:function(){return st(lt().concat(t.name))},innerPath:n,url:r,pass:D})}}),g(ct,{})]}})}})}})]}}),g(_,{get when(){return""!==ot()},get children(){return[g($,{}),g(k,{w:"$full",pl:"$1",pr:"$1",get children(){return ot()}})]}})]}})}))}}}))}();
|
|
1
|
+
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(E){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=j(a,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(E){return{type:"throw",arg:E}}}r.wrap=s;var h={};function d(){}function p(){}function g(){}var y={};l(y,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(L([])));m&&m!==n&&o.call(m,a)&&(y=m);var b=g.prototype=d.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(i,a,c,u){var l=f(e[i],e,a);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==t(h)&&o.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):r.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,u)}))}u(l.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function j(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,j(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function L(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=g,l(b,"constructor",g),l(g,"constructor",p),p.displayName=l(g,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},r.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,c,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),l(b,u,"Generator"),l(b,a,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=L,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(l){return void r(l)}c.done?e(u):Promise.resolve(u).then(n,o)}function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,c=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==r.return||r.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t,e)||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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}System.register(["./index-legacy.cdce98e1.js","./List-legacy.401536e5.js","./index-legacy.a2e25f9b.js","./Password-legacy.6428b474.js","./helper-legacy.f3369b5d.js","./solid-contextmenu-legacy.b73c8617.js","./style-legacy.7dd9ebfd.js","./storage-class-legacy.7f6d9768.js","./color-legacy.24148ccb.js"],(function(t,n){"use strict";var a,u,l,s,f,h,d,p,g,y,v,m,b,w,x,j,O,_,k,L,S,E,P,$,C,A,I,N,G,z,T,F,D,M,Y,q,B,U,J,R,V,W,H,K,Q,X,Z,tt,et,rt,nt,ot;return{setters:[function(t){a=t.b,u=t.d,l=t.ba,s=t.e_,f=t.e$,h=t.B,d=t.C,p=t.I,g=t.y,y=t.ae,v=t.a8,m=t.a9,b=t.a6,w=t.ad,x=t.al,j=t.am,O=t.ao,_=t.S,k=t.ar,L=t.aG,S=t.cY,E=t.Y,P=t.a7,$=t.cy,C=t.aw,A=t.aa,I=t.aE,N=t.aD,G=t.ds,z=t.de,T=t.dS,F=t.au,D=t.V,M=t.dh,Y=t.aO,q=t.ay,B=t.az,U=t.W,J=t._,R=t.F,V=t.f0,W=t.q,H=t.aN},function(t){K=t.a,Q=t.c},function(t){X=t.T,Z=t.e},function(t){tt=t.default},function(t){et=t.u},function(t){rt=t.x,nt=t.w,ot=t.b},null,null,null],execute:function(){var n=function(t){window.open(t,"_blank")},it=function(t){var e=ot({id:2}).show,r=et().isMouseSupported,o=function(){return W.list_item_filename_overflow};return g(F.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{duration:.2},style:{width:"100%"},get children(){var i,a,u;return g(C,(a={class:"list-item viselect-item"},(u={})[i="data-index"]=u[i]||{},u[i].get=function(){return t.index},c(a,"w","$full"),c(a,"p","$2"),c(a,"rounded","$lg"),c(a,"transition","all 0.3s"),"_hover",u._hover=u._hover||{},u._hover.get=function(){return{transform:"scale(1.01)",bgColor:A()}},"cursor",u.cursor=u.cursor||{},u.cursor.get=function(){return r()?"default":"pointer"},c(a,"on:click",(function(e){t.obj.is_dir?t.jumpCallback():t.url&&n(t.url)})),c(a,"onContextMenu",(function(r){e(r,{props:t})})),"children",u.children=u.children||{},u.children.get=function(){return[g(C,{class:"name-box",spacing:"$1",get w(){return Q[0].w},get children(){return[g(I,{class:"icon",boxSize:"$6",get color(){return N()},get as(){return G(t.obj)},mr:"$1"}),g(k,{class:"name",get css(){return{wordBreak:"break-all",whiteSpace:"multi_line"===o()?"unset":"nowrap","overflow-x":"scrollable"===o()?"auto":"hidden",textOverflow:"ellipsis"===o()?"ellipsis":"unset","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}}},get title(){return t.obj.name},get children(){return t.obj.name}})]}}),g(k,{class:"size",get w(){return Q[1].w},get textAlign(){return Q[1].textAlign},get children(){return z(t.obj.size)}}),g(k,{class:"modified",display:{"@initial":"none","@md":"inline"},get w(){return Q[2].w},get textAlign(){return Q[2].textAlign},get children(){return T(t.obj.modified)}})]},function(t,e){for(var r in e)(i=e[r]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r,i);if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(e),o=0;o<n.length;o++){var i,a=n[o];(i=e[a]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a,i)}}(a,u),a))}})},at={extract:{icon:X,color:"$success9"},copy_link:{icon:Z,color:"$info9"},download:{icon:H,color:"$primary9"}},ct=function(){var t=D().copy,e=M().colorMode;return g(nt,{id:2,animation:"scale",get theme(){return"dark"!==e()?"light":"dark"},style:"z-index: var(--hope-zIndices-popover)",get children(){return[g(rt,{hidden:function(t){return t.props.obj.is_dir},onClick:function(t){var e=t.props;n(e.url)},get children(){return g(ut,{name:"download"})}}),g(rt,{hidden:function(t){return t.props.obj.is_dir},onClick:function(e){var r=e.props;t(r.url)},get children(){return g(ut,{name:"copy_link"})}}),g(rt,{hidden:function(){var t=Y.findIndex((function(t){return"decompress"===t}));return!q.can(B(),t)},onClick:function(t){var e=t.props;U.emit("extract",JSON.stringify({inner:e.innerPath,pass:e.pass}))},get children(){return g(ut,{name:"extract"})}})]}})},ut=function(t){var e=a();return g(C,{spacing:"$2",get children(){return[g(I,{get p(){return at[t.name].p?"$1":void 0},get as(){return at[t.name].icon},boxSize:"$7",get color(){return at[t.name].color}}),g(k,{get children(){return e("home.toolbar.".concat(t.name))}})]}})};t("default",(function(){var t,n,c=a(),C=u().pathname,A=i(l(s),2),I=A[0],N=A[1],G=i(l(f),2),z=G[0],T=G[1],F=h((function(){return I()||z()})),D="",M="",Y="",q=null,B=i(d(""),2),U=B[0],W=B[1],H=i(d(!1),2),Q=H[0],X=H[1],Z=i(d(!1),2),et=Z[0],rt=Z[1],nt=i(d(""),2),ot=nt[0],at=nt[1],ut=i(d([]),2),lt=ut[0],st=ut[1],ft=i(d(),2),ht=ft[0],dt=ft[1],pt=i(d(!1),2),gt=pt[0],yt=pt[1],vt=i(d(""),2),mt=vt[0],bt=vt[1],wt=(t=!1,n=[],{acquire:function(){return new Promise((function(e){t?n.push(e):(t=!0,e())}))},release:function(){n.length>0?n.shift()():t=!1}}),xt=function t(e){var r={};return e.forEach((function(e){r[e.name]=o(o({},e),{},{children:e.children?t(e.children):null})})),r},jt=function(t){return 200!==t.code&&(202===t.code?R((function(){""!==D&&X(!0),rt(!0),W("")})):W(t.message),!0)},Ot=function(){var t,n=(t=e().mark((function t(r){var n,o,i,a,c,u,l,s;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,wt.acquire();case 2:if(!et()||""!==D){t.next=5;break}return wt.release(),t.abrupt("return",[]);case 5:if(""!==M){t.next=21;break}return t.next=8,N(C(),J(),D);case 8:if(n=t.sent,!jt(n)){t.next=12;break}return wt.release(),t.abrupt("return",[]);case 12:if(null!==n.data.content&&(q=xt(n.data.content)),M=n.data.raw_url,Y=n.data.sign,at(n.data.comment),void 0!==n.data.sort&&(o=void 0,""!==n.data.sort.order_by&&(o=n.data.sort.order_by),i="desc"===n.data.sort.order_direction,a=n.data.sort.extract_folder,R((function(){dt(o),yt(i),bt(a)}))),!n.data.encrypted||""!==D){t.next=21;break}return R((function(){rt(!0),W("")})),wt.release(),t.abrupt("return",[]);case 21:if(null!==q){t.next=29;break}return t.next=24,T(C(),J(),D,"/");case 24:if(c=t.sent,!jt(c)){t.next=28;break}return wt.release(),t.abrupt("return",[]);case 28:q=xt(c.data.content);case 29:u=q,l=0;case 31:if(!(l<r.length)){t.next=44;break}if(null!==u[r[l]].children){t.next=40;break}return t.next=35,T(C(),J(),D,"/"+r.slice(0,l+1).join("/"));case 35:if(s=t.sent,!jt(s)){t.next=39;break}return wt.release(),t.abrupt("return",[]);case 39:u[r[l]].children=xt(s.data.content);case 40:u=u[r[l]].children;case 41:l++,t.next=31;break;case 44:return R((function(){rt(!1),X(!1),W("")})),wt.release(),t.abrupt("return",Object.values(u));case 47:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function c(t){r(a,o,i,c,u,"next",t)}function u(t){r(a,o,i,c,u,"throw",t)}c(void 0)}))});return function(t){return n.apply(this,arguments)}}(),_t=i(d([]),2),kt=_t[0],Lt=_t[1];p((function(){Ot(lt()).then((function(t){return Lt(t)}))}));var St=function(){Ot(lt()).then((function(t){return Lt(t)}))};St();var Et=function(t,e){R((function(){bt(""),dt(t),void 0!==e&&yt(e)}))};return g(E,{spacing:"$2",w:"$full",get children(){return[g(y,{pl:"$2",pr:"$2",w:"$full",get children(){return[g(v,{get children(){return g(m,{get currentPage(){return 0===lt().length},"on:click":function(){return st([])},children:"."})}}),g(b,{get each(){return lt()},children:function(t,e){return g(v,{get children(){return[g(w,{}),g(m,{get currentPage(){return lt().length===e()+1},"on:click":function(){return st(lt().slice(0,e()+1))},children:t})]}})}})]}}),g(x,{get children(){return[g(j,{get when(){return""!==U()},get children(){return g(O,{get msg(){return U()},disableColor:!0})}}),g(j,{get when(){return et()},get children(){return g(tt,{get title(){return c("home.toolbar.archive.input_password")},password:function(){return D},setPassword:function(t){return D=t},enterCallback:function(){return St()},get children(){return g(_,{get when(){return Q()},get children(){return g(k,{color:"$danger9",get children(){return c("home.toolbar.archive.incorrect_password")}})}})}})}}),g(j,{get when(){return L((function(){return!et()}),!0)()&&""===U()},get children(){return g(S,{get loading(){return F()},get children(){return g(E,{class:"list",w:"$full",spacing:"$1",get children(){return[g(K,{sortCallback:Et,disableCheckbox:!0}),g(b,{get each(){return function(){var t=kt();ht()&&(t=t.sort((function(t,e){return(gt()?-1:1)*V(t[ht()],e[ht()])})));var e=mt();if(""!==e){var r=[],n=[];t.forEach((function(t){return(t.is_dir?r:n).push(t)})),t="front"===e?r.concat(n):n.concat(r)}return t}()},children:function(t,e){var r=void 0,n=(lt().length>0?"/"+lt().join("/"):"")+"/"+t.name;return t.is_dir||(r=M+"?inner="+P(n,!0),""!==D&&(r=r+"&pass="+encodeURIComponent(D)),""!==Y&&(r=r+"&sign="+Y)),g(it,{obj:t,get index(){return e()},jumpCallback:function(){return st(lt().concat(t.name))},innerPath:n,url:r,pass:D})}}),g(ct,{})]}})}})}})]}}),g(_,{get when(){return""!==ot()},get children(){return[g($,{}),g(k,{w:"$full",pl:"$1",pr:"$1",get children(){return ot()}})]}})]}})}))}}}))}();
|