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.
Files changed (236) hide show
  1. package/dist/assets/{2fa-abc3de78.js → 2fa-4e84c410.js} +1 -1
  2. package/dist/assets/{2fa-legacy.55737098.js → 2fa-legacy.f6d2ef4d.js} +1 -1
  3. package/dist/assets/{About-ebade33f.js → About-190507e6.js} +1 -1
  4. package/dist/assets/{About-legacy.1ab87d8b.js → About-legacy.b327ecf8.js} +1 -1
  5. package/dist/assets/{AddLabelDialog-d838839b.js → AddLabelDialog-9914fe78.js} +1 -1
  6. package/dist/assets/{AddLabelDialog-legacy.0c773d90.js → AddLabelDialog-legacy.036a9ab6.js} +1 -1
  7. package/dist/assets/{AddOrEdit-616ec90f.js → AddOrEdit-47e0ac05.js} +1 -1
  8. package/dist/assets/{AddOrEdit-b4bb1c42.js → AddOrEdit-67238002.js} +1 -1
  9. package/dist/assets/{AddOrEdit-ebed8ac0.js → AddOrEdit-79a98c71.js} +1 -1
  10. package/dist/assets/{AddOrEdit-81330314.js → AddOrEdit-83e5bdd3.js} +1 -1
  11. package/dist/assets/{AddOrEdit-legacy.2fd88478.js → AddOrEdit-legacy.3db7bb35.js} +1 -1
  12. package/dist/assets/{AddOrEdit-legacy.acbb24c8.js → AddOrEdit-legacy.4c3acaab.js} +1 -1
  13. package/dist/assets/{AddOrEdit-legacy.3af450b0.js → AddOrEdit-legacy.cd047027.js} +1 -1
  14. package/dist/assets/{AddOrEdit-legacy.abd115d9.js → AddOrEdit-legacy.e74c5c7c.js} +1 -1
  15. package/dist/assets/{Common-ca550843.js → Common-0e68477f.js} +1 -1
  16. package/dist/assets/{Common-legacy.b3ab5071.js → Common-legacy.c2861b24.js} +1 -1
  17. package/dist/assets/{Copy-0384ca0d.js → Copy-279e327d.js} +1 -1
  18. package/dist/assets/{Copy-legacy.e201e664.js → Copy-legacy.fde30af5.js} +1 -1
  19. package/dist/assets/Decompress-43856ece.js +1 -0
  20. package/dist/assets/{Decompress-legacy.3df460b6.js → Decompress-legacy.babd980c.js} +1 -1
  21. package/dist/assets/{DeletePopover-3958d0ad.js → DeletePopover-8805036c.js} +1 -1
  22. package/dist/assets/{DeletePopover-legacy.49680594.js → DeletePopover-legacy.c02233f5.js} +1 -1
  23. package/dist/assets/{EditLabelDialog-ea31ea23.js → EditLabelDialog-caa825c7.js} +1 -1
  24. package/dist/assets/{EditLabelDialog-legacy.2b5bee02.js → EditLabelDialog-legacy.f130f84a.js} +1 -1
  25. package/dist/assets/{File-9c374f1a.js → File-a608e169.js} +1 -1
  26. package/dist/assets/{File-legacy.9d2c3ca7.js → File-legacy.ba03acb0.js} +1 -1
  27. package/dist/assets/{Folder-14a25b89.js → Folder-26f37994.js} +2 -2
  28. package/dist/assets/{Folder-legacy.de37bd62.js → Folder-legacy.f5072a96.js} +2 -2
  29. package/dist/assets/{FolderTree-7ae29384.js → FolderTree-89544a6b.js} +1 -1
  30. package/dist/assets/{FolderTree-legacy.53528cb3.js → FolderTree-legacy.4bc9cb59.js} +1 -1
  31. package/dist/assets/{Frp-f7302299.js → Frp-056a26c6.js} +1 -1
  32. package/dist/assets/{Frp-legacy.71102175.js → Frp-legacy.f5b4d8c3.js} +1 -1
  33. package/dist/assets/Grid-37629e6d.js +1 -0
  34. package/dist/assets/{Grid-legacy.164386d7.js → Grid-legacy.dc4aab9b.js} +1 -1
  35. package/dist/assets/{GridItem-657d21bd.js → GridItem-be9067db.js} +1 -1
  36. package/dist/assets/{GridItem-legacy.2c3dbff8.js → GridItem-legacy.76a1e630.js} +1 -1
  37. package/dist/assets/ImageWithError-ad444cc4.js +1 -0
  38. package/dist/assets/{ImageWithError-legacy.991e20db.js → ImageWithError-legacy.d1f48994.js} +1 -1
  39. package/dist/assets/{Images-1b5fd472.js → Images-83a8d60b.js} +1 -1
  40. package/dist/assets/{Images-legacy.d3a439bd.js → Images-legacy.4d33680c.js} +1 -1
  41. package/dist/assets/{Layout-77c54d54.js → Layout-897b8819.js} +4 -4
  42. package/dist/assets/{Layout-legacy.d9c36690.js → Layout-legacy.76d8e726.js} +1 -1
  43. package/dist/assets/{List-cb3f2b1f.js → List-e85a0b2a.js} +1 -1
  44. package/dist/assets/{List-legacy.d509dbd5.js → List-legacy.401536e5.js} +1 -1
  45. package/dist/assets/{Messenger-69bf75f1.js → Messenger-68d3a6f9.js} +1 -1
  46. package/dist/assets/{Messenger-legacy.2447ffbd.js → Messenger-legacy.bc15d42f.js} +1 -1
  47. package/dist/assets/{Metas-6fc6206f.js → Metas-e05f9ce1.js} +1 -1
  48. package/dist/assets/{Metas-legacy.a22fda65.js → Metas-legacy.fbb019f8.js} +1 -1
  49. package/dist/assets/{Other-bf0c8f40.js → Other-359d1308.js} +1 -1
  50. package/dist/assets/{Other-legacy.0b52198b.js → Other-legacy.98d34500.js} +1 -1
  51. package/dist/assets/{PackageDownload-f1225dad.js → PackageDownload-519b9a38.js} +1 -1
  52. package/dist/assets/{PackageDownload-legacy.5ce2ee6a.js → PackageDownload-legacy.99bfadfb.js} +1 -1
  53. package/dist/assets/{Paginator-8b9321c4.js → Paginator-c9173645.js} +1 -1
  54. package/dist/assets/{Paginator-legacy.25f9c490.js → Paginator-legacy.20830174.js} +1 -1
  55. package/dist/assets/{Password-b98cef17.js → Password-ecb0e10f.js} +1 -1
  56. package/dist/assets/{Password-legacy.f4c14222.js → Password-legacy.6428b474.js} +1 -1
  57. package/dist/assets/{PermissionForm-7a161a53.js → PermissionForm-c3eb17c8.js} +1 -1
  58. package/dist/assets/{PermissionForm-legacy.14a9fe69.js → PermissionForm-legacy.7c5eb6c6.js} +1 -1
  59. package/dist/assets/{Profile-e8195cc8.js → Profile-3ee435be.js} +1 -1
  60. package/dist/assets/{Profile-legacy.876024b1.js → Profile-legacy.b4580d6f.js} +1 -1
  61. package/dist/assets/{ResponsiveGrid-0e943896.js → ResponsiveGrid-c7c746e7.js} +1 -1
  62. package/dist/assets/{ResponsiveGrid-legacy.a9062597.js → ResponsiveGrid-legacy.f9981337.js} +1 -1
  63. package/dist/assets/{Role-3e2c225c.js → Role-9912dd61.js} +1 -1
  64. package/dist/assets/{Role-legacy.2745cfe3.js → Role-legacy.6533ab1b.js} +1 -1
  65. package/dist/assets/{S3-3211311d.js → S3-0aa994e6.js} +1 -1
  66. package/dist/assets/{S3-legacy.6b587900.js → S3-legacy.0fefd5e0.js} +1 -1
  67. package/dist/assets/{S3Transition-4b41bf18.js → S3Transition-89090584.js} +1 -1
  68. package/dist/assets/{S3Transition-legacy.cf3cde2a.js → S3Transition-legacy.87d826d5.js} +1 -1
  69. package/dist/assets/{SettingItem-e7a7bfc9.js → SettingItem-004aa8f7.js} +1 -1
  70. package/dist/assets/{SettingItem-legacy.b5a9ffeb.js → SettingItem-legacy.4459beb0.js} +1 -1
  71. package/dist/assets/{Storages-baae5b17.js → Storages-41749b58.js} +1 -1
  72. package/dist/assets/{Storages-legacy.bf0c1aa1.js → Storages-legacy.06dcad07.js} +1 -1
  73. package/dist/assets/StrmGenerate-59595312.js +1 -0
  74. package/dist/assets/{StrmGenerate-d4f07081.js → StrmGenerate-a872c94f.js} +1 -1
  75. package/dist/assets/{StrmGenerate-legacy.ecbb8e9d.js → StrmGenerate-legacy.bd455ae0.js} +1 -1
  76. package/dist/assets/{StrmGenerate-legacy.4402360f.js → StrmGenerate-legacy.cabca006.js} +1 -1
  77. package/dist/assets/{Tag-ffe1a992.js → Tag-090a70de.js} +1 -1
  78. package/dist/assets/{Tag-legacy.971a1953.js → Tag-legacy.4d08ea51.js} +1 -1
  79. package/dist/assets/{Task-438c4d6b.js → Task-305456a7.js} +1 -1
  80. package/dist/assets/{Task-legacy.607e52ad.js → Task-legacy.bef00b05.js} +1 -1
  81. package/dist/assets/{Tasks-c0229b29.js → Tasks-bcb27730.js} +1 -1
  82. package/dist/assets/{Tasks-legacy.f3598230.js → Tasks-legacy.e4e4be39.js} +1 -1
  83. package/dist/assets/Upload-dea525de.js +1 -0
  84. package/dist/assets/{Upload-958e240c.js → Upload-f8f5df20.js} +1 -1
  85. package/dist/assets/{Upload-legacy.698d3c2b.js → Upload-legacy.3167d140.js} +1 -1
  86. package/dist/assets/{Upload-legacy.03c286e2.js → Upload-legacy.ea24de65.js} +1 -1
  87. package/dist/assets/{Users-bdf25bea.js → Users-00f028b6.js} +1 -1
  88. package/dist/assets/{Users-legacy.b0075433.js → Users-legacy.6adffa4b.js} +1 -1
  89. package/dist/assets/{Wether-891c8709.js → Wether-2ad383a0.js} +1 -1
  90. package/dist/assets/{Wether-legacy.7a5c9f59.js → Wether-legacy.c0dbd869.js} +1 -1
  91. package/dist/assets/{aliyun_office-a22ac966.js → aliyun_office-70f9e774.js} +1 -1
  92. package/dist/assets/{aliyun_office-legacy.910c67dd.js → aliyun_office-legacy.01ab1f19.js} +1 -1
  93. package/dist/assets/{aliyun_video-72e75696.js → aliyun_video-8ecd5833.js} +1 -1
  94. package/dist/assets/{aliyun_video-legacy.3ca538ae.js → aliyun_video-legacy.b463b3a2.js} +1 -1
  95. package/dist/assets/{archive-15d8b252.js → archive-734c2ae5.js} +1 -1
  96. package/dist/assets/{archive-legacy.141ed6de.js → archive-legacy.665b85a4.js} +1 -1
  97. package/dist/assets/{asciinema-befe680b.js → asciinema-63cb7e53.js} +1 -1
  98. package/dist/assets/{asciinema-legacy.0e111ef8.js → asciinema-legacy.4d730bad.js} +1 -1
  99. package/dist/assets/{audio-37bb4f75.js → audio-99be5f4b.js} +1 -1
  100. package/dist/assets/{audio-legacy.9c9e6fd9.js → audio-legacy.cb5be320.js} +1 -1
  101. package/dist/assets/{backup-restore-8d5112f2.js → backup-restore-87d007a6.js} +1 -1
  102. package/dist/assets/{backup-restore-legacy.21994194.js → backup-restore-legacy.fca2a0a0.js} +1 -1
  103. package/dist/assets/{doubao-4962e438.js → doubao-edc7ea0c.js} +1 -1
  104. package/dist/assets/{doubao-legacy.e8e5bddc.js → doubao-legacy.1a73dcb5.js} +1 -1
  105. package/dist/assets/{download-cf222578.js → download-fe955410.js} +1 -1
  106. package/dist/assets/{download-legacy.6b17b261.js → download-legacy.40f6adf0.js} +1 -1
  107. package/dist/assets/entry-47b2abb1.js +5 -0
  108. package/dist/assets/entry-53f2edcc.js +5 -0
  109. package/dist/assets/entry-65f35baf.js +5 -0
  110. package/dist/assets/entry-76e6ff37.js +8 -0
  111. package/dist/assets/entry-7bf2f5c5.js +5 -0
  112. package/dist/assets/entry-8a764c5e.js +5 -0
  113. package/dist/assets/entry-8e81cbee.js +6 -0
  114. package/dist/assets/entry-ad0c322e.js +5 -0
  115. package/dist/assets/entry-cd479580.js +9 -0
  116. package/dist/assets/entry-dbda7502.js +5 -0
  117. package/dist/assets/entry-legacy.113b27f4.js +1 -0
  118. package/dist/assets/entry-legacy.12fb7042.js +1 -0
  119. package/dist/assets/entry-legacy.205b85a6.js +1 -0
  120. package/dist/assets/entry-legacy.84c5b84d.js +1 -0
  121. package/dist/assets/entry-legacy.99944f7e.js +1 -0
  122. package/dist/assets/entry-legacy.a1e4c725.js +1 -0
  123. package/dist/assets/entry-legacy.ccf750f1.js +1 -0
  124. package/dist/assets/entry-legacy.d79bc047.js +1 -0
  125. package/dist/assets/entry-legacy.e342d8cc.js +1 -0
  126. package/dist/assets/entry-legacy.e6d5043a.js +1 -0
  127. package/dist/assets/{helper-bcff9934.js → helper-cfffcdeb.js} +1 -1
  128. package/dist/assets/{helper-8d6da87f.js → helper-e7a18c7f.js} +1 -1
  129. package/dist/assets/{helper-legacy.fc3cc7d5.js → helper-legacy.ecf72a12.js} +1 -1
  130. package/dist/assets/{helper-legacy.c67cf50b.js → helper-legacy.f3369b5d.js} +1 -1
  131. package/dist/assets/{hls-34ad2bf0.js → hls-86ec98bf.js} +1 -1
  132. package/dist/assets/{hls-legacy.258e62dc.js → hls-legacy.7eb02010.js} +1 -1
  133. package/dist/assets/{html-772e9d83.js → html-f0c8404b.js} +1 -1
  134. package/dist/assets/{html-legacy.d0f89f46.js → html-legacy.6b46728d.js} +1 -1
  135. package/dist/assets/{image-73b55447.js → image-aee483b3.js} +1 -1
  136. package/dist/assets/{image-legacy.944e86c3.js → image-legacy.293578fc.js} +1 -1
  137. package/dist/assets/{index-6021c988.js → index-1c7df6bb.js} +1 -1
  138. package/dist/assets/{index-cbfadd9b.js → index-1da4255f.js} +1 -1
  139. package/dist/assets/index-1eca9bf7.js +1 -0
  140. package/dist/assets/{index-76fcdbdf.js → index-286258af.js} +1 -1
  141. package/dist/assets/{index-66f271c4.js → index-3409ca0b.js} +1 -1
  142. package/dist/assets/{index-003b5203.js → index-425600b4.js} +1 -1
  143. package/dist/assets/{index-14204052.js → index-63d411f6.js} +1 -1
  144. package/dist/assets/{index-6cfcfd46.js → index-653e8df2.js} +1 -1
  145. package/dist/assets/{index-ccd3c2df.js → index-9f389c06.js} +1 -1
  146. package/dist/assets/{index-0af67a26.js → index-b0560a31.js} +3 -3
  147. package/dist/assets/{index-bc854cf4.js → index-b8456ee7.js} +1 -1
  148. package/dist/assets/{index-66bc0c4a.js → index-bfb42663.js} +1 -1
  149. package/dist/assets/{index-2da9ca8e.js → index-d2ee9913.js} +1 -1
  150. package/dist/assets/{index-314d6447.js → index-e2343554.js} +1 -1
  151. package/dist/assets/{index-legacy.35aba8a0.js → index-legacy.04ddeb6e.js} +1 -1
  152. package/dist/assets/{index-legacy.53efc4c8.js → index-legacy.510e67dc.js} +1 -1
  153. package/dist/assets/{index-legacy.5a403980.js → index-legacy.5f2e7154.js} +1 -1
  154. package/dist/assets/{index-legacy.7b9d362b.js → index-legacy.766df57d.js} +1 -1
  155. package/dist/assets/{index-legacy.14cbd866.js → index-legacy.77dc574f.js} +1 -1
  156. package/dist/assets/{index-legacy.2ecd8568.js → index-legacy.7d5d9c7c.js} +1 -1
  157. package/dist/assets/{index-legacy.24d29f81.js → index-legacy.93f532c8.js} +1 -1
  158. package/dist/assets/{index-legacy.257815ef.js → index-legacy.a2e25f9b.js} +1 -1
  159. package/dist/assets/{index-legacy.9a995a78.js → index-legacy.cdce98e1.js} +3 -3
  160. package/dist/assets/{index-legacy.831645c0.js → index-legacy.d888bbd6.js} +1 -1
  161. package/dist/assets/{index-legacy.aa1b93bf.js → index-legacy.e544ccf2.js} +1 -1
  162. package/dist/assets/{index-legacy.f9d48ec7.js → index-legacy.e65fdd44.js} +1 -1
  163. package/dist/assets/{index-legacy.b2067bd5.js → index-legacy.e932630e.js} +1 -1
  164. package/dist/assets/{index-legacy.06ba96c2.js → index-legacy.eb264a4b.js} +1 -1
  165. package/dist/assets/{indexes-39a5b1ff.js → indexes-d17840a6.js} +1 -1
  166. package/dist/assets/{indexes-legacy.8769beeb.js → indexes-legacy.4a5b688a.js} +1 -1
  167. package/dist/assets/{info-6b46a634.js → info-a9253ca6.js} +1 -1
  168. package/dist/assets/{info-legacy.dc8f48be.js → info-legacy.a104f6ee.js} +1 -1
  169. package/dist/assets/{ipa-86dc8896.js → ipa-adf70a53.js} +1 -1
  170. package/dist/assets/{ipa-legacy.17ae2e8d.js → ipa-legacy.b0527f0c.js} +1 -1
  171. package/dist/assets/{lark-73a41a60.js → lark-1a7cae41.js} +1 -1
  172. package/dist/assets/{lark-legacy.24acf7f1.js → lark-legacy.05b566b8.js} +1 -1
  173. package/dist/assets/{lark_tools-649a02b3.js → lark_tools-fb000845.js} +1 -1
  174. package/dist/assets/{lark_tools-legacy.eecb6c72.js → lark_tools-legacy.6fedd7ea.js} +1 -1
  175. package/dist/assets/{layout-5d35ffe8.js → layout-28afe0f0.js} +1 -1
  176. package/dist/assets/{layout-legacy.ae9754f2.js → layout-legacy.e0cfb4c0.js} +1 -1
  177. package/dist/assets/{management-0c24b19e.js → management-01a86f43.js} +1 -1
  178. package/dist/assets/{management-legacy.8848a8f8.js → management-legacy.77a4015b.js} +1 -1
  179. package/dist/assets/{markdown-8d906270.js → markdown-5ea99b9a.js} +1 -1
  180. package/dist/assets/{markdown-legacy.9eb66931.js → markdown-legacy.ff36c111.js} +1 -1
  181. package/dist/assets/{markdown_with_word_wrap-c0408f23.js → markdown_with_word_wrap-a0b244a5.js} +1 -1
  182. package/dist/assets/{markdown_with_word_wrap-legacy.3463bef2.js → markdown_with_word_wrap-legacy.a6da7d19.js} +1 -1
  183. package/dist/assets/{mySession-884023ca.js → mySession-084533dd.js} +1 -1
  184. package/dist/assets/{mySession-legacy.68203a3e.js → mySession-legacy.2f5e1d14.js} +1 -1
  185. package/dist/assets/offline_download-ed30f8c1.js +1 -0
  186. package/dist/assets/{offline_download-legacy.d0f875cd.js → offline_download-legacy.fe7fa221.js} +1 -1
  187. package/dist/assets/{open-with-7bd13257.js → open-with-79c445c3.js} +1 -1
  188. package/dist/assets/{open-with-legacy.89db98a3.js → open-with-legacy.a62babc1.js} +1 -1
  189. package/dist/assets/{plist-18445805.js → plist-90c2d892.js} +1 -1
  190. package/dist/assets/{plist-legacy.c128376d.js → plist-legacy.3de6335c.js} +1 -1
  191. package/dist/assets/{polyfills-legacy.bfccebe0.js → polyfills-legacy.03573a32.js} +1 -1
  192. package/dist/assets/{shares-d862241a.js → shares-63cf54ab.js} +1 -1
  193. package/dist/assets/{shares-legacy.2e408931.js → shares-legacy.63ed175b.js} +1 -1
  194. package/dist/assets/{solid-contextmenu-389460bd.js → solid-contextmenu-905ecc32.js} +1 -1
  195. package/dist/assets/{solid-contextmenu-legacy.0f1769af.js → solid-contextmenu-legacy.b73c8617.js} +1 -1
  196. package/dist/assets/{text-editor-ffff6c54.js → text-editor-4451aa37.js} +1 -1
  197. package/dist/assets/{text-editor-legacy.cd9e1a2d.js → text-editor-legacy.1d233d02.js} +1 -1
  198. package/dist/assets/{url-23fb7cc0.js → url-755a9cce.js} +1 -1
  199. package/dist/assets/{url-legacy.b18d3809.js → url-legacy.a69a518d.js} +1 -1
  200. package/dist/assets/{useTitle-394ae64f.js → useTitle-838069b0.js} +1 -1
  201. package/dist/assets/{useTitle-legacy.2e69d9a6.js → useTitle-legacy.b3b2613b.js} +1 -1
  202. package/dist/assets/{video-ebb98b67.js → video-08e3c2a6.js} +1 -1
  203. package/dist/assets/{video-legacy.768a1779.js → video-legacy.a9ff6ce2.js} +1 -1
  204. package/dist/assets/{video360-a4d64816.js → video360-fc95901a.js} +1 -1
  205. package/dist/assets/{video360-legacy.8266ee4a.js → video360-legacy.e051fc87.js} +1 -1
  206. package/dist/assets/{video_box-a8a43c3b.js → video_box-de39a6c5.js} +1 -1
  207. package/dist/assets/{video_box-legacy.53fe4ab0.js → video_box-legacy.86e3adf4.js} +1 -1
  208. package/dist/index.html +3 -3
  209. package/package.json +1 -1
  210. package/dist/assets/Decompress-272f91b5.js +0 -1
  211. package/dist/assets/Grid-f0c4d013.js +0 -1
  212. package/dist/assets/ImageWithError-270ffbd0.js +0 -1
  213. package/dist/assets/StrmGenerate-768d6021.js +0 -1
  214. package/dist/assets/Upload-e69eb0ff.js +0 -1
  215. package/dist/assets/entry-23d0eac8.js +0 -5
  216. package/dist/assets/entry-2abbb591.js +0 -5
  217. package/dist/assets/entry-55b019b5.js +0 -6
  218. package/dist/assets/entry-6fb77620.js +0 -5
  219. package/dist/assets/entry-9896052e.js +0 -5
  220. package/dist/assets/entry-9a9c06fb.js +0 -5
  221. package/dist/assets/entry-d1529af3.js +0 -8
  222. package/dist/assets/entry-d2b2146e.js +0 -5
  223. package/dist/assets/entry-d9866ffb.js +0 -5
  224. package/dist/assets/entry-f67c0939.js +0 -9
  225. package/dist/assets/entry-legacy.1c11c4ce.js +0 -1
  226. package/dist/assets/entry-legacy.6066ebc9.js +0 -1
  227. package/dist/assets/entry-legacy.60876545.js +0 -1
  228. package/dist/assets/entry-legacy.62cc3c3d.js +0 -1
  229. package/dist/assets/entry-legacy.8088e3bc.js +0 -1
  230. package/dist/assets/entry-legacy.b99b54c1.js +0 -1
  231. package/dist/assets/entry-legacy.b9b7580f.js +0 -1
  232. package/dist/assets/entry-legacy.c9424c94.js +0 -1
  233. package/dist/assets/entry-legacy.d1b30365.js +0 -1
  234. package/dist/assets/entry-legacy.f43d27fe.js +0 -1
  235. package/dist/assets/index-54ddc888.js +0 -1
  236. package/dist/assets/offline_download-6fa0e9d2.js +0 -1
@@ -1 +1 @@
1
- import{d as ke,b as be,V as ve,C as p,B as z,x as $e,ba as J,bq as q,_ as F,I as oe,an as M,y as t,Y as W,aw as P,av as V,ar as b,aG as u,bs as ne,S as v,cJ as G,dB as H,cL as K,R as Y,a3 as Q,n as X}from"./index-0af67a26.js";const xe=[".lark-doc",".lark-docx",".lark-sheet",".lark-bitable"],ye=i=>{for(const s of xe)if(i.endsWith(s))return i.slice(0,-s.length);return i},ae=()=>typeof window<"u"&&window.sessionStorage,Te=()=>{const{pathname:i}=ke(),s=be(),{copy:ie}=ve(),[l,Z]=p(),[ee,A]=p(""),[_,S]=p("pdf"),[g,$]=p(""),[T,C]=p(""),[c,d]=p("idle"),[E,R]=p(""),[I,f]=p(""),[x,h]=p("");let w,O=0;const B=(e=i(),r=M.obj.name)=>`alist:lark-export:${e}:${r}`,le=z(()=>{var e;return(e=l())==null?void 0:e.formats.find(r=>r.value===_())}),j=z(()=>{var e;return((e=le())==null?void 0:e.requires_sub_id)??!1}),D=z(()=>{var e;return((e=l())==null?void 0:e.sub_resources)??[]}),ce=z(()=>{var e;return!!((e=l())!=null&&e.formats.length)&&(!j()||!!g())}),m=()=>{w!==void 0&&(window.clearTimeout(w),w=void 0)};$e(m);const re=e=>{const r=ae();!r||!e.ticket||r.setItem(B(),JSON.stringify(e))},k=(e={})=>{!T()&&!e.ticket||re({ticket:e.ticket??T(),format:e.format??_(),sub_id:e.sub_id??g(),status:e.status??c(),file_token:e.file_token??E(),error_message:e.error_message??I(),error_detail:e.error_detail??x(),updated_at:Date.now()})},ue=(e,r,a)=>{const o=ae();if(!o)return;const y=o.getItem(B(e,r));if(!y)return;let n;try{n=JSON.parse(y)}catch{o.removeItem(B(e,r));return}if(!n.ticket||!a.formats.some(U=>U.value===n.format)){o.removeItem(B(e,r));return}C(n.ticket),S(n.format),$(n.sub_id??""),d(n.status),R(n.file_token??""),f(n.error_message??""),h(n.error_detail??""),(n.status==="pending"||n.status==="processing")&&(d("processing"),w=window.setTimeout(N,500))},[te,de]=J(()=>q.post("/fs/other",{path:i(),password:F(),method:"lark_export_options",data:{}}),!0),[pe,_e]=J(()=>q.post("/fs/other",{path:i(),password:F(),method:"lark_export_create",data:{format:_(),sub_id:g()}})),[ge,fe]=J(()=>q.post("/fs/other",{path:i(),password:F(),method:"lark_export_status",data:{ticket:T()}})),he=async(e,r)=>{m(),O=0,Z(void 0),A(""),C(""),R(""),f(""),h(""),d("idle");const a=await de();Q(a,o=>{var n,U,se;Z(o);const y=(n=o.formats[0])==null?void 0:n.value;y&&S(y),$(((se=(U=o.sub_resources)==null?void 0:U[0])==null?void 0:se.id)??""),o.sub_resource_error&&A(o.sub_resource_error),ue(e,r,o)},o=>{A(o)},!0,!1)};oe(()=>{he(i(),M.obj.name)}),oe(()=>{var r,a;const e=(r=l())==null?void 0:r.formats;if(e!=null&&e.length&&!e.some(o=>o.value===_())&&S(e[0].value),!j()){$("");return}!g()&&((a=D()[0])!=null&&a.id)&&$(D()[0].id)});const N=async()=>{if(!T())return;const e=await fe();Q(e,r=>{if(d(r.status),r.error_message&&f(r.error_message),r.error_detail&&h(r.error_detail),r.status==="success"&&r.file_token){R(r.file_token),k({status:"success",file_token:r.file_token,error_message:"",error_detail:""}),m();return}if(r.status==="failed"){k({status:"failed",error_message:r.error_message??I(),error_detail:r.error_detail??x()}),m();return}if(O+=1,O>=30){const a=s("home.preview.lark_tools.export_timeout");d("failed"),f(a),h(""),k({status:"failed",error_message:a,error_detail:""}),m();return}k({status:"processing"}),w=window.setTimeout(N,2e3)},r=>{d("failed"),f(r),h(r),k({status:"failed",error_message:r,error_detail:r}),m()},!0,!1)},me=async()=>{if(j()&&!g()){X.warning(s("home.preview.lark_tools.sub_resource_required"));return}m(),O=0,C(""),R(""),f(""),h(""),d("pending");const e=await _e();Q(e,r=>{C(r.ticket),d("processing"),re({ticket:r.ticket,format:r.format,sub_id:r.sub_id??g(),status:"processing",updated_at:Date.now()}),w=window.setTimeout(N,1e3)},r=>{d("failed"),f(r),h(r),k({status:"failed",error_message:r,error_detail:r})})},L=()=>`${ye(M.obj.name)}.${_()}`,we=async()=>{if(!E())return;const e=new URLSearchParams({path:i(),password:F(),file_token:E(),filename:L()}),r=await q.get(`/fs/lark/export/download?${e.toString()}`,{responseType:"blob"});if(!(r instanceof Blob)){X.error((r==null?void 0:r.message)??s("home.preview.lark_tools.download_failed"));return}const a=URL.createObjectURL(r),o=document.createElement("a");o.href=a,o.download=L(),document.body.appendChild(o),o.click(),o.remove(),URL.revokeObjectURL(a),X.success(s("home.preview.lark_tools.download_started"))};return t(V,{w:"$full",border:"1px solid $neutral6",rounded:"$lg",p:"$4",get children(){return t(W,{alignItems:"stretch",spacing:"$4",get children(){return[t(P,{justifyContent:"space-between",alignItems:"center",get children(){return[t(V,{get children(){return[t(b,{fontWeight:"$semibold",get children(){return s("home.preview.lark_tools.title")}}),t(b,{color:"$neutral11",size:"sm",get children(){return u(()=>!!te(),!0)()?s("home.preview.lark_tools.loading_options"):u(()=>!!l(),!0)()?s(`home.preview.lark_tools.type.${l().type}`):s("home.preview.lark_tools.unsupported_current")}})]}}),t(ne,{get value(){return _()},onChange:e=>S(e),get options(){var e;return((e=l())==null?void 0:e.formats.map(r=>({value:r.value,label:r.label})))??[{value:_(),label:_().toUpperCase()}]},size:"sm",w:"120px"})]}}),t(v,{get when(){return ee()},get children(){return t(G,{get status(){return l()?"warning":"danger"},get children(){return[t(H,{get children(){return u(()=>!!l(),!0)()?s("home.preview.lark_tools.sub_resource_error"):s("home.preview.lark_tools.option_failed")}}),t(K,{get children(){return ee()}})]}})}}),t(v,{get when(){var e;return(e=l())==null?void 0:e.formats.length},get fallback(){return t(G,{status:"warning",get children(){return[t(H,{get children(){return s("home.preview.lark_tools.unsupported_title")}}),t(K,{get children(){return s("home.preview.lark_tools.unsupported_description")}})]}})},get children(){return[t(v,{get when(){return j()},get children(){return t(W,{alignItems:"stretch",spacing:"$2",get children(){return[t(b,{color:"$neutral11",size:"sm",get children(){return s("home.preview.lark_tools.sub_resource")}}),t(ne,{get value(){return g()},onChange:e=>$(e),get options(){return u(()=>!!D().length,!0)()?D().map(e=>({value:e.id,label:e.name})):[{value:"",label:s("home.preview.lark_tools.no_sub_resources")}]},size:"sm",w:"$full"})]}})}}),t(b,{color:"$neutral11",size:"sm",get children(){return s("home.preview.lark_tools.download_name",{name:L()})}}),t(P,{spacing:"$3",get children(){return[t(Y,{colorScheme:"accent",get loading(){return pe()},get isDisabled(){return te()||ge()||c()==="processing"||!ce()},onClick:me,get children(){return s("home.preview.lark_tools.create_export_task")}}),t(v,{get when(){return u(()=>c()==="success",!0)()&&E()},get children(){return t(Y,{onClick:we,get children(){return s("home.preview.lark_tools.download_export",{name:L()})}})}})]}}),t(v,{get when(){return c()!=="idle"},get children(){return t(G,{get status(){return u(()=>c()==="failed",!0)()?"danger":c()==="success"?"success":"info"},get children(){return[t(H,{get children(){return u(()=>c()==="success",!0)()?s("home.preview.lark_tools.status.success_title"):u(()=>c()==="failed",!0)()?s("home.preview.lark_tools.status.failed_title"):s("home.preview.lark_tools.status.processing_title")}}),t(K,{get children(){return u(()=>c()==="failed",!0)()?t(W,{alignItems:"stretch",spacing:"$2",get children(){return[t(b,{whiteSpace:"pre-wrap",get children(){return I()||s("home.preview.lark_tools.export_failed")}}),t(v,{get when(){return x()},get children(){return[t(P,{justifyContent:"space-between",get children(){return[t(b,{color:"$neutral11",get children(){return s("home.preview.lark_tools.feishu_error_detail")}}),t(Y,{size:"sm",onClick:()=>ie(x()||I()),get children(){return s("home.preview.lark_tools.copy_error_detail")}})]}}),t(V,{as:"pre",m:"$0",p:"$2",rounded:"$md",bg:"$neutral3",whiteSpace:"pre-wrap",wordBreak:"break-word",get children(){return x()}})]}})]}}):u(()=>c()==="success",!0)()?s("home.preview.lark_tools.status.success_description"):s("home.preview.lark_tools.status.processing_description")}})]}})}})]}})]}})}})};export{Te as default};
1
+ import{d as ke,b as be,V as ve,C as p,B as z,x as $e,ba as J,bq as q,_ as F,I as oe,an as M,y as t,Y as W,aw as P,av as V,ar as b,aG as u,bs as ne,S as v,cJ as G,dB as H,cL as K,R as Y,a3 as Q,n as X}from"./index-b0560a31.js";const xe=[".lark-doc",".lark-docx",".lark-sheet",".lark-bitable"],ye=i=>{for(const s of xe)if(i.endsWith(s))return i.slice(0,-s.length);return i},ae=()=>typeof window<"u"&&window.sessionStorage,Te=()=>{const{pathname:i}=ke(),s=be(),{copy:ie}=ve(),[l,Z]=p(),[ee,A]=p(""),[_,S]=p("pdf"),[g,$]=p(""),[T,C]=p(""),[c,d]=p("idle"),[E,R]=p(""),[I,f]=p(""),[x,h]=p("");let w,O=0;const B=(e=i(),r=M.obj.name)=>`alist:lark-export:${e}:${r}`,le=z(()=>{var e;return(e=l())==null?void 0:e.formats.find(r=>r.value===_())}),j=z(()=>{var e;return((e=le())==null?void 0:e.requires_sub_id)??!1}),D=z(()=>{var e;return((e=l())==null?void 0:e.sub_resources)??[]}),ce=z(()=>{var e;return!!((e=l())!=null&&e.formats.length)&&(!j()||!!g())}),m=()=>{w!==void 0&&(window.clearTimeout(w),w=void 0)};$e(m);const re=e=>{const r=ae();!r||!e.ticket||r.setItem(B(),JSON.stringify(e))},k=(e={})=>{!T()&&!e.ticket||re({ticket:e.ticket??T(),format:e.format??_(),sub_id:e.sub_id??g(),status:e.status??c(),file_token:e.file_token??E(),error_message:e.error_message??I(),error_detail:e.error_detail??x(),updated_at:Date.now()})},ue=(e,r,a)=>{const o=ae();if(!o)return;const y=o.getItem(B(e,r));if(!y)return;let n;try{n=JSON.parse(y)}catch{o.removeItem(B(e,r));return}if(!n.ticket||!a.formats.some(U=>U.value===n.format)){o.removeItem(B(e,r));return}C(n.ticket),S(n.format),$(n.sub_id??""),d(n.status),R(n.file_token??""),f(n.error_message??""),h(n.error_detail??""),(n.status==="pending"||n.status==="processing")&&(d("processing"),w=window.setTimeout(N,500))},[te,de]=J(()=>q.post("/fs/other",{path:i(),password:F(),method:"lark_export_options",data:{}}),!0),[pe,_e]=J(()=>q.post("/fs/other",{path:i(),password:F(),method:"lark_export_create",data:{format:_(),sub_id:g()}})),[ge,fe]=J(()=>q.post("/fs/other",{path:i(),password:F(),method:"lark_export_status",data:{ticket:T()}})),he=async(e,r)=>{m(),O=0,Z(void 0),A(""),C(""),R(""),f(""),h(""),d("idle");const a=await de();Q(a,o=>{var n,U,se;Z(o);const y=(n=o.formats[0])==null?void 0:n.value;y&&S(y),$(((se=(U=o.sub_resources)==null?void 0:U[0])==null?void 0:se.id)??""),o.sub_resource_error&&A(o.sub_resource_error),ue(e,r,o)},o=>{A(o)},!0,!1)};oe(()=>{he(i(),M.obj.name)}),oe(()=>{var r,a;const e=(r=l())==null?void 0:r.formats;if(e!=null&&e.length&&!e.some(o=>o.value===_())&&S(e[0].value),!j()){$("");return}!g()&&((a=D()[0])!=null&&a.id)&&$(D()[0].id)});const N=async()=>{if(!T())return;const e=await fe();Q(e,r=>{if(d(r.status),r.error_message&&f(r.error_message),r.error_detail&&h(r.error_detail),r.status==="success"&&r.file_token){R(r.file_token),k({status:"success",file_token:r.file_token,error_message:"",error_detail:""}),m();return}if(r.status==="failed"){k({status:"failed",error_message:r.error_message??I(),error_detail:r.error_detail??x()}),m();return}if(O+=1,O>=30){const a=s("home.preview.lark_tools.export_timeout");d("failed"),f(a),h(""),k({status:"failed",error_message:a,error_detail:""}),m();return}k({status:"processing"}),w=window.setTimeout(N,2e3)},r=>{d("failed"),f(r),h(r),k({status:"failed",error_message:r,error_detail:r}),m()},!0,!1)},me=async()=>{if(j()&&!g()){X.warning(s("home.preview.lark_tools.sub_resource_required"));return}m(),O=0,C(""),R(""),f(""),h(""),d("pending");const e=await _e();Q(e,r=>{C(r.ticket),d("processing"),re({ticket:r.ticket,format:r.format,sub_id:r.sub_id??g(),status:"processing",updated_at:Date.now()}),w=window.setTimeout(N,1e3)},r=>{d("failed"),f(r),h(r),k({status:"failed",error_message:r,error_detail:r})})},L=()=>`${ye(M.obj.name)}.${_()}`,we=async()=>{if(!E())return;const e=new URLSearchParams({path:i(),password:F(),file_token:E(),filename:L()}),r=await q.get(`/fs/lark/export/download?${e.toString()}`,{responseType:"blob"});if(!(r instanceof Blob)){X.error((r==null?void 0:r.message)??s("home.preview.lark_tools.download_failed"));return}const a=URL.createObjectURL(r),o=document.createElement("a");o.href=a,o.download=L(),document.body.appendChild(o),o.click(),o.remove(),URL.revokeObjectURL(a),X.success(s("home.preview.lark_tools.download_started"))};return t(V,{w:"$full",border:"1px solid $neutral6",rounded:"$lg",p:"$4",get children(){return t(W,{alignItems:"stretch",spacing:"$4",get children(){return[t(P,{justifyContent:"space-between",alignItems:"center",get children(){return[t(V,{get children(){return[t(b,{fontWeight:"$semibold",get children(){return s("home.preview.lark_tools.title")}}),t(b,{color:"$neutral11",size:"sm",get children(){return u(()=>!!te(),!0)()?s("home.preview.lark_tools.loading_options"):u(()=>!!l(),!0)()?s(`home.preview.lark_tools.type.${l().type}`):s("home.preview.lark_tools.unsupported_current")}})]}}),t(ne,{get value(){return _()},onChange:e=>S(e),get options(){var e;return((e=l())==null?void 0:e.formats.map(r=>({value:r.value,label:r.label})))??[{value:_(),label:_().toUpperCase()}]},size:"sm",w:"120px"})]}}),t(v,{get when(){return ee()},get children(){return t(G,{get status(){return l()?"warning":"danger"},get children(){return[t(H,{get children(){return u(()=>!!l(),!0)()?s("home.preview.lark_tools.sub_resource_error"):s("home.preview.lark_tools.option_failed")}}),t(K,{get children(){return ee()}})]}})}}),t(v,{get when(){var e;return(e=l())==null?void 0:e.formats.length},get fallback(){return t(G,{status:"warning",get children(){return[t(H,{get children(){return s("home.preview.lark_tools.unsupported_title")}}),t(K,{get children(){return s("home.preview.lark_tools.unsupported_description")}})]}})},get children(){return[t(v,{get when(){return j()},get children(){return t(W,{alignItems:"stretch",spacing:"$2",get children(){return[t(b,{color:"$neutral11",size:"sm",get children(){return s("home.preview.lark_tools.sub_resource")}}),t(ne,{get value(){return g()},onChange:e=>$(e),get options(){return u(()=>!!D().length,!0)()?D().map(e=>({value:e.id,label:e.name})):[{value:"",label:s("home.preview.lark_tools.no_sub_resources")}]},size:"sm",w:"$full"})]}})}}),t(b,{color:"$neutral11",size:"sm",get children(){return s("home.preview.lark_tools.download_name",{name:L()})}}),t(P,{spacing:"$3",get children(){return[t(Y,{colorScheme:"accent",get loading(){return pe()},get isDisabled(){return te()||ge()||c()==="processing"||!ce()},onClick:me,get children(){return s("home.preview.lark_tools.create_export_task")}}),t(v,{get when(){return u(()=>c()==="success",!0)()&&E()},get children(){return t(Y,{onClick:we,get children(){return s("home.preview.lark_tools.download_export",{name:L()})}})}})]}}),t(v,{get when(){return c()!=="idle"},get children(){return t(G,{get status(){return u(()=>c()==="failed",!0)()?"danger":c()==="success"?"success":"info"},get children(){return[t(H,{get children(){return u(()=>c()==="success",!0)()?s("home.preview.lark_tools.status.success_title"):u(()=>c()==="failed",!0)()?s("home.preview.lark_tools.status.failed_title"):s("home.preview.lark_tools.status.processing_title")}}),t(K,{get children(){return u(()=>c()==="failed",!0)()?t(W,{alignItems:"stretch",spacing:"$2",get children(){return[t(b,{whiteSpace:"pre-wrap",get children(){return I()||s("home.preview.lark_tools.export_failed")}}),t(v,{get when(){return x()},get children(){return[t(P,{justifyContent:"space-between",get children(){return[t(b,{color:"$neutral11",get children(){return s("home.preview.lark_tools.feishu_error_detail")}}),t(Y,{size:"sm",onClick:()=>ie(x()||I()),get children(){return s("home.preview.lark_tools.copy_error_detail")}})]}}),t(V,{as:"pre",m:"$0",p:"$2",rounded:"$md",bg:"$neutral3",whiteSpace:"pre-wrap",wordBreak:"break-word",get children(){return x()}})]}})]}}):u(()=>c()==="success",!0)()?s("home.preview.lark_tools.status.success_description"):s("home.preview.lark_tools.status.processing_description")}})]}})}})]}})]}})}})};export{Te as default};
@@ -1 +1 @@
1
- !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch($){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(e,t,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 j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=k(a,r);if(u){if(u===d)continue;return u}}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 l=f(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch($){return{type:"throw",arg:$}}}r.wrap=s;var d={};function h(){}function p(){}function v(){}var m={};c(m,a,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(E([])));y&&y!==n&&o.call(y,a)&&(m=y);var w=v.prototype=h.prototype=Object.create(m);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(t,r){function n(i,a,u,l){var c=f(t[i],t,a);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==e(d)&&o.call(d,"__await")?r.resolve(d.__await).then((function(e){n("next",e,u,l)}),(function(e){n("throw",e,u,l)})):r.resolve(d).then((function(e){s.value=e,u(s)}),(function(e){return n("throw",e,u,l)}))}l(c.arg)}var i;this._invoke=function(e,t){function o(){return new r((function(r,o){n(e,t,r,o)}))}return i=i?i.then(o,o):o()}}function k(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=v,c(w,"constructor",v),c(v,"constructor",p),p.displayName=c(v,l,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},r.awrap=function(e){return{__await:e}},_(b.prototype),c(b.prototype,u,(function(){return this})),r.AsyncIterator=b,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new b(s(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(w),c(w,l,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=E,S.prototype={constructor:S,reset:function(e){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),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.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 u=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){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"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},r}function r(e,t,r,n,o,i,a){try{var u=e[i](a),l=u.value}catch(c){return void r(c)}u.done?t(l):Promise.resolve(l).then(n,o)}function n(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function u(e){r(a,o,i,u,l,"next",e)}function l(e){r(a,o,i,u,l,"throw",e)}u(void 0)}))}}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(l){u=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}System.register(["./index-legacy.9a995a78.js"],(function(e,r){"use strict";var a,u,l,c,s,f,d,h,p,v,m,g,y,w,_,b,k,x,L,S,E,j,$,O,I;return{setters:[function(e){a=e.d,u=e.b,l=e.V,c=e.C,s=e.B,f=e.x,d=e.ba,h=e.bq,p=e._,v=e.I,m=e.an,g=e.y,y=e.Y,w=e.aw,_=e.av,b=e.ar,k=e.aG,x=e.bs,L=e.S,S=e.cJ,E=e.dB,j=e.cL,$=e.R,O=e.a3,I=e.n}],execute:function(){var r=[".lark-doc",".lark-docx",".lark-sheet",".lark-bitable"],T=function(e){var t,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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,u=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){l=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(l)throw a}}}}(r);try{for(n.s();!(t=n.n()).done;){var o=t.value;if(e.endsWith(o))return e.slice(0,-o.length)}}catch(a){n.e(a)}finally{n.f()}return e},C=function(){return"undefined"!=typeof window&&window.sessionStorage};e("default",(function(){var e,r=a().pathname,i=u(),A=l().copy,N=o(c(),2),G=N[0],P=N[1],U=o(c(""),2),z=U[0],B=U[1],R=o(c("pdf"),2),F=R[0],q=R[1],D=o(c(""),2),J=D[0],Y=D[1],W=o(c(""),2),M=W[0],V=W[1],H=o(c("idle"),2),K=H[0],Q=H[1],X=o(c(""),2),Z=X[0],ee=X[1],te=o(c(""),2),re=te[0],ne=te[1],oe=o(c(""),2),ie=oe[0],ae=oe[1],ue=0,le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.obj.name;return"alist:lark-export:".concat(e,":").concat(t)},ce=s((function(){var e;return null===(e=G())||void 0===e?void 0:e.formats.find((function(e){return e.value===F()}))})),se=s((function(){var e,t;return null!==(e=null===(t=ce())||void 0===t?void 0:t.requires_sub_id)&&void 0!==e&&e})),fe=s((function(){var e,t;return null!==(e=null===(t=G())||void 0===t?void 0:t.sub_resources)&&void 0!==e?e:[]})),de=s((function(){var e;return Boolean(null===(e=G())||void 0===e?void 0:e.formats.length)&&(!se()||Boolean(J()))})),he=function(){void 0!==e&&(window.clearTimeout(e),e=void 0)};f(he);var pe=function(e){var t=C();t&&e.ticket&&t.setItem(le(),JSON.stringify(e))},ve=function(){var e,t,r,n,o,i,a,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(M()||u.ticket)&&pe({ticket:null!==(e=u.ticket)&&void 0!==e?e:M(),format:null!==(t=u.format)&&void 0!==t?t:F(),sub_id:null!==(r=u.sub_id)&&void 0!==r?r:J(),status:null!==(n=u.status)&&void 0!==n?n:K(),file_token:null!==(o=u.file_token)&&void 0!==o?o:Z(),error_message:null!==(i=u.error_message)&&void 0!==i?i:re(),error_detail:null!==(a=u.error_detail)&&void 0!==a?a:ie(),updated_at:Date.now()})},me=function(t,r,n){var o,i,a,u,l=C();if(l){var c=l.getItem(le(t,r));if(c){var s;try{s=JSON.parse(c)}catch(f){return void l.removeItem(le(t,r))}s.ticket&&n.formats.some((function(e){return e.value===s.format}))?(V(s.ticket),q(s.format),Y(null!==(o=s.sub_id)&&void 0!==o?o:""),Q(s.status),ee(null!==(i=s.file_token)&&void 0!==i?i:""),ne(null!==(a=s.error_message)&&void 0!==a?a:""),ae(null!==(u=s.error_detail)&&void 0!==u?u:""),"pending"!==s.status&&"processing"!==s.status||(Q("processing"),e=window.setTimeout(je,500))):l.removeItem(le(t,r))}}},ge=o(d((function(){return h.post("/fs/other",{path:r(),password:p(),method:"lark_export_options",data:{}})}),!0),2),ye=ge[0],we=ge[1],_e=o(d((function(){return h.post("/fs/other",{path:r(),password:p(),method:"lark_export_create",data:{format:F(),sub_id:J()}})})),2),be=_e[0],ke=_e[1],xe=o(d((function(){return h.post("/fs/other",{path:r(),password:p(),method:"lark_export_status",data:{ticket:M()}})})),2),Le=xe[0],Se=xe[1],Ee=function(){var e=n(t().mark((function e(r,n){var o;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return he(),ue=0,P(void 0),B(""),V(""),ee(""),ne(""),ae(""),Q("idle"),e.next=11,we();case 11:o=e.sent,O(o,(function(e){var t,o,i,a;P(e);var u=null===(t=e.formats[0])||void 0===t?void 0:t.value;u&&q(u),Y(null!==(o=null===(i=e.sub_resources)||void 0===i||null===(a=i[0])||void 0===a?void 0:a.id)&&void 0!==o?o:""),e.sub_resource_error&&B(e.sub_resource_error),me(r,n,e)}),(function(e){B(e)}),!0,!1);case 13:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();v((function(){Ee(r(),m.obj.name)})),v((function(){var e,t,r=null===(e=G())||void 0===e?void 0:e.formats;null!=r&&r.length&&!r.some((function(e){return e.value===F()}))&&q(r[0].value),se()?!J()&&null!==(t=fe()[0])&&void 0!==t&&t.id&&Y(fe()[0].id):Y("")}));var je=function(){var r=n(t().mark((function r(){var n;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(M()){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,Se();case 4:n=t.sent,O(n,(function(t){if(Q(t.status),t.error_message&&ne(t.error_message),t.error_detail&&ae(t.error_detail),"success"===t.status&&t.file_token)return ee(t.file_token),ve({status:"success",file_token:t.file_token,error_message:"",error_detail:""}),void he();var r,n;if("failed"===t.status)return ve({status:"failed",error_message:null!==(r=t.error_message)&&void 0!==r?r:re(),error_detail:null!==(n=t.error_detail)&&void 0!==n?n:ie()}),void he();if((ue+=1)>=30){var o=i("home.preview.lark_tools.export_timeout");return Q("failed"),ne(o),ae(""),ve({status:"failed",error_message:o,error_detail:""}),void he()}ve({status:"processing"}),e=window.setTimeout(je,2e3)}),(function(e){Q("failed"),ne(e),ae(e),ve({status:"failed",error_message:e,error_detail:e}),he()}),!0,!1);case 6:case"end":return t.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),$e=function(){var r=n(t().mark((function r(){var n;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!se()||J()){t.next=3;break}return I.warning(i("home.preview.lark_tools.sub_resource_required")),t.abrupt("return");case 3:return he(),ue=0,V(""),ee(""),ne(""),ae(""),Q("pending"),t.next=12,ke();case 12:n=t.sent,O(n,(function(t){var r;V(t.ticket),Q("processing"),pe({ticket:t.ticket,format:t.format,sub_id:null!==(r=t.sub_id)&&void 0!==r?r:J(),status:"processing",updated_at:Date.now()}),e=window.setTimeout(je,1e3)}),(function(e){Q("failed"),ne(e),ae(e),ve({status:"failed",error_message:e,error_detail:e})}));case 14:case"end":return t.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),Oe=function(){return"".concat(T(m.obj.name),".").concat(F())},Ie=function(){var e=n(t().mark((function e(){var n,o,a,u,l;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Z()){e.next=2;break}return e.abrupt("return");case 2:return n=new URLSearchParams({path:r(),password:p(),file_token:Z(),filename:Oe()}),e.next=5,h.get("/fs/lark/export/download?".concat(n.toString()),{responseType:"blob"});case 5:if((o=e.sent)instanceof Blob){e.next=9;break}return I.error(null!==(a=null==o?void 0:o.message)&&void 0!==a?a:i("home.preview.lark_tools.download_failed")),e.abrupt("return");case 9:u=URL.createObjectURL(o),(l=document.createElement("a")).href=u,l.download=Oe(),document.body.appendChild(l),l.click(),l.remove(),URL.revokeObjectURL(u),I.success(i("home.preview.lark_tools.download_started"));case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return g(_,{w:"$full",border:"1px solid $neutral6",rounded:"$lg",p:"$4",get children(){return g(y,{alignItems:"stretch",spacing:"$4",get children(){return[g(w,{justifyContent:"space-between",alignItems:"center",get children(){return[g(_,{get children(){return[g(b,{fontWeight:"$semibold",get children(){return i("home.preview.lark_tools.title")}}),g(b,{color:"$neutral11",size:"sm",get children(){return k((function(){return!!ye()}),!0)()?i("home.preview.lark_tools.loading_options"):k((function(){return!!G()}),!0)()?i("home.preview.lark_tools.type.".concat(G().type)):i("home.preview.lark_tools.unsupported_current")}})]}}),g(x,{get value(){return F()},onChange:function(e){return q(e)},get options(){var e,t;return null!==(e=null===(t=G())||void 0===t?void 0:t.formats.map((function(e){return{value:e.value,label:e.label}})))&&void 0!==e?e:[{value:F(),label:F().toUpperCase()}]},size:"sm",w:"120px"})]}}),g(L,{get when(){return z()},get children(){return g(S,{get status(){return G()?"warning":"danger"},get children(){return[g(E,{get children(){return k((function(){return!!G()}),!0)()?i("home.preview.lark_tools.sub_resource_error"):i("home.preview.lark_tools.option_failed")}}),g(j,{get children(){return z()}})]}})}}),g(L,{get when(){var e;return null===(e=G())||void 0===e?void 0:e.formats.length},get fallback(){return g(S,{status:"warning",get children(){return[g(E,{get children(){return i("home.preview.lark_tools.unsupported_title")}}),g(j,{get children(){return i("home.preview.lark_tools.unsupported_description")}})]}})},get children(){return[g(L,{get when(){return se()},get children(){return g(y,{alignItems:"stretch",spacing:"$2",get children(){return[g(b,{color:"$neutral11",size:"sm",get children(){return i("home.preview.lark_tools.sub_resource")}}),g(x,{get value(){return J()},onChange:function(e){return Y(e)},get options(){return k((function(){return!!fe().length}),!0)()?fe().map((function(e){return{value:e.id,label:e.name}})):[{value:"",label:i("home.preview.lark_tools.no_sub_resources")}]},size:"sm",w:"$full"})]}})}}),g(b,{color:"$neutral11",size:"sm",get children(){return i("home.preview.lark_tools.download_name",{name:Oe()})}}),g(w,{spacing:"$3",get children(){return[g($,{colorScheme:"accent",get loading(){return be()},get isDisabled(){return ye()||Le()||"processing"===K()||!de()},onClick:$e,get children(){return i("home.preview.lark_tools.create_export_task")}}),g(L,{get when(){return k((function(){return"success"===K()}),!0)()&&Z()},get children(){return g($,{onClick:Ie,get children(){return i("home.preview.lark_tools.download_export",{name:Oe()})}})}})]}}),g(L,{get when(){return"idle"!==K()},get children(){return g(S,{get status(){return k((function(){return"failed"===K()}),!0)()?"danger":"success"===K()?"success":"info"},get children(){return[g(E,{get children(){return k((function(){return"success"===K()}),!0)()?i("home.preview.lark_tools.status.success_title"):k((function(){return"failed"===K()}),!0)()?i("home.preview.lark_tools.status.failed_title"):i("home.preview.lark_tools.status.processing_title")}}),g(j,{get children(){return k((function(){return"failed"===K()}),!0)()?g(y,{alignItems:"stretch",spacing:"$2",get children(){return[g(b,{whiteSpace:"pre-wrap",get children(){return re()||i("home.preview.lark_tools.export_failed")}}),g(L,{get when(){return ie()},get children(){return[g(w,{justifyContent:"space-between",get children(){return[g(b,{color:"$neutral11",get children(){return i("home.preview.lark_tools.feishu_error_detail")}}),g($,{size:"sm",onClick:function(){return A(ie()||re())},get children(){return i("home.preview.lark_tools.copy_error_detail")}})]}}),g(_,{as:"pre",m:"$0",p:"$2",rounded:"$md",bg:"$neutral3",whiteSpace:"pre-wrap",wordBreak:"break-word",get children(){return ie()}})]}})]}}):k((function(){return"success"===K()}),!0)()?i("home.preview.lark_tools.status.success_description"):i("home.preview.lark_tools.status.processing_description")}})]}})}})]}})]}})}})}))}}}))}();
1
+ !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch($){c=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(e,t,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 j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=k(a,r);if(u){if(u===d)continue;return u}}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 l=f(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(e,r,a),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch($){return{type:"throw",arg:$}}}r.wrap=s;var d={};function h(){}function p(){}function v(){}var m={};c(m,a,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(E([])));y&&y!==n&&o.call(y,a)&&(m=y);var w=v.prototype=h.prototype=Object.create(m);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function b(t,r){function n(i,a,u,l){var c=f(t[i],t,a);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==e(d)&&o.call(d,"__await")?r.resolve(d.__await).then((function(e){n("next",e,u,l)}),(function(e){n("throw",e,u,l)})):r.resolve(d).then((function(e){s.value=e,u(s)}),(function(e){return n("throw",e,u,l)}))}l(c.arg)}var i;this._invoke=function(e,t){function o(){return new r((function(r,o){n(e,t,r,o)}))}return i=i?i.then(o,o):o()}}function k(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=v,c(w,"constructor",v),c(v,"constructor",p),p.displayName=c(v,l,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},r.awrap=function(e){return{__await:e}},_(b.prototype),c(b.prototype,u,(function(){return this})),r.AsyncIterator=b,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new b(s(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(w),c(w,l,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=E,S.prototype={constructor:S,reset:function(e){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),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.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 u=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){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"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:E(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},r}function r(e,t,r,n,o,i,a){try{var u=e[i](a),l=u.value}catch(c){return void r(c)}u.done?t(l):Promise.resolve(l).then(n,o)}function n(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function u(e){r(a,o,i,u,l,"next",e)}function l(e){r(a,o,i,u,l,"throw",e)}u(void 0)}))}}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(l){u=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}System.register(["./index-legacy.cdce98e1.js"],(function(e,r){"use strict";var a,u,l,c,s,f,d,h,p,v,m,g,y,w,_,b,k,x,L,S,E,j,$,O,I;return{setters:[function(e){a=e.d,u=e.b,l=e.V,c=e.C,s=e.B,f=e.x,d=e.ba,h=e.bq,p=e._,v=e.I,m=e.an,g=e.y,y=e.Y,w=e.aw,_=e.av,b=e.ar,k=e.aG,x=e.bs,L=e.S,S=e.cJ,E=e.dB,j=e.cL,$=e.R,O=e.a3,I=e.n}],execute:function(){var r=[".lark-doc",".lark-docx",".lark-sheet",".lark-bitable"],T=function(e){var t,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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,u=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){l=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(l)throw a}}}}(r);try{for(n.s();!(t=n.n()).done;){var o=t.value;if(e.endsWith(o))return e.slice(0,-o.length)}}catch(a){n.e(a)}finally{n.f()}return e},C=function(){return"undefined"!=typeof window&&window.sessionStorage};e("default",(function(){var e,r=a().pathname,i=u(),A=l().copy,N=o(c(),2),G=N[0],P=N[1],U=o(c(""),2),z=U[0],B=U[1],R=o(c("pdf"),2),F=R[0],q=R[1],D=o(c(""),2),J=D[0],Y=D[1],W=o(c(""),2),M=W[0],V=W[1],H=o(c("idle"),2),K=H[0],Q=H[1],X=o(c(""),2),Z=X[0],ee=X[1],te=o(c(""),2),re=te[0],ne=te[1],oe=o(c(""),2),ie=oe[0],ae=oe[1],ue=0,le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.obj.name;return"alist:lark-export:".concat(e,":").concat(t)},ce=s((function(){var e;return null===(e=G())||void 0===e?void 0:e.formats.find((function(e){return e.value===F()}))})),se=s((function(){var e,t;return null!==(e=null===(t=ce())||void 0===t?void 0:t.requires_sub_id)&&void 0!==e&&e})),fe=s((function(){var e,t;return null!==(e=null===(t=G())||void 0===t?void 0:t.sub_resources)&&void 0!==e?e:[]})),de=s((function(){var e;return Boolean(null===(e=G())||void 0===e?void 0:e.formats.length)&&(!se()||Boolean(J()))})),he=function(){void 0!==e&&(window.clearTimeout(e),e=void 0)};f(he);var pe=function(e){var t=C();t&&e.ticket&&t.setItem(le(),JSON.stringify(e))},ve=function(){var e,t,r,n,o,i,a,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(M()||u.ticket)&&pe({ticket:null!==(e=u.ticket)&&void 0!==e?e:M(),format:null!==(t=u.format)&&void 0!==t?t:F(),sub_id:null!==(r=u.sub_id)&&void 0!==r?r:J(),status:null!==(n=u.status)&&void 0!==n?n:K(),file_token:null!==(o=u.file_token)&&void 0!==o?o:Z(),error_message:null!==(i=u.error_message)&&void 0!==i?i:re(),error_detail:null!==(a=u.error_detail)&&void 0!==a?a:ie(),updated_at:Date.now()})},me=function(t,r,n){var o,i,a,u,l=C();if(l){var c=l.getItem(le(t,r));if(c){var s;try{s=JSON.parse(c)}catch(f){return void l.removeItem(le(t,r))}s.ticket&&n.formats.some((function(e){return e.value===s.format}))?(V(s.ticket),q(s.format),Y(null!==(o=s.sub_id)&&void 0!==o?o:""),Q(s.status),ee(null!==(i=s.file_token)&&void 0!==i?i:""),ne(null!==(a=s.error_message)&&void 0!==a?a:""),ae(null!==(u=s.error_detail)&&void 0!==u?u:""),"pending"!==s.status&&"processing"!==s.status||(Q("processing"),e=window.setTimeout(je,500))):l.removeItem(le(t,r))}}},ge=o(d((function(){return h.post("/fs/other",{path:r(),password:p(),method:"lark_export_options",data:{}})}),!0),2),ye=ge[0],we=ge[1],_e=o(d((function(){return h.post("/fs/other",{path:r(),password:p(),method:"lark_export_create",data:{format:F(),sub_id:J()}})})),2),be=_e[0],ke=_e[1],xe=o(d((function(){return h.post("/fs/other",{path:r(),password:p(),method:"lark_export_status",data:{ticket:M()}})})),2),Le=xe[0],Se=xe[1],Ee=function(){var e=n(t().mark((function e(r,n){var o;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return he(),ue=0,P(void 0),B(""),V(""),ee(""),ne(""),ae(""),Q("idle"),e.next=11,we();case 11:o=e.sent,O(o,(function(e){var t,o,i,a;P(e);var u=null===(t=e.formats[0])||void 0===t?void 0:t.value;u&&q(u),Y(null!==(o=null===(i=e.sub_resources)||void 0===i||null===(a=i[0])||void 0===a?void 0:a.id)&&void 0!==o?o:""),e.sub_resource_error&&B(e.sub_resource_error),me(r,n,e)}),(function(e){B(e)}),!0,!1);case 13:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();v((function(){Ee(r(),m.obj.name)})),v((function(){var e,t,r=null===(e=G())||void 0===e?void 0:e.formats;null!=r&&r.length&&!r.some((function(e){return e.value===F()}))&&q(r[0].value),se()?!J()&&null!==(t=fe()[0])&&void 0!==t&&t.id&&Y(fe()[0].id):Y("")}));var je=function(){var r=n(t().mark((function r(){var n;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(M()){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,Se();case 4:n=t.sent,O(n,(function(t){if(Q(t.status),t.error_message&&ne(t.error_message),t.error_detail&&ae(t.error_detail),"success"===t.status&&t.file_token)return ee(t.file_token),ve({status:"success",file_token:t.file_token,error_message:"",error_detail:""}),void he();var r,n;if("failed"===t.status)return ve({status:"failed",error_message:null!==(r=t.error_message)&&void 0!==r?r:re(),error_detail:null!==(n=t.error_detail)&&void 0!==n?n:ie()}),void he();if((ue+=1)>=30){var o=i("home.preview.lark_tools.export_timeout");return Q("failed"),ne(o),ae(""),ve({status:"failed",error_message:o,error_detail:""}),void he()}ve({status:"processing"}),e=window.setTimeout(je,2e3)}),(function(e){Q("failed"),ne(e),ae(e),ve({status:"failed",error_message:e,error_detail:e}),he()}),!0,!1);case 6:case"end":return t.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),$e=function(){var r=n(t().mark((function r(){var n;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!se()||J()){t.next=3;break}return I.warning(i("home.preview.lark_tools.sub_resource_required")),t.abrupt("return");case 3:return he(),ue=0,V(""),ee(""),ne(""),ae(""),Q("pending"),t.next=12,ke();case 12:n=t.sent,O(n,(function(t){var r;V(t.ticket),Q("processing"),pe({ticket:t.ticket,format:t.format,sub_id:null!==(r=t.sub_id)&&void 0!==r?r:J(),status:"processing",updated_at:Date.now()}),e=window.setTimeout(je,1e3)}),(function(e){Q("failed"),ne(e),ae(e),ve({status:"failed",error_message:e,error_detail:e})}));case 14:case"end":return t.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),Oe=function(){return"".concat(T(m.obj.name),".").concat(F())},Ie=function(){var e=n(t().mark((function e(){var n,o,a,u,l;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Z()){e.next=2;break}return e.abrupt("return");case 2:return n=new URLSearchParams({path:r(),password:p(),file_token:Z(),filename:Oe()}),e.next=5,h.get("/fs/lark/export/download?".concat(n.toString()),{responseType:"blob"});case 5:if((o=e.sent)instanceof Blob){e.next=9;break}return I.error(null!==(a=null==o?void 0:o.message)&&void 0!==a?a:i("home.preview.lark_tools.download_failed")),e.abrupt("return");case 9:u=URL.createObjectURL(o),(l=document.createElement("a")).href=u,l.download=Oe(),document.body.appendChild(l),l.click(),l.remove(),URL.revokeObjectURL(u),I.success(i("home.preview.lark_tools.download_started"));case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return g(_,{w:"$full",border:"1px solid $neutral6",rounded:"$lg",p:"$4",get children(){return g(y,{alignItems:"stretch",spacing:"$4",get children(){return[g(w,{justifyContent:"space-between",alignItems:"center",get children(){return[g(_,{get children(){return[g(b,{fontWeight:"$semibold",get children(){return i("home.preview.lark_tools.title")}}),g(b,{color:"$neutral11",size:"sm",get children(){return k((function(){return!!ye()}),!0)()?i("home.preview.lark_tools.loading_options"):k((function(){return!!G()}),!0)()?i("home.preview.lark_tools.type.".concat(G().type)):i("home.preview.lark_tools.unsupported_current")}})]}}),g(x,{get value(){return F()},onChange:function(e){return q(e)},get options(){var e,t;return null!==(e=null===(t=G())||void 0===t?void 0:t.formats.map((function(e){return{value:e.value,label:e.label}})))&&void 0!==e?e:[{value:F(),label:F().toUpperCase()}]},size:"sm",w:"120px"})]}}),g(L,{get when(){return z()},get children(){return g(S,{get status(){return G()?"warning":"danger"},get children(){return[g(E,{get children(){return k((function(){return!!G()}),!0)()?i("home.preview.lark_tools.sub_resource_error"):i("home.preview.lark_tools.option_failed")}}),g(j,{get children(){return z()}})]}})}}),g(L,{get when(){var e;return null===(e=G())||void 0===e?void 0:e.formats.length},get fallback(){return g(S,{status:"warning",get children(){return[g(E,{get children(){return i("home.preview.lark_tools.unsupported_title")}}),g(j,{get children(){return i("home.preview.lark_tools.unsupported_description")}})]}})},get children(){return[g(L,{get when(){return se()},get children(){return g(y,{alignItems:"stretch",spacing:"$2",get children(){return[g(b,{color:"$neutral11",size:"sm",get children(){return i("home.preview.lark_tools.sub_resource")}}),g(x,{get value(){return J()},onChange:function(e){return Y(e)},get options(){return k((function(){return!!fe().length}),!0)()?fe().map((function(e){return{value:e.id,label:e.name}})):[{value:"",label:i("home.preview.lark_tools.no_sub_resources")}]},size:"sm",w:"$full"})]}})}}),g(b,{color:"$neutral11",size:"sm",get children(){return i("home.preview.lark_tools.download_name",{name:Oe()})}}),g(w,{spacing:"$3",get children(){return[g($,{colorScheme:"accent",get loading(){return be()},get isDisabled(){return ye()||Le()||"processing"===K()||!de()},onClick:$e,get children(){return i("home.preview.lark_tools.create_export_task")}}),g(L,{get when(){return k((function(){return"success"===K()}),!0)()&&Z()},get children(){return g($,{onClick:Ie,get children(){return i("home.preview.lark_tools.download_export",{name:Oe()})}})}})]}}),g(L,{get when(){return"idle"!==K()},get children(){return g(S,{get status(){return k((function(){return"failed"===K()}),!0)()?"danger":"success"===K()?"success":"info"},get children(){return[g(E,{get children(){return k((function(){return"success"===K()}),!0)()?i("home.preview.lark_tools.status.success_title"):k((function(){return"failed"===K()}),!0)()?i("home.preview.lark_tools.status.failed_title"):i("home.preview.lark_tools.status.processing_title")}}),g(j,{get children(){return k((function(){return"failed"===K()}),!0)()?g(y,{alignItems:"stretch",spacing:"$2",get children(){return[g(b,{whiteSpace:"pre-wrap",get children(){return re()||i("home.preview.lark_tools.export_failed")}}),g(L,{get when(){return ie()},get children(){return[g(w,{justifyContent:"space-between",get children(){return[g(b,{color:"$neutral11",get children(){return i("home.preview.lark_tools.feishu_error_detail")}}),g($,{size:"sm",onClick:function(){return A(ie()||re())},get children(){return i("home.preview.lark_tools.copy_error_detail")}})]}}),g(_,{as:"pre",m:"$0",p:"$2",rounded:"$md",bg:"$neutral3",whiteSpace:"pre-wrap",wordBreak:"break-word",get children(){return ie()}})]}})]}}):k((function(){return"success"===K()}),!0)()?i("home.preview.lark_tools.status.success_description"):i("home.preview.lark_tools.status.processing_description")}})]}})}})]}})]}})}})}))}}}))}();
@@ -1 +1 @@
1
- import{ai as k,cT as I,d as T,B as _,E as j,ap as f,an as u,aY as H,y as r,aG as z,aV as D,av as p,cY as G,bV as N,S as U,cZ as V,af as Y,am as w,c_ as q,al as S,b as O,aR as W,ci as Z,aD as b,cV as F,c$ as v,d0 as L,d1 as E,aS as J,a6 as K,aT as P,cW as Q,d2 as X,aU as ee}from"./index-0af67a26.js";function ge(t){const e=k("white","$neutral3"),{proxyLink:l}=I();T();const s=_(j(()=>u.state,()=>{if(![f.FetchingMore,f.Folder,f.File].includes(u.state))return"";if([f.FetchingMore,f.Folder].includes(u.state)){const a=u.objs.find(m=>t.files.find(A=>A.toLowerCase()===m.name.toLowerCase()));if(a)return l(a,!0)}return u[t.fromMeta]&&typeof u[t.fromMeta]=="string"?u[t.fromMeta]:""})),$=async a=>{let m={content:a};return/^https?:\/\//g.test(a)&&(m=await V(a)),m},[x]=H(s,$);return r(U,{get when(){return z(()=>!!D("readme_autorender"),!0)()&&s()},get children(){return r(p,{w:"$full",rounded:"$xl",p:"$4",get bgColor(){return e()},shadow:"$lg",get children(){return r(G,{get loading(){return x.loading},get children(){return r(N,{get children(){var a;return(a=x())==null?void 0:a.content},readme:!0,get toc(){return t.fromMeta==="readme"}})}})}})}})}const le=t=>{const e=Y("home_container");return r(S,{get fallback(){return r(p,{w:"min(99%, 980px)",get children(){return t.children}})},get children(){return r(w,{when:e==="hope_container",get children(){return r(q,{get children(){return t.children}})}})}})},C={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},d="^\\s*",h="\\s*$",i="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",c="([0-9A-Fa-f])",g="([0-9A-Fa-f]{2})",te=new RegExp(`${d}rgb\\s*\\(${i},${i},${i}\\)${h}`),re=new RegExp(`${d}rgba\\s*\\(${i},${i},${i},${i}\\)${h}`),ne=new RegExp(`${d}#${c}${c}${c}${h}`),ae=new RegExp(`${d}#${g}${g}${g}${h}`),oe=new RegExp(`${d}#${c}${c}${c}${c}${h}`),se=new RegExp(`${d}#${g}${g}${g}${g}${h}`);function n(t){return parseInt(t,16)}function B(t){try{let e;if(e=ae.exec(t))return[n(e[1]),n(e[2]),n(e[3]),1];if(e=te.exec(t))return[o(e[1]),o(e[5]),o(e[9]),1];if(e=re.exec(t))return[o(e[1]),o(e[5]),o(e[9]),y(e[13])];if(e=ne.exec(t))return[n(e[1]+e[1]),n(e[2]+e[2]),n(e[3]+e[3]),1];if(e=se.exec(t))return[n(e[1]),n(e[2]),n(e[3]),y(n(e[4])/255)];if(e=oe.exec(t))return[n(e[1]+e[1]),n(e[2]+e[2]),n(e[3]+e[3]),y(n(e[4]+e[4])/255)];if(t in C)return B(C[t]);throw new Error(`[seemly/rgba]: Invalid color value ${t}.`)}catch(e){throw e}}function ue(t){return t>1?1:t<0?0:t}function M(t,e,l,s){return`rgba(${o(t)}, ${o(e)}, ${o(l)}, ${ue(s)})`}function R(t,e){const[l,s,$,x=1]=Array.isArray(t)?t:B(t);return e.alpha?M(l,s,$,e.alpha):M(l,s,$,x)}function y(t){const e=Math.round(Number(t)*100)/100;return e>1?1:e<0?0:e}function o(t){const e=Math.round(Number(t));return e>255?255:e<0?0:e}const ie={list:v,grid:L,image:E},de=()=>{const t=O();return r(ee,{get children(){return[r(W,{as:Z,get color(){return b()},get bgColor(){return R(b(),{alpha:.15})},get _hover(){return{bgColor:R(b(),{alpha:.2})}},"aria-label":"switch layout",compact:!0,size:"lg",get icon(){return r(S,{get children(){return[r(w,{get when(){return F()==="list"},get children(){return r(v,{})}}),r(w,{get when(){return F()==="grid"},get children(){return r(L,{})}}),r(w,{get when(){return F()==="image"},get children(){return r(E,{})}})]}})}}),r(J,{get children(){return r(K,{get each(){return Object.entries(ie)},children:e=>r(P,{get icon(){return r(Q,{get component(){return e[1]}})},onSelect:()=>{X(e[0])},get children(){return t(`home.layouts.${e[0]}`)}})})}})]}})};export{le as C,de as L,ge as R,R as c};
1
+ import{ai as k,cT as I,d as T,B as _,E as j,ap as f,an as u,aY as H,y as r,aG as z,aV as D,av as p,cY as G,bV as N,S as U,cZ as V,af as Y,am as w,c_ as q,al as S,b as O,aR as W,ci as Z,aD as b,cV as F,c$ as v,d0 as L,d1 as E,aS as J,a6 as K,aT as P,cW as Q,d2 as X,aU as ee}from"./index-b0560a31.js";function ge(t){const e=k("white","$neutral3"),{proxyLink:l}=I();T();const s=_(j(()=>u.state,()=>{if(![f.FetchingMore,f.Folder,f.File].includes(u.state))return"";if([f.FetchingMore,f.Folder].includes(u.state)){const a=u.objs.find(m=>t.files.find(A=>A.toLowerCase()===m.name.toLowerCase()));if(a)return l(a,!0)}return u[t.fromMeta]&&typeof u[t.fromMeta]=="string"?u[t.fromMeta]:""})),$=async a=>{let m={content:a};return/^https?:\/\//g.test(a)&&(m=await V(a)),m},[x]=H(s,$);return r(U,{get when(){return z(()=>!!D("readme_autorender"),!0)()&&s()},get children(){return r(p,{w:"$full",rounded:"$xl",p:"$4",get bgColor(){return e()},shadow:"$lg",get children(){return r(G,{get loading(){return x.loading},get children(){return r(N,{get children(){var a;return(a=x())==null?void 0:a.content},readme:!0,get toc(){return t.fromMeta==="readme"}})}})}})}})}const le=t=>{const e=Y("home_container");return r(S,{get fallback(){return r(p,{w:"min(99%, 980px)",get children(){return t.children}})},get children(){return r(w,{when:e==="hope_container",get children(){return r(q,{get children(){return t.children}})}})}})},C={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},d="^\\s*",h="\\s*$",i="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",c="([0-9A-Fa-f])",g="([0-9A-Fa-f]{2})",te=new RegExp(`${d}rgb\\s*\\(${i},${i},${i}\\)${h}`),re=new RegExp(`${d}rgba\\s*\\(${i},${i},${i},${i}\\)${h}`),ne=new RegExp(`${d}#${c}${c}${c}${h}`),ae=new RegExp(`${d}#${g}${g}${g}${h}`),oe=new RegExp(`${d}#${c}${c}${c}${c}${h}`),se=new RegExp(`${d}#${g}${g}${g}${g}${h}`);function n(t){return parseInt(t,16)}function B(t){try{let e;if(e=ae.exec(t))return[n(e[1]),n(e[2]),n(e[3]),1];if(e=te.exec(t))return[o(e[1]),o(e[5]),o(e[9]),1];if(e=re.exec(t))return[o(e[1]),o(e[5]),o(e[9]),y(e[13])];if(e=ne.exec(t))return[n(e[1]+e[1]),n(e[2]+e[2]),n(e[3]+e[3]),1];if(e=se.exec(t))return[n(e[1]),n(e[2]),n(e[3]),y(n(e[4])/255)];if(e=oe.exec(t))return[n(e[1]+e[1]),n(e[2]+e[2]),n(e[3]+e[3]),y(n(e[4]+e[4])/255)];if(t in C)return B(C[t]);throw new Error(`[seemly/rgba]: Invalid color value ${t}.`)}catch(e){throw e}}function ue(t){return t>1?1:t<0?0:t}function M(t,e,l,s){return`rgba(${o(t)}, ${o(e)}, ${o(l)}, ${ue(s)})`}function R(t,e){const[l,s,$,x=1]=Array.isArray(t)?t:B(t);return e.alpha?M(l,s,$,e.alpha):M(l,s,$,x)}function y(t){const e=Math.round(Number(t)*100)/100;return e>1?1:e<0?0:e}function o(t){const e=Math.round(Number(t));return e>255?255:e<0?0:e}const ie={list:v,grid:L,image:E},de=()=>{const t=O();return r(ee,{get children(){return[r(W,{as:Z,get color(){return b()},get bgColor(){return R(b(),{alpha:.15})},get _hover(){return{bgColor:R(b(),{alpha:.2})}},"aria-label":"switch layout",compact:!0,size:"lg",get icon(){return r(S,{get children(){return[r(w,{get when(){return F()==="list"},get children(){return r(v,{})}}),r(w,{get when(){return F()==="grid"},get children(){return r(L,{})}}),r(w,{get when(){return F()==="image"},get children(){return r(E,{})}})]}})}}),r(J,{get children(){return r(K,{get each(){return Object.entries(ie)},children:e=>r(P,{get icon(){return r(Q,{get component(){return e[1]}})},onSelect:()=>{X(e[0])},get children(){return t(`home.layouts.${e[0]}`)}})})}})]}})};export{le as C,de as L,ge as R,R as c};
@@ -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(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 e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(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 e(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}function n(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return r};var r={},e=Object.prototype,o=e.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 f(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new S(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 j()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=L(a,e);if(c){if(c===s)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=h(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===s)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 h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(O){return{type:"throw",arg:O}}}r.wrap=f;var s={};function d(){}function p(){}function y(){}var g={};l(g,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(_([])));m&&m!==e&&o.call(m,a)&&(g=m);var w=y.prototype=d.prototype=Object.create(g);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=h(r[i],r,a);if("throw"!==l.type){var f=l.arg,s=f.value;return s&&"object"==t(s)&&o.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(s).then((function(t){f.value=t,c(f)}),(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 s;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=h(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,s;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,s):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,s)}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 F(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,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:j}}function j(){return{value:void 0,done:!0}}return p.prototype=y,l(w,"constructor",y),l(y,"constructor",p),p.displayName=l(y,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===p||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},b(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(f(t,e,n,o),i);return r.isGeneratorFunction(e)?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]"})),r.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}},r.values=_,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(F),!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,s):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),s},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),F(e),s}},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;F(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),s}},r}function o(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)}System.register(["./index-legacy.9a995a78.js"],(function(t,e){"use strict";var i,a,c,u,l,f,h,s,d,p,y,g,v,m,w,b,x,L,E,F,S,_,j,O,k,A,C,N,G,M,I,P,R,T;return{setters:[function(t){i=t.ai,a=t.cT,c=t.d,u=t.B,l=t.E,f=t.ap,h=t.an,s=t.aY,d=t.y,p=t.aG,y=t.aV,g=t.av,v=t.cY,m=t.bV,w=t.S,b=t.cZ,x=t.af,L=t.am,E=t.c_,F=t.al,S=t.b,_=t.aR,j=t.ci,O=t.aD,k=t.cV,A=t.c$,C=t.d0,N=t.d1,G=t.aS,M=t.a6,I=t.aT,P=t.cW,R=t.d2,T=t.aU}],execute:function(){t({R:function(t){var e=i("white","$neutral3"),x=a().proxyLink;c();var L=u(l((function(){return h.state}),(function(){if(![f.FetchingMore,f.Folder,f.File].includes(h.state))return"";if([f.FetchingMore,f.Folder].includes(h.state)){var r=h.objs.find((function(r){return t.files.find((function(t){return t.toLowerCase()===r.name.toLowerCase()}))}));if(r)return x(r,!0)}return h[t.fromMeta]&&"string"==typeof h[t.fromMeta]?h[t.fromMeta]:""}))),E=function(){var t,r=(t=n().mark((function t(r){var e;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e={content:r},!/^https?:\/\//g.test(r)){t.next=5;break}return t.next=4,b(r);case 4:e=t.sent;case 5:return t.abrupt("return",e);case 6:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,i){var a=t.apply(r,e);function c(t){o(a,n,i,c,u,"next",t)}function u(t){o(a,n,i,c,u,"throw",t)}c(void 0)}))});return function(t){return r.apply(this,arguments)}}(),F=r(s(L,E),1)[0];return d(w,{get when(){return p((function(){return!!y("readme_autorender")}),!0)()&&L()},get children(){return d(g,{w:"$full",rounded:"$xl",p:"$4",get bgColor(){return e()},shadow:"$lg",get children(){return d(v,{get loading(){return F.loading},get children(){return d(m,{get children(){var t;return null===(t=F())||void 0===t?void 0:t.content},readme:!0,get toc(){return"readme"===t.fromMeta}})}})}})}})},c:X});t("C",(function(t){var r=x("home_container");return d(F,{get fallback(){return d(g,{w:"min(99%, 980px)",get children(){return t.children}})},get children(){return d(L,{when:"hope_container"===r,get children(){return d(E,{get children(){return t.children}})}})}})}));var e={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},$="^\\s*",Y="\\s*$",V="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",U="([0-9A-Fa-f])",q="([0-9A-Fa-f]{2})",z=new RegExp("".concat($,"rgb\\s*\\(").concat(V,",").concat(V,",").concat(V,"\\)").concat(Y)),B=new RegExp("".concat($,"rgba\\s*\\(").concat(V,",").concat(V,",").concat(V,",").concat(V,"\\)").concat(Y)),D=new RegExp("".concat($,"#").concat(U).concat(U).concat(U).concat(Y)),W=new RegExp("".concat($,"#").concat(q).concat(q).concat(q).concat(Y)),Z=new RegExp("".concat($,"#").concat(U).concat(U).concat(U).concat(U).concat(Y)),H=new RegExp("".concat($,"#").concat(q).concat(q).concat(q).concat(q).concat(Y));function J(t){return parseInt(t,16)}function K(t){try{var r;if(r=W.exec(t))return[J(r[1]),J(r[2]),J(r[3]),1];if(r=z.exec(t))return[rt(r[1]),rt(r[5]),rt(r[9]),1];if(r=B.exec(t))return[rt(r[1]),rt(r[5]),rt(r[9]),tt(r[13])];if(r=D.exec(t))return[J(r[1]+r[1]),J(r[2]+r[2]),J(r[3]+r[3]),1];if(r=H.exec(t))return[J(r[1]),J(r[2]),J(r[3]),tt(J(r[4])/255)];if(r=Z.exec(t))return[J(r[1]+r[1]),J(r[2]+r[2]),J(r[3]+r[3]),tt(J(r[4]+r[4])/255)];if(t in e)return K(e[t]);throw new Error("[seemly/rgba]: Invalid color value ".concat(t,"."))}catch(n){throw n}}function Q(t,r,e,n){return"rgba(".concat(rt(t),", ").concat(rt(r),", ").concat(rt(e),", ").concat((o=n)>1?1:o<0?0:o,")");var o}function X(t,e){var n=r(Array.isArray(t)?t:K(t),4),o=n[0],i=n[1],a=n[2],c=n[3],u=void 0===c?1:c;return e.alpha?Q(o,i,a,e.alpha):Q(o,i,a,u)}function tt(t){var r=Math.round(100*Number(t))/100;return r>1?1:r<0?0:r}function rt(t){var r=Math.round(Number(t));return r>255?255:r<0?0:r}var et={list:A,grid:C,image:N};t("L",(function(){var t=S();return d(T,{get children(){return[d(_,{as:j,get color(){return O()},get bgColor(){return X(O(),{alpha:.15})},get _hover(){return{bgColor:X(O(),{alpha:.2})}},"aria-label":"switch layout",compact:!0,size:"lg",get icon(){return d(F,{get children(){return[d(L,{get when(){return"list"===k()},get children(){return d(A,{})}}),d(L,{get when(){return"grid"===k()},get children(){return d(C,{})}}),d(L,{get when(){return"image"===k()},get children(){return d(N,{})}})]}})}}),d(G,{get children(){return d(M,{get each(){return Object.entries(et)},children:function(r){return d(I,{get icon(){return d(P,{get component(){return r[1]}})},onSelect:function(){R(r[0])},get children(){return t("home.layouts.".concat(r[0]))}})}})}})]}})}))}}}))}();
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(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 e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(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 e(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}function n(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return r};var r={},e=Object.prototype,o=e.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 f(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new S(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 j()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=L(a,e);if(c){if(c===s)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=h(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===s)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 h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(O){return{type:"throw",arg:O}}}r.wrap=f;var s={};function d(){}function p(){}function y(){}var g={};l(g,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(_([])));m&&m!==e&&o.call(m,a)&&(g=m);var w=y.prototype=d.prototype=Object.create(g);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=h(r[i],r,a);if("throw"!==l.type){var f=l.arg,s=f.value;return s&&"object"==t(s)&&o.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(s).then((function(t){f.value=t,c(f)}),(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 s;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=h(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,s;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,s):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,s)}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 F(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,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:j}}function j(){return{value:void 0,done:!0}}return p.prototype=y,l(w,"constructor",y),l(y,"constructor",p),p.displayName=l(y,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===p||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},b(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(f(t,e,n,o),i);return r.isGeneratorFunction(e)?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]"})),r.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}},r.values=_,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(F),!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,s):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),s},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),F(e),s}},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;F(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),s}},r}function o(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)}System.register(["./index-legacy.cdce98e1.js"],(function(t,e){"use strict";var i,a,c,u,l,f,h,s,d,p,y,g,v,m,w,b,x,L,E,F,S,_,j,O,k,A,C,N,G,M,I,P,R,T;return{setters:[function(t){i=t.ai,a=t.cT,c=t.d,u=t.B,l=t.E,f=t.ap,h=t.an,s=t.aY,d=t.y,p=t.aG,y=t.aV,g=t.av,v=t.cY,m=t.bV,w=t.S,b=t.cZ,x=t.af,L=t.am,E=t.c_,F=t.al,S=t.b,_=t.aR,j=t.ci,O=t.aD,k=t.cV,A=t.c$,C=t.d0,N=t.d1,G=t.aS,M=t.a6,I=t.aT,P=t.cW,R=t.d2,T=t.aU}],execute:function(){t({R:function(t){var e=i("white","$neutral3"),x=a().proxyLink;c();var L=u(l((function(){return h.state}),(function(){if(![f.FetchingMore,f.Folder,f.File].includes(h.state))return"";if([f.FetchingMore,f.Folder].includes(h.state)){var r=h.objs.find((function(r){return t.files.find((function(t){return t.toLowerCase()===r.name.toLowerCase()}))}));if(r)return x(r,!0)}return h[t.fromMeta]&&"string"==typeof h[t.fromMeta]?h[t.fromMeta]:""}))),E=function(){var t,r=(t=n().mark((function t(r){var e;return n().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e={content:r},!/^https?:\/\//g.test(r)){t.next=5;break}return t.next=4,b(r);case 4:e=t.sent;case 5:return t.abrupt("return",e);case 6:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,i){var a=t.apply(r,e);function c(t){o(a,n,i,c,u,"next",t)}function u(t){o(a,n,i,c,u,"throw",t)}c(void 0)}))});return function(t){return r.apply(this,arguments)}}(),F=r(s(L,E),1)[0];return d(w,{get when(){return p((function(){return!!y("readme_autorender")}),!0)()&&L()},get children(){return d(g,{w:"$full",rounded:"$xl",p:"$4",get bgColor(){return e()},shadow:"$lg",get children(){return d(v,{get loading(){return F.loading},get children(){return d(m,{get children(){var t;return null===(t=F())||void 0===t?void 0:t.content},readme:!0,get toc(){return"readme"===t.fromMeta}})}})}})}})},c:X});t("C",(function(t){var r=x("home_container");return d(F,{get fallback(){return d(g,{w:"min(99%, 980px)",get children(){return t.children}})},get children(){return d(L,{when:"hope_container"===r,get children(){return d(E,{get children(){return t.children}})}})}})}));var e={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},$="^\\s*",Y="\\s*$",V="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",U="([0-9A-Fa-f])",q="([0-9A-Fa-f]{2})",z=new RegExp("".concat($,"rgb\\s*\\(").concat(V,",").concat(V,",").concat(V,"\\)").concat(Y)),B=new RegExp("".concat($,"rgba\\s*\\(").concat(V,",").concat(V,",").concat(V,",").concat(V,"\\)").concat(Y)),D=new RegExp("".concat($,"#").concat(U).concat(U).concat(U).concat(Y)),W=new RegExp("".concat($,"#").concat(q).concat(q).concat(q).concat(Y)),Z=new RegExp("".concat($,"#").concat(U).concat(U).concat(U).concat(U).concat(Y)),H=new RegExp("".concat($,"#").concat(q).concat(q).concat(q).concat(q).concat(Y));function J(t){return parseInt(t,16)}function K(t){try{var r;if(r=W.exec(t))return[J(r[1]),J(r[2]),J(r[3]),1];if(r=z.exec(t))return[rt(r[1]),rt(r[5]),rt(r[9]),1];if(r=B.exec(t))return[rt(r[1]),rt(r[5]),rt(r[9]),tt(r[13])];if(r=D.exec(t))return[J(r[1]+r[1]),J(r[2]+r[2]),J(r[3]+r[3]),1];if(r=H.exec(t))return[J(r[1]),J(r[2]),J(r[3]),tt(J(r[4])/255)];if(r=Z.exec(t))return[J(r[1]+r[1]),J(r[2]+r[2]),J(r[3]+r[3]),tt(J(r[4]+r[4])/255)];if(t in e)return K(e[t]);throw new Error("[seemly/rgba]: Invalid color value ".concat(t,"."))}catch(n){throw n}}function Q(t,r,e,n){return"rgba(".concat(rt(t),", ").concat(rt(r),", ").concat(rt(e),", ").concat((o=n)>1?1:o<0?0:o,")");var o}function X(t,e){var n=r(Array.isArray(t)?t:K(t),4),o=n[0],i=n[1],a=n[2],c=n[3],u=void 0===c?1:c;return e.alpha?Q(o,i,a,e.alpha):Q(o,i,a,u)}function tt(t){var r=Math.round(100*Number(t))/100;return r>1?1:r<0?0:r}function rt(t){var r=Math.round(Number(t));return r>255?255:r<0?0:r}var et={list:A,grid:C,image:N};t("L",(function(){var t=S();return d(T,{get children(){return[d(_,{as:j,get color(){return O()},get bgColor(){return X(O(),{alpha:.15})},get _hover(){return{bgColor:X(O(),{alpha:.2})}},"aria-label":"switch layout",compact:!0,size:"lg",get icon(){return d(F,{get children(){return[d(L,{get when(){return"list"===k()},get children(){return d(A,{})}}),d(L,{get when(){return"grid"===k()},get children(){return d(C,{})}}),d(L,{get when(){return"image"===k()},get children(){return d(N,{})}})]}})}}),d(G,{get children(){return d(M,{get each(){return Object.entries(et)},children:function(r){return d(I,{get icon(){return d(P,{get component(){return r[1]}})},onSelect:function(){R(r[0])},get children(){return t("home.layouts.".concat(r[0]))}})}})}})]}})}))}}}))}();
@@ -1 +1 @@
1
- import{b as O,d as L,C as a,r as M,y as n,aw as _,R as f,aG as o,av as m,dM as U,dN as A,dO as p,a6 as l,dP as B,dQ as E,dR as H,Y as I,n as s,ck as N,eu as P,a3 as u,ev as j,ew as z}from"./index-0af67a26.js";import{D as F}from"./DeletePopover-3958d0ad.js";import{g as v}from"./ua-parser-5a8f43f2.js";const W=()=>{const r=O(),{to:S}=L(),[w,C]=a([]),[$,g]=a(!1),[d,c]=a(null),[k,h]=a(null),[D,y]=a(!1),T=async e=>{h(e);try{const t=await z(e);u(t,()=>{s.success(r("session.kick_out_success")),i()},K=>{s.error(K||r("session.kick_out_failed"))})}catch{s.error(r("session.kick_out_failed"))}finally{h(null)}},b=e=>{const t=localStorage.getItem("device_key");return t&&e.session_id===t},x=async e=>{b(e)?(s.error(r("session.kick_out_current_session")),N(),S(`/@login?redirect=${encodeURIComponent(window.location.pathname)}`)):await T(e.session_id)},i=async()=>{g(!0),c(null);try{const e=await P();u(e,t=>{C(t||[])},t=>{c(t)})}catch(e){c(e instanceof Error?e.message:"Unknown error")}finally{g(!1)}};M(()=>{i()});const R=async()=>{y(!0);try{const e=await j();u(e,()=>{s.success(r("session.clean_success")),i()},t=>{s.error(t||r("session.clean_failed"))})}catch{s.error(r("session.clean_failed"))}finally{y(!1)}};return n(I,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[n(_,{spacing:"$2",get children(){return[n(f,{colorScheme:"accent",get loading(){return $()},onClick:i,get children(){return r("global.refresh")}}),n(f,{colorScheme:"danger",get loading(){return D()},onClick:R,get children(){return r("session.clean")}})]}}),o(()=>o(()=>!!d(),!0)()&&n(m,{color:"red.500",fontSize:"sm",get children(){return d()}})),n(m,{w:"$full",overflowX:"auto",get children(){return n(U,{highlightOnHover:!0,dense:!0,get children(){return[n(A,{get children(){return n(p,{get children(){return n(l,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"user_id",align:"center"},{key:"username",align:"center"},{key:"operations",align:"center"}],children:e=>n(B,{get textAlign(){return e.align},get children(){return o(()=>e.key==="operations",!0)()?r("global.operations"):r(`session.${e.key}`)}})})}})}}),n(E,{get children(){return n(l,{get each(){return w()},children:e=>n(p,{get children(){return n(l,{get each(){return[{key:"device_id",align:"left",content:e.session_id?`${e.session_id.slice(0,6)}***${e.session_id.slice(-6)}`:"-"},{key:"system_info",align:"left",content:e.ua?v(e.ua):"-"},{key:"ip",align:"center",content:e.ip||"-"},{key:"last_active",align:"center",content:e.last_active?new Date(e.last_active*1e3).toLocaleString():"-"},{key:"status",align:"center",content:e.status===0?r("session.active"):r("session.offline")},{key:"user_id",align:"center",content:e.user_id},{key:"username",align:"center",content:e.username||"-"},{key:"operations",align:"center",content:n(_,{spacing:"$2",justifyContent:"center",get children(){return n(F,{get name(){return`${e.session_id?`${e.session_id.slice(0,6)}***${e.session_id.slice(-6)}`:"-"} (${e.ua?v(e.ua):"-"})`},get loading(){return k()===e.session_id},get disabled(){return k()!==null},onClick:()=>x(e),get buttonText(){return r("session.kick_out")}})}})}]},children:t=>n(H,{get textAlign(){return t.align},get children(){return t.content}})})}})})}})]}})}})]}})};export{W as default};
1
+ import{b as O,d as L,C as a,r as M,y as n,aw as _,R as f,aG as o,av as m,dM as U,dN as A,dO as p,a6 as l,dP as B,dQ as E,dR as H,Y as I,n as s,ck as N,eu as P,a3 as u,ev as j,ew as z}from"./index-b0560a31.js";import{D as F}from"./DeletePopover-8805036c.js";import{g as v}from"./ua-parser-5a8f43f2.js";const W=()=>{const r=O(),{to:S}=L(),[w,C]=a([]),[$,g]=a(!1),[d,c]=a(null),[k,h]=a(null),[D,y]=a(!1),T=async e=>{h(e);try{const t=await z(e);u(t,()=>{s.success(r("session.kick_out_success")),i()},K=>{s.error(K||r("session.kick_out_failed"))})}catch{s.error(r("session.kick_out_failed"))}finally{h(null)}},b=e=>{const t=localStorage.getItem("device_key");return t&&e.session_id===t},x=async e=>{b(e)?(s.error(r("session.kick_out_current_session")),N(),S(`/@login?redirect=${encodeURIComponent(window.location.pathname)}`)):await T(e.session_id)},i=async()=>{g(!0),c(null);try{const e=await P();u(e,t=>{C(t||[])},t=>{c(t)})}catch(e){c(e instanceof Error?e.message:"Unknown error")}finally{g(!1)}};M(()=>{i()});const R=async()=>{y(!0);try{const e=await j();u(e,()=>{s.success(r("session.clean_success")),i()},t=>{s.error(t||r("session.clean_failed"))})}catch{s.error(r("session.clean_failed"))}finally{y(!1)}};return n(I,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[n(_,{spacing:"$2",get children(){return[n(f,{colorScheme:"accent",get loading(){return $()},onClick:i,get children(){return r("global.refresh")}}),n(f,{colorScheme:"danger",get loading(){return D()},onClick:R,get children(){return r("session.clean")}})]}}),o(()=>o(()=>!!d(),!0)()&&n(m,{color:"red.500",fontSize:"sm",get children(){return d()}})),n(m,{w:"$full",overflowX:"auto",get children(){return n(U,{highlightOnHover:!0,dense:!0,get children(){return[n(A,{get children(){return n(p,{get children(){return n(l,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"user_id",align:"center"},{key:"username",align:"center"},{key:"operations",align:"center"}],children:e=>n(B,{get textAlign(){return e.align},get children(){return o(()=>e.key==="operations",!0)()?r("global.operations"):r(`session.${e.key}`)}})})}})}}),n(E,{get children(){return n(l,{get each(){return w()},children:e=>n(p,{get children(){return n(l,{get each(){return[{key:"device_id",align:"left",content:e.session_id?`${e.session_id.slice(0,6)}***${e.session_id.slice(-6)}`:"-"},{key:"system_info",align:"left",content:e.ua?v(e.ua):"-"},{key:"ip",align:"center",content:e.ip||"-"},{key:"last_active",align:"center",content:e.last_active?new Date(e.last_active*1e3).toLocaleString():"-"},{key:"status",align:"center",content:e.status===0?r("session.active"):r("session.offline")},{key:"user_id",align:"center",content:e.user_id},{key:"username",align:"center",content:e.username||"-"},{key:"operations",align:"center",content:n(_,{spacing:"$2",justifyContent:"center",get children(){return n(F,{get name(){return`${e.session_id?`${e.session_id.slice(0,6)}***${e.session_id.slice(-6)}`:"-"} (${e.ua?v(e.ua):"-"})`},get loading(){return k()===e.session_id},get disabled(){return k()!==null},onClick:()=>x(e),get buttonText(){return r("session.kick_out")}})}})}]},children:t=>n(H,{get textAlign(){return t.align},get children(){return t.content}})})}})})}})]}})}})]}})};export{W 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 n};var n={},r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(O){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),c=new E(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var a=b(c,n);if(a){if(a===h)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,c),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(O){return{type:"throw",arg:O}}}n.wrap=l;var h={};function p(){}function d(){}function y(){}var g={};s(g,c,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==r&&o.call(m,c)&&(g=m);var w=y.prototype=p.prototype=Object.create(g);function k(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function _(e,n){function r(i,c,a,u){var s=f(e[i],e,c);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==t(h)&&o.call(h,"__await")?n.resolve(h.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):n.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var i;this._invoke=function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return i=i?i.then(o,o):o()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(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 r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var o=r.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 x(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 E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function S(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:j}}function j(){return{value:void 0,done:!0}}return d.prototype=y,s(w,"constructor",y),s(y,"constructor",d),d.displayName=s(y,u,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},n.awrap=function(t){return{__await:t}},k(_.prototype),s(_.prototype,a,(function(){return this})),n.AsyncIterator=_,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var c=new _(l(t,e,r,o),i);return n.isGeneratorFunction(e)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},k(w),s(w,u,"Generator"),s(w,c,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},n.values=S,E.prototype={constructor:E,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 n(n,r){return c.type="throw",c.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(c)},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 n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},n}function n(t,e,n,r,o,i,c){try{var a=t[i](c),u=a.value}catch(s){return void n(s)}a.done?e(u):Promise.resolve(u).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var c=t.apply(e,r);function a(t){n(c,o,i,a,u,"next",t)}function u(t){n(c,o,i,a,u,"throw",t)}a(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],c=!0,a=!1;try{for(n=n.call(t);!(c=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))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 n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}System.register(["./index-legacy.9a995a78.js","./DeletePopover-legacy.49680594.js","./ua-parser-legacy.5e4c06d6.js"],(function(t,n){"use strict";var i,c,a,u,s,l,f,h,p,d,y,g,v,m,w,k,_,b,x,L,E,S,j,O,A;return{setters:[function(t){i=t.b,c=t.d,a=t.C,u=t.r,s=t.y,l=t.aw,f=t.R,h=t.aG,p=t.av,d=t.dM,y=t.dN,g=t.dO,v=t.a6,m=t.dP,w=t.dQ,k=t.dR,_=t.Y,b=t.n,x=t.ck,L=t.eu,E=t.a3,S=t.ev,j=t.ew},function(t){O=t.D},function(t){A=t.g}],execute:function(){t("default",(function(){var t=i(),n=c().to,G=o(a([]),2),P=G[0],I=G[1],N=o(a(!1),2),C=N[0],T=N[1],$=o(a(null),2),F=$[0],D=$[1],R=o(a(null),2),U=R[0],Y=R[1],M=o(a(!1),2),z=M[0],H=M[1],K=function(){var n=r(e().mark((function n(r){var o;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Y(r),e.prev=1,e.next=4,j(r);case 4:o=e.sent,E(o,(function(){b.success(t("session.kick_out_success")),q()}),(function(e){b.error(e||t("session.kick_out_failed"))})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),b.error(t("session.kick_out_failed"));case 11:return e.prev=11,Y(null),e.finish(11);case 14:case"end":return e.stop()}}),n,null,[[1,8,11,14]])})));return function(t){return n.apply(this,arguments)}}(),Q=function(t){var e=localStorage.getItem("device_key");return e&&t.session_id===e},X=function(){var o=r(e().mark((function r(o){return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Q(o)){e.next=7;break}b.error(t("session.kick_out_current_session")),x(),n("/@login?redirect=".concat(encodeURIComponent(window.location.pathname))),e.next=9;break;case 7:return e.next=9,K(o.session_id);case 9:case"end":return e.stop()}}),r)})));return function(t){return o.apply(this,arguments)}}(),q=function(){var t=r(e().mark((function t(){var n;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return T(!0),D(null),t.prev=2,t.next=5,L();case 5:n=t.sent,E(n,(function(t){I(t||[])}),(function(t){D(t)})),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),D(t.t0 instanceof Error?t.t0.message:"Unknown error");case 12:return t.prev=12,T(!1),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[2,9,12,15]])})));return function(){return t.apply(this,arguments)}}();u((function(){q()}));var B=function(){var n=r(e().mark((function n(){var r;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return H(!0),e.prev=1,e.next=4,S();case 4:r=e.sent,E(r,(function(){b.success(t("session.clean_success")),q()}),(function(e){b.error(e||t("session.clean_failed"))})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),b.error(t("session.clean_failed"));case 11:return e.prev=11,H(!1),e.finish(11);case 14:case"end":return e.stop()}}),n,null,[[1,8,11,14]])})));return function(){return n.apply(this,arguments)}}();return s(_,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[s(l,{spacing:"$2",get children(){return[s(f,{colorScheme:"accent",get loading(){return C()},onClick:q,get children(){return t("global.refresh")}}),s(f,{colorScheme:"danger",get loading(){return z()},onClick:B,get children(){return t("session.clean")}})]}}),h((function(){return h((function(){return!!F()}),!0)()&&s(p,{color:"red.500",fontSize:"sm",get children(){return F()}})})),s(p,{w:"$full",overflowX:"auto",get children(){return s(d,{highlightOnHover:!0,dense:!0,get children(){return[s(y,{get children(){return s(g,{get children(){return s(v,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"user_id",align:"center"},{key:"username",align:"center"},{key:"operations",align:"center"}],children:function(e){return s(m,{get textAlign(){return e.align},get children(){return h((function(){return"operations"===e.key}),!0)()?t("global.operations"):t("session.".concat(e.key))}})}})}})}}),s(w,{get children(){return s(v,{get each(){return P()},children:function(e){return s(g,{get children(){return s(v,{get each(){return[{key:"device_id",align:"left",content:e.session_id?"".concat(e.session_id.slice(0,6),"***").concat(e.session_id.slice(-6)):"-"},{key:"system_info",align:"left",content:e.ua?A(e.ua):"-"},{key:"ip",align:"center",content:e.ip||"-"},{key:"last_active",align:"center",content:e.last_active?new Date(1e3*e.last_active).toLocaleString():"-"},{key:"status",align:"center",content:0===e.status?t("session.active"):t("session.offline")},{key:"user_id",align:"center",content:e.user_id},{key:"username",align:"center",content:e.username||"-"},{key:"operations",align:"center",content:s(l,{spacing:"$2",justifyContent:"center",get children(){return s(O,{get name(){return"".concat(e.session_id?"".concat(e.session_id.slice(0,6),"***").concat(e.session_id.slice(-6)):"-"," (").concat(e.ua?A(e.ua):"-",")")},get loading(){return U()===e.session_id},get disabled(){return null!==U()},onClick:function(){return X(e)},get buttonText(){return t("session.kick_out")}})}})}]},children:function(t){return s(k,{get textAlign(){return t.align},get children(){return t.content}})}})}})}})}})]}})}})]}})}))}}}))}();
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 n};var n={},r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(O){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),c=new E(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var a=b(c,n);if(a){if(a===h)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,c),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(O){return{type:"throw",arg:O}}}n.wrap=l;var h={};function p(){}function d(){}function y(){}var g={};s(g,c,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==r&&o.call(m,c)&&(g=m);var w=y.prototype=p.prototype=Object.create(g);function k(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function _(e,n){function r(i,c,a,u){var s=f(e[i],e,c);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==t(h)&&o.call(h,"__await")?n.resolve(h.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):n.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var i;this._invoke=function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return i=i?i.then(o,o):o()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(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 r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var o=r.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 x(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 E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function S(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:j}}function j(){return{value:void 0,done:!0}}return d.prototype=y,s(w,"constructor",y),s(y,"constructor",d),d.displayName=s(y,u,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},n.awrap=function(t){return{__await:t}},k(_.prototype),s(_.prototype,a,(function(){return this})),n.AsyncIterator=_,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var c=new _(l(t,e,r,o),i);return n.isGeneratorFunction(e)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},k(w),s(w,u,"Generator"),s(w,c,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},n.values=S,E.prototype={constructor:E,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 n(n,r){return c.type="throw",c.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(c)},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 n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},n}function n(t,e,n,r,o,i,c){try{var a=t[i](c),u=a.value}catch(s){return void n(s)}a.done?e(u):Promise.resolve(u).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var c=t.apply(e,r);function a(t){n(c,o,i,a,u,"next",t)}function u(t){n(c,o,i,a,u,"throw",t)}a(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],c=!0,a=!1;try{for(n=n.call(t);!(c=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))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 n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}System.register(["./index-legacy.cdce98e1.js","./DeletePopover-legacy.c02233f5.js","./ua-parser-legacy.5e4c06d6.js"],(function(t,n){"use strict";var i,c,a,u,s,l,f,h,p,d,y,g,v,m,w,k,_,b,x,L,E,S,j,O,A;return{setters:[function(t){i=t.b,c=t.d,a=t.C,u=t.r,s=t.y,l=t.aw,f=t.R,h=t.aG,p=t.av,d=t.dM,y=t.dN,g=t.dO,v=t.a6,m=t.dP,w=t.dQ,k=t.dR,_=t.Y,b=t.n,x=t.ck,L=t.eu,E=t.a3,S=t.ev,j=t.ew},function(t){O=t.D},function(t){A=t.g}],execute:function(){t("default",(function(){var t=i(),n=c().to,G=o(a([]),2),P=G[0],I=G[1],N=o(a(!1),2),C=N[0],T=N[1],$=o(a(null),2),F=$[0],D=$[1],R=o(a(null),2),U=R[0],Y=R[1],M=o(a(!1),2),z=M[0],H=M[1],K=function(){var n=r(e().mark((function n(r){var o;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Y(r),e.prev=1,e.next=4,j(r);case 4:o=e.sent,E(o,(function(){b.success(t("session.kick_out_success")),q()}),(function(e){b.error(e||t("session.kick_out_failed"))})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),b.error(t("session.kick_out_failed"));case 11:return e.prev=11,Y(null),e.finish(11);case 14:case"end":return e.stop()}}),n,null,[[1,8,11,14]])})));return function(t){return n.apply(this,arguments)}}(),Q=function(t){var e=localStorage.getItem("device_key");return e&&t.session_id===e},X=function(){var o=r(e().mark((function r(o){return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Q(o)){e.next=7;break}b.error(t("session.kick_out_current_session")),x(),n("/@login?redirect=".concat(encodeURIComponent(window.location.pathname))),e.next=9;break;case 7:return e.next=9,K(o.session_id);case 9:case"end":return e.stop()}}),r)})));return function(t){return o.apply(this,arguments)}}(),q=function(){var t=r(e().mark((function t(){var n;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return T(!0),D(null),t.prev=2,t.next=5,L();case 5:n=t.sent,E(n,(function(t){I(t||[])}),(function(t){D(t)})),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),D(t.t0 instanceof Error?t.t0.message:"Unknown error");case 12:return t.prev=12,T(!1),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[2,9,12,15]])})));return function(){return t.apply(this,arguments)}}();u((function(){q()}));var B=function(){var n=r(e().mark((function n(){var r;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return H(!0),e.prev=1,e.next=4,S();case 4:r=e.sent,E(r,(function(){b.success(t("session.clean_success")),q()}),(function(e){b.error(e||t("session.clean_failed"))})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),b.error(t("session.clean_failed"));case 11:return e.prev=11,H(!1),e.finish(11);case 14:case"end":return e.stop()}}),n,null,[[1,8,11,14]])})));return function(){return n.apply(this,arguments)}}();return s(_,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[s(l,{spacing:"$2",get children(){return[s(f,{colorScheme:"accent",get loading(){return C()},onClick:q,get children(){return t("global.refresh")}}),s(f,{colorScheme:"danger",get loading(){return z()},onClick:B,get children(){return t("session.clean")}})]}}),h((function(){return h((function(){return!!F()}),!0)()&&s(p,{color:"red.500",fontSize:"sm",get children(){return F()}})})),s(p,{w:"$full",overflowX:"auto",get children(){return s(d,{highlightOnHover:!0,dense:!0,get children(){return[s(y,{get children(){return s(g,{get children(){return s(v,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"user_id",align:"center"},{key:"username",align:"center"},{key:"operations",align:"center"}],children:function(e){return s(m,{get textAlign(){return e.align},get children(){return h((function(){return"operations"===e.key}),!0)()?t("global.operations"):t("session.".concat(e.key))}})}})}})}}),s(w,{get children(){return s(v,{get each(){return P()},children:function(e){return s(g,{get children(){return s(v,{get each(){return[{key:"device_id",align:"left",content:e.session_id?"".concat(e.session_id.slice(0,6),"***").concat(e.session_id.slice(-6)):"-"},{key:"system_info",align:"left",content:e.ua?A(e.ua):"-"},{key:"ip",align:"center",content:e.ip||"-"},{key:"last_active",align:"center",content:e.last_active?new Date(1e3*e.last_active).toLocaleString():"-"},{key:"status",align:"center",content:0===e.status?t("session.active"):t("session.offline")},{key:"user_id",align:"center",content:e.user_id},{key:"username",align:"center",content:e.username||"-"},{key:"operations",align:"center",content:s(l,{spacing:"$2",justifyContent:"center",get children(){return s(O,{get name(){return"".concat(e.session_id?"".concat(e.session_id.slice(0,6),"***").concat(e.session_id.slice(-6)):"-"," (").concat(e.ua?A(e.ua):"-",")")},get loading(){return U()===e.session_id},get disabled(){return null!==U()},onClick:function(){return X(e)},get buttonText(){return t("session.kick_out")}})}})}]},children:function(t){return s(k,{get textAlign(){return t.align},get children(){return t.content}})}})}})}})}})]}})}})]}})}))}}}))}();
@@ -1 +1 @@
1
- import{eN as r,y as n,bV as o,cX as a,an as c,cY as s}from"./index-0af67a26.js";const u=()=>{const[e]=r();return n(s,{get loading(){return e.loading},get children(){return n(o,{get children(){var t;return(t=e())==null?void 0:t.content},get ext(){return a(c.obj.name)},toc:!0})}})};export{u as default};
1
+ import{eN as r,y as n,bV as o,cX as a,an as c,cY as s}from"./index-b0560a31.js";const u=()=>{const[e]=r();return n(s,{get loading(){return e.loading},get children(){return n(o,{get children(){var t;return(t=e())==null?void 0:t.content},get ext(){return a(c.obj.name)},toc:!0})}})};export{u as default};
@@ -1 +1 @@
1
- !function(){function t(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var e,o,u=[],i=!0,a=!1;try{for(n=n.call(t);!(i=(e=n.next()).done)&&(u.push(e.value),!r||u.length!==r);i=!0);}catch(l){a=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return r(t,n);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 r(t,n)}(t,n)||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 r(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}System.register(["./index-legacy.9a995a78.js"],(function(r,n){"use strict";var e,o,u,i,a,l;return{setters:[function(t){e=t.eN,o=t.y,u=t.bV,i=t.cX,a=t.an,l=t.cY}],execute:function(){r("default",(function(){var r=t(e(),1)[0];return o(l,{get loading(){return r.loading},get children(){return o(u,{get children(){var t;return null===(t=r())||void 0===t?void 0:t.content},get ext(){return i(a.obj.name)},toc:!0})}})}))}}}))}();
1
+ !function(){function t(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var e,o,u=[],i=!0,a=!1;try{for(n=n.call(t);!(i=(e=n.next()).done)&&(u.push(e.value),!r||u.length!==r);i=!0);}catch(l){a=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return r(t,n);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 r(t,n)}(t,n)||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 r(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}System.register(["./index-legacy.cdce98e1.js"],(function(r,n){"use strict";var e,o,u,i,a,l;return{setters:[function(t){e=t.eN,o=t.y,u=t.bV,i=t.cX,a=t.an,l=t.cY}],execute:function(){r("default",(function(){var r=t(e(),1)[0];return o(l,{get loading(){return r.loading},get children(){return o(u,{get children(){var t;return null===(t=r())||void 0===t?void 0:t.content},get ext(){return i(a.obj.name)},toc:!0})}})}))}}}))}();
@@ -1 +1 @@
1
- import{eN as n,y as r,bV as a,cX as o,an as c,cY as s}from"./index-0af67a26.js";const u=()=>{const[e]=n();return r(s,{get loading(){return e.loading},get children(){return r(a,{class:"word-wrap",get children(){var t;return(t=e())==null?void 0:t.content},get ext(){return o(c.obj.name)},toc:!0})}})};export{u as default};
1
+ import{eN as n,y as r,bV as a,cX as o,an as c,cY as s}from"./index-b0560a31.js";const u=()=>{const[e]=n();return r(s,{get loading(){return e.loading},get children(){return r(a,{class:"word-wrap",get children(){var t;return(t=e())==null?void 0:t.content},get ext(){return o(c.obj.name)},toc:!0})}})};export{u as default};
@@ -1 +1 @@
1
- !function(){function r(r,n){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==n)return;var e,o,u=[],i=!0,a=!1;try{for(n=n.call(r);!(i=(e=n.next()).done)&&(u.push(e.value),!t||u.length!==t);i=!0);}catch(l){a=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}(r,n)||function(r,n){if(!r)return;if("string"==typeof r)return t(r,n);var e=Object.prototype.toString.call(r).slice(8,-1);"Object"===e&&r.constructor&&(e=r.constructor.name);if("Map"===e||"Set"===e)return Array.from(r);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return t(r,n)}(r,n)||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 t(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,e=new Array(t);n<t;n++)e[n]=r[n];return e}System.register(["./index-legacy.9a995a78.js"],(function(t,n){"use strict";var e,o,u,i,a,l;return{setters:[function(r){e=r.eN,o=r.y,u=r.bV,i=r.cX,a=r.an,l=r.cY}],execute:function(){t("default",(function(){var t=r(e(),1)[0];return o(l,{get loading(){return t.loading},get children(){return o(u,{class:"word-wrap",get children(){var r;return null===(r=t())||void 0===r?void 0:r.content},get ext(){return i(a.obj.name)},toc:!0})}})}))}}}))}();
1
+ !function(){function r(r,n){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==n)return;var e,o,u=[],i=!0,a=!1;try{for(n=n.call(r);!(i=(e=n.next()).done)&&(u.push(e.value),!t||u.length!==t);i=!0);}catch(l){a=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}(r,n)||function(r,n){if(!r)return;if("string"==typeof r)return t(r,n);var e=Object.prototype.toString.call(r).slice(8,-1);"Object"===e&&r.constructor&&(e=r.constructor.name);if("Map"===e||"Set"===e)return Array.from(r);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return t(r,n)}(r,n)||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 t(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,e=new Array(t);n<t;n++)e[n]=r[n];return e}System.register(["./index-legacy.cdce98e1.js"],(function(t,n){"use strict";var e,o,u,i,a,l;return{setters:[function(r){e=r.eN,o=r.y,u=r.bV,i=r.cX,a=r.an,l=r.cY}],execute:function(){t("default",(function(){var t=r(e(),1)[0];return o(l,{get loading(){return t.loading},get children(){return o(u,{class:"word-wrap",get children(){var r;return null===(r=t())||void 0===r?void 0:r.content},get ext(){return i(a.obj.name)},toc:!0})}})}))}}}))}();
@@ -1 +1 @@
1
- import{C as a,b as D,d as b,r as M,y as n,aw as h,R as x,av as R,dM as K,dN as O,dO as y,a6 as u,dP as E,aG as U,dQ as A,dR as B,Y as H,n as s,ck as I,es as L,a3 as _,et as N,cp as f}from"./index-0af67a26.js";import{g as p}from"./ua-parser-5a8f43f2.js";import{D as P}from"./DeletePopover-3958d0ad.js";const V=()=>{const[v,m]=a([]),[S,g]=a(!1),[j,c]=a(null),[d,k]=a(null),r=D(),{to:o}=b(),$=async e=>{k(e);try{const t=await N(e);_(t,()=>{s.success(r("session.kick_out_success")),l()},(i,T)=>{if(i!=null&&i.includes("session inactive")||T===403){s.error(r("session.kick_out_current_session")),f(),o("/@login");return}s.error(i||r("session.kick_out_failed"))})}catch(t){const i=t instanceof Error?t.message:String(t);if(i.includes("session inactive")||i.includes("401")){s.error(r("session.kick_out_current_session")),f(),o("/@login");return}s.error(r("session.kick_out_failed"))}finally{k(null)}},w=e=>{const t=localStorage.getItem("device_key");return t&&e.session_id===t},C=async e=>{w(e)?(s.error(r("session.kick_out_current_session")),I(),o(`/@login?redirect=${encodeURIComponent(window.location.pathname)}`)):await $(e.session_id)},l=async()=>{g(!0),c(null);try{const e=await L();_(e,t=>{m(t||[])},t=>{c(t)})}catch(e){c(e instanceof Error?e.message:"Unknown error")}finally{g(!1)}};return M(()=>{l()}),n(H,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[n(h,{spacing:"$2",get children(){return n(x,{colorScheme:"accent",get loading(){return S()},onClick:l,get children(){return r("global.refresh")}})}}),n(R,{w:"$full",overflowX:"auto",get children(){return n(K,{highlightOnHover:!0,dense:!0,get children(){return[n(O,{get children(){return n(y,{get children(){return n(u,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"operations",align:"center"}],children:e=>n(E,{get textAlign(){return e.align},get children(){return U(()=>e.key==="operations",!0)()?r("global.operations"):r(`session.${e.key}`)}})})}})}}),n(A,{get children(){return n(u,{get each(){return v()},children:e=>n(y,{get children(){return n(u,{get each(){return[{key:"device_id",align:"left",content:e.session_id?`${e.session_id.slice(0,6)}***${e.session_id.slice(-6)}`:"-"},{key:"system_info",align:"left",content:e.ua?p(e.ua):"-"},{key:"ip",align:"center",content:e.ip||"-"},{key:"last_active",align:"center",content:e.last_active?new Date(e.last_active*1e3).toLocaleString():"-"},{key:"status",align:"center",content:e.status===0?r("session.active"):r("session.offline")},{key:"operations",align:"center",content:n(h,{spacing:"$2",justifyContent:"center",get children(){return n(P,{get name(){return`${e.session_id?`${e.session_id.slice(0,6)}***${e.session_id.slice(-6)}`:"-"} (${e.ua?p(e.ua):"-"})`},get loading(){return d()===e.session_id},get disabled(){return d()!==null},onClick:()=>C(e),get buttonText(){return r("session.kick_out")}})}})}]},children:t=>n(B,{get textAlign(){return t.align},get children(){return t.content}})})}})})}})]}})}})]}})};export{V as default};
1
+ import{C as a,b as D,d as b,r as M,y as n,aw as h,R as x,av as R,dM as K,dN as O,dO as y,a6 as u,dP as E,aG as U,dQ as A,dR as B,Y as H,n as s,ck as I,es as L,a3 as _,et as N,cp as f}from"./index-b0560a31.js";import{g as p}from"./ua-parser-5a8f43f2.js";import{D as P}from"./DeletePopover-8805036c.js";const V=()=>{const[v,m]=a([]),[S,g]=a(!1),[j,c]=a(null),[d,k]=a(null),r=D(),{to:o}=b(),$=async e=>{k(e);try{const t=await N(e);_(t,()=>{s.success(r("session.kick_out_success")),l()},(i,T)=>{if(i!=null&&i.includes("session inactive")||T===403){s.error(r("session.kick_out_current_session")),f(),o("/@login");return}s.error(i||r("session.kick_out_failed"))})}catch(t){const i=t instanceof Error?t.message:String(t);if(i.includes("session inactive")||i.includes("401")){s.error(r("session.kick_out_current_session")),f(),o("/@login");return}s.error(r("session.kick_out_failed"))}finally{k(null)}},w=e=>{const t=localStorage.getItem("device_key");return t&&e.session_id===t},C=async e=>{w(e)?(s.error(r("session.kick_out_current_session")),I(),o(`/@login?redirect=${encodeURIComponent(window.location.pathname)}`)):await $(e.session_id)},l=async()=>{g(!0),c(null);try{const e=await L();_(e,t=>{m(t||[])},t=>{c(t)})}catch(e){c(e instanceof Error?e.message:"Unknown error")}finally{g(!1)}};return M(()=>{l()}),n(H,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[n(h,{spacing:"$2",get children(){return n(x,{colorScheme:"accent",get loading(){return S()},onClick:l,get children(){return r("global.refresh")}})}}),n(R,{w:"$full",overflowX:"auto",get children(){return n(K,{highlightOnHover:!0,dense:!0,get children(){return[n(O,{get children(){return n(y,{get children(){return n(u,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"operations",align:"center"}],children:e=>n(E,{get textAlign(){return e.align},get children(){return U(()=>e.key==="operations",!0)()?r("global.operations"):r(`session.${e.key}`)}})})}})}}),n(A,{get children(){return n(u,{get each(){return v()},children:e=>n(y,{get children(){return n(u,{get each(){return[{key:"device_id",align:"left",content:e.session_id?`${e.session_id.slice(0,6)}***${e.session_id.slice(-6)}`:"-"},{key:"system_info",align:"left",content:e.ua?p(e.ua):"-"},{key:"ip",align:"center",content:e.ip||"-"},{key:"last_active",align:"center",content:e.last_active?new Date(e.last_active*1e3).toLocaleString():"-"},{key:"status",align:"center",content:e.status===0?r("session.active"):r("session.offline")},{key:"operations",align:"center",content:n(h,{spacing:"$2",justifyContent:"center",get children(){return n(P,{get name(){return`${e.session_id?`${e.session_id.slice(0,6)}***${e.session_id.slice(-6)}`:"-"} (${e.ua?p(e.ua):"-"})`},get loading(){return d()===e.session_id},get disabled(){return d()!==null},onClick:()=>C(e),get buttonText(){return r("session.kick_out")}})}})}]},children:t=>n(B,{get textAlign(){return t.align},get children(){return t.content}})})}})})}})]}})}})]}})};export{V 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:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(O){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),c=new E(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 j()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var a=b(c,r);if(a){if(a===h)continue;return a}}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,c),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(O){return{type:"throw",arg:O}}}r.wrap=l;var h={};function p(){}function d(){}function y(){}var g={};s(g,c,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==n&&o.call(m,c)&&(g=m);var w=y.prototype=p.prototype=Object.create(g);function k(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function _(e,r){function n(i,c,a,u){var s=f(e[i],e,c);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==t(h)&&o.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):r.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,u)}))}u(s.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 b(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,b(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 x(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 E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function S(t){if(t){var e=t[c];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:j}}function j(){return{value:void 0,done:!0}}return d.prototype=y,s(w,"constructor",y),s(y,"constructor",d),d.displayName=s(y,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,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},k(_.prototype),s(_.prototype,a,(function(){return this})),r.AsyncIterator=_,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var c=new _(l(t,e,n,o),i);return r.isGeneratorFunction(e)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},k(w),s(w,u,"Generator"),s(w,c,(function(){return this})),s(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=S,E.prototype={constructor:E,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 c.type="throw",c.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],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){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 c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(c)},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:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(s){return void r(s)}a.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 c=t.apply(e,n);function a(t){r(c,o,i,a,u,"next",t)}function u(t){r(c,o,i,a,u,"throw",t)}a(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=[],c=!0,a=!1;try{for(r=r.call(t);!(c=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==r.return||r.return()}finally{if(a)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","./ua-parser-legacy.5e4c06d6.js","./DeletePopover-legacy.49680594.js"],(function(t,r){"use strict";var i,c,a,u,s,l,f,h,p,d,y,g,v,m,w,k,_,b,x,L,E,S,j,O,A;return{setters:[function(t){i=t.C,c=t.b,a=t.d,u=t.r,s=t.y,l=t.aw,f=t.R,h=t.av,p=t.dM,d=t.dN,y=t.dO,g=t.a6,v=t.dP,m=t.aG,w=t.dQ,k=t.dR,_=t.Y,b=t.n,x=t.ck,L=t.es,E=t.a3,S=t.et,j=t.cp},function(t){O=t.g},function(t){A=t.D}],execute:function(){t("default",(function(){var t=o(i([]),2),r=t[0],G=t[1],P=o(i(!1),2),I=P[0],N=P[1],T=o(i(null),2),C=(T[0],T[1]),$=o(i(null),2),F=$[0],D=$[1],R=c(),U=a().to,Y=function(){var t=n(e().mark((function t(r){var n,o;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return D(r),t.prev=1,t.next=4,S(r);case 4:n=t.sent,E(n,(function(){b.success(R("session.kick_out_success")),K()}),(function(t,e){if(null!=t&&t.includes("session inactive")||403===e)return b.error(R("session.kick_out_current_session")),j(),void U("/@login");b.error(t||R("session.kick_out_failed"))})),t.next=17;break;case 8:if(t.prev=8,t.t0=t.catch(1),!(o=t.t0 instanceof Error?t.t0.message:String(t.t0)).includes("session inactive")&&!o.includes("401")){t.next=16;break}return b.error(R("session.kick_out_current_session")),j(),U("/@login"),t.abrupt("return");case 16:b.error(R("session.kick_out_failed"));case 17:return t.prev=17,D(null),t.finish(17);case 20:case"end":return t.stop()}}),t,null,[[1,8,17,20]])})));return function(e){return t.apply(this,arguments)}}(),M=function(t){var e=localStorage.getItem("device_key");return e&&t.session_id===e},H=function(){var t=n(e().mark((function t(r){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!M(r)){t.next=7;break}b.error(R("session.kick_out_current_session")),x(),U("/@login?redirect=".concat(encodeURIComponent(window.location.pathname))),t.next=9;break;case 7:return t.next=9,Y(r.session_id);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),K=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return N(!0),C(null),t.prev=2,t.next=5,L();case 5:r=t.sent,E(r,(function(t){G(t||[])}),(function(t){C(t)})),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),C(t.t0 instanceof Error?t.t0.message:"Unknown error");case 12:return t.prev=12,N(!1),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[2,9,12,15]])})));return function(){return t.apply(this,arguments)}}();return u((function(){K()})),s(_,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[s(l,{spacing:"$2",get children(){return s(f,{colorScheme:"accent",get loading(){return I()},onClick:K,get children(){return R("global.refresh")}})}}),s(h,{w:"$full",overflowX:"auto",get children(){return s(p,{highlightOnHover:!0,dense:!0,get children(){return[s(d,{get children(){return s(y,{get children(){return s(g,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"operations",align:"center"}],children:function(t){return s(v,{get textAlign(){return t.align},get children(){return m((function(){return"operations"===t.key}),!0)()?R("global.operations"):R("session.".concat(t.key))}})}})}})}}),s(w,{get children(){return s(g,{get each(){return r()},children:function(t){return s(y,{get children(){return s(g,{get each(){return[{key:"device_id",align:"left",content:t.session_id?"".concat(t.session_id.slice(0,6),"***").concat(t.session_id.slice(-6)):"-"},{key:"system_info",align:"left",content:t.ua?O(t.ua):"-"},{key:"ip",align:"center",content:t.ip||"-"},{key:"last_active",align:"center",content:t.last_active?new Date(1e3*t.last_active).toLocaleString():"-"},{key:"status",align:"center",content:0===t.status?R("session.active"):R("session.offline")},{key:"operations",align:"center",content:s(l,{spacing:"$2",justifyContent:"center",get children(){return s(A,{get name(){return"".concat(t.session_id?"".concat(t.session_id.slice(0,6),"***").concat(t.session_id.slice(-6)):"-"," (").concat(t.ua?O(t.ua):"-",")")},get loading(){return F()===t.session_id},get disabled(){return null!==F()},onClick:function(){return H(t)},get buttonText(){return R("session.kick_out")}})}})}]},children:function(t){return s(k,{get textAlign(){return t.align},get children(){return t.content}})}})}})}})}})]}})}})]}})}))}}}))}();
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:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(O){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),c=new E(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 j()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var a=b(c,r);if(a){if(a===h)continue;return a}}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,c),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(O){return{type:"throw",arg:O}}}r.wrap=l;var h={};function p(){}function d(){}function y(){}var g={};s(g,c,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==n&&o.call(m,c)&&(g=m);var w=y.prototype=p.prototype=Object.create(g);function k(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function _(e,r){function n(i,c,a,u){var s=f(e[i],e,c);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==t(h)&&o.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):r.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,u)}))}u(s.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 b(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,b(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 x(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 E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function S(t){if(t){var e=t[c];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:j}}function j(){return{value:void 0,done:!0}}return d.prototype=y,s(w,"constructor",y),s(y,"constructor",d),d.displayName=s(y,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,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},k(_.prototype),s(_.prototype,a,(function(){return this})),r.AsyncIterator=_,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var c=new _(l(t,e,n,o),i);return r.isGeneratorFunction(e)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},k(w),s(w,u,"Generator"),s(w,c,(function(){return this})),s(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=S,E.prototype={constructor:E,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 c.type="throw",c.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],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){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 c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(c)},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:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(s){return void r(s)}a.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 c=t.apply(e,n);function a(t){r(c,o,i,a,u,"next",t)}function u(t){r(c,o,i,a,u,"throw",t)}a(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=[],c=!0,a=!1;try{for(r=r.call(t);!(c=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==r.return||r.return()}finally{if(a)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","./ua-parser-legacy.5e4c06d6.js","./DeletePopover-legacy.c02233f5.js"],(function(t,r){"use strict";var i,c,a,u,s,l,f,h,p,d,y,g,v,m,w,k,_,b,x,L,E,S,j,O,A;return{setters:[function(t){i=t.C,c=t.b,a=t.d,u=t.r,s=t.y,l=t.aw,f=t.R,h=t.av,p=t.dM,d=t.dN,y=t.dO,g=t.a6,v=t.dP,m=t.aG,w=t.dQ,k=t.dR,_=t.Y,b=t.n,x=t.ck,L=t.es,E=t.a3,S=t.et,j=t.cp},function(t){O=t.g},function(t){A=t.D}],execute:function(){t("default",(function(){var t=o(i([]),2),r=t[0],G=t[1],P=o(i(!1),2),I=P[0],N=P[1],T=o(i(null),2),C=(T[0],T[1]),$=o(i(null),2),F=$[0],D=$[1],R=c(),U=a().to,Y=function(){var t=n(e().mark((function t(r){var n,o;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return D(r),t.prev=1,t.next=4,S(r);case 4:n=t.sent,E(n,(function(){b.success(R("session.kick_out_success")),K()}),(function(t,e){if(null!=t&&t.includes("session inactive")||403===e)return b.error(R("session.kick_out_current_session")),j(),void U("/@login");b.error(t||R("session.kick_out_failed"))})),t.next=17;break;case 8:if(t.prev=8,t.t0=t.catch(1),!(o=t.t0 instanceof Error?t.t0.message:String(t.t0)).includes("session inactive")&&!o.includes("401")){t.next=16;break}return b.error(R("session.kick_out_current_session")),j(),U("/@login"),t.abrupt("return");case 16:b.error(R("session.kick_out_failed"));case 17:return t.prev=17,D(null),t.finish(17);case 20:case"end":return t.stop()}}),t,null,[[1,8,17,20]])})));return function(e){return t.apply(this,arguments)}}(),M=function(t){var e=localStorage.getItem("device_key");return e&&t.session_id===e},H=function(){var t=n(e().mark((function t(r){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!M(r)){t.next=7;break}b.error(R("session.kick_out_current_session")),x(),U("/@login?redirect=".concat(encodeURIComponent(window.location.pathname))),t.next=9;break;case 7:return t.next=9,Y(r.session_id);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),K=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return N(!0),C(null),t.prev=2,t.next=5,L();case 5:r=t.sent,E(r,(function(t){G(t||[])}),(function(t){C(t)})),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),C(t.t0 instanceof Error?t.t0.message:"Unknown error");case 12:return t.prev=12,N(!1),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[2,9,12,15]])})));return function(){return t.apply(this,arguments)}}();return u((function(){K()})),s(_,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[s(l,{spacing:"$2",get children(){return s(f,{colorScheme:"accent",get loading(){return I()},onClick:K,get children(){return R("global.refresh")}})}}),s(h,{w:"$full",overflowX:"auto",get children(){return s(p,{highlightOnHover:!0,dense:!0,get children(){return[s(d,{get children(){return s(y,{get children(){return s(g,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"operations",align:"center"}],children:function(t){return s(v,{get textAlign(){return t.align},get children(){return m((function(){return"operations"===t.key}),!0)()?R("global.operations"):R("session.".concat(t.key))}})}})}})}}),s(w,{get children(){return s(g,{get each(){return r()},children:function(t){return s(y,{get children(){return s(g,{get each(){return[{key:"device_id",align:"left",content:t.session_id?"".concat(t.session_id.slice(0,6),"***").concat(t.session_id.slice(-6)):"-"},{key:"system_info",align:"left",content:t.ua?O(t.ua):"-"},{key:"ip",align:"center",content:t.ip||"-"},{key:"last_active",align:"center",content:t.last_active?new Date(1e3*t.last_active).toLocaleString():"-"},{key:"status",align:"center",content:0===t.status?R("session.active"):R("session.offline")},{key:"operations",align:"center",content:s(l,{spacing:"$2",justifyContent:"center",get children(){return s(A,{get name(){return"".concat(t.session_id?"".concat(t.session_id.slice(0,6),"***").concat(t.session_id.slice(-6)):"-"," (").concat(t.ua?O(t.ua):"-",")")},get loading(){return F()===t.session_id},get disabled(){return null!==F()},onClick:function(){return H(t)},get buttonText(){return R("session.kick_out")}})}})}]},children:function(t){return s(k,{get textAlign(){return t.align},get children(){return t.content}})}})}})}})}})]}})}})]}})}))}}}))}();
@@ -0,0 +1 @@
1
+ import{y as e,Y as n}from"./index-b0560a31.js";import{b as r}from"./useTitle-838069b0.js";import{T as a}from"./Tasks-bcb27730.js";import{g as t,a as o}from"./helper-cfffcdeb.js";import"./Paginator-c9173645.js";import"./index-653e8df2.js";import"./Task-305456a7.js";const g=()=>(r("manage.sidemenu.offline_download"),e(n,{w:"$full",alignItems:"start",spacing:"$4",get children(){return[e(a,{type:"offline_download",canRetry:!0,get nameAnalyzer(){return t()}}),e(a,{type:"offline_download_transfer",canRetry:!0,get nameAnalyzer(){return o()}})]}}));export{g as default};
@@ -1 +1 @@
1
- System.register(["./index-legacy.9a995a78.js","./useTitle-legacy.2e69d9a6.js","./Tasks-legacy.f3598230.js","./helper-legacy.fc3cc7d5.js","./Paginator-legacy.25f9c490.js","./index-legacy.257815ef.js","./Task-legacy.607e52ad.js"],(function(e,n){"use strict";var t,a,l,r,s,u;return{setters:[function(e){t=e.y,a=e.Y},function(e){l=e.b},function(e){r=e.T},function(e){s=e.g,u=e.a},null,null,null],execute:function(){e("default",(function(){return l("manage.sidemenu.offline_download"),t(a,{w:"$full",alignItems:"start",spacing:"$4",get children(){return[t(r,{type:"offline_download",canRetry:!0,get nameAnalyzer(){return s()}}),t(r,{type:"offline_download_transfer",canRetry:!0,get nameAnalyzer(){return u()}})]}})}))}}}));
1
+ System.register(["./index-legacy.cdce98e1.js","./useTitle-legacy.b3b2613b.js","./Tasks-legacy.e4e4be39.js","./helper-legacy.ecf72a12.js","./Paginator-legacy.20830174.js","./index-legacy.a2e25f9b.js","./Task-legacy.bef00b05.js"],(function(e,n){"use strict";var t,a,l,r,s,u;return{setters:[function(e){t=e.y,a=e.Y},function(e){l=e.b},function(e){r=e.T},function(e){s=e.g,u=e.a},null,null,null],execute:function(){e("default",(function(){return l("manage.sidemenu.offline_download"),t(a,{w:"$full",alignItems:"start",spacing:"$4",get children(){return[t(r,{type:"offline_download",canRetry:!0,get nameAnalyzer(){return s()}}),t(r,{type:"offline_download_transfer",canRetry:!0,get nameAnalyzer(){return u()}})]}})}))}}}));
@@ -1 +1 @@
1
- import{b as o,B as u,eb as c,an as r,cT as l,y as e,aU as g,aR as h,R as i,aE as m,ec as d,aS as w,a6 as b,aT as p,dl as S,S as M}from"./index-0af67a26.js";const j=()=>{const a=o(),n=u(()=>c(r.obj.name)),{currentObjLink:s}=l();return e(M,{get when(){return n().length},get children(){return e(g,{get children(){return[e(h,{as:i,colorScheme:"success",get rightIcon(){return e(m,{as:d})},get children(){return a("home.preview.open_with")}}),e(w,{get children(){return e(b,{get each(){return n()},children:t=>e(p,{as:"a",target:"_blank",get href(){return S(t.value,{raw_url:r.raw_url,name:r.obj.name,d_url:s(!0)})},get children(){return t.key}})})}})]}})}})};export{j as O};
1
+ import{b as o,B as u,eb as c,an as r,cT as l,y as e,aU as g,aR as h,R as i,aE as m,ec as d,aS as w,a6 as b,aT as p,dl as S,S as M}from"./index-b0560a31.js";const j=()=>{const a=o(),n=u(()=>c(r.obj.name)),{currentObjLink:s}=l();return e(M,{get when(){return n().length},get children(){return e(g,{get children(){return[e(h,{as:i,colorScheme:"success",get rightIcon(){return e(m,{as:d})},get children(){return a("home.preview.open_with")}}),e(w,{get children(){return e(b,{get each(){return n()},children:t=>e(p,{as:"a",target:"_blank",get href(){return S(t.value,{raw_url:r.raw_url,name:r.obj.name,d_url:s(!0)})},get children(){return t.key}})})}})]}})}})};export{j as O};
@@ -1 +1 @@
1
- System.register(["./index-legacy.9a995a78.js"],(function(e,r){"use strict";var n,t,u,c,a,i,l,g,h,o,s,d,f,b,m,w;return{setters:[function(e){n=e.b,t=e.B,u=e.eb,c=e.an,a=e.cT,i=e.y,l=e.aU,g=e.aR,h=e.R,o=e.aE,s=e.ec,d=e.aS,f=e.a6,b=e.aT,m=e.dl,w=e.S}],execute:function(){e("O",(function(){var e=n(),r=t((function(){return u(c.obj.name)})),_=a().currentObjLink;return i(w,{get when(){return r().length},get children(){return i(l,{get children(){return[i(g,{as:h,colorScheme:"success",get rightIcon(){return i(o,{as:s})},get children(){return e("home.preview.open_with")}}),i(d,{get children(){return i(f,{get each(){return r()},children:function(e){return i(b,{as:"a",target:"_blank",get href(){return m(e.value,{raw_url:c.raw_url,name:c.obj.name,d_url:_(!0)})},get children(){return e.key}})}})}})]}})}})}))}}}));
1
+ System.register(["./index-legacy.cdce98e1.js"],(function(e,r){"use strict";var n,t,u,c,a,i,l,g,h,o,s,d,f,b,m,w;return{setters:[function(e){n=e.b,t=e.B,u=e.eb,c=e.an,a=e.cT,i=e.y,l=e.aU,g=e.aR,h=e.R,o=e.aE,s=e.ec,d=e.aS,f=e.a6,b=e.aT,m=e.dl,w=e.S}],execute:function(){e("O",(function(){var e=n(),r=t((function(){return u(c.obj.name)})),_=a().currentObjLink;return i(w,{get when(){return r().length},get children(){return i(l,{get children(){return[i(g,{as:h,colorScheme:"success",get rightIcon(){return i(o,{as:s})},get children(){return e("home.preview.open_with")}}),i(d,{get children(){return i(f,{get each(){return r()},children:function(e){return i(b,{as:"a",target:"_blank",get href(){return m(e.value,{raw_url:c.raw_url,name:c.obj.name,d_url:_(!0)})},get children(){return e.key}})}})}})]}})}})}))}}}));
@@ -1 +1 @@
1
- import{b as a,C as s,y as t,R as i,an as o}from"./index-0af67a26.js";import{F as l}from"./info-6b46a634.js";import"./storage-class-1ac53f89.js";const f=()=>{const e=a(),[n,r]=s(!1);return t(l,{get children(){return t(i,{as:"a",get href(){return"itms-services://?action=download-manifest&url="+o.raw_url},onClick:()=>{r(!0)},get children(){return e(`home.preview.${n()?"installing":"install"}`)}})}})};export{f as default};
1
+ import{b as a,C as s,y as t,R as i,an as o}from"./index-b0560a31.js";import{F as l}from"./info-a9253ca6.js";import"./storage-class-1ac53f89.js";const f=()=>{const e=a(),[n,r]=s(!1);return t(l,{get children(){return t(i,{as:"a",get href(){return"itms-services://?action=download-manifest&url="+o.raw_url},onClick:()=>{r(!0)},get children(){return e(`home.preview.${n()?"installing":"install"}`)}})}})};export{f as default};
@@ -1 +1 @@
1
- !function(){function r(r,n){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==n)return;var e,i,o=[],u=!0,a=!1;try{for(n=n.call(r);!(u=(e=n.next()).done)&&(o.push(e.value),!t||o.length!==t);u=!0);}catch(l){a=!0,i=l}finally{try{u||null==n.return||n.return()}finally{if(a)throw i}}return o}(r,n)||function(r,n){if(!r)return;if("string"==typeof r)return t(r,n);var e=Object.prototype.toString.call(r).slice(8,-1);"Object"===e&&r.constructor&&(e=r.constructor.name);if("Map"===e||"Set"===e)return Array.from(r);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return t(r,n)}(r,n)||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 t(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,e=new Array(t);n<t;n++)e[n]=r[n];return e}System.register(["./index-legacy.9a995a78.js","./info-legacy.dc8f48be.js","./storage-class-legacy.7f6d9768.js"],(function(t,n){"use strict";var e,i,o,u,a,l;return{setters:[function(r){e=r.b,i=r.C,o=r.y,u=r.R,a=r.an},function(r){l=r.F},null],execute:function(){t("default",(function(){var t=e(),n=r(i(!1),2),c=n[0],f=n[1];return o(l,{get children(){return o(u,{as:"a",get href(){return"itms-services://?action=download-manifest&url="+a.raw_url},onClick:function(){f(!0)},get children(){return t("home.preview.".concat(c()?"installing":"install"))}})}})}))}}}))}();
1
+ !function(){function r(r,n){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==n)return;var e,i,o=[],u=!0,a=!1;try{for(n=n.call(r);!(u=(e=n.next()).done)&&(o.push(e.value),!t||o.length!==t);u=!0);}catch(l){a=!0,i=l}finally{try{u||null==n.return||n.return()}finally{if(a)throw i}}return o}(r,n)||function(r,n){if(!r)return;if("string"==typeof r)return t(r,n);var e=Object.prototype.toString.call(r).slice(8,-1);"Object"===e&&r.constructor&&(e=r.constructor.name);if("Map"===e||"Set"===e)return Array.from(r);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return t(r,n)}(r,n)||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 t(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,e=new Array(t);n<t;n++)e[n]=r[n];return e}System.register(["./index-legacy.cdce98e1.js","./info-legacy.a104f6ee.js","./storage-class-legacy.7f6d9768.js"],(function(t,n){"use strict";var e,i,o,u,a,l;return{setters:[function(r){e=r.b,i=r.C,o=r.y,u=r.R,a=r.an},function(r){l=r.F},null],execute:function(){t("default",(function(){var t=e(),n=r(i(!1),2),c=n[0],f=n[1];return o(l,{get children(){return o(u,{as:"a",get href(){return"itms-services://?action=download-manifest&url="+a.raw_url},onClick:function(){f(!0)},get children(){return t("home.preview.".concat(c()?"installing":"install"))}})}})}))}}}))}();