@opencloud-eu/web-pkg 2.1.0-alpha.1 → 2.2.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 (377) hide show
  1. package/dist/{TextEditor-XOBRrH6u.js → TextEditor-Czv8awPg.js} +1 -1
  2. package/dist/assets/{worker-CHXv5Q0i.js → worker-4Sj2EDss.js} +1 -1
  3. package/dist/assets/{worker-CjeEygd_.js → worker-BgOcJUCv.js} +1 -1
  4. package/dist/assets/{worker-C-4Lcir3.js → worker-DNa_GQd0.js} +26 -26
  5. package/dist/{index-BCVoSs4U.js → index-BJ_SQhGu.js} +10295 -10070
  6. package/dist/web-pkg.js +148 -147
  7. package/dist/web-pkg.umd.cjs +47 -47
  8. package/package.json +3 -3
  9. package/dist/src/apps/index.d.ts +0 -1
  10. package/dist/src/apps/types.d.ts +0 -118
  11. package/dist/src/cern/composables/index.d.ts +0 -1
  12. package/dist/src/cern/composables/useGroupingSettings.d.ts +0 -32
  13. package/dist/src/cern/index.d.ts +0 -1
  14. package/dist/src/components/AppBar/AppBar.vue.d.ts +0 -533
  15. package/dist/src/components/AppBar/CreateSpace.vue.d.ts +0 -18
  16. package/dist/src/components/AppBar/index.d.ts +0 -2
  17. package/dist/src/components/AppLoadingSpinner.vue.d.ts +0 -2
  18. package/dist/src/components/AppTemplates/AppWrapper.vue.d.ts +0 -867
  19. package/dist/src/components/AppTemplates/AppWrapperRoute.d.ts +0 -10
  20. package/dist/src/components/AppTemplates/PartialViews/ErrorScreen.vue.d.ts +0 -22
  21. package/dist/src/components/AppTemplates/PartialViews/LoadingScreen.vue.d.ts +0 -2
  22. package/dist/src/components/AppTemplates/index.d.ts +0 -3
  23. package/dist/src/components/AppTemplates/types.d.ts +0 -11
  24. package/dist/src/components/AppTopBar.vue.d.ts +0 -515
  25. package/dist/src/components/BatchActions.vue.d.ts +0 -124
  26. package/dist/src/components/ContextActions/ActionMenuItem.vue.d.ts +0 -92
  27. package/dist/src/components/ContextActions/ContextActionMenu.vue.d.ts +0 -128
  28. package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +0 -29
  29. package/dist/src/components/ContextActions/index.d.ts +0 -3
  30. package/dist/src/components/CreateLinkModal.vue.d.ts +0 -126
  31. package/dist/src/components/CreateShortcutModal.vue.d.ts +0 -415
  32. package/dist/src/components/CustomComponentTarget.vue.d.ts +0 -16
  33. package/dist/src/components/FilesList/ContextActions.vue.d.ts +0 -138
  34. package/dist/src/components/FilesList/ResourceGhostElement.vue.d.ts +0 -49
  35. package/dist/src/components/FilesList/ResourceIcon.vue.d.ts +0 -44
  36. package/dist/src/components/FilesList/ResourceLink.vue.d.ts +0 -78
  37. package/dist/src/components/FilesList/ResourceListItem.vue.d.ts +0 -384
  38. package/dist/src/components/FilesList/ResourceName.vue.d.ts +0 -140
  39. package/dist/src/components/FilesList/ResourceSize.vue.d.ts +0 -25
  40. package/dist/src/components/FilesList/ResourceTable.vue.d.ts +0 -1371
  41. package/dist/src/components/FilesList/ResourceTile.vue.d.ts +0 -73
  42. package/dist/src/components/FilesList/ResourceTiles.vue.d.ts +0 -175
  43. package/dist/src/components/FilesList/index.d.ts +0 -10
  44. package/dist/src/components/Filters/DateFilter.vue.d.ts +0 -315
  45. package/dist/src/components/Filters/ItemFilterInline.vue.d.ts +0 -28
  46. package/dist/src/components/Filters/index.d.ts +0 -3
  47. package/dist/src/components/Filters/types.d.ts +0 -4
  48. package/dist/src/components/ItemFilter.vue.d.ts +0 -122
  49. package/dist/src/components/ItemFilterToggle.vue.d.ts +0 -26
  50. package/dist/src/components/LinkRoleDropdown.vue.d.ts +0 -40
  51. package/dist/src/components/LoadingIndicator.vue.d.ts +0 -5
  52. package/dist/src/components/Modals/DatePickerModal.vue.d.ts +0 -57
  53. package/dist/src/components/Modals/EmojiPickerModal.vue.d.ts +0 -19
  54. package/dist/src/components/Modals/FilePickerModal.vue.d.ts +0 -41
  55. package/dist/src/components/Modals/ResourceConflictModal.vue.d.ts +0 -76
  56. package/dist/src/components/Modals/SaveAsModal.vue.d.ts +0 -49
  57. package/dist/src/components/Modals/SpaceMoveInfoModal.vue.d.ts +0 -14
  58. package/dist/src/components/Modals/UnsavedChangesModal.vue.d.ts +0 -27
  59. package/dist/src/components/Modals/index.d.ts +0 -7
  60. package/dist/src/components/NoContentMessage.vue.d.ts +0 -22
  61. package/dist/src/components/Pagination.vue.d.ts +0 -20
  62. package/dist/src/components/PortalTarget.vue.d.ts +0 -41
  63. package/dist/src/components/QuotaSelect.vue.d.ts +0 -74
  64. package/dist/src/components/Search/ResourcePreview.vue.d.ts +0 -356
  65. package/dist/src/components/Search/index.d.ts +0 -2
  66. package/dist/src/components/Search/types.d.ts +0 -29
  67. package/dist/src/components/SearchBarFilter.vue.d.ts +0 -27
  68. package/dist/src/components/SideBar/CompareSaveDialog.vue.d.ts +0 -38
  69. package/dist/src/components/SideBar/FileSideBar.vue.d.ts +0 -245
  70. package/dist/src/components/SideBar/Files/FileInfo.vue.d.ts +0 -137
  71. package/dist/src/components/SideBar/Files/index.d.ts +0 -1
  72. package/dist/src/components/SideBar/SideBar.vue.d.ts +0 -41
  73. package/dist/src/components/SideBar/Spaces/Details/SpaceDetails.vue.d.ts +0 -5
  74. package/dist/src/components/SideBar/Spaces/Details/SpaceDetailsMultiple.vue.d.ts +0 -6
  75. package/dist/src/components/SideBar/Spaces/Details/index.d.ts +0 -2
  76. package/dist/src/components/SideBar/Spaces/SpaceInfo.vue.d.ts +0 -5
  77. package/dist/src/components/SideBar/Spaces/SpaceNoSelection.vue.d.ts +0 -2
  78. package/dist/src/components/SideBar/Spaces/index.d.ts +0 -3
  79. package/dist/src/components/SideBar/WebDavDetails.vue.d.ts +0 -21
  80. package/dist/src/components/SideBar/index.d.ts +0 -7
  81. package/dist/src/components/SideBar/types.d.ts +0 -22
  82. package/dist/src/components/SpaceQuota.vue.d.ts +0 -6
  83. package/dist/src/components/Spaces/QuotaModal.vue.d.ts +0 -155
  84. package/dist/src/components/Spaces/index.d.ts +0 -1
  85. package/dist/src/components/TextEditor/TextEditor.vue.d.ts +0 -173
  86. package/dist/src/components/TextEditor/index.d.ts +0 -169
  87. package/dist/src/components/TextEditor/l18n.d.ts +0 -22
  88. package/dist/src/components/ViewOptions.vue.d.ts +0 -135
  89. package/dist/src/components/index.d.ts +0 -27
  90. package/dist/src/composables/ability/index.d.ts +0 -1
  91. package/dist/src/composables/ability/useAbility.d.ts +0 -2
  92. package/dist/src/composables/actions/files/index.d.ts +0 -28
  93. package/dist/src/composables/actions/files/useFileActions.d.ts +0 -28
  94. package/dist/src/composables/actions/files/useFileActionsCopy.d.ts +0 -4
  95. package/dist/src/composables/actions/files/useFileActionsCopyPermanentLink.d.ts +0 -4
  96. package/dist/src/composables/actions/files/useFileActionsCreateLink.d.ts +0 -6
  97. package/dist/src/composables/actions/files/useFileActionsCreateNewFile.d.ts +0 -11
  98. package/dist/src/composables/actions/files/useFileActionsCreateNewFolder.d.ts +0 -10
  99. package/dist/src/composables/actions/files/useFileActionsCreateNewShortcut.d.ts +0 -8
  100. package/dist/src/composables/actions/files/useFileActionsCreateSpaceFromResource.d.ts +0 -4
  101. package/dist/src/composables/actions/files/useFileActionsDelete.d.ts +0 -4
  102. package/dist/src/composables/actions/files/useFileActionsDisableSync.d.ts +0 -5
  103. package/dist/src/composables/actions/files/useFileActionsDownloadArchive.d.ts +0 -4
  104. package/dist/src/composables/actions/files/useFileActionsDownloadFile.d.ts +0 -4
  105. package/dist/src/composables/actions/files/useFileActionsEmptyTrashBin.d.ts +0 -8
  106. package/dist/src/composables/actions/files/useFileActionsEnableSync.d.ts +0 -5
  107. package/dist/src/composables/actions/files/useFileActionsFavorite.d.ts +0 -4
  108. package/dist/src/composables/actions/files/useFileActionsMove.d.ts +0 -4
  109. package/dist/src/composables/actions/files/useFileActionsNavigate.d.ts +0 -4
  110. package/dist/src/composables/actions/files/useFileActionsOpenShortcut.d.ts +0 -5
  111. package/dist/src/composables/actions/files/useFileActionsOpenWithApp.d.ts +0 -6
  112. package/dist/src/composables/actions/files/useFileActionsPaste.d.ts +0 -4
  113. package/dist/src/composables/actions/files/useFileActionsRename.d.ts +0 -7
  114. package/dist/src/composables/actions/files/useFileActionsRestore.d.ts +0 -12
  115. package/dist/src/composables/actions/files/useFileActionsSaveAs.d.ts +0 -7
  116. package/dist/src/composables/actions/files/useFileActionsSetImage.d.ts +0 -4
  117. package/dist/src/composables/actions/files/useFileActionsShowActions.d.ts +0 -4
  118. package/dist/src/composables/actions/files/useFileActionsShowDetails.d.ts +0 -4
  119. package/dist/src/composables/actions/files/useFileActionsShowShares.d.ts +0 -5
  120. package/dist/src/composables/actions/files/useFileActionsToggleHideShare.d.ts +0 -5
  121. package/dist/src/composables/actions/helpers/index.d.ts +0 -3
  122. package/dist/src/composables/actions/helpers/useFileActionsDeleteResources.d.ts +0 -5
  123. package/dist/src/composables/actions/helpers/useIsFilesAppActive.d.ts +0 -1
  124. package/dist/src/composables/actions/helpers/useIsSearchActive.d.ts +0 -1
  125. package/dist/src/composables/actions/index.d.ts +0 -8
  126. package/dist/src/composables/actions/spaces/index.d.ts +0 -11
  127. package/dist/src/composables/actions/spaces/useSpaceActionsDelete.d.ts +0 -6
  128. package/dist/src/composables/actions/spaces/useSpaceActionsDisable.d.ts +0 -6
  129. package/dist/src/composables/actions/spaces/useSpaceActionsDuplicate.d.ts +0 -6
  130. package/dist/src/composables/actions/spaces/useSpaceActionsEditDescription.d.ts +0 -6
  131. package/dist/src/composables/actions/spaces/useSpaceActionsEditQuota.d.ts +0 -4
  132. package/dist/src/composables/actions/spaces/useSpaceActionsEditReadmeContent.d.ts +0 -4
  133. package/dist/src/composables/actions/spaces/useSpaceActionsNavigateToTrash.d.ts +0 -4
  134. package/dist/src/composables/actions/spaces/useSpaceActionsRename.d.ts +0 -6
  135. package/dist/src/composables/actions/spaces/useSpaceActionsRestore.d.ts +0 -6
  136. package/dist/src/composables/actions/spaces/useSpaceActionsSetIcon.d.ts +0 -6
  137. package/dist/src/composables/actions/spaces/useSpaceActionsShowMembers.d.ts +0 -4
  138. package/dist/src/composables/actions/types.d.ts +0 -47
  139. package/dist/src/composables/actions/useActionsShowDetails.d.ts +0 -4
  140. package/dist/src/composables/actions/useOpenEmptyEditor.d.ts +0 -3
  141. package/dist/src/composables/actions/useOpenWithDefaultApp.d.ts +0 -7
  142. package/dist/src/composables/actions/useWindowOpen.d.ts +0 -3
  143. package/dist/src/composables/appDefaults/index.d.ts +0 -8
  144. package/dist/src/composables/appDefaults/types.d.ts +0 -15
  145. package/dist/src/composables/appDefaults/useAppConfig.d.ts +0 -11
  146. package/dist/src/composables/appDefaults/useAppDefaults.d.ts +0 -20
  147. package/dist/src/composables/appDefaults/useAppDocumentTitle.d.ts +0 -13
  148. package/dist/src/composables/appDefaults/useAppFileHandling.d.ts +0 -24
  149. package/dist/src/composables/appDefaults/useAppFolderHandling.d.ts +0 -16
  150. package/dist/src/composables/appDefaults/useAppMeta.d.ts +0 -9
  151. package/dist/src/composables/appDefaults/useAppNavigation.d.ts +0 -27
  152. package/dist/src/composables/appDefaults/useDocumentTitle.d.ts +0 -8
  153. package/dist/src/composables/appProviderService/index.d.ts +0 -1
  154. package/dist/src/composables/appProviderService/useAppProviderService.d.ts +0 -2
  155. package/dist/src/composables/archiverService/index.d.ts +0 -1
  156. package/dist/src/composables/archiverService/useArchiverService.d.ts +0 -2
  157. package/dist/src/composables/authContext/index.d.ts +0 -2
  158. package/dist/src/composables/authContext/useAuthService.d.ts +0 -10
  159. package/dist/src/composables/authContext/useRequest.d.ts +0 -15
  160. package/dist/src/composables/breadcrumbs/index.d.ts +0 -1
  161. package/dist/src/composables/breadcrumbs/useBreadcrumbsFromPath.d.ts +0 -14
  162. package/dist/src/composables/clientService/index.d.ts +0 -1
  163. package/dist/src/composables/clientService/useClientService.d.ts +0 -2
  164. package/dist/src/composables/clipboard/index.d.ts +0 -1
  165. package/dist/src/composables/clipboard/useClipboard.d.ts +0 -3
  166. package/dist/src/composables/download/index.d.ts +0 -1
  167. package/dist/src/composables/download/useDownloadFile.d.ts +0 -8
  168. package/dist/src/composables/driveResolver/index.d.ts +0 -2
  169. package/dist/src/composables/driveResolver/useDriveResolver.d.ts +0 -13
  170. package/dist/src/composables/driveResolver/useSpacesLoading.d.ts +0 -3
  171. package/dist/src/composables/embedMode/index.d.ts +0 -1
  172. package/dist/src/composables/embedMode/useEmbedMode.d.ts +0 -23
  173. package/dist/src/composables/eventBus/index.d.ts +0 -1
  174. package/dist/src/composables/eventBus/useEventBus.d.ts +0 -1
  175. package/dist/src/composables/fileListHeaderPosition/index.d.ts +0 -1
  176. package/dist/src/composables/fileListHeaderPosition/useFileListHeaderPosition.d.ts +0 -5
  177. package/dist/src/composables/filesList/index.d.ts +0 -1
  178. package/dist/src/composables/filesList/useResourceRouteResolver.d.ts +0 -13
  179. package/dist/src/composables/folderLink/index.d.ts +0 -1
  180. package/dist/src/composables/folderLink/useFolderLink.d.ts +0 -15
  181. package/dist/src/composables/index.d.ts +0 -40
  182. package/dist/src/composables/isTopBarSticky/index.d.ts +0 -1
  183. package/dist/src/composables/isTopBarSticky/useIsTopBarSticky.d.ts +0 -8
  184. package/dist/src/composables/keyboardActions/index.d.ts +0 -1
  185. package/dist/src/composables/keyboardActions/useKeyboardActions.d.ts +0 -39
  186. package/dist/src/composables/links/index.d.ts +0 -1
  187. package/dist/src/composables/links/useLinkTypes.d.ts +0 -36
  188. package/dist/src/composables/loadingService/index.d.ts +0 -1
  189. package/dist/src/composables/loadingService/useLoadingService.d.ts +0 -2
  190. package/dist/src/composables/localStorage/index.d.ts +0 -1
  191. package/dist/src/composables/localStorage/useLocalStorage.d.ts +0 -2
  192. package/dist/src/composables/pagination/constants.d.ts +0 -5
  193. package/dist/src/composables/pagination/index.d.ts +0 -2
  194. package/dist/src/composables/pagination/usePagination.d.ts +0 -17
  195. package/dist/src/composables/passwordPolicyService/index.d.ts +0 -1
  196. package/dist/src/composables/passwordPolicyService/usePasswordPolicyService.d.ts +0 -2
  197. package/dist/src/composables/piniaStores/apps.d.ts +0 -157
  198. package/dist/src/composables/piniaStores/auth.d.ts +0 -60
  199. package/dist/src/composables/piniaStores/capabilities.d.ts +0 -1731
  200. package/dist/src/composables/piniaStores/clipboard.d.ts +0 -658
  201. package/dist/src/composables/piniaStores/config/config.d.ts +0 -756
  202. package/dist/src/composables/piniaStores/config/index.d.ts +0 -2
  203. package/dist/src/composables/piniaStores/config/types.d.ts +0 -854
  204. package/dist/src/composables/piniaStores/extensionRegistry/extensionPreferences.d.ts +0 -22
  205. package/dist/src/composables/piniaStores/extensionRegistry/extensionRegistry.d.ts +0 -37
  206. package/dist/src/composables/piniaStores/extensionRegistry/index.d.ts +0 -3
  207. package/dist/src/composables/piniaStores/extensionRegistry/types.d.ts +0 -60
  208. package/dist/src/composables/piniaStores/index.d.ts +0 -14
  209. package/dist/src/composables/piniaStores/messages.d.ts +0 -125
  210. package/dist/src/composables/piniaStores/modals.d.ts +0 -1363
  211. package/dist/src/composables/piniaStores/resources.d.ts +0 -195
  212. package/dist/src/composables/piniaStores/shares/index.d.ts +0 -2
  213. package/dist/src/composables/piniaStores/shares/shares.d.ts +0 -57
  214. package/dist/src/composables/piniaStores/shares/types.d.ts +0 -43
  215. package/dist/src/composables/piniaStores/spaces.d.ts +0 -9079
  216. package/dist/src/composables/piniaStores/theme.d.ts +0 -1424
  217. package/dist/src/composables/piniaStores/user.d.ts +0 -15
  218. package/dist/src/composables/piniaStores/webWorkers.d.ts +0 -29
  219. package/dist/src/composables/portalTarget/eventTopics.d.ts +0 -3
  220. package/dist/src/composables/portalTarget/index.d.ts +0 -2
  221. package/dist/src/composables/portalTarget/usePortalTarget.d.ts +0 -4
  222. package/dist/src/composables/previewService/index.d.ts +0 -1
  223. package/dist/src/composables/previewService/usePreviewService.d.ts +0 -2
  224. package/dist/src/composables/requestHeaders/index.d.ts +0 -1
  225. package/dist/src/composables/requestHeaders/useRequestHeaders.d.ts +0 -3
  226. package/dist/src/composables/resources/index.d.ts +0 -5
  227. package/dist/src/composables/resources/useCanBeOpenedWithSecureView.d.ts +0 -4
  228. package/dist/src/composables/resources/useCanListVersions.d.ts +0 -7
  229. package/dist/src/composables/resources/useGetResourceContext.d.ts +0 -1495
  230. package/dist/src/composables/resources/useLoadPreview.d.ts +0 -26
  231. package/dist/src/composables/resources/useResourceContents.d.ts +0 -5
  232. package/dist/src/composables/router/index.d.ts +0 -11
  233. package/dist/src/composables/router/types.d.ts +0 -16
  234. package/dist/src/composables/router/useActiveApp.d.ts +0 -4
  235. package/dist/src/composables/router/useActiveLocation.d.ts +0 -10
  236. package/dist/src/composables/router/useFileRouteReplace.d.ts +0 -15
  237. package/dist/src/composables/router/useRoute.d.ts +0 -3
  238. package/dist/src/composables/router/useRouteMeta.d.ts +0 -2
  239. package/dist/src/composables/router/useRouteName.d.ts +0 -2
  240. package/dist/src/composables/router/useRouteParam.d.ts +0 -3
  241. package/dist/src/composables/router/useRouteQuery.d.ts +0 -3
  242. package/dist/src/composables/router/useRouteQueryPersisted.d.ts +0 -8
  243. package/dist/src/composables/router/useRouter.d.ts +0 -2
  244. package/dist/src/composables/scrollTo/index.d.ts +0 -1
  245. package/dist/src/composables/scrollTo/useScrollTo.d.ts +0 -9
  246. package/dist/src/composables/search/constants.d.ts +0 -4
  247. package/dist/src/composables/search/index.d.ts +0 -2
  248. package/dist/src/composables/search/useSearch.d.ts +0 -14
  249. package/dist/src/composables/selection/index.d.ts +0 -1
  250. package/dist/src/composables/selection/useSelectedResources.d.ts +0 -9
  251. package/dist/src/composables/service/index.d.ts +0 -1
  252. package/dist/src/composables/service/useService.d.ts +0 -1
  253. package/dist/src/composables/shares/index.d.ts +0 -2
  254. package/dist/src/composables/shares/useCanListShares.d.ts +0 -7
  255. package/dist/src/composables/shares/useCanShare.d.ts +0 -7
  256. package/dist/src/composables/sideBar/eventTopics.d.ts +0 -7
  257. package/dist/src/composables/sideBar/index.d.ts +0 -2
  258. package/dist/src/composables/sideBar/useSideBar.d.ts +0 -12
  259. package/dist/src/composables/sort/constants.d.ts +0 -4
  260. package/dist/src/composables/sort/index.d.ts +0 -2
  261. package/dist/src/composables/sort/useSort.d.ts +0 -36
  262. package/dist/src/composables/spaces/index.d.ts +0 -3
  263. package/dist/src/composables/spaces/useCreateSpace.d.ts +0 -5
  264. package/dist/src/composables/spaces/useGetMatchingSpace.d.ts +0 -15
  265. package/dist/src/composables/spaces/useSpaceHelpers.d.ts +0 -5
  266. package/dist/src/composables/upload/index.d.ts +0 -1
  267. package/dist/src/composables/upload/useUpload.d.ts +0 -6
  268. package/dist/src/composables/viewMode/constants.d.ts +0 -12
  269. package/dist/src/composables/viewMode/index.d.ts +0 -3
  270. package/dist/src/composables/viewMode/useTileSize.d.ts +0 -4
  271. package/dist/src/composables/viewMode/useViewMode.d.ts +0 -4
  272. package/dist/src/composables/webWorkers/deleteWorker/index.d.ts +0 -1
  273. package/dist/src/composables/webWorkers/deleteWorker/useDeleteWorker.d.ts +0 -28
  274. package/dist/src/composables/webWorkers/deleteWorker/worker.d.ts +0 -1
  275. package/dist/src/composables/webWorkers/index.d.ts +0 -4
  276. package/dist/src/composables/webWorkers/pasteWorker/index.d.ts +0 -1
  277. package/dist/src/composables/webWorkers/pasteWorker/usePasteWorker.d.ts +0 -25
  278. package/dist/src/composables/webWorkers/pasteWorker/worker.d.ts +0 -1
  279. package/dist/src/composables/webWorkers/restoreWorker/index.d.ts +0 -1
  280. package/dist/src/composables/webWorkers/restoreWorker/useRestoreWorker.d.ts +0 -28
  281. package/dist/src/composables/webWorkers/restoreWorker/worker.d.ts +0 -1
  282. package/dist/src/composables/webWorkers/tokenTimerWorker/index.d.ts +0 -1
  283. package/dist/src/composables/webWorkers/tokenTimerWorker/useTokenTimerWorker.d.ts +0 -12
  284. package/dist/src/composables/webWorkers/tokenTimerWorker/worker.d.ts +0 -1
  285. package/dist/src/constants.d.ts +0 -14
  286. package/dist/src/errors/index.d.ts +0 -1
  287. package/dist/src/errors/types.d.ts +0 -13
  288. package/dist/src/helpers/binary.d.ts +0 -2
  289. package/dist/src/helpers/breadcrumbs.d.ts +0 -4
  290. package/dist/src/helpers/cache/cache.d.ts +0 -20
  291. package/dist/src/helpers/cache/index.d.ts +0 -1
  292. package/dist/src/helpers/clipboardActions.d.ts +0 -4
  293. package/dist/src/helpers/contextMenuDropdown.d.ts +0 -7
  294. package/dist/src/helpers/datetime.d.ts +0 -11
  295. package/dist/src/helpers/download.d.ts +0 -1
  296. package/dist/src/helpers/filesize.d.ts +0 -8
  297. package/dist/src/helpers/folderLink/index.d.ts +0 -1
  298. package/dist/src/helpers/folderLink/types.d.ts +0 -6
  299. package/dist/src/helpers/fuse.d.ts +0 -5
  300. package/dist/src/helpers/index.d.ts +0 -18
  301. package/dist/src/helpers/locale.d.ts +0 -1
  302. package/dist/src/helpers/path.d.ts +0 -13
  303. package/dist/src/helpers/permissions.d.ts +0 -8
  304. package/dist/src/helpers/resource/conflictHandling/conflictDialog.d.ts +0 -15
  305. package/dist/src/helpers/resource/conflictHandling/conflictUtils.d.ts +0 -3
  306. package/dist/src/helpers/resource/conflictHandling/index.d.ts +0 -4
  307. package/dist/src/helpers/resource/conflictHandling/transfer.d.ts +0 -27
  308. package/dist/src/helpers/resource/conflictHandling/types.d.ts +0 -24
  309. package/dist/src/helpers/resource/filter.d.ts +0 -2
  310. package/dist/src/helpers/resource/icon.d.ts +0 -10
  311. package/dist/src/helpers/resource/index.d.ts +0 -5
  312. package/dist/src/helpers/resource/renameResource.d.ts +0 -2
  313. package/dist/src/helpers/resource/sameResource.d.ts +0 -2
  314. package/dist/src/helpers/router/buildUrl.d.ts +0 -2
  315. package/dist/src/helpers/router/index.d.ts +0 -2
  316. package/dist/src/helpers/router/routeOptions.d.ts +0 -24
  317. package/dist/src/helpers/share/driveItem.d.ts +0 -12
  318. package/dist/src/helpers/share/index.d.ts +0 -2
  319. package/dist/src/helpers/share/sharedAncestorRoute.d.ts +0 -7
  320. package/dist/src/helpers/statusIndicators.d.ts +0 -9
  321. package/dist/src/helpers/store.d.ts +0 -8
  322. package/dist/src/helpers/ui/index.d.ts +0 -3
  323. package/dist/src/helpers/ui/resourceCheckbox.d.ts +0 -1
  324. package/dist/src/helpers/ui/resourceTable.d.ts +0 -3
  325. package/dist/src/helpers/ui/resourceTiles.d.ts +0 -6
  326. package/dist/src/http/client.d.ts +0 -23
  327. package/dist/src/http/index.d.ts +0 -1
  328. package/dist/src/index.d.ts +0 -14
  329. package/dist/src/observer/index.d.ts +0 -1
  330. package/dist/src/observer/visibility.d.ts +0 -26
  331. package/dist/src/router/common.d.ts +0 -9
  332. package/dist/src/router/deprecated.d.ts +0 -12
  333. package/dist/src/router/index.d.ts +0 -12
  334. package/dist/src/router/public.d.ts +0 -9
  335. package/dist/src/router/router.d.ts +0 -27
  336. package/dist/src/router/shares.d.ts +0 -10
  337. package/dist/src/router/spaces.d.ts +0 -9
  338. package/dist/src/router/trash.d.ts +0 -9
  339. package/dist/src/router/utils.d.ts +0 -32
  340. package/dist/src/services/appProvider/index.d.ts +0 -2
  341. package/dist/src/services/appProvider/schemas.d.ts +0 -152
  342. package/dist/src/services/appProvider/service.d.ts +0 -27
  343. package/dist/src/services/archiver.d.ts +0 -26
  344. package/dist/src/services/cache.d.ts +0 -14
  345. package/dist/src/services/client/auth.d.ts +0 -12
  346. package/dist/src/services/client/client.d.ts +0 -43
  347. package/dist/src/services/client/index.d.ts +0 -2
  348. package/dist/src/services/eventBus.d.ts +0 -8
  349. package/dist/src/services/folder/folderService.d.ts +0 -26
  350. package/dist/src/services/folder/index.d.ts +0 -2
  351. package/dist/src/services/folder/loaders/index.d.ts +0 -7
  352. package/dist/src/services/folder/loaders/loaderFavorites.d.ts +0 -7
  353. package/dist/src/services/folder/loaders/loaderSharedViaLink.d.ts +0 -7
  354. package/dist/src/services/folder/loaders/loaderSharedWithMe.d.ts +0 -7
  355. package/dist/src/services/folder/loaders/loaderSharedWithOthers.d.ts +0 -7
  356. package/dist/src/services/folder/loaders/loaderSpace.d.ts +0 -12
  357. package/dist/src/services/folder/loaders/loaderTrashbin.d.ts +0 -7
  358. package/dist/src/services/folder/loaders/types.d.ts +0 -3
  359. package/dist/src/services/index.d.ts +0 -10
  360. package/dist/src/services/loadingService.d.ts +0 -33
  361. package/dist/src/services/passwordPolicy/index.d.ts +0 -1
  362. package/dist/src/services/passwordPolicy/passwordPolicy.d.ts +0 -20
  363. package/dist/src/services/passwordPolicy/rules.d.ts +0 -63
  364. package/dist/src/services/preview/index.d.ts +0 -2
  365. package/dist/src/services/preview/previewService.d.ts +0 -28
  366. package/dist/src/services/preview/types.d.ts +0 -18
  367. package/dist/src/services/uppy/index.d.ts +0 -1
  368. package/dist/src/services/uppy/uppyService.d.ts +0 -90
  369. package/dist/src/types.d.ts +0 -17
  370. package/dist/src/ui/index.d.ts +0 -1
  371. package/dist/src/ui/types.d.ts +0 -13
  372. package/dist/src/utils/dirname.d.ts +0 -1
  373. package/dist/src/utils/encodePath.d.ts +0 -1
  374. package/dist/src/utils/index.d.ts +0 -4
  375. package/dist/src/utils/objectKeys.d.ts +0 -1
  376. package/dist/src/utils/types.d.ts +0 -5
  377. package/dist/vite.config.d.ts +0 -2
@@ -1,4 +1,4 @@
1
- import { d as L, u as w, c as r, a as n, _ as v, r as g, b as z, o as s, e as h } from "./index-BCVoSs4U.js";
1
+ import { d as L, u as w, c as r, a as n, _ as v, r as g, b as z, o as s, e as h } from "./index-BJ_SQhGu.js";
2
2
  import { MdPreview as P, MdEditor as y, config as C, XSSPlugin as I } from "md-editor-v3";
3
3
  import { useGettext as D } from "vue3-gettext";
4
4
  import "@casl/vue";
@@ -8,7 +8,7 @@ var u1=Object.defineProperty;var Oc=Se=>{throw TypeError(Se)};var l1=(Se,Pe,He)=
8
8
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Aa]=this[Aa]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=Lr(a);n[u]||(ud(o,a),n[u]=!0)}return Z.isArray(t)?t.forEach(i):i(t),this}};yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Z.reduceDescriptors(yt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),Z.freezeMethods(yt);function li(e,t){const r=this||Br,n=t||r,o=yt.from(n.headers);let i=n.data;return Z.forEach(e,function(u){i=u.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ta(e){return!!(e&&e.__CANCEL__)}function mr(e,t,r){we.call(this,e??"canceled",we.ERR_CANCELED,t,r),this.name="CanceledError"}Z.inherits(mr,we,{__CANCEL__:!0});function Sa(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new we("Request failed with status code "+r.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function ld(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fd(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),s=n[i];a||(a=l),r[o]=f,n[o]=l;let c=i,d=0;for(;c!==o;)d+=r[c++],c=c%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const T=s&&l-s;return T?Math.round(d*1e3/T):void 0}}function cd(e,t){let r=0,n=1e3/t,o,i;const a=(l,s=Date.now())=>{r=s,o=null,i&&(clearTimeout(i),i=null),e.apply(null,l)};return[(...l)=>{const s=Date.now(),c=s-r;c>=n?a(l,s):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-c)))},()=>o&&a(o)]}const hn=(e,t,r=3)=>{let n=0;const o=fd(50,250);return cd(i=>{const a=i.loaded,u=i.lengthComputable?i.total:void 0,f=a-n,l=o(f),s=a<=u;n=a;const c={loaded:a,total:u,progress:u?a/u:void 0,bytes:f,rate:l||void 0,estimated:l&&u&&s?(u-a)/l:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(c)},r)},_a=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Oa=e=>(...t)=>Z.asap(()=>e(...t));var hd=ut.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ut.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ut.origin),ut.navigator&&/(msie|trident)/i.test(ut.navigator.userAgent)):()=>!0,dd=ut.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];Z.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Z.isString(n)&&a.push("path="+n),Z.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function pd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function gd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Na(e,t,r){let n=!pd(t);return e&&(n||r==!1)?gd(e,t):t}const Ra=e=>e instanceof yt?{...e}:e;function rr(e,t){t=t||{};const r={};function n(l,s,c,d){return Z.isPlainObject(l)&&Z.isPlainObject(s)?Z.merge.call({caseless:d},l,s):Z.isPlainObject(s)?Z.merge({},s):Z.isArray(s)?s.slice():s}function o(l,s,c,d){if(Z.isUndefined(s)){if(!Z.isUndefined(l))return n(void 0,l,c,d)}else return n(l,s,c,d)}function i(l,s){if(!Z.isUndefined(s))return n(void 0,s)}function a(l,s){if(Z.isUndefined(s)){if(!Z.isUndefined(l))return n(void 0,l)}else return n(void 0,s)}function u(l,s,c){if(c in t)return n(l,s);if(c in e)return n(void 0,l)}const f={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(l,s,c)=>o(Ra(l),Ra(s),c,!0)};return Z.forEach(Object.keys(Object.assign({},e,t)),function(s){const c=f[s]||o,d=c(e[s],t[s],s);Z.isUndefined(d)&&c!==u||(r[s]=d)}),r}var Ia=e=>{const t=rr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;t.headers=a=yt.from(a),t.url=wa(Na(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let f;if(Z.isFormData(r)){if(ut.hasStandardBrowserEnv||ut.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((f=a.getContentType())!==!1){const[l,...s]=f?f.split(";").map(c=>c.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...s].join("; "))}}if(ut.hasStandardBrowserEnv&&(n&&Z.isFunction(n)&&(n=n(t)),n||n!==!1&&hd(t.url))){const l=o&&i&&dd.read(i);l&&a.set(o,l)}return t},yd=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=Ia(e);let i=o.data;const a=yt.from(o.headers).normalize();let{responseType:u,onUploadProgress:f,onDownloadProgress:l}=o,s,c,d,T,m;function E(){T&&T(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let x=new XMLHttpRequest;x.open(o.method.toUpperCase(),o.url,!0),x.timeout=o.timeout;function p(){if(!x)return;const g=yt.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),w={data:!u||u==="text"||u==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:g,config:e,request:x};Sa(function(P){r(P),E()},function(P){n(P),E()},w),x=null}"onloadend"in x?x.onloadend=p:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(p)},x.onabort=function(){x&&(n(new we("Request aborted",we.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new we("Network Error",we.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||Ea;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),n(new we(y,w.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,x)),x=null},i===void 0&&a.setContentType(null),"setRequestHeader"in x&&Z.forEach(a.toJSON(),function(y,w){x.setRequestHeader(w,y)}),Z.isUndefined(o.withCredentials)||(x.withCredentials=!!o.withCredentials),u&&u!=="json"&&(x.responseType=o.responseType),l&&([d,m]=hn(l,!0),x.addEventListener("progress",d)),f&&x.upload&&([c,T]=hn(f),x.upload.addEventListener("progress",c),x.upload.addEventListener("loadend",T)),(o.cancelToken||o.signal)&&(s=g=>{x&&(n(!g||g.type?new mr(null,e,x):g),x.abort(),x=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const h=ld(o.url);if(h&&ut.protocols.indexOf(h)===-1){n(new we("Unsupported protocol "+h+":",we.ERR_BAD_REQUEST,e));return}x.send(i||null)})};const md=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(l){if(!o){o=!0,u();const s=l instanceof Error?l:this.reason;n.abort(s instanceof we?s:new mr(s instanceof Error?s.message:s))}};let a=t&&setTimeout(()=>{a=null,i(new we(`timeout ${t} of ms exceeded`,we.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:f}=n;return f.unsubscribe=()=>Z.asap(u),f}},bd=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},wd=async function*(e,t){for await(const r of vd(e))yield*bd(r,t)},vd=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Pa=(e,t,r,n)=>{const o=wd(e,t);let i=0,a,u=f=>{a||(a=!0,n&&n(f))};return new ReadableStream({async pull(f){try{const{done:l,value:s}=await o.next();if(l){u(),f.close();return}let c=s.byteLength;if(r){let d=i+=c;r(d)}f.enqueue(new Uint8Array(s))}catch(l){throw u(l),l}},cancel(f){return u(f),o.return()}},{highWaterMark:2})},dn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Fa=dn&&typeof ReadableStream=="function",Ed=dn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ca=(e,...t)=>{try{return!!e(...t)}catch{return!1}},xd=Fa&&Ca(()=>{let e=!1;const t=new Request(ut.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ba=64*1024,fi=Fa&&Ca(()=>Z.isReadableStream(new Response("").body)),pn={stream:fi&&(e=>e.body)};dn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!pn[t]&&(pn[t]=Z.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new we(`Response type '${t}' is not supported`,we.ERR_NOT_SUPPORT,n)})})})(new Response);const Ad=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(ut.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(e)||Z.isArrayBuffer(e))return e.byteLength;if(Z.isURLSearchParams(e)&&(e=e+""),Z.isString(e))return(await Ed(e)).byteLength},Td=async(e,t)=>{const r=Z.toFiniteNumber(e.getContentLength());return r??Ad(t)};var Sd=dn&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:u,onUploadProgress:f,responseType:l,headers:s,withCredentials:c="same-origin",fetchOptions:d}=Ia(e);l=l?(l+"").toLowerCase():"text";let T=md([o,i&&i.toAbortSignal()],a),m;const E=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let x;try{if(f&&xd&&r!=="get"&&r!=="head"&&(x=await Td(s,n))!==0){let w=new Request(t,{method:"POST",body:n,duplex:"half"}),A;if(Z.isFormData(n)&&(A=w.headers.get("content-type"))&&s.setContentType(A),w.body){const[P,I]=_a(x,hn(Oa(f)));n=Pa(w.body,Ba,P,I)}}Z.isString(c)||(c=c?"include":"omit");const p="credentials"in Request.prototype;m=new Request(t,{...d,signal:T,method:r.toUpperCase(),headers:s.normalize().toJSON(),body:n,duplex:"half",credentials:p?c:void 0});let h=await fetch(m);const g=fi&&(l==="stream"||l==="response");if(fi&&(u||g&&E)){const w={};["status","statusText","headers"].forEach(O=>{w[O]=h[O]});const A=Z.toFiniteNumber(h.headers.get("content-length")),[P,I]=u&&_a(A,hn(Oa(u),!0))||[];h=new Response(Pa(h.body,Ba,P,()=>{I&&I(),E&&E()}),w)}l=l||"text";let y=await pn[Z.findKey(pn,l)||"text"](h,e);return!g&&E&&E(),await new Promise((w,A)=>{Sa(w,A,{data:y,headers:yt.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:m})})}catch(p){throw E&&E(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new we("Network Error",we.ERR_NETWORK,e,m),{cause:p.cause||p}):we.from(p,p&&p.code,e,m)}});const ci={http:$h,xhr:yd,fetch:Sd};Z.forEach(ci,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const La=e=>`- ${e}`,_d=e=>Z.isFunction(e)||e===null||e===!1;var Ua={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let a;if(n=r,!_d(r)&&(n=ci[(a=String(r)).toLowerCase()],n===void 0))throw new we(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([u,f])=>`adapter ${u} `+(f===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
9
9
  `+i.map(La).join(`
10
10
  `):" "+La(i[0]):"as no adapter specified";throw new we("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:ci};function hi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mr(null,e)}function ja(e){return hi(e),e.headers=yt.from(e.headers),e.data=li.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ua.getAdapter(e.adapter||Br.adapter)(e).then(function(n){return hi(e),n.data=li.call(e,e.transformResponse,n),n.headers=yt.from(n.headers),n},function(n){return Ta(n)||(hi(e),n&&n.response&&(n.response.data=li.call(e,e.transformResponse,n.response),n.response.headers=yt.from(n.response.headers))),Promise.reject(n)})}const Ma="1.8.4",gn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{gn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ka={};gn.transitional=function(t,r,n){function o(i,a){return"[Axios v"+Ma+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,u)=>{if(t===!1)throw new we(o(a," has been removed"+(r?" in "+r:"")),we.ERR_DEPRECATED);return r&&!ka[a]&&(ka[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,u):!0}},gn.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Od(e,t,r){if(typeof e!="object")throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const u=e[i],f=u===void 0||a(u,i,e);if(f!==!0)throw new we("option "+i+" must be "+f,we.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new we("Unknown option "+i,we.ERR_BAD_OPTION)}}var yn={assertOptions:Od,validators:gn};const Ct=yn.validators;let nr=class{constructor(t){this.defaults=t,this.interceptors={request:new va,response:new va}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
11
- `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=rr(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&yn.assertOptions(n,{silentJSONParsing:Ct.transitional(Ct.boolean),forcedJSONParsing:Ct.transitional(Ct.boolean),clarifyTimeoutError:Ct.transitional(Ct.boolean)},!1),o!=null&&(Z.isFunction(o)?r.paramsSerializer={serialize:o}:yn.assertOptions(o,{encode:Ct.function,serialize:Ct.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),yn.assertOptions(r,{baseUrl:Ct.spelling("baseURL"),withXsrfToken:Ct.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&Z.merge(i.common,i[r.method]);i&&Z.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=yt.concat(a,i);const u=[];let f=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(r)===!1||(f=f&&E.synchronous,u.unshift(E.fulfilled,E.rejected))});const l=[];this.interceptors.response.forEach(function(E){l.push(E.fulfilled,E.rejected)});let s,c=0,d;if(!f){const m=[ja.bind(this),void 0];for(m.unshift.apply(m,u),m.push.apply(m,l),d=m.length,s=Promise.resolve(r);c<d;)s=s.then(m[c++],m[c++]);return s}d=u.length;let T=r;for(c=0;c<d;){const m=u[c++],E=u[c++];try{T=m(T)}catch(x){E.call(this,x);break}}try{s=ja.call(this,T)}catch(m){return Promise.reject(m)}for(c=0,d=l.length;c<d;)s=s.then(l[c++],l[c++]);return s}getUri(t){t=rr(this.defaults,t);const r=Na(t.baseURL,t.url,t.allowAbsoluteUrls);return wa(r,t.params,t.paramsSerializer)}};Z.forEach(["delete","get","head","options"],function(t){nr.prototype[t]=function(r,n){return this.request(rr(n||{},{method:t,url:r,data:(n||{}).data}))}}),Z.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,u){return this.request(rr(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}nr.prototype[t]=r(),nr.prototype[t+"Form"]=r(!0)});let Nd=class Bc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(u=>{n.subscribe(u),i=u}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,u){n.reason||(n.reason=new mr(i,a,u),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Bc(function(o){t=o}),cancel:t}}};function Rd(e){return function(r){return e.apply(null,r)}}function Id(e){return Z.isObject(e)&&e.isAxiosError===!0}const di={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(di).forEach(([e,t])=>{di[t]=e});function Da(e){const t=new nr(e),r=na(nr.prototype.request,t);return Z.extend(r,nr.prototype,t,{allOwnKeys:!0}),Z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Da(rr(e,o))},r}const Ye=Da(Br);Ye.Axios=nr,Ye.CanceledError=mr,Ye.CancelToken=Nd,Ye.isCancel=Ta,Ye.VERSION=Ma,Ye.toFormData=fn,Ye.AxiosError=we,Ye.Cancel=Ye.CanceledError,Ye.all=function(t){return Promise.all(t)},Ye.spread=Rd,Ye.isAxiosError=Id,Ye.mergeConfig=rr,Ye.AxiosHeaders=yt,Ye.formToJSON=e=>xa(Z.isHTMLForm(e)?new FormData(e):e),Ye.getAdapter=Ua.getAdapter,Ye.HttpStatusCode=di,Ye.default=Ye;const{Axios:c1,AxiosError:h1,CanceledError:d1,isCancel:p1,CancelToken:g1,VERSION:y1,all:m1,Cancel:b1,isAxiosError:w1,spread:v1,toFormData:E1,AxiosHeaders:x1,HttpStatusCode:A1,formToJSON:T1,getAdapter:S1,mergeConfig:_1}=Ye,mn=e=>encodeURIComponent(e).split("%2F").join("/"),Pd=/^(\w+:\/\/[^/?]+)?(.*?)$/,Fd=e=>e.filter(t=>typeof t=="string"||typeof t=="number").map(t=>`${t}`).filter(t=>t),Cd=e=>{const t=e.join("/"),[,r="",n=""]=t.match(Pd)||[];return{prefix:r,pathname:{parts:n.split("/").filter(o=>o!==""),hasLeading:/^\/+/.test(n),hasTrailing:/\/+$/.test(n)}}},Bd=(e,t)=>{const{prefix:r,pathname:n}=e,{parts:o,hasLeading:i,hasTrailing:a}=n,{leadingSlash:u,trailingSlash:f}=t,l=u===!0||u==="keep"&&i,s=f===!0||f==="keep"&&a;let c=r;return o.length>0&&((c||l)&&(c+="/"),c+=o.join("/")),s&&(c+="/"),!c&&l&&(c+="/"),c},_e=(...e)=>{const t=e[e.length-1];let r;t&&typeof t=="object"&&(r=t,e=e.slice(0,-1)),r={leadingSlash:!0,trailingSlash:!1,...r},e=Fd(e);const n=Cd(e);return Bd(n,r)};class $a extends Error{constructor(r,n,o=null){super(r);ye(this,"response");ye(this,"statusCode");this.response=n,this.statusCode=o}}class Ld extends $a{constructor(r,n,o,i=null){super(r,o,i);ye(this,"errorCode");this.errorCode=n}}function Ud(e,t=""){return`/public-files/${e}/${t}`.split("/").filter(Boolean).join("/")}function jd(e,t=""){return`/ocm/${e}/${t}`.split("/").filter(Boolean).join("/")}class Ge{}ye(Ge,"Shared","S"),ye(Ge,"Shareable","R"),ye(Ge,"Mounted","M"),ye(Ge,"Deletable","D"),ye(Ge,"Renameable","N"),ye(Ge,"Moveable","V"),ye(Ge,"Updateable","NV"),ye(Ge,"FileUpdateable","W"),ye(Ge,"FolderCreateable","CK"),ye(Ge,"Deny","Z"),ye(Ge,"SecureView","X");var kt=(e=>(e.copy="COPY",e.delete="DELETE",e.lock="LOCK",e.mkcol="MKCOL",e.move="MOVE",e.propfind="PROPFIND",e.proppatch="PROPPATCH",e.put="PUT",e.report="REPORT",e.unlock="UNLOCK",e))(kt||{});const bn=e=>({value:e,type:null}),Md=e=>bn(e),Fe=e=>bn(e),pi=e=>bn(e),kd=e=>bn(e),Dd={Permissions:Fe("permissions"),IsFavorite:pi("favorite"),FileId:Fe("fileid"),FileParent:Fe("file-parent"),Name:Fe("name"),OwnerId:Fe("owner-id"),OwnerDisplayName:Fe("owner-display-name"),PrivateLink:Fe("privatelink"),ContentLength:pi("getcontentlength"),ContentSize:pi("size"),LastModifiedDate:Fe("getlastmodified"),Tags:Md("tags"),Audio:{value:"audio",type:null},Location:{value:"location",type:null},Image:{value:"image",type:null},Photo:{value:"photo",type:null},ETag:Fe("getetag"),MimeType:Fe("getcontenttype"),ResourceType:kd("resourcetype"),LockDiscovery:{value:"lockdiscovery",type:null},LockOwner:Fe("owner"),LockTime:Fe("locktime"),ActiveLock:{value:"activelock",type:null},DownloadURL:Fe("downloadURL"),Highlights:Fe("highlights"),MetaPathForUser:Fe("meta-path-for-user"),RemoteItemId:Fe("remote-item-id"),ShareId:Fe("shareid"),ShareRoot:Fe("shareroot"),ShareTypes:{value:"share-types",type:null},SharePermissions:Fe("share-permissions"),TrashbinOriginalFilename:Fe("trashbin-original-filename"),TrashbinOriginalLocation:Fe("trashbin-original-location"),TrashbinDeletedDate:Fe("trashbin-delete-datetime"),PublicLinkItemType:Fe("public-link-item-type"),PublicLinkPermission:Fe("public-link-permission"),PublicLinkExpiration:Fe("public-link-expiration"),PublicLinkShareDate:Fe("public-link-share-datetime"),PublicLinkShareOwner:Fe("public-link-share-owner")},ae=Object.fromEntries(Object.entries(Dd).map(([e,t])=>[e,t.value])),lr=class lr{};ye(lr,"Default",[ae.Permissions,ae.IsFavorite,ae.FileId,ae.FileParent,ae.Name,ae.LockDiscovery,ae.ActiveLock,ae.OwnerId,ae.OwnerDisplayName,ae.RemoteItemId,ae.ShareRoot,ae.ShareTypes,ae.PrivateLink,ae.ContentLength,ae.ContentSize,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.DownloadURL,ae.Tags,ae.Audio,ae.Location,ae.Image,ae.Photo]),ye(lr,"PublicLink",lr.Default.concat([ae.PublicLinkItemType,ae.PublicLinkPermission,ae.PublicLinkExpiration,ae.PublicLinkShareDate,ae.PublicLinkShareOwner])),ye(lr,"Trashbin",[ae.ContentLength,ae.ResourceType,ae.TrashbinOriginalLocation,ae.TrashbinOriginalFilename,ae.TrashbinDeletedDate,ae.Permissions,ae.FileParent]),ye(lr,"DavNamespace",[ae.ContentLength,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.LockDiscovery,ae.ActiveLock]);let ir=lr;var $d=typeof Mt=="object"&&Mt&&Mt.Object===Object&&Mt,qd=typeof self=="object"&&self&&self.Object===Object&&self,gi=$d||qd||Function("return this")(),br=gi.Symbol,qa=Object.prototype,Hd=qa.hasOwnProperty,Vd=qa.toString,Ur=br?br.toStringTag:void 0;function Wd(e){var t=Hd.call(e,Ur),r=e[Ur];try{e[Ur]=void 0;var n=!0}catch{}var o=Vd.call(e);return n&&(t?e[Ur]=r:delete e[Ur]),o}var Gd=Object.prototype,Kd=Gd.toString;function zd(e){return Kd.call(e)}var Xd="[object Null]",Yd="[object Undefined]",Ha=br?br.toStringTag:void 0;function Va(e){return e==null?e===void 0?Yd:Xd:Ha&&Ha in Object(e)?Wd(e):zd(e)}function Jd(e){return e!=null&&typeof e=="object"}var Zd="[object Symbol]";function yi(e){return typeof e=="symbol"||Jd(e)&&Va(e)==Zd}function Qd(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var mi=Array.isArray,Wa=br?br.prototype:void 0,Ga=Wa?Wa.toString:void 0;function Ka(e){if(typeof e=="string")return e;if(mi(e))return Qd(e,Ka)+"";if(yi(e))return Ga?Ga.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function za(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ep="[object AsyncFunction]",tp="[object Function]",rp="[object GeneratorFunction]",np="[object Proxy]";function ip(e){if(!za(e))return!1;var t=Va(e);return t==tp||t==rp||t==ep||t==np}var bi=gi["__core-js_shared__"],Xa=function(){var e=/[^.]+$/.exec(bi&&bi.keys&&bi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function op(e){return!!Xa&&Xa in e}var sp=Function.prototype,ap=sp.toString;function up(e){if(e!=null){try{return ap.call(e)}catch{}try{return e+""}catch{}}return""}var lp=/[\\^$.*+?()[\]{}|]/g,fp=/^\[object .+?Constructor\]$/,cp=Function.prototype,hp=Object.prototype,dp=cp.toString,pp=hp.hasOwnProperty,gp=RegExp("^"+dp.call(pp).replace(lp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yp(e){if(!za(e)||op(e))return!1;var t=ip(e)?gp:fp;return t.test(up(e))}function mp(e,t){return e==null?void 0:e[t]}function Ya(e,t){var r=mp(e,t);return yp(r)?r:void 0}function bp(e,t){return e===t||e!==e&&t!==t}var wp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vp=/^\w*$/;function Ep(e,t){if(mi(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||yi(e)?!0:vp.test(e)||!wp.test(e)||t!=null&&e in Object(t)}var jr=Ya(Object,"create");function xp(){this.__data__=jr?jr(null):{},this.size=0}function Ap(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Tp="__lodash_hash_undefined__",Sp=Object.prototype,_p=Sp.hasOwnProperty;function Op(e){var t=this.__data__;if(jr){var r=t[e];return r===Tp?void 0:r}return _p.call(t,e)?t[e]:void 0}var Np=Object.prototype,Rp=Np.hasOwnProperty;function Ip(e){var t=this.__data__;return jr?t[e]!==void 0:Rp.call(t,e)}var Pp="__lodash_hash_undefined__";function Fp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=jr&&t===void 0?Pp:t,this}function or(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}or.prototype.clear=xp,or.prototype.delete=Ap,or.prototype.get=Op,or.prototype.has=Ip,or.prototype.set=Fp;function Cp(){this.__data__=[],this.size=0}function wn(e,t){for(var r=e.length;r--;)if(bp(e[r][0],t))return r;return-1}var Bp=Array.prototype,Lp=Bp.splice;function Up(e){var t=this.__data__,r=wn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Lp.call(t,r,1),--this.size,!0}function jp(e){var t=this.__data__,r=wn(t,e);return r<0?void 0:t[r][1]}function Mp(e){return wn(this.__data__,e)>-1}function kp(e,t){var r=this.__data__,n=wn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function wr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}wr.prototype.clear=Cp,wr.prototype.delete=Up,wr.prototype.get=jp,wr.prototype.has=Mp,wr.prototype.set=kp;var Dp=Ya(gi,"Map");function $p(){this.size=0,this.__data__={hash:new or,map:new(Dp||wr),string:new or}}function qp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function vn(e,t){var r=e.__data__;return qp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Hp(e){var t=vn(this,e).delete(e);return this.size-=t?1:0,t}function Vp(e){return vn(this,e).get(e)}function Wp(e){return vn(this,e).has(e)}function Gp(e,t){var r=vn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function sr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}sr.prototype.clear=$p,sr.prototype.delete=Hp,sr.prototype.get=Vp,sr.prototype.has=Wp,sr.prototype.set=Gp;var Kp="Expected a function";function wi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Kp);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(wi.Cache||sr),r}wi.Cache=sr;var zp=500;function Xp(e){var t=wi(e,function(n){return r.size===zp&&r.clear(),n}),r=t.cache;return t}var Yp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jp=/\\(\\)?/g,Zp=Xp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Yp,function(r,n,o,i){t.push(o?i.replace(Jp,"$1"):n||r)}),t});function Mr(e){return e==null?"":Ka(e)}function Qp(e,t){return mi(e)?e:Ep(e,t)?[e]:Zp(Mr(e))}function eg(e){if(typeof e=="string"||yi(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function tg(e,t){t=Qp(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[eg(t[r++])];return r&&r==n?e:void 0}function rg(e,t,r){var n=e==null?void 0:tg(e,t);return n===void 0?r:n}function ng(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}function ig(e,t,r){var n=e.length;return r=r===void 0?n:r,ng(e,t,r)}var og="\\ud800-\\udfff",sg="\\u0300-\\u036f",ag="\\ufe20-\\ufe2f",ug="\\u20d0-\\u20ff",lg=sg+ag+ug,fg="\\ufe0e\\ufe0f",cg="\\u200d",hg=RegExp("["+cg+og+lg+fg+"]");function Ja(e){return hg.test(e)}function dg(e){return e.split("")}var Za="\\ud800-\\udfff",pg="\\u0300-\\u036f",gg="\\ufe20-\\ufe2f",yg="\\u20d0-\\u20ff",mg=pg+gg+yg,bg="\\ufe0e\\ufe0f",wg="["+Za+"]",vi="["+mg+"]",Ei="\\ud83c[\\udffb-\\udfff]",vg="(?:"+vi+"|"+Ei+")",Qa="[^"+Za+"]",eu="(?:\\ud83c[\\udde6-\\uddff]){2}",tu="[\\ud800-\\udbff][\\udc00-\\udfff]",Eg="\\u200d",ru=vg+"?",nu="["+bg+"]?",xg="(?:"+Eg+"(?:"+[Qa,eu,tu].join("|")+")"+nu+ru+")*",Ag=nu+ru+xg,Tg="(?:"+[Qa+vi+"?",vi,eu,tu,wg].join("|")+")",Sg=RegExp(Ei+"(?="+Ei+")|"+Tg+Ag,"g");function _g(e){return e.match(Sg)||[]}function Og(e){return Ja(e)?_g(e):dg(e)}function Ng(e){return function(t){t=Mr(t);var r=Ja(t)?Og(t):void 0,n=r?r[0]:t.charAt(0),o=r?ig(r,1).join(""):t.slice(1);return n[e]()+o}}var Rg=Ng("toUpperCase");function Ig(e){return Rg(Mr(e).toLowerCase())}function Pg(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;)r=t(r,e[o],o,e);return r}function Fg(e){return function(t){return e==null?void 0:e[t]}}var Cg={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Bg=Fg(Cg),Lg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ug="\\u0300-\\u036f",jg="\\ufe20-\\ufe2f",Mg="\\u20d0-\\u20ff",kg=Ug+jg+Mg,Dg="["+kg+"]",$g=RegExp(Dg,"g");function qg(e){return e=Mr(e),e&&e.replace(Lg,Bg).replace($g,"")}var Hg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Vg(e){return e.match(Hg)||[]}var Wg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Gg(e){return Wg.test(e)}var iu="\\ud800-\\udfff",Kg="\\u0300-\\u036f",zg="\\ufe20-\\ufe2f",Xg="\\u20d0-\\u20ff",Yg=Kg+zg+Xg,ou="\\u2700-\\u27bf",su="a-z\\xdf-\\xf6\\xf8-\\xff",Jg="\\xac\\xb1\\xd7\\xf7",Zg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Qg="\\u2000-\\u206f",e0=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",au="A-Z\\xc0-\\xd6\\xd8-\\xde",t0="\\ufe0e\\ufe0f",uu=Jg+Zg+Qg+e0,lu="['’]",fu="["+uu+"]",r0="["+Yg+"]",cu="\\d+",n0="["+ou+"]",hu="["+su+"]",du="[^"+iu+uu+cu+ou+su+au+"]",i0="\\ud83c[\\udffb-\\udfff]",o0="(?:"+r0+"|"+i0+")",s0="[^"+iu+"]",pu="(?:\\ud83c[\\udde6-\\uddff]){2}",gu="[\\ud800-\\udbff][\\udc00-\\udfff]",vr="["+au+"]",a0="\\u200d",yu="(?:"+hu+"|"+du+")",u0="(?:"+vr+"|"+du+")",mu="(?:"+lu+"(?:d|ll|m|re|s|t|ve))?",bu="(?:"+lu+"(?:D|LL|M|RE|S|T|VE))?",wu=o0+"?",vu="["+t0+"]?",l0="(?:"+a0+"(?:"+[s0,pu,gu].join("|")+")"+vu+wu+")*",f0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",c0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",h0=vu+wu+l0,d0="(?:"+[n0,pu,gu].join("|")+")"+h0,p0=RegExp([vr+"?"+hu+"+"+mu+"(?="+[fu,vr,"$"].join("|")+")",u0+"+"+bu+"(?="+[fu,vr+yu,"$"].join("|")+")",vr+"?"+yu+"+"+mu,vr+"+"+bu,c0,f0,cu,d0].join("|"),"g");function g0(e){return e.match(p0)||[]}function y0(e,t,r){return e=Mr(e),t=t,t===void 0?Gg(e)?g0(e):Vg(e):e.match(t)||[]}var m0="['’]",b0=RegExp(m0,"g");function w0(e){return function(t){return Pg(y0(qg(t).replace(b0,"")),e,"")}}var v0=w0(function(e,t,r){return t=t.toLowerCase(),e+(r?Ig(t):t)});const E0={complex:["tar.bz2","tar.gz","tar.xz"]},xi=e=>e.replace(/[^A-Za-z0-9\-_]/g,""),Eu=(e,t)=>!e||typeof e!="string"?"":e.indexOf("!")>=0?e.split("!")[t]:"",x0=e=>Eu(e,0),xu=e=>Eu(e,1),Au=e=>{const t=e.name;if(e.type==="directory"||e.isFolder)return"";const r=t.split(".");if(r.length>2)for(let n=0;n<r.length;n++){const o=r.slice(n,r.length).join(".");if(E0.complex.includes(o))return o}return r.length<2?"":r[r.length-1]},En=e=>{if(!e)return e;const t={};return Object.keys(e).forEach(r=>{t[v0(r)]=e[r]}),t};function Er(e,t=[]){var m,E,x;const r=((m=e.props[ae.Name])==null?void 0:m.toString())||Qn.basename(e.filename),n=e.props[ae.FileId],o=e.type==="directory";let i;e.filename.startsWith("/files")||e.filename.startsWith("/space")?i=e.filename.split("/").slice(3).join("/"):i=e.filename,i.startsWith("/")||(i=`/${i}`);const a=Au({...e,name:r}),u=e.props[ae.LockDiscovery];let f,l,s;u&&(f=u[ae.ActiveLock],l=f[ae.LockOwner],s=f[ae.LockTime]);let c=[];e.props[ae.ShareTypes]&&(c=e.props[ae.ShareTypes]["share-type"],Array.isArray(c)||(c=[c]));const d={};for(const p of t||[]){const h=p.split(":").pop();e.props[h]&&(d[p]=e.props[h])}const T={id:n,fileId:n,storageId:x0(n),parentFolderId:e.props[ae.FileParent],mimeType:e.props[ae.MimeType],name:r,extension:o?"":a,path:i,webDavPath:e.filename,type:o?"folder":e.type,isFolder:o,locked:!!f,lockOwner:l,lockTime:s,processing:e.processing||!1,mdate:e.props[ae.LastModifiedDate],size:o?((E=e.props[ae.ContentSize])==null?void 0:E.toString())||"0":((x=e.props[ae.ContentLength])==null?void 0:x.toString())||"0",indicators:[],permissions:e.props[ae.Permissions]||"",starred:e.props[ae.IsFavorite]!==0,etag:e.props[ae.ETag],shareTypes:c,privateLink:e.props[ae.PrivateLink],downloadURL:e.props[ae.DownloadURL],remoteItemId:e.props[ae.RemoteItemId],remoteItemPath:e.props[ae.ShareRoot],owner:{id:e.props[ae.OwnerId],displayName:e.props[ae.OwnerDisplayName]},tags:(e.props[ae.Tags]||"").toString().split(",").filter(Boolean),audio:En(e.props[ae.Audio]),location:En(e.props[ae.Location]),image:En(e.props[ae.Image]),photo:En(e.props[ae.Photo]),extraProps:d,canUpload:function(){return this.permissions.indexOf(Ge.FolderCreateable)>=0},canDownload:function(){return this.permissions.indexOf(Ge.SecureView)===-1},canBeDeleted:function(){return this.permissions.indexOf(Ge.Deletable)>=0},canRename:function(){return this.permissions.indexOf(Ge.Renameable)>=0},canShare:function({ability:p}){return p.can("create-all","Share")&&this.permissions.indexOf(Ge.Shareable)>=0},canCreate:function(){return this.permissions.indexOf(Ge.FolderCreateable)>=0},canEditTags:function(){return this.permissions.indexOf(Ge.Updateable)>=0||this.permissions.indexOf(Ge.FileUpdateable)>=0},isMounted:function(){return this.permissions.indexOf(Ge.Mounted)>=0},isReceivedShare:function(){return this.permissions.indexOf(Ge.Shared)>=0},isShareRoot(){return e.props[ae.ShareRoot]?e.filename.split("/").length===3:!1},canDeny:function(){return this.permissions.indexOf(Ge.Deny)>=0},getDomSelector:()=>xi(n)};return Object.defineProperty(T,"nodeId",{get(){return xu(this.id)}}),T}function A0(e){var i;const t=e.type==="directory",r=(i=e.props[ae.TrashbinOriginalFilename])==null?void 0:i.toString(),n=Au({name:r,type:e.type}),o=ra.basename(e.filename);return{type:t?"folder":e.type,isFolder:t,ddate:e.props[ae.TrashbinDeletedDate],name:ra.basename(r),extension:n,path:_e(e.props[ae.TrashbinOriginalLocation],{leadingSlash:!0}),id:o,parentFolderId:e.props[ae.FileParent],indicators:[],webDavPath:"",canUpload:()=>!1,canDownload:()=>!1,canBeDeleted:()=>!0,canBeRestored:function(){return!0},canRename:()=>!1,canShare:()=>!1,canCreate:()=>!1,isMounted:()=>!1,isReceivedShare:()=>!1,getDomSelector:()=>xi(o)}}var bt=(e=>(e.createUpload="libre.graph/driveItem/upload/create",e.createPermissions="libre.graph/driveItem/permissions/create",e.createChildren="libre.graph/driveItem/children/create",e.readBasic="libre.graph/driveItem/basic/read",e.readPath="libre.graph/driveItem/path/read",e.readQuota="libre.graph/driveItem/quota/read",e.readContent="libre.graph/driveItem/content/read",e.readChildren="libre.graph/driveItem/children/read",e.readDeleted="libre.graph/driveItem/deleted/read",e.readPermissions="libre.graph/driveItem/permissions/read",e.readVersions="libre.graph/driveItem/versions/read",e.updatePath="libre.graph/driveItem/path/update",e.updateDeleted="libre.graph/driveItem/deleted/update",e.updatePermissions="libre.graph/driveItem/permissions/update",e.updateVersions="libre.graph/driveItem/versions/update",e.deleteStandard="libre.graph/driveItem/standard/delete",e.deleteDeleted="libre.graph/driveItem/deleted/delete",e.deletePermissions="libre.graph/driveItem/permissions/delete",e))(bt||{});const Tu=e=>(e==null?void 0:e.driveType)==="personal",xn=e=>(e==null?void 0:e.driveType)==="public";function T0(e,t){return _e("spaces",e,t,{leadingSlash:!0})}function Ai(e,t=""){return _e("spaces","trash-bin",e,t,{leadingSlash:!0})}function S0(e){var c,d,T,m,E,x;const t=e.publicLinkPassword,r=(c=e.props)==null?void 0:c[ae.FileId],n=(d=e.props)==null?void 0:d[ae.PublicLinkItemType],o=(T=e.props)==null?void 0:T[ae.PublicLinkPermission],i=(m=e.props)==null?void 0:m[ae.PublicLinkExpiration],a=(E=e.props)==null?void 0:E[ae.PublicLinkShareDate],u=(x=e.props)==null?void 0:x[ae.PublicLinkShareOwner],f=e.publicLinkType;let l,s;return f==="ocm"?(l=`ocm/${e.id}`,s=jd(e.id)):(l=`public/${e.id}`,s=Ud(e.id)),Object.assign(_0({...e,driveType:"public",driveAlias:l,webDavPath:s},{}),{...r&&{fileId:r},...t&&{publicLinkPassword:t},...n&&{publicLinkItemType:n},...o&&{publicLinkPermission:parseInt(o)},...i&&{publicLinkExpiration:i},...a&&{publicLinkShareDate:a},...u&&{publicLinkShareOwner:u},publicLinkType:f})}function _0(e,t){var c,d,T,m,E,x;let r,n;e.special&&(r=e.special.find(p=>p.specialFolder.name==="image"),n=e.special.find(p=>p.specialFolder.name==="readme"),r&&(r.webDavUrl=decodeURI(r.webDavUrl)),n&&(n.webDavUrl=decodeURI(n.webDavUrl)));const o=((d=(c=e.root)==null?void 0:c.deleted)==null?void 0:d.state)==="trashed",i=_e(e.webDavPath||T0(e.id),{leadingSlash:!0}),a=_e(e.serverUrl,"remote.php/dav",i),u=_e(e.webDavTrashPath||Ai(e.id),{leadingSlash:!0}),f=_e(e.serverUrl,"remote.php/dav",u),l=(m=(T=e.root)==null?void 0:T.permissions)==null?void 0:m.reduce((p,h)=>{var g;return p[(h.grantedToV2.user||h.grantedToV2.group).id]={grantedTo:h.grantedToV2,permissions:O0(h,t),roleId:(g=h.roles)==null?void 0:g[0]},p},{}),s={id:e.id,fileId:e.id,storageId:e.id,mimeType:"",name:e.name,description:e.description,extension:"",path:"/",webDavPath:i,webDavTrashPath:u,driveAlias:e.driveAlias,driveType:e.driveType,type:"space",isFolder:!0,mdate:e.lastModifiedDateTime,size:((E=e.quota)==null?void 0:E.used)||0,indicators:[],tags:[],permissions:"",starred:!1,etag:"",shareTypes:[],privateLink:e.webUrl,downloadURL:"",owner:(x=e.owner)==null?void 0:x.user,disabled:o,root:e.root,spaceQuota:e.quota,members:l||{},spaceImageData:r,spaceReadmeData:n,canUpload:function({user:p}={}){return Tu(this)&&this.isOwner(p)?!0:vt(this,p).includes(bt.createUpload)},canDownload:function(){return!0},canBeDeleted:function({user:p,ability:h}={}){return this.disabled?h!=null&&h.can("delete-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions):!1},canRename:function({user:p,ability:h}={}){return h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canEditDescription:function({user:p,ability:h}={}){return h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canRestore:function({user:p,ability:h}={}){return this.disabled?h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions):!1},canDisable:function({user:p,ability:h}={}){return this.disabled?!1:h!=null&&h.can("delete-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canShare:function({user:p}={}){return vt(this,p).includes(bt.createPermissions)},canEditImage:function({user:p}={}){return this.disabled?!1:vt(this,p).includes(bt.deletePermissions)},canEditReadme:function({user:p}={}){return this.disabled?!1:vt(this,p).includes(bt.deletePermissions)},canRestoreFromTrashbin:function({user:p}={}){return vt(this,p).includes(bt.updateDeleted)},canDeleteFromTrashBin:function({user:p}={}){return vt(this,p).includes(bt.deletePermissions)},canListVersions:function({user:p}={}){return Tu(this)&&this.isOwner(p)?!0:vt(this,p).includes(bt.readVersions)},canCreate:function(){return!0},canEditTags:function(){return!1},isMounted:function(){return!0},isReceivedShare:function(){return!1},isShareRoot:function(){return["share","mountpoint","public"].includes(e.driveType)},canDeny:()=>!1,getDomSelector:()=>xi(e.id),getDriveAliasAndItem({path:p}){return _e(this.driveAlias,p,{leadingSlash:!1})},getWebDavUrl({path:p}){return _e(a,p)},getWebDavTrashUrl({path:p}){return _e(f,p)},isMember(p){var h;return xn(this)?!1:this.isOwner(p)||this.members[p.id]?!0:(h=p.memberOf)==null?void 0:h.some(g=>!!this.members[g.id])},isOwner(p){var h;return(p==null?void 0:p.id)===((h=this.owner)==null?void 0:h.id)}};return Object.defineProperty(s,"nodeId",{get(){return xu(this.id)}}),s}function vt(e,t){var o;const r=[];if(!t)return r;const n=e.members[t.id];return n&&r.push(...n.permissions),(o=t.memberOf)==null||o.forEach(i=>{const a=e.members[i.id];a&&r.push(...a.permissions)}),[...new Set(r)]}function O0(e,t){var n;if(e["@libre.graph.permissions.actions"])return e["@libre.graph.permissions.actions"];const r=t[(n=e.roles)==null?void 0:n[0]];if(r){const o=r.rolePermissions.find(({condition:i})=>i==="exists @Resource.Root");return(o==null?void 0:o.allowedResourceActions)||[]}return[]}const N0=(e,t)=>{const r=new URL(e);r.pathname=[...r.pathname.split("/"),"cloud","capabilities"].filter(Boolean).join("/"),r.searchParams.append("format","json");const n=r.href;return{async getCapabilities(){const o=await t.get(n);return rg(o,"data.ocs.data",{capabilities:null,version:null})}}};var Ti={},An={exports:{}},Su;function Si(){if(Su)return An.exports;Su=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(w,A,P){return Function.prototype.apply.call(w,A,P)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(w){return Object.getOwnPropertyNames(w).concat(Object.getOwnPropertySymbols(w))}:r=function(w){return Object.getOwnPropertyNames(w)};function n(y){console&&console.warn&&console.warn(y)}var o=Number.isNaN||function(w){return w!==w};function i(){i.init.call(this)}An.exports=i,An.exports.once=p,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(y){if(typeof y!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof y)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(y){if(typeof y!="number"||y<0||o(y))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+y+".");a=y}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(w){if(typeof w!="number"||w<0||o(w))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+w+".");return this._maxListeners=w,this};function f(y){return y._maxListeners===void 0?i.defaultMaxListeners:y._maxListeners}i.prototype.getMaxListeners=function(){return f(this)},i.prototype.emit=function(w){for(var A=[],P=1;P<arguments.length;P++)A.push(arguments[P]);var I=w==="error",O=this._events;if(O!==void 0)I=I&&O.error===void 0;else if(!I)return!1;if(I){var j;if(A.length>0&&(j=A[0]),j instanceof Error)throw j;var G=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw G.context=j,G}var L=O[w];if(L===void 0)return!1;if(typeof L=="function")t(L,this,A);else for(var D=L.length,oe=m(L,D),P=0;P<D;++P)t(oe[P],this,A);return!0};function l(y,w,A,P){var I,O,j;if(u(A),O=y._events,O===void 0?(O=y._events=Object.create(null),y._eventsCount=0):(O.newListener!==void 0&&(y.emit("newListener",w,A.listener?A.listener:A),O=y._events),j=O[w]),j===void 0)j=O[w]=A,++y._eventsCount;else if(typeof j=="function"?j=O[w]=P?[A,j]:[j,A]:P?j.unshift(A):j.push(A),I=f(y),I>0&&j.length>I&&!j.warned){j.warned=!0;var G=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");G.name="MaxListenersExceededWarning",G.emitter=y,G.type=w,G.count=j.length,n(G)}return y}i.prototype.addListener=function(w,A){return l(this,w,A,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(w,A){return l(this,w,A,!0)};function s(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(y,w,A){var P={fired:!1,wrapFn:void 0,target:y,type:w,listener:A},I=s.bind(P);return I.listener=A,P.wrapFn=I,I}i.prototype.once=function(w,A){return u(A),this.on(w,c(this,w,A)),this},i.prototype.prependOnceListener=function(w,A){return u(A),this.prependListener(w,c(this,w,A)),this},i.prototype.removeListener=function(w,A){var P,I,O,j,G;if(u(A),I=this._events,I===void 0)return this;if(P=I[w],P===void 0)return this;if(P===A||P.listener===A)--this._eventsCount===0?this._events=Object.create(null):(delete I[w],I.removeListener&&this.emit("removeListener",w,P.listener||A));else if(typeof P!="function"){for(O=-1,j=P.length-1;j>=0;j--)if(P[j]===A||P[j].listener===A){G=P[j].listener,O=j;break}if(O<0)return this;O===0?P.shift():E(P,O),P.length===1&&(I[w]=P[0]),I.removeListener!==void 0&&this.emit("removeListener",w,G||A)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(w){var A,P,I;if(P=this._events,P===void 0)return this;if(P.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):P[w]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete P[w]),this;if(arguments.length===0){var O=Object.keys(P),j;for(I=0;I<O.length;++I)j=O[I],j!=="removeListener"&&this.removeAllListeners(j);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(A=P[w],typeof A=="function")this.removeListener(w,A);else if(A!==void 0)for(I=A.length-1;I>=0;I--)this.removeListener(w,A[I]);return this};function d(y,w,A){var P=y._events;if(P===void 0)return[];var I=P[w];return I===void 0?[]:typeof I=="function"?A?[I.listener||I]:[I]:A?x(I):m(I,I.length)}i.prototype.listeners=function(w){return d(this,w,!0)},i.prototype.rawListeners=function(w){return d(this,w,!1)},i.listenerCount=function(y,w){return typeof y.listenerCount=="function"?y.listenerCount(w):T.call(y,w)},i.prototype.listenerCount=T;function T(y){var w=this._events;if(w!==void 0){var A=w[y];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function m(y,w){for(var A=new Array(w),P=0;P<w;++P)A[P]=y[P];return A}function E(y,w){for(;w+1<y.length;w++)y[w]=y[w+1];y.pop()}function x(y){for(var w=new Array(y.length),A=0;A<w.length;++A)w[A]=y[A].listener||y[A];return w}function p(y,w){return new Promise(function(A,P){function I(j){y.removeListener(w,O),P(j)}function O(){typeof y.removeListener=="function"&&y.removeListener("error",I),A([].slice.call(arguments))}g(y,w,O,{once:!0}),w!=="error"&&h(y,I,{once:!0})})}function h(y,w,A){typeof y.on=="function"&&g(y,"error",w,A)}function g(y,w,A,P){if(typeof y.on=="function")P.once?y.once(w,A):y.on(w,A);else if(typeof y.addEventListener=="function")y.addEventListener(w,function I(O){P.once&&y.removeEventListener(w,I),A(O)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof y)}return An.exports}var Tn={exports:{}},_u;function ar(){return _u||(_u=1,typeof Object.create=="function"?Tn.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Tn.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Tn.exports}var _i,Ou;function Nu(){return Ou||(Ou=1,_i=Si().EventEmitter),_i}var Oi={},Ru;function Sn(){return Ru||(Ru=1,function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},r={};r.byteLength=s,r.toByteArray=d,r.fromByteArray=E;for(var n=[],o=[],i=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,f=a.length;u<f;++u)n[u]=a[u],o[a.charCodeAt(u)]=u;o[45]=62,o[95]=63;function l(h){var g=h.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=h.indexOf("=");y===-1&&(y=g);var w=y===g?0:4-y%4;return[y,w]}function s(h){var g=l(h),y=g[0],w=g[1];return(y+w)*3/4-w}function c(h,g,y){return(g+y)*3/4-y}function d(h){var g,y=l(h),w=y[0],A=y[1],P=new i(c(h,w,A)),I=0,O=A>0?w-4:w,j;for(j=0;j<O;j+=4)g=o[h.charCodeAt(j)]<<18|o[h.charCodeAt(j+1)]<<12|o[h.charCodeAt(j+2)]<<6|o[h.charCodeAt(j+3)],P[I++]=g>>16&255,P[I++]=g>>8&255,P[I++]=g&255;return A===2&&(g=o[h.charCodeAt(j)]<<2|o[h.charCodeAt(j+1)]>>4,P[I++]=g&255),A===1&&(g=o[h.charCodeAt(j)]<<10|o[h.charCodeAt(j+1)]<<4|o[h.charCodeAt(j+2)]>>2,P[I++]=g>>8&255,P[I++]=g&255),P}function T(h){return n[h>>18&63]+n[h>>12&63]+n[h>>6&63]+n[h&63]}function m(h,g,y){for(var w,A=[],P=g;P<y;P+=3)w=(h[P]<<16&16711680)+(h[P+1]<<8&65280)+(h[P+2]&255),A.push(T(w));return A.join("")}function E(h){for(var g,y=h.length,w=y%3,A=[],P=16383,I=0,O=y-w;I<O;I+=P)A.push(m(h,I,I+P>O?O:I+P));return w===1?(g=h[y-1],A.push(n[g>>2]+n[g<<4&63]+"==")):w===2&&(g=(h[y-2]<<8)+h[y-1],A.push(n[g>>10]+n[g>>4&63]+n[g<<2&63]+"=")),A.join("")}var x={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */x.read=function(h,g,y,w,A){var P,I,O=A*8-w-1,j=(1<<O)-1,G=j>>1,L=-7,D=y?A-1:0,oe=y?-1:1,re=h[g+D];for(D+=oe,P=re&(1<<-L)-1,re>>=-L,L+=O;L>0;P=P*256+h[g+D],D+=oe,L-=8);for(I=P&(1<<-L)-1,P>>=-L,L+=w;L>0;I=I*256+h[g+D],D+=oe,L-=8);if(P===0)P=1-G;else{if(P===j)return I?NaN:(re?-1:1)*(1/0);I=I+Math.pow(2,w),P=P-G}return(re?-1:1)*I*Math.pow(2,P-w)},x.write=function(h,g,y,w,A,P){var I,O,j,G=P*8-A-1,L=(1<<G)-1,D=L>>1,oe=A===23?Math.pow(2,-24)-Math.pow(2,-77):0,re=w?0:P-1,he=w?1:-1,fe=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(O=isNaN(g)?1:0,I=L):(I=Math.floor(Math.log(g)/Math.LN2),g*(j=Math.pow(2,-I))<1&&(I--,j*=2),I+D>=1?g+=oe/j:g+=oe*Math.pow(2,1-D),g*j>=2&&(I++,j/=2),I+D>=L?(O=0,I=L):I+D>=1?(O=(g*j-1)*Math.pow(2,A),I=I+D):(O=g*Math.pow(2,D-1)*Math.pow(2,A),I=0));A>=8;h[y+re]=O&255,re+=he,O/=256,A-=8);for(I=I<<A|O,G+=A;G>0;h[y+re]=I&255,re+=he,I/=256,G-=8);h[y+re-he]|=fe*128};/*!
11
+ `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=rr(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&yn.assertOptions(n,{silentJSONParsing:Ct.transitional(Ct.boolean),forcedJSONParsing:Ct.transitional(Ct.boolean),clarifyTimeoutError:Ct.transitional(Ct.boolean)},!1),o!=null&&(Z.isFunction(o)?r.paramsSerializer={serialize:o}:yn.assertOptions(o,{encode:Ct.function,serialize:Ct.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),yn.assertOptions(r,{baseUrl:Ct.spelling("baseURL"),withXsrfToken:Ct.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&Z.merge(i.common,i[r.method]);i&&Z.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=yt.concat(a,i);const u=[];let f=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(r)===!1||(f=f&&E.synchronous,u.unshift(E.fulfilled,E.rejected))});const l=[];this.interceptors.response.forEach(function(E){l.push(E.fulfilled,E.rejected)});let s,c=0,d;if(!f){const m=[ja.bind(this),void 0];for(m.unshift.apply(m,u),m.push.apply(m,l),d=m.length,s=Promise.resolve(r);c<d;)s=s.then(m[c++],m[c++]);return s}d=u.length;let T=r;for(c=0;c<d;){const m=u[c++],E=u[c++];try{T=m(T)}catch(x){E.call(this,x);break}}try{s=ja.call(this,T)}catch(m){return Promise.reject(m)}for(c=0,d=l.length;c<d;)s=s.then(l[c++],l[c++]);return s}getUri(t){t=rr(this.defaults,t);const r=Na(t.baseURL,t.url,t.allowAbsoluteUrls);return wa(r,t.params,t.paramsSerializer)}};Z.forEach(["delete","get","head","options"],function(t){nr.prototype[t]=function(r,n){return this.request(rr(n||{},{method:t,url:r,data:(n||{}).data}))}}),Z.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,u){return this.request(rr(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}nr.prototype[t]=r(),nr.prototype[t+"Form"]=r(!0)});let Nd=class Bc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(u=>{n.subscribe(u),i=u}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,u){n.reason||(n.reason=new mr(i,a,u),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Bc(function(o){t=o}),cancel:t}}};function Rd(e){return function(r){return e.apply(null,r)}}function Id(e){return Z.isObject(e)&&e.isAxiosError===!0}const di={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(di).forEach(([e,t])=>{di[t]=e});function Da(e){const t=new nr(e),r=na(nr.prototype.request,t);return Z.extend(r,nr.prototype,t,{allOwnKeys:!0}),Z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Da(rr(e,o))},r}const Ye=Da(Br);Ye.Axios=nr,Ye.CanceledError=mr,Ye.CancelToken=Nd,Ye.isCancel=Ta,Ye.VERSION=Ma,Ye.toFormData=fn,Ye.AxiosError=we,Ye.Cancel=Ye.CanceledError,Ye.all=function(t){return Promise.all(t)},Ye.spread=Rd,Ye.isAxiosError=Id,Ye.mergeConfig=rr,Ye.AxiosHeaders=yt,Ye.formToJSON=e=>xa(Z.isHTMLForm(e)?new FormData(e):e),Ye.getAdapter=Ua.getAdapter,Ye.HttpStatusCode=di,Ye.default=Ye;const{Axios:c1,AxiosError:h1,CanceledError:d1,isCancel:p1,CancelToken:g1,VERSION:y1,all:m1,Cancel:b1,isAxiosError:w1,spread:v1,toFormData:E1,AxiosHeaders:x1,HttpStatusCode:A1,formToJSON:T1,getAdapter:S1,mergeConfig:_1}=Ye,mn=e=>encodeURIComponent(e).split("%2F").join("/"),Pd=/^(\w+:\/\/[^/?]+)?(.*?)$/,Fd=e=>e.filter(t=>typeof t=="string"||typeof t=="number").map(t=>`${t}`).filter(t=>t),Cd=e=>{const t=e.join("/"),[,r="",n=""]=t.match(Pd)||[];return{prefix:r,pathname:{parts:n.split("/").filter(o=>o!==""),hasLeading:/^\/+/.test(n),hasTrailing:/\/+$/.test(n)}}},Bd=(e,t)=>{const{prefix:r,pathname:n}=e,{parts:o,hasLeading:i,hasTrailing:a}=n,{leadingSlash:u,trailingSlash:f}=t,l=u===!0||u==="keep"&&i,s=f===!0||f==="keep"&&a;let c=r;return o.length>0&&((c||l)&&(c+="/"),c+=o.join("/")),s&&(c+="/"),!c&&l&&(c+="/"),c},_e=(...e)=>{const t=e[e.length-1];let r;t&&typeof t=="object"&&(r=t,e=e.slice(0,-1)),r={leadingSlash:!0,trailingSlash:!1,...r},e=Fd(e);const n=Cd(e);return Bd(n,r)};class $a extends Error{constructor(r,n,o=null){super(r);ye(this,"response");ye(this,"statusCode");this.response=n,this.statusCode=o}}class Ld extends $a{constructor(r,n,o,i=null){super(r,o,i);ye(this,"errorCode");this.errorCode=n}}function Ud(e,t=""){return`/public-files/${e}/${t}`.split("/").filter(Boolean).join("/")}function jd(e,t=""){return`/ocm/${e}/${t}`.split("/").filter(Boolean).join("/")}class Ge{}ye(Ge,"Shared","S"),ye(Ge,"Shareable","R"),ye(Ge,"Mounted","M"),ye(Ge,"Deletable","D"),ye(Ge,"Renameable","N"),ye(Ge,"Moveable","V"),ye(Ge,"Updateable","NV"),ye(Ge,"FileUpdateable","W"),ye(Ge,"FolderCreateable","CK"),ye(Ge,"Deny","Z"),ye(Ge,"SecureView","X");var kt=(e=>(e.copy="COPY",e.delete="DELETE",e.lock="LOCK",e.mkcol="MKCOL",e.move="MOVE",e.propfind="PROPFIND",e.proppatch="PROPPATCH",e.put="PUT",e.report="REPORT",e.unlock="UNLOCK",e))(kt||{});const bn=e=>({value:e,type:null}),Md=e=>bn(e),Fe=e=>bn(e),pi=e=>bn(e),kd=e=>bn(e),Dd={Permissions:Fe("permissions"),IsFavorite:pi("favorite"),FileId:Fe("fileid"),FileParent:Fe("file-parent"),Name:Fe("name"),OwnerId:Fe("owner-id"),OwnerDisplayName:Fe("owner-display-name"),PrivateLink:Fe("privatelink"),ContentLength:pi("getcontentlength"),ContentSize:pi("size"),LastModifiedDate:Fe("getlastmodified"),Tags:Md("tags"),Audio:{value:"audio",type:null},Location:{value:"location",type:null},Image:{value:"image",type:null},Photo:{value:"photo",type:null},ETag:Fe("getetag"),MimeType:Fe("getcontenttype"),ResourceType:kd("resourcetype"),LockDiscovery:{value:"lockdiscovery",type:null},LockOwner:Fe("owner"),LockTime:Fe("locktime"),ActiveLock:{value:"activelock",type:null},DownloadURL:Fe("downloadURL"),Highlights:Fe("highlights"),MetaPathForUser:Fe("meta-path-for-user"),RemoteItemId:Fe("remote-item-id"),ShareId:Fe("shareid"),ShareRoot:Fe("shareroot"),ShareTypes:{value:"share-types",type:null},SharePermissions:Fe("share-permissions"),TrashbinOriginalFilename:Fe("trashbin-original-filename"),TrashbinOriginalLocation:Fe("trashbin-original-location"),TrashbinDeletedDate:Fe("trashbin-delete-datetime"),PublicLinkItemType:Fe("public-link-item-type"),PublicLinkPermission:Fe("public-link-permission"),PublicLinkExpiration:Fe("public-link-expiration"),PublicLinkShareDate:Fe("public-link-share-datetime"),PublicLinkShareOwner:Fe("public-link-share-owner")},ae=Object.fromEntries(Object.entries(Dd).map(([e,t])=>[e,t.value])),lr=class lr{};ye(lr,"Default",[ae.Permissions,ae.IsFavorite,ae.FileId,ae.FileParent,ae.Name,ae.LockDiscovery,ae.ActiveLock,ae.OwnerId,ae.OwnerDisplayName,ae.RemoteItemId,ae.ShareRoot,ae.ShareTypes,ae.PrivateLink,ae.ContentLength,ae.ContentSize,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.DownloadURL,ae.Tags,ae.Audio,ae.Location,ae.Image,ae.Photo]),ye(lr,"PublicLink",lr.Default.concat([ae.PublicLinkItemType,ae.PublicLinkPermission,ae.PublicLinkExpiration,ae.PublicLinkShareDate,ae.PublicLinkShareOwner])),ye(lr,"Trashbin",[ae.ContentLength,ae.ResourceType,ae.TrashbinOriginalLocation,ae.TrashbinOriginalFilename,ae.TrashbinDeletedDate,ae.Permissions,ae.FileParent]),ye(lr,"DavNamespace",[ae.ContentLength,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.LockDiscovery,ae.ActiveLock]);let ir=lr;var $d=typeof Mt=="object"&&Mt&&Mt.Object===Object&&Mt,qd=typeof self=="object"&&self&&self.Object===Object&&self,gi=$d||qd||Function("return this")(),br=gi.Symbol,qa=Object.prototype,Hd=qa.hasOwnProperty,Vd=qa.toString,Ur=br?br.toStringTag:void 0;function Wd(e){var t=Hd.call(e,Ur),r=e[Ur];try{e[Ur]=void 0;var n=!0}catch{}var o=Vd.call(e);return n&&(t?e[Ur]=r:delete e[Ur]),o}var Gd=Object.prototype,Kd=Gd.toString;function zd(e){return Kd.call(e)}var Xd="[object Null]",Yd="[object Undefined]",Ha=br?br.toStringTag:void 0;function Va(e){return e==null?e===void 0?Yd:Xd:Ha&&Ha in Object(e)?Wd(e):zd(e)}function Jd(e){return e!=null&&typeof e=="object"}var Zd="[object Symbol]";function yi(e){return typeof e=="symbol"||Jd(e)&&Va(e)==Zd}function Qd(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var mi=Array.isArray,Wa=br?br.prototype:void 0,Ga=Wa?Wa.toString:void 0;function Ka(e){if(typeof e=="string")return e;if(mi(e))return Qd(e,Ka)+"";if(yi(e))return Ga?Ga.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function za(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ep="[object AsyncFunction]",tp="[object Function]",rp="[object GeneratorFunction]",np="[object Proxy]";function ip(e){if(!za(e))return!1;var t=Va(e);return t==tp||t==rp||t==ep||t==np}var bi=gi["__core-js_shared__"],Xa=function(){var e=/[^.]+$/.exec(bi&&bi.keys&&bi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function op(e){return!!Xa&&Xa in e}var sp=Function.prototype,ap=sp.toString;function up(e){if(e!=null){try{return ap.call(e)}catch{}try{return e+""}catch{}}return""}var lp=/[\\^$.*+?()[\]{}|]/g,fp=/^\[object .+?Constructor\]$/,cp=Function.prototype,hp=Object.prototype,dp=cp.toString,pp=hp.hasOwnProperty,gp=RegExp("^"+dp.call(pp).replace(lp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yp(e){if(!za(e)||op(e))return!1;var t=ip(e)?gp:fp;return t.test(up(e))}function mp(e,t){return e==null?void 0:e[t]}function Ya(e,t){var r=mp(e,t);return yp(r)?r:void 0}function bp(e,t){return e===t||e!==e&&t!==t}var wp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vp=/^\w*$/;function Ep(e,t){if(mi(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||yi(e)?!0:vp.test(e)||!wp.test(e)||t!=null&&e in Object(t)}var jr=Ya(Object,"create");function xp(){this.__data__=jr?jr(null):{},this.size=0}function Ap(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Tp="__lodash_hash_undefined__",Sp=Object.prototype,_p=Sp.hasOwnProperty;function Op(e){var t=this.__data__;if(jr){var r=t[e];return r===Tp?void 0:r}return _p.call(t,e)?t[e]:void 0}var Np=Object.prototype,Rp=Np.hasOwnProperty;function Ip(e){var t=this.__data__;return jr?t[e]!==void 0:Rp.call(t,e)}var Pp="__lodash_hash_undefined__";function Fp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=jr&&t===void 0?Pp:t,this}function or(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}or.prototype.clear=xp,or.prototype.delete=Ap,or.prototype.get=Op,or.prototype.has=Ip,or.prototype.set=Fp;function Cp(){this.__data__=[],this.size=0}function wn(e,t){for(var r=e.length;r--;)if(bp(e[r][0],t))return r;return-1}var Bp=Array.prototype,Lp=Bp.splice;function Up(e){var t=this.__data__,r=wn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Lp.call(t,r,1),--this.size,!0}function jp(e){var t=this.__data__,r=wn(t,e);return r<0?void 0:t[r][1]}function Mp(e){return wn(this.__data__,e)>-1}function kp(e,t){var r=this.__data__,n=wn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function wr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}wr.prototype.clear=Cp,wr.prototype.delete=Up,wr.prototype.get=jp,wr.prototype.has=Mp,wr.prototype.set=kp;var Dp=Ya(gi,"Map");function $p(){this.size=0,this.__data__={hash:new or,map:new(Dp||wr),string:new or}}function qp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function vn(e,t){var r=e.__data__;return qp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Hp(e){var t=vn(this,e).delete(e);return this.size-=t?1:0,t}function Vp(e){return vn(this,e).get(e)}function Wp(e){return vn(this,e).has(e)}function Gp(e,t){var r=vn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function sr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}sr.prototype.clear=$p,sr.prototype.delete=Hp,sr.prototype.get=Vp,sr.prototype.has=Wp,sr.prototype.set=Gp;var Kp="Expected a function";function wi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Kp);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(wi.Cache||sr),r}wi.Cache=sr;var zp=500;function Xp(e){var t=wi(e,function(n){return r.size===zp&&r.clear(),n}),r=t.cache;return t}var Yp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jp=/\\(\\)?/g,Zp=Xp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Yp,function(r,n,o,i){t.push(o?i.replace(Jp,"$1"):n||r)}),t});function Mr(e){return e==null?"":Ka(e)}function Qp(e,t){return mi(e)?e:Ep(e,t)?[e]:Zp(Mr(e))}function eg(e){if(typeof e=="string"||yi(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function tg(e,t){t=Qp(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[eg(t[r++])];return r&&r==n?e:void 0}function rg(e,t,r){var n=e==null?void 0:tg(e,t);return n===void 0?r:n}function ng(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}function ig(e,t,r){var n=e.length;return r=r===void 0?n:r,ng(e,t,r)}var og="\\ud800-\\udfff",sg="\\u0300-\\u036f",ag="\\ufe20-\\ufe2f",ug="\\u20d0-\\u20ff",lg=sg+ag+ug,fg="\\ufe0e\\ufe0f",cg="\\u200d",hg=RegExp("["+cg+og+lg+fg+"]");function Ja(e){return hg.test(e)}function dg(e){return e.split("")}var Za="\\ud800-\\udfff",pg="\\u0300-\\u036f",gg="\\ufe20-\\ufe2f",yg="\\u20d0-\\u20ff",mg=pg+gg+yg,bg="\\ufe0e\\ufe0f",wg="["+Za+"]",vi="["+mg+"]",Ei="\\ud83c[\\udffb-\\udfff]",vg="(?:"+vi+"|"+Ei+")",Qa="[^"+Za+"]",eu="(?:\\ud83c[\\udde6-\\uddff]){2}",tu="[\\ud800-\\udbff][\\udc00-\\udfff]",Eg="\\u200d",ru=vg+"?",nu="["+bg+"]?",xg="(?:"+Eg+"(?:"+[Qa,eu,tu].join("|")+")"+nu+ru+")*",Ag=nu+ru+xg,Tg="(?:"+[Qa+vi+"?",vi,eu,tu,wg].join("|")+")",Sg=RegExp(Ei+"(?="+Ei+")|"+Tg+Ag,"g");function _g(e){return e.match(Sg)||[]}function Og(e){return Ja(e)?_g(e):dg(e)}function Ng(e){return function(t){t=Mr(t);var r=Ja(t)?Og(t):void 0,n=r?r[0]:t.charAt(0),o=r?ig(r,1).join(""):t.slice(1);return n[e]()+o}}var Rg=Ng("toUpperCase");function Ig(e){return Rg(Mr(e).toLowerCase())}function Pg(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;)r=t(r,e[o],o,e);return r}function Fg(e){return function(t){return e==null?void 0:e[t]}}var Cg={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Bg=Fg(Cg),Lg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ug="\\u0300-\\u036f",jg="\\ufe20-\\ufe2f",Mg="\\u20d0-\\u20ff",kg=Ug+jg+Mg,Dg="["+kg+"]",$g=RegExp(Dg,"g");function qg(e){return e=Mr(e),e&&e.replace(Lg,Bg).replace($g,"")}var Hg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Vg(e){return e.match(Hg)||[]}var Wg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Gg(e){return Wg.test(e)}var iu="\\ud800-\\udfff",Kg="\\u0300-\\u036f",zg="\\ufe20-\\ufe2f",Xg="\\u20d0-\\u20ff",Yg=Kg+zg+Xg,ou="\\u2700-\\u27bf",su="a-z\\xdf-\\xf6\\xf8-\\xff",Jg="\\xac\\xb1\\xd7\\xf7",Zg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Qg="\\u2000-\\u206f",e0=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",au="A-Z\\xc0-\\xd6\\xd8-\\xde",t0="\\ufe0e\\ufe0f",uu=Jg+Zg+Qg+e0,lu="['’]",fu="["+uu+"]",r0="["+Yg+"]",cu="\\d+",n0="["+ou+"]",hu="["+su+"]",du="[^"+iu+uu+cu+ou+su+au+"]",i0="\\ud83c[\\udffb-\\udfff]",o0="(?:"+r0+"|"+i0+")",s0="[^"+iu+"]",pu="(?:\\ud83c[\\udde6-\\uddff]){2}",gu="[\\ud800-\\udbff][\\udc00-\\udfff]",vr="["+au+"]",a0="\\u200d",yu="(?:"+hu+"|"+du+")",u0="(?:"+vr+"|"+du+")",mu="(?:"+lu+"(?:d|ll|m|re|s|t|ve))?",bu="(?:"+lu+"(?:D|LL|M|RE|S|T|VE))?",wu=o0+"?",vu="["+t0+"]?",l0="(?:"+a0+"(?:"+[s0,pu,gu].join("|")+")"+vu+wu+")*",f0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",c0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",h0=vu+wu+l0,d0="(?:"+[n0,pu,gu].join("|")+")"+h0,p0=RegExp([vr+"?"+hu+"+"+mu+"(?="+[fu,vr,"$"].join("|")+")",u0+"+"+bu+"(?="+[fu,vr+yu,"$"].join("|")+")",vr+"?"+yu+"+"+mu,vr+"+"+bu,c0,f0,cu,d0].join("|"),"g");function g0(e){return e.match(p0)||[]}function y0(e,t,r){return e=Mr(e),t=t,t===void 0?Gg(e)?g0(e):Vg(e):e.match(t)||[]}var m0="['’]",b0=RegExp(m0,"g");function w0(e){return function(t){return Pg(y0(qg(t).replace(b0,"")),e,"")}}var v0=w0(function(e,t,r){return t=t.toLowerCase(),e+(r?Ig(t):t)});const E0={complex:["tar.bz2","tar.gz","tar.xz"]},xi=e=>e.replace(/[^A-Za-z0-9\-_]/g,""),Eu=(e,t)=>!e||typeof e!="string"?"":e.indexOf("!")>=0?e.split("!")[t]:"",x0=e=>Eu(e,0),xu=e=>Eu(e,1),Au=e=>{const t=e.name;if(e.type==="directory"||e.isFolder)return"";const r=t.split(".");if(r.length>2)for(let n=0;n<r.length;n++){const o=r.slice(n,r.length).join(".");if(E0.complex.includes(o))return o}return r.length<2?"":r[r.length-1]},En=e=>{if(!e)return e;const t={};return Object.keys(e).forEach(r=>{t[v0(r)]=e[r]}),t};function Er(e,t=[]){var m,E,x;const r=((m=e.props[ae.Name])==null?void 0:m.toString())||Qn.basename(e.filename),n=e.props[ae.FileId],o=e.type==="directory";let i;e.filename.startsWith("/files")||e.filename.startsWith("/space")?i=e.filename.split("/").slice(3).join("/"):i=e.filename,i.startsWith("/")||(i=`/${i}`);const a=Au({...e,name:r}),u=e.props[ae.LockDiscovery];let f,l,s;u&&(f=u[ae.ActiveLock],l=f[ae.LockOwner],s=f[ae.LockTime]);let c=[];e.props[ae.ShareTypes]&&(c=e.props[ae.ShareTypes]["share-type"],Array.isArray(c)||(c=[c]));const d={};for(const p of t||[]){const h=p.split(":").pop();e.props[h]&&(d[p]=e.props[h])}const T={id:n,fileId:n,storageId:x0(n),parentFolderId:e.props[ae.FileParent],mimeType:e.props[ae.MimeType],name:r,extension:o?"":a,path:i,webDavPath:e.filename,type:o?"folder":e.type,isFolder:o,locked:!!f,lockOwner:l,lockTime:s,processing:e.processing||!1,mdate:e.props[ae.LastModifiedDate],size:o?((E=e.props[ae.ContentSize])==null?void 0:E.toString())||"0":((x=e.props[ae.ContentLength])==null?void 0:x.toString())||"0",permissions:e.props[ae.Permissions]||"",starred:e.props[ae.IsFavorite]!==0,etag:e.props[ae.ETag],shareTypes:c,privateLink:e.props[ae.PrivateLink],downloadURL:e.props[ae.DownloadURL],remoteItemId:e.props[ae.RemoteItemId],remoteItemPath:e.props[ae.ShareRoot],owner:{id:e.props[ae.OwnerId],displayName:e.props[ae.OwnerDisplayName]},tags:(e.props[ae.Tags]||"").toString().split(",").filter(Boolean),audio:En(e.props[ae.Audio]),location:En(e.props[ae.Location]),image:En(e.props[ae.Image]),photo:En(e.props[ae.Photo]),extraProps:d,canUpload:function(){return this.permissions.indexOf(Ge.FolderCreateable)>=0},canDownload:function(){return this.permissions.indexOf(Ge.SecureView)===-1},canBeDeleted:function(){return this.permissions.indexOf(Ge.Deletable)>=0},canRename:function(){return this.permissions.indexOf(Ge.Renameable)>=0},canShare:function({ability:p}){return p.can("create-all","Share")&&this.permissions.indexOf(Ge.Shareable)>=0},canCreate:function(){return this.permissions.indexOf(Ge.FolderCreateable)>=0},canEditTags:function(){return this.permissions.indexOf(Ge.Updateable)>=0||this.permissions.indexOf(Ge.FileUpdateable)>=0},isMounted:function(){return this.permissions.indexOf(Ge.Mounted)>=0},isReceivedShare:function(){return this.permissions.indexOf(Ge.Shared)>=0},isShareRoot(){return e.props[ae.ShareRoot]?e.filename.split("/").length===3:!1},canDeny:function(){return this.permissions.indexOf(Ge.Deny)>=0},getDomSelector:()=>xi(n)};return Object.defineProperty(T,"nodeId",{get(){return xu(this.id)}}),T}function A0(e){var i;const t=e.type==="directory",r=(i=e.props[ae.TrashbinOriginalFilename])==null?void 0:i.toString(),n=Au({name:r,type:e.type}),o=ra.basename(e.filename);return{type:t?"folder":e.type,isFolder:t,ddate:e.props[ae.TrashbinDeletedDate],name:ra.basename(r),extension:n,path:_e(e.props[ae.TrashbinOriginalLocation],{leadingSlash:!0}),id:o,parentFolderId:e.props[ae.FileParent],webDavPath:"",canUpload:()=>!1,canDownload:()=>!1,canBeDeleted:()=>!0,canBeRestored:function(){return!0},canRename:()=>!1,canShare:()=>!1,canCreate:()=>!1,isMounted:()=>!1,isReceivedShare:()=>!1,getDomSelector:()=>xi(o)}}var bt=(e=>(e.createUpload="libre.graph/driveItem/upload/create",e.createPermissions="libre.graph/driveItem/permissions/create",e.createChildren="libre.graph/driveItem/children/create",e.readBasic="libre.graph/driveItem/basic/read",e.readPath="libre.graph/driveItem/path/read",e.readQuota="libre.graph/driveItem/quota/read",e.readContent="libre.graph/driveItem/content/read",e.readChildren="libre.graph/driveItem/children/read",e.readDeleted="libre.graph/driveItem/deleted/read",e.readPermissions="libre.graph/driveItem/permissions/read",e.readVersions="libre.graph/driveItem/versions/read",e.updatePath="libre.graph/driveItem/path/update",e.updateDeleted="libre.graph/driveItem/deleted/update",e.updatePermissions="libre.graph/driveItem/permissions/update",e.updateVersions="libre.graph/driveItem/versions/update",e.deleteStandard="libre.graph/driveItem/standard/delete",e.deleteDeleted="libre.graph/driveItem/deleted/delete",e.deletePermissions="libre.graph/driveItem/permissions/delete",e))(bt||{});const Tu=e=>(e==null?void 0:e.driveType)==="personal",xn=e=>(e==null?void 0:e.driveType)==="public";function T0(e,t){return _e("spaces",e,t,{leadingSlash:!0})}function Ai(e,t=""){return _e("spaces","trash-bin",e,t,{leadingSlash:!0})}function S0(e){var c,d,T,m,E,x;const t=e.publicLinkPassword,r=(c=e.props)==null?void 0:c[ae.FileId],n=(d=e.props)==null?void 0:d[ae.PublicLinkItemType],o=(T=e.props)==null?void 0:T[ae.PublicLinkPermission],i=(m=e.props)==null?void 0:m[ae.PublicLinkExpiration],a=(E=e.props)==null?void 0:E[ae.PublicLinkShareDate],u=(x=e.props)==null?void 0:x[ae.PublicLinkShareOwner],f=e.publicLinkType;let l,s;return f==="ocm"?(l=`ocm/${e.id}`,s=jd(e.id)):(l=`public/${e.id}`,s=Ud(e.id)),Object.assign(_0({...e,driveType:"public",driveAlias:l,webDavPath:s},{}),{...r&&{fileId:r},...t&&{publicLinkPassword:t},...n&&{publicLinkItemType:n},...o&&{publicLinkPermission:parseInt(o)},...i&&{publicLinkExpiration:i},...a&&{publicLinkShareDate:a},...u&&{publicLinkShareOwner:u},publicLinkType:f})}function _0(e,t){var c,d,T,m,E,x;let r,n;e.special&&(r=e.special.find(p=>p.specialFolder.name==="image"),n=e.special.find(p=>p.specialFolder.name==="readme"),r&&(r.webDavUrl=decodeURI(r.webDavUrl)),n&&(n.webDavUrl=decodeURI(n.webDavUrl)));const o=((d=(c=e.root)==null?void 0:c.deleted)==null?void 0:d.state)==="trashed",i=_e(e.webDavPath||T0(e.id),{leadingSlash:!0}),a=_e(e.serverUrl,"remote.php/dav",i),u=_e(e.webDavTrashPath||Ai(e.id),{leadingSlash:!0}),f=_e(e.serverUrl,"remote.php/dav",u),l=(m=(T=e.root)==null?void 0:T.permissions)==null?void 0:m.reduce((p,h)=>{var g;return p[(h.grantedToV2.user||h.grantedToV2.group).id]={grantedTo:h.grantedToV2,permissions:O0(h,t),roleId:(g=h.roles)==null?void 0:g[0]},p},{}),s={id:e.id,fileId:e.id,storageId:e.id,mimeType:"",name:e.name,description:e.description,extension:"",path:"/",webDavPath:i,webDavTrashPath:u,driveAlias:e.driveAlias,driveType:e.driveType,type:"space",isFolder:!0,mdate:e.lastModifiedDateTime,size:((E=e.quota)==null?void 0:E.used)||0,tags:[],permissions:"",starred:!1,etag:"",shareTypes:[],privateLink:e.webUrl,downloadURL:"",owner:(x=e.owner)==null?void 0:x.user,disabled:o,root:e.root,spaceQuota:e.quota,members:l||{},spaceImageData:r,spaceReadmeData:n,canUpload:function({user:p}={}){return Tu(this)&&this.isOwner(p)?!0:vt(this,p).includes(bt.createUpload)},canDownload:function(){return!0},canBeDeleted:function({user:p,ability:h}={}){return this.disabled?h!=null&&h.can("delete-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions):!1},canRename:function({user:p,ability:h}={}){return h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canEditDescription:function({user:p,ability:h}={}){return h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canRestore:function({user:p,ability:h}={}){return this.disabled?h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions):!1},canDisable:function({user:p,ability:h}={}){return this.disabled?!1:h!=null&&h.can("delete-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canShare:function({user:p}={}){return vt(this,p).includes(bt.createPermissions)},canEditImage:function({user:p}={}){return this.disabled?!1:vt(this,p).includes(bt.deletePermissions)},canEditReadme:function({user:p}={}){return this.disabled?!1:vt(this,p).includes(bt.deletePermissions)},canRestoreFromTrashbin:function({user:p}={}){return vt(this,p).includes(bt.updateDeleted)},canDeleteFromTrashBin:function({user:p}={}){return vt(this,p).includes(bt.deletePermissions)},canListVersions:function({user:p}={}){return Tu(this)&&this.isOwner(p)?!0:vt(this,p).includes(bt.readVersions)},canCreate:function(){return!0},canEditTags:function(){return!1},isMounted:function(){return!0},isReceivedShare:function(){return!1},isShareRoot:function(){return["share","mountpoint","public"].includes(e.driveType)},canDeny:()=>!1,getDomSelector:()=>xi(e.id),getDriveAliasAndItem({path:p}){return _e(this.driveAlias,p,{leadingSlash:!1})},getWebDavUrl({path:p}){return _e(a,p)},getWebDavTrashUrl({path:p}){return _e(f,p)},isMember(p){var h;return xn(this)?!1:this.isOwner(p)||this.members[p.id]?!0:(h=p.memberOf)==null?void 0:h.some(g=>!!this.members[g.id])},isOwner(p){var h;return(p==null?void 0:p.id)===((h=this.owner)==null?void 0:h.id)}};return Object.defineProperty(s,"nodeId",{get(){return xu(this.id)}}),s}function vt(e,t){var o;const r=[];if(!t)return r;const n=e.members[t.id];return n&&r.push(...n.permissions),(o=t.memberOf)==null||o.forEach(i=>{const a=e.members[i.id];a&&r.push(...a.permissions)}),[...new Set(r)]}function O0(e,t){var n;if(e["@libre.graph.permissions.actions"])return e["@libre.graph.permissions.actions"];const r=t[(n=e.roles)==null?void 0:n[0]];if(r){const o=r.rolePermissions.find(({condition:i})=>i==="exists @Resource.Root");return(o==null?void 0:o.allowedResourceActions)||[]}return[]}const N0=(e,t)=>{const r=new URL(e);r.pathname=[...r.pathname.split("/"),"cloud","capabilities"].filter(Boolean).join("/"),r.searchParams.append("format","json");const n=r.href;return{async getCapabilities(){const o=await t.get(n);return rg(o,"data.ocs.data",{capabilities:null,version:null})}}};var Ti={},An={exports:{}},Su;function Si(){if(Su)return An.exports;Su=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(w,A,P){return Function.prototype.apply.call(w,A,P)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(w){return Object.getOwnPropertyNames(w).concat(Object.getOwnPropertySymbols(w))}:r=function(w){return Object.getOwnPropertyNames(w)};function n(y){console&&console.warn&&console.warn(y)}var o=Number.isNaN||function(w){return w!==w};function i(){i.init.call(this)}An.exports=i,An.exports.once=p,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(y){if(typeof y!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof y)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(y){if(typeof y!="number"||y<0||o(y))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+y+".");a=y}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(w){if(typeof w!="number"||w<0||o(w))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+w+".");return this._maxListeners=w,this};function f(y){return y._maxListeners===void 0?i.defaultMaxListeners:y._maxListeners}i.prototype.getMaxListeners=function(){return f(this)},i.prototype.emit=function(w){for(var A=[],P=1;P<arguments.length;P++)A.push(arguments[P]);var I=w==="error",O=this._events;if(O!==void 0)I=I&&O.error===void 0;else if(!I)return!1;if(I){var j;if(A.length>0&&(j=A[0]),j instanceof Error)throw j;var G=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw G.context=j,G}var L=O[w];if(L===void 0)return!1;if(typeof L=="function")t(L,this,A);else for(var D=L.length,oe=m(L,D),P=0;P<D;++P)t(oe[P],this,A);return!0};function l(y,w,A,P){var I,O,j;if(u(A),O=y._events,O===void 0?(O=y._events=Object.create(null),y._eventsCount=0):(O.newListener!==void 0&&(y.emit("newListener",w,A.listener?A.listener:A),O=y._events),j=O[w]),j===void 0)j=O[w]=A,++y._eventsCount;else if(typeof j=="function"?j=O[w]=P?[A,j]:[j,A]:P?j.unshift(A):j.push(A),I=f(y),I>0&&j.length>I&&!j.warned){j.warned=!0;var G=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");G.name="MaxListenersExceededWarning",G.emitter=y,G.type=w,G.count=j.length,n(G)}return y}i.prototype.addListener=function(w,A){return l(this,w,A,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(w,A){return l(this,w,A,!0)};function s(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(y,w,A){var P={fired:!1,wrapFn:void 0,target:y,type:w,listener:A},I=s.bind(P);return I.listener=A,P.wrapFn=I,I}i.prototype.once=function(w,A){return u(A),this.on(w,c(this,w,A)),this},i.prototype.prependOnceListener=function(w,A){return u(A),this.prependListener(w,c(this,w,A)),this},i.prototype.removeListener=function(w,A){var P,I,O,j,G;if(u(A),I=this._events,I===void 0)return this;if(P=I[w],P===void 0)return this;if(P===A||P.listener===A)--this._eventsCount===0?this._events=Object.create(null):(delete I[w],I.removeListener&&this.emit("removeListener",w,P.listener||A));else if(typeof P!="function"){for(O=-1,j=P.length-1;j>=0;j--)if(P[j]===A||P[j].listener===A){G=P[j].listener,O=j;break}if(O<0)return this;O===0?P.shift():E(P,O),P.length===1&&(I[w]=P[0]),I.removeListener!==void 0&&this.emit("removeListener",w,G||A)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(w){var A,P,I;if(P=this._events,P===void 0)return this;if(P.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):P[w]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete P[w]),this;if(arguments.length===0){var O=Object.keys(P),j;for(I=0;I<O.length;++I)j=O[I],j!=="removeListener"&&this.removeAllListeners(j);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(A=P[w],typeof A=="function")this.removeListener(w,A);else if(A!==void 0)for(I=A.length-1;I>=0;I--)this.removeListener(w,A[I]);return this};function d(y,w,A){var P=y._events;if(P===void 0)return[];var I=P[w];return I===void 0?[]:typeof I=="function"?A?[I.listener||I]:[I]:A?x(I):m(I,I.length)}i.prototype.listeners=function(w){return d(this,w,!0)},i.prototype.rawListeners=function(w){return d(this,w,!1)},i.listenerCount=function(y,w){return typeof y.listenerCount=="function"?y.listenerCount(w):T.call(y,w)},i.prototype.listenerCount=T;function T(y){var w=this._events;if(w!==void 0){var A=w[y];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function m(y,w){for(var A=new Array(w),P=0;P<w;++P)A[P]=y[P];return A}function E(y,w){for(;w+1<y.length;w++)y[w]=y[w+1];y.pop()}function x(y){for(var w=new Array(y.length),A=0;A<w.length;++A)w[A]=y[A].listener||y[A];return w}function p(y,w){return new Promise(function(A,P){function I(j){y.removeListener(w,O),P(j)}function O(){typeof y.removeListener=="function"&&y.removeListener("error",I),A([].slice.call(arguments))}g(y,w,O,{once:!0}),w!=="error"&&h(y,I,{once:!0})})}function h(y,w,A){typeof y.on=="function"&&g(y,"error",w,A)}function g(y,w,A,P){if(typeof y.on=="function")P.once?y.once(w,A):y.on(w,A);else if(typeof y.addEventListener=="function")y.addEventListener(w,function I(O){P.once&&y.removeEventListener(w,I),A(O)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof y)}return An.exports}var Tn={exports:{}},_u;function ar(){return _u||(_u=1,typeof Object.create=="function"?Tn.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Tn.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Tn.exports}var _i,Ou;function Nu(){return Ou||(Ou=1,_i=Si().EventEmitter),_i}var Oi={},Ru;function Sn(){return Ru||(Ru=1,function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},r={};r.byteLength=s,r.toByteArray=d,r.fromByteArray=E;for(var n=[],o=[],i=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,f=a.length;u<f;++u)n[u]=a[u],o[a.charCodeAt(u)]=u;o[45]=62,o[95]=63;function l(h){var g=h.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=h.indexOf("=");y===-1&&(y=g);var w=y===g?0:4-y%4;return[y,w]}function s(h){var g=l(h),y=g[0],w=g[1];return(y+w)*3/4-w}function c(h,g,y){return(g+y)*3/4-y}function d(h){var g,y=l(h),w=y[0],A=y[1],P=new i(c(h,w,A)),I=0,O=A>0?w-4:w,j;for(j=0;j<O;j+=4)g=o[h.charCodeAt(j)]<<18|o[h.charCodeAt(j+1)]<<12|o[h.charCodeAt(j+2)]<<6|o[h.charCodeAt(j+3)],P[I++]=g>>16&255,P[I++]=g>>8&255,P[I++]=g&255;return A===2&&(g=o[h.charCodeAt(j)]<<2|o[h.charCodeAt(j+1)]>>4,P[I++]=g&255),A===1&&(g=o[h.charCodeAt(j)]<<10|o[h.charCodeAt(j+1)]<<4|o[h.charCodeAt(j+2)]>>2,P[I++]=g>>8&255,P[I++]=g&255),P}function T(h){return n[h>>18&63]+n[h>>12&63]+n[h>>6&63]+n[h&63]}function m(h,g,y){for(var w,A=[],P=g;P<y;P+=3)w=(h[P]<<16&16711680)+(h[P+1]<<8&65280)+(h[P+2]&255),A.push(T(w));return A.join("")}function E(h){for(var g,y=h.length,w=y%3,A=[],P=16383,I=0,O=y-w;I<O;I+=P)A.push(m(h,I,I+P>O?O:I+P));return w===1?(g=h[y-1],A.push(n[g>>2]+n[g<<4&63]+"==")):w===2&&(g=(h[y-2]<<8)+h[y-1],A.push(n[g>>10]+n[g>>4&63]+n[g<<2&63]+"=")),A.join("")}var x={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */x.read=function(h,g,y,w,A){var P,I,O=A*8-w-1,j=(1<<O)-1,G=j>>1,L=-7,D=y?A-1:0,oe=y?-1:1,re=h[g+D];for(D+=oe,P=re&(1<<-L)-1,re>>=-L,L+=O;L>0;P=P*256+h[g+D],D+=oe,L-=8);for(I=P&(1<<-L)-1,P>>=-L,L+=w;L>0;I=I*256+h[g+D],D+=oe,L-=8);if(P===0)P=1-G;else{if(P===j)return I?NaN:(re?-1:1)*(1/0);I=I+Math.pow(2,w),P=P-G}return(re?-1:1)*I*Math.pow(2,P-w)},x.write=function(h,g,y,w,A,P){var I,O,j,G=P*8-A-1,L=(1<<G)-1,D=L>>1,oe=A===23?Math.pow(2,-24)-Math.pow(2,-77):0,re=w?0:P-1,he=w?1:-1,fe=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(O=isNaN(g)?1:0,I=L):(I=Math.floor(Math.log(g)/Math.LN2),g*(j=Math.pow(2,-I))<1&&(I--,j*=2),I+D>=1?g+=oe/j:g+=oe*Math.pow(2,1-D),g*j>=2&&(I++,j/=2),I+D>=L?(O=0,I=L):I+D>=1?(O=(g*j-1)*Math.pow(2,A),I=I+D):(O=g*Math.pow(2,D-1)*Math.pow(2,A),I=0));A>=8;h[y+re]=O&255,re+=he,O/=256,A-=8);for(I=I<<A|O,G+=A;G>0;h[y+re]=I&255,re+=he,I/=256,G-=8);h[y+re-he]|=fe*128};/*!
12
12
  * The buffer module from node.js, for the browser.
13
13
  *
14
14
  * @author Feross Aboukhadijeh <https://feross.org>
@@ -8,7 +8,7 @@ var a1=Object.defineProperty;var Oc=Se=>{throw TypeError(Se)};var u1=(Se,Pe,He)=
8
8
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[va]=this[va]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=Lr(a);n[u]||(ad(o,a),n[u]=!0)}return Z.isArray(t)?t.forEach(i):i(t),this}};yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Z.reduceDescriptors(yt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),Z.freezeMethods(yt);function ai(e,t){const r=this||Br,n=t||r,o=yt.from(n.headers);let i=n.data;return Z.forEach(e,function(u){i=u.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ea(e){return!!(e&&e.__CANCEL__)}function mr(e,t,r){we.call(this,e??"canceled",we.ERR_CANCELED,t,r),this.name="CanceledError"}Z.inherits(mr,we,{__CANCEL__:!0});function xa(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new we("Request failed with status code "+r.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function ud(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ld(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),s=n[i];a||(a=l),r[o]=f,n[o]=l;let c=i,d=0;for(;c!==o;)d+=r[c++],c=c%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const T=s&&l-s;return T?Math.round(d*1e3/T):void 0}}function fd(e,t){let r=0,n=1e3/t,o,i;const a=(l,s=Date.now())=>{r=s,o=null,i&&(clearTimeout(i),i=null),e.apply(null,l)};return[(...l)=>{const s=Date.now(),c=s-r;c>=n?a(l,s):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-c)))},()=>o&&a(o)]}const hn=(e,t,r=3)=>{let n=0;const o=ld(50,250);return fd(i=>{const a=i.loaded,u=i.lengthComputable?i.total:void 0,f=a-n,l=o(f),s=a<=u;n=a;const c={loaded:a,total:u,progress:u?a/u:void 0,bytes:f,rate:l||void 0,estimated:l&&u&&s?(u-a)/l:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(c)},r)},Aa=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ta=e=>(...t)=>Z.asap(()=>e(...t));var cd=ut.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ut.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ut.origin),ut.navigator&&/(msie|trident)/i.test(ut.navigator.userAgent)):()=>!0,hd=ut.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];Z.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Z.isString(n)&&a.push("path="+n),Z.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function dd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Sa(e,t,r){let n=!dd(t);return e&&(n||r==!1)?pd(e,t):t}const _a=e=>e instanceof yt?{...e}:e;function rr(e,t){t=t||{};const r={};function n(l,s,c,d){return Z.isPlainObject(l)&&Z.isPlainObject(s)?Z.merge.call({caseless:d},l,s):Z.isPlainObject(s)?Z.merge({},s):Z.isArray(s)?s.slice():s}function o(l,s,c,d){if(Z.isUndefined(s)){if(!Z.isUndefined(l))return n(void 0,l,c,d)}else return n(l,s,c,d)}function i(l,s){if(!Z.isUndefined(s))return n(void 0,s)}function a(l,s){if(Z.isUndefined(s)){if(!Z.isUndefined(l))return n(void 0,l)}else return n(void 0,s)}function u(l,s,c){if(c in t)return n(l,s);if(c in e)return n(void 0,l)}const f={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(l,s,c)=>o(_a(l),_a(s),c,!0)};return Z.forEach(Object.keys(Object.assign({},e,t)),function(s){const c=f[s]||o,d=c(e[s],t[s],s);Z.isUndefined(d)&&c!==u||(r[s]=d)}),r}var Oa=e=>{const t=rr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;t.headers=a=yt.from(a),t.url=ya(Sa(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let f;if(Z.isFormData(r)){if(ut.hasStandardBrowserEnv||ut.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((f=a.getContentType())!==!1){const[l,...s]=f?f.split(";").map(c=>c.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...s].join("; "))}}if(ut.hasStandardBrowserEnv&&(n&&Z.isFunction(n)&&(n=n(t)),n||n!==!1&&cd(t.url))){const l=o&&i&&hd.read(i);l&&a.set(o,l)}return t},gd=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=Oa(e);let i=o.data;const a=yt.from(o.headers).normalize();let{responseType:u,onUploadProgress:f,onDownloadProgress:l}=o,s,c,d,T,m;function E(){T&&T(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let x=new XMLHttpRequest;x.open(o.method.toUpperCase(),o.url,!0),x.timeout=o.timeout;function p(){if(!x)return;const g=yt.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),w={data:!u||u==="text"||u==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:g,config:e,request:x};xa(function(P){r(P),E()},function(P){n(P),E()},w),x=null}"onloadend"in x?x.onloadend=p:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(p)},x.onabort=function(){x&&(n(new we("Request aborted",we.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new we("Network Error",we.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||ba;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),n(new we(y,w.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,x)),x=null},i===void 0&&a.setContentType(null),"setRequestHeader"in x&&Z.forEach(a.toJSON(),function(y,w){x.setRequestHeader(w,y)}),Z.isUndefined(o.withCredentials)||(x.withCredentials=!!o.withCredentials),u&&u!=="json"&&(x.responseType=o.responseType),l&&([d,m]=hn(l,!0),x.addEventListener("progress",d)),f&&x.upload&&([c,T]=hn(f),x.upload.addEventListener("progress",c),x.upload.addEventListener("loadend",T)),(o.cancelToken||o.signal)&&(s=g=>{x&&(n(!g||g.type?new mr(null,e,x):g),x.abort(),x=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const h=ud(o.url);if(h&&ut.protocols.indexOf(h)===-1){n(new we("Unsupported protocol "+h+":",we.ERR_BAD_REQUEST,e));return}x.send(i||null)})};const yd=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(l){if(!o){o=!0,u();const s=l instanceof Error?l:this.reason;n.abort(s instanceof we?s:new mr(s instanceof Error?s.message:s))}};let a=t&&setTimeout(()=>{a=null,i(new we(`timeout ${t} of ms exceeded`,we.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:f}=n;return f.unsubscribe=()=>Z.asap(u),f}},md=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},bd=async function*(e,t){for await(const r of wd(e))yield*md(r,t)},wd=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Na=(e,t,r,n)=>{const o=bd(e,t);let i=0,a,u=f=>{a||(a=!0,n&&n(f))};return new ReadableStream({async pull(f){try{const{done:l,value:s}=await o.next();if(l){u(),f.close();return}let c=s.byteLength;if(r){let d=i+=c;r(d)}f.enqueue(new Uint8Array(s))}catch(l){throw u(l),l}},cancel(f){return u(f),o.return()}},{highWaterMark:2})},dn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ra=dn&&typeof ReadableStream=="function",vd=dn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ia=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ed=Ra&&Ia(()=>{let e=!1;const t=new Request(ut.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Pa=64*1024,ui=Ra&&Ia(()=>Z.isReadableStream(new Response("").body)),pn={stream:ui&&(e=>e.body)};dn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!pn[t]&&(pn[t]=Z.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new we(`Response type '${t}' is not supported`,we.ERR_NOT_SUPPORT,n)})})})(new Response);const xd=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(ut.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(e)||Z.isArrayBuffer(e))return e.byteLength;if(Z.isURLSearchParams(e)&&(e=e+""),Z.isString(e))return(await vd(e)).byteLength},Ad=async(e,t)=>{const r=Z.toFiniteNumber(e.getContentLength());return r??xd(t)};var Td=dn&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:u,onUploadProgress:f,responseType:l,headers:s,withCredentials:c="same-origin",fetchOptions:d}=Oa(e);l=l?(l+"").toLowerCase():"text";let T=yd([o,i&&i.toAbortSignal()],a),m;const E=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let x;try{if(f&&Ed&&r!=="get"&&r!=="head"&&(x=await Ad(s,n))!==0){let w=new Request(t,{method:"POST",body:n,duplex:"half"}),A;if(Z.isFormData(n)&&(A=w.headers.get("content-type"))&&s.setContentType(A),w.body){const[P,I]=Aa(x,hn(Ta(f)));n=Na(w.body,Pa,P,I)}}Z.isString(c)||(c=c?"include":"omit");const p="credentials"in Request.prototype;m=new Request(t,{...d,signal:T,method:r.toUpperCase(),headers:s.normalize().toJSON(),body:n,duplex:"half",credentials:p?c:void 0});let h=await fetch(m);const g=ui&&(l==="stream"||l==="response");if(ui&&(u||g&&E)){const w={};["status","statusText","headers"].forEach(O=>{w[O]=h[O]});const A=Z.toFiniteNumber(h.headers.get("content-length")),[P,I]=u&&Aa(A,hn(Ta(u),!0))||[];h=new Response(Na(h.body,Pa,P,()=>{I&&I(),E&&E()}),w)}l=l||"text";let y=await pn[Z.findKey(pn,l)||"text"](h,e);return!g&&E&&E(),await new Promise((w,A)=>{xa(w,A,{data:y,headers:yt.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:m})})}catch(p){throw E&&E(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new we("Network Error",we.ERR_NETWORK,e,m),{cause:p.cause||p}):we.from(p,p&&p.code,e,m)}});const li={http:Dh,xhr:gd,fetch:Td};Z.forEach(li,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Fa=e=>`- ${e}`,Sd=e=>Z.isFunction(e)||e===null||e===!1;var Ca={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let a;if(n=r,!Sd(r)&&(n=li[(a=String(r)).toLowerCase()],n===void 0))throw new we(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([u,f])=>`adapter ${u} `+(f===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
9
9
  `+i.map(Fa).join(`
10
10
  `):" "+Fa(i[0]):"as no adapter specified";throw new we("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:li};function fi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mr(null,e)}function Ba(e){return fi(e),e.headers=yt.from(e.headers),e.data=ai.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ca.getAdapter(e.adapter||Br.adapter)(e).then(function(n){return fi(e),n.data=ai.call(e,e.transformResponse,n),n.headers=yt.from(n.headers),n},function(n){return Ea(n)||(fi(e),n&&n.response&&(n.response.data=ai.call(e,e.transformResponse,n.response),n.response.headers=yt.from(n.response.headers))),Promise.reject(n)})}const La="1.8.4",gn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{gn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ua={};gn.transitional=function(t,r,n){function o(i,a){return"[Axios v"+La+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,u)=>{if(t===!1)throw new we(o(a," has been removed"+(r?" in "+r:"")),we.ERR_DEPRECATED);return r&&!Ua[a]&&(Ua[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,u):!0}},gn.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function _d(e,t,r){if(typeof e!="object")throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const u=e[i],f=u===void 0||a(u,i,e);if(f!==!0)throw new we("option "+i+" must be "+f,we.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new we("Unknown option "+i,we.ERR_BAD_OPTION)}}var yn={assertOptions:_d,validators:gn};const Ct=yn.validators;let nr=class{constructor(t){this.defaults=t,this.interceptors={request:new ma,response:new ma}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
11
- `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=rr(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&yn.assertOptions(n,{silentJSONParsing:Ct.transitional(Ct.boolean),forcedJSONParsing:Ct.transitional(Ct.boolean),clarifyTimeoutError:Ct.transitional(Ct.boolean)},!1),o!=null&&(Z.isFunction(o)?r.paramsSerializer={serialize:o}:yn.assertOptions(o,{encode:Ct.function,serialize:Ct.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),yn.assertOptions(r,{baseUrl:Ct.spelling("baseURL"),withXsrfToken:Ct.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&Z.merge(i.common,i[r.method]);i&&Z.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=yt.concat(a,i);const u=[];let f=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(r)===!1||(f=f&&E.synchronous,u.unshift(E.fulfilled,E.rejected))});const l=[];this.interceptors.response.forEach(function(E){l.push(E.fulfilled,E.rejected)});let s,c=0,d;if(!f){const m=[Ba.bind(this),void 0];for(m.unshift.apply(m,u),m.push.apply(m,l),d=m.length,s=Promise.resolve(r);c<d;)s=s.then(m[c++],m[c++]);return s}d=u.length;let T=r;for(c=0;c<d;){const m=u[c++],E=u[c++];try{T=m(T)}catch(x){E.call(this,x);break}}try{s=Ba.call(this,T)}catch(m){return Promise.reject(m)}for(c=0,d=l.length;c<d;)s=s.then(l[c++],l[c++]);return s}getUri(t){t=rr(this.defaults,t);const r=Sa(t.baseURL,t.url,t.allowAbsoluteUrls);return ya(r,t.params,t.paramsSerializer)}};Z.forEach(["delete","get","head","options"],function(t){nr.prototype[t]=function(r,n){return this.request(rr(n||{},{method:t,url:r,data:(n||{}).data}))}}),Z.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,u){return this.request(rr(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}nr.prototype[t]=r(),nr.prototype[t+"Form"]=r(!0)});let Od=class Bc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(u=>{n.subscribe(u),i=u}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,u){n.reason||(n.reason=new mr(i,a,u),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Bc(function(o){t=o}),cancel:t}}};function Nd(e){return function(r){return e.apply(null,r)}}function Rd(e){return Z.isObject(e)&&e.isAxiosError===!0}const ci={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ci).forEach(([e,t])=>{ci[t]=e});function ja(e){const t=new nr(e),r=ea(nr.prototype.request,t);return Z.extend(r,nr.prototype,t,{allOwnKeys:!0}),Z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return ja(rr(e,o))},r}const Ye=ja(Br);Ye.Axios=nr,Ye.CanceledError=mr,Ye.CancelToken=Od,Ye.isCancel=Ea,Ye.VERSION=La,Ye.toFormData=fn,Ye.AxiosError=we,Ye.Cancel=Ye.CanceledError,Ye.all=function(t){return Promise.all(t)},Ye.spread=Nd,Ye.isAxiosError=Rd,Ye.mergeConfig=rr,Ye.AxiosHeaders=yt,Ye.formToJSON=e=>wa(Z.isHTMLForm(e)?new FormData(e):e),Ye.getAdapter=Ca.getAdapter,Ye.HttpStatusCode=ci,Ye.default=Ye;const{Axios:f1,AxiosError:c1,CanceledError:h1,isCancel:d1,CancelToken:p1,VERSION:g1,all:y1,Cancel:m1,isAxiosError:b1,spread:w1,toFormData:v1,AxiosHeaders:E1,HttpStatusCode:x1,formToJSON:A1,getAdapter:T1,mergeConfig:S1}=Ye,mn=e=>encodeURIComponent(e).split("%2F").join("/"),Id=/^(\w+:\/\/[^/?]+)?(.*?)$/,Pd=e=>e.filter(t=>typeof t=="string"||typeof t=="number").map(t=>`${t}`).filter(t=>t),Fd=e=>{const t=e.join("/"),[,r="",n=""]=t.match(Id)||[];return{prefix:r,pathname:{parts:n.split("/").filter(o=>o!==""),hasLeading:/^\/+/.test(n),hasTrailing:/\/+$/.test(n)}}},Cd=(e,t)=>{const{prefix:r,pathname:n}=e,{parts:o,hasLeading:i,hasTrailing:a}=n,{leadingSlash:u,trailingSlash:f}=t,l=u===!0||u==="keep"&&i,s=f===!0||f==="keep"&&a;let c=r;return o.length>0&&((c||l)&&(c+="/"),c+=o.join("/")),s&&(c+="/"),!c&&l&&(c+="/"),c},_e=(...e)=>{const t=e[e.length-1];let r;t&&typeof t=="object"&&(r=t,e=e.slice(0,-1)),r={leadingSlash:!0,trailingSlash:!1,...r},e=Pd(e);const n=Fd(e);return Cd(n,r)};class Ma extends Error{constructor(r,n,o=null){super(r);ye(this,"response");ye(this,"statusCode");this.response=n,this.statusCode=o}}class Bd extends Ma{constructor(r,n,o,i=null){super(r,o,i);ye(this,"errorCode");this.errorCode=n}}function Ld(e,t=""){return`/public-files/${e}/${t}`.split("/").filter(Boolean).join("/")}function Ud(e,t=""){return`/ocm/${e}/${t}`.split("/").filter(Boolean).join("/")}var hi,ka;function jd(){if(ka)return hi;ka=1;function e(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function t(o,i){for(var a="",u=0,f=-1,l=0,s,c=0;c<=o.length;++c){if(c<o.length)s=o.charCodeAt(c);else{if(s===47)break;s=47}if(s===47){if(!(f===c-1||l===1))if(f!==c-1&&l===2){if(a.length<2||u!==2||a.charCodeAt(a.length-1)!==46||a.charCodeAt(a.length-2)!==46){if(a.length>2){var d=a.lastIndexOf("/");if(d!==a.length-1){d===-1?(a="",u=0):(a=a.slice(0,d),u=a.length-1-a.lastIndexOf("/")),f=c,l=0;continue}}else if(a.length===2||a.length===1){a="",u=0,f=c,l=0;continue}}i&&(a.length>0?a+="/..":a="..",u=2)}else a.length>0?a+="/"+o.slice(f+1,c):a=o.slice(f+1,c),u=c-f-1;f=c,l=0}else s===46&&l!==-1?++l:l=-1}return a}function r(o,i){var a=i.dir||i.root,u=i.base||(i.name||"")+(i.ext||"");return a?a===i.root?a+u:a+o+u:u}var n={resolve:function(){for(var i="",a=!1,u,f=arguments.length-1;f>=-1&&!a;f--){var l;f>=0?l=arguments[f]:(u===void 0&&(u=me.cwd()),l=u),e(l),l.length!==0&&(i=l+"/"+i,a=l.charCodeAt(0)===47)}return i=t(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(e(i),i.length===0)return".";var a=i.charCodeAt(0)===47,u=i.charCodeAt(i.length-1)===47;return i=t(i,!a),i.length===0&&!a&&(i="."),i.length>0&&u&&(i+="/"),a?"/"+i:i},isAbsolute:function(i){return e(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,a=0;a<arguments.length;++a){var u=arguments[a];e(u),u.length>0&&(i===void 0?i=u:i+="/"+u)}return i===void 0?".":n.normalize(i)},relative:function(i,a){if(e(i),e(a),i===a||(i=n.resolve(i),a=n.resolve(a),i===a))return"";for(var u=1;u<i.length&&i.charCodeAt(u)===47;++u);for(var f=i.length,l=f-u,s=1;s<a.length&&a.charCodeAt(s)===47;++s);for(var c=a.length,d=c-s,T=l<d?l:d,m=-1,E=0;E<=T;++E){if(E===T){if(d>T){if(a.charCodeAt(s+E)===47)return a.slice(s+E+1);if(E===0)return a.slice(s+E)}else l>T&&(i.charCodeAt(u+E)===47?m=E:E===0&&(m=0));break}var x=i.charCodeAt(u+E),p=a.charCodeAt(s+E);if(x!==p)break;x===47&&(m=E)}var h="";for(E=u+m+1;E<=f;++E)(E===f||i.charCodeAt(E)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+a.slice(s+m):(s+=m,a.charCodeAt(s)===47&&++s,a.slice(s))},_makeLong:function(i){return i},dirname:function(i){if(e(i),i.length===0)return".";for(var a=i.charCodeAt(0),u=a===47,f=-1,l=!0,s=i.length-1;s>=1;--s)if(a=i.charCodeAt(s),a===47){if(!l){f=s;break}}else l=!1;return f===-1?u?"/":".":u&&f===1?"//":i.slice(0,f)},basename:function(i,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');e(i);var u=0,f=-1,l=!0,s;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var c=a.length-1,d=-1;for(s=i.length-1;s>=0;--s){var T=i.charCodeAt(s);if(T===47){if(!l){u=s+1;break}}else d===-1&&(l=!1,d=s+1),c>=0&&(T===a.charCodeAt(c)?--c===-1&&(f=s):(c=-1,f=d))}return u===f?f=d:f===-1&&(f=i.length),i.slice(u,f)}else{for(s=i.length-1;s>=0;--s)if(i.charCodeAt(s)===47){if(!l){u=s+1;break}}else f===-1&&(l=!1,f=s+1);return f===-1?"":i.slice(u,f)}},extname:function(i){e(i);for(var a=-1,u=0,f=-1,l=!0,s=0,c=i.length-1;c>=0;--c){var d=i.charCodeAt(c);if(d===47){if(!l){u=c+1;break}continue}f===-1&&(l=!1,f=c+1),d===46?a===-1?a=c:s!==1&&(s=1):a!==-1&&(s=-1)}return a===-1||f===-1||s===0||s===1&&a===f-1&&a===u+1?"":i.slice(a,f)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return r("/",i)},parse:function(i){e(i);var a={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return a;var u=i.charCodeAt(0),f=u===47,l;f?(a.root="/",l=1):l=0;for(var s=-1,c=0,d=-1,T=!0,m=i.length-1,E=0;m>=l;--m){if(u=i.charCodeAt(m),u===47){if(!T){c=m+1;break}continue}d===-1&&(T=!1,d=m+1),u===46?s===-1?s=m:E!==1&&(E=1):s!==-1&&(E=-1)}return s===-1||d===-1||E===0||E===1&&s===d-1&&s===c+1?d!==-1&&(c===0&&f?a.base=a.name=i.slice(1,d):a.base=a.name=i.slice(c,d)):(c===0&&f?(a.name=i.slice(1,s),a.base=i.slice(1,d)):(a.name=i.slice(c,s),a.base=i.slice(c,d)),a.ext=i.slice(s,d)),c>0?a.dir=i.slice(0,c-1):f&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,hi=n,hi}var Da=jd(),$a=Pe(Da);class Ge{}ye(Ge,"Shared","S"),ye(Ge,"Shareable","R"),ye(Ge,"Mounted","M"),ye(Ge,"Deletable","D"),ye(Ge,"Renameable","N"),ye(Ge,"Moveable","V"),ye(Ge,"Updateable","NV"),ye(Ge,"FileUpdateable","W"),ye(Ge,"FolderCreateable","CK"),ye(Ge,"Deny","Z"),ye(Ge,"SecureView","X");var kt=(e=>(e.copy="COPY",e.delete="DELETE",e.lock="LOCK",e.mkcol="MKCOL",e.move="MOVE",e.propfind="PROPFIND",e.proppatch="PROPPATCH",e.put="PUT",e.report="REPORT",e.unlock="UNLOCK",e))(kt||{});const bn=e=>({value:e,type:null}),Md=e=>bn(e),Fe=e=>bn(e),di=e=>bn(e),kd=e=>bn(e),Dd={Permissions:Fe("permissions"),IsFavorite:di("favorite"),FileId:Fe("fileid"),FileParent:Fe("file-parent"),Name:Fe("name"),OwnerId:Fe("owner-id"),OwnerDisplayName:Fe("owner-display-name"),PrivateLink:Fe("privatelink"),ContentLength:di("getcontentlength"),ContentSize:di("size"),LastModifiedDate:Fe("getlastmodified"),Tags:Md("tags"),Audio:{value:"audio",type:null},Location:{value:"location",type:null},Image:{value:"image",type:null},Photo:{value:"photo",type:null},ETag:Fe("getetag"),MimeType:Fe("getcontenttype"),ResourceType:kd("resourcetype"),LockDiscovery:{value:"lockdiscovery",type:null},LockOwner:Fe("owner"),LockTime:Fe("locktime"),ActiveLock:{value:"activelock",type:null},DownloadURL:Fe("downloadURL"),Highlights:Fe("highlights"),MetaPathForUser:Fe("meta-path-for-user"),RemoteItemId:Fe("remote-item-id"),ShareId:Fe("shareid"),ShareRoot:Fe("shareroot"),ShareTypes:{value:"share-types",type:null},SharePermissions:Fe("share-permissions"),TrashbinOriginalFilename:Fe("trashbin-original-filename"),TrashbinOriginalLocation:Fe("trashbin-original-location"),TrashbinDeletedDate:Fe("trashbin-delete-datetime"),PublicLinkItemType:Fe("public-link-item-type"),PublicLinkPermission:Fe("public-link-permission"),PublicLinkExpiration:Fe("public-link-expiration"),PublicLinkShareDate:Fe("public-link-share-datetime"),PublicLinkShareOwner:Fe("public-link-share-owner")},ae=Object.fromEntries(Object.entries(Dd).map(([e,t])=>[e,t.value])),lr=class lr{};ye(lr,"Default",[ae.Permissions,ae.IsFavorite,ae.FileId,ae.FileParent,ae.Name,ae.LockDiscovery,ae.ActiveLock,ae.OwnerId,ae.OwnerDisplayName,ae.RemoteItemId,ae.ShareRoot,ae.ShareTypes,ae.PrivateLink,ae.ContentLength,ae.ContentSize,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.DownloadURL,ae.Tags,ae.Audio,ae.Location,ae.Image,ae.Photo]),ye(lr,"PublicLink",lr.Default.concat([ae.PublicLinkItemType,ae.PublicLinkPermission,ae.PublicLinkExpiration,ae.PublicLinkShareDate,ae.PublicLinkShareOwner])),ye(lr,"Trashbin",[ae.ContentLength,ae.ResourceType,ae.TrashbinOriginalLocation,ae.TrashbinOriginalFilename,ae.TrashbinDeletedDate,ae.Permissions,ae.FileParent]),ye(lr,"DavNamespace",[ae.ContentLength,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.LockDiscovery,ae.ActiveLock]);let ir=lr;var $d=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,qd=typeof self=="object"&&self&&self.Object===Object&&self,pi=$d||qd||Function("return this")(),br=pi.Symbol,qa=Object.prototype,Hd=qa.hasOwnProperty,Vd=qa.toString,Ur=br?br.toStringTag:void 0;function Wd(e){var t=Hd.call(e,Ur),r=e[Ur];try{e[Ur]=void 0;var n=!0}catch{}var o=Vd.call(e);return n&&(t?e[Ur]=r:delete e[Ur]),o}var Gd=Object.prototype,Kd=Gd.toString;function zd(e){return Kd.call(e)}var Xd="[object Null]",Yd="[object Undefined]",Ha=br?br.toStringTag:void 0;function Va(e){return e==null?e===void 0?Yd:Xd:Ha&&Ha in Object(e)?Wd(e):zd(e)}function Jd(e){return e!=null&&typeof e=="object"}var Zd="[object Symbol]";function gi(e){return typeof e=="symbol"||Jd(e)&&Va(e)==Zd}function Qd(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var yi=Array.isArray,Wa=br?br.prototype:void 0,Ga=Wa?Wa.toString:void 0;function Ka(e){if(typeof e=="string")return e;if(yi(e))return Qd(e,Ka)+"";if(gi(e))return Ga?Ga.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function za(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ep="[object AsyncFunction]",tp="[object Function]",rp="[object GeneratorFunction]",np="[object Proxy]";function ip(e){if(!za(e))return!1;var t=Va(e);return t==tp||t==rp||t==ep||t==np}var mi=pi["__core-js_shared__"],Xa=function(){var e=/[^.]+$/.exec(mi&&mi.keys&&mi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function op(e){return!!Xa&&Xa in e}var sp=Function.prototype,ap=sp.toString;function up(e){if(e!=null){try{return ap.call(e)}catch{}try{return e+""}catch{}}return""}var lp=/[\\^$.*+?()[\]{}|]/g,fp=/^\[object .+?Constructor\]$/,cp=Function.prototype,hp=Object.prototype,dp=cp.toString,pp=hp.hasOwnProperty,gp=RegExp("^"+dp.call(pp).replace(lp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yp(e){if(!za(e)||op(e))return!1;var t=ip(e)?gp:fp;return t.test(up(e))}function mp(e,t){return e==null?void 0:e[t]}function Ya(e,t){var r=mp(e,t);return yp(r)?r:void 0}function bp(e,t){return e===t||e!==e&&t!==t}var wp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vp=/^\w*$/;function Ep(e,t){if(yi(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||gi(e)?!0:vp.test(e)||!wp.test(e)||t!=null&&e in Object(t)}var jr=Ya(Object,"create");function xp(){this.__data__=jr?jr(null):{},this.size=0}function Ap(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Tp="__lodash_hash_undefined__",Sp=Object.prototype,_p=Sp.hasOwnProperty;function Op(e){var t=this.__data__;if(jr){var r=t[e];return r===Tp?void 0:r}return _p.call(t,e)?t[e]:void 0}var Np=Object.prototype,Rp=Np.hasOwnProperty;function Ip(e){var t=this.__data__;return jr?t[e]!==void 0:Rp.call(t,e)}var Pp="__lodash_hash_undefined__";function Fp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=jr&&t===void 0?Pp:t,this}function or(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}or.prototype.clear=xp,or.prototype.delete=Ap,or.prototype.get=Op,or.prototype.has=Ip,or.prototype.set=Fp;function Cp(){this.__data__=[],this.size=0}function wn(e,t){for(var r=e.length;r--;)if(bp(e[r][0],t))return r;return-1}var Bp=Array.prototype,Lp=Bp.splice;function Up(e){var t=this.__data__,r=wn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Lp.call(t,r,1),--this.size,!0}function jp(e){var t=this.__data__,r=wn(t,e);return r<0?void 0:t[r][1]}function Mp(e){return wn(this.__data__,e)>-1}function kp(e,t){var r=this.__data__,n=wn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function wr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}wr.prototype.clear=Cp,wr.prototype.delete=Up,wr.prototype.get=jp,wr.prototype.has=Mp,wr.prototype.set=kp;var Dp=Ya(pi,"Map");function $p(){this.size=0,this.__data__={hash:new or,map:new(Dp||wr),string:new or}}function qp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function vn(e,t){var r=e.__data__;return qp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Hp(e){var t=vn(this,e).delete(e);return this.size-=t?1:0,t}function Vp(e){return vn(this,e).get(e)}function Wp(e){return vn(this,e).has(e)}function Gp(e,t){var r=vn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function sr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}sr.prototype.clear=$p,sr.prototype.delete=Hp,sr.prototype.get=Vp,sr.prototype.has=Wp,sr.prototype.set=Gp;var Kp="Expected a function";function bi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Kp);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(bi.Cache||sr),r}bi.Cache=sr;var zp=500;function Xp(e){var t=bi(e,function(n){return r.size===zp&&r.clear(),n}),r=t.cache;return t}var Yp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jp=/\\(\\)?/g,Zp=Xp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Yp,function(r,n,o,i){t.push(o?i.replace(Jp,"$1"):n||r)}),t});function Mr(e){return e==null?"":Ka(e)}function Qp(e,t){return yi(e)?e:Ep(e,t)?[e]:Zp(Mr(e))}function eg(e){if(typeof e=="string"||gi(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function tg(e,t){t=Qp(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[eg(t[r++])];return r&&r==n?e:void 0}function rg(e,t,r){var n=e==null?void 0:tg(e,t);return n===void 0?r:n}function ng(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}function ig(e,t,r){var n=e.length;return r=r===void 0?n:r,ng(e,t,r)}var og="\\ud800-\\udfff",sg="\\u0300-\\u036f",ag="\\ufe20-\\ufe2f",ug="\\u20d0-\\u20ff",lg=sg+ag+ug,fg="\\ufe0e\\ufe0f",cg="\\u200d",hg=RegExp("["+cg+og+lg+fg+"]");function Ja(e){return hg.test(e)}function dg(e){return e.split("")}var Za="\\ud800-\\udfff",pg="\\u0300-\\u036f",gg="\\ufe20-\\ufe2f",yg="\\u20d0-\\u20ff",mg=pg+gg+yg,bg="\\ufe0e\\ufe0f",wg="["+Za+"]",wi="["+mg+"]",vi="\\ud83c[\\udffb-\\udfff]",vg="(?:"+wi+"|"+vi+")",Qa="[^"+Za+"]",eu="(?:\\ud83c[\\udde6-\\uddff]){2}",tu="[\\ud800-\\udbff][\\udc00-\\udfff]",Eg="\\u200d",ru=vg+"?",nu="["+bg+"]?",xg="(?:"+Eg+"(?:"+[Qa,eu,tu].join("|")+")"+nu+ru+")*",Ag=nu+ru+xg,Tg="(?:"+[Qa+wi+"?",wi,eu,tu,wg].join("|")+")",Sg=RegExp(vi+"(?="+vi+")|"+Tg+Ag,"g");function _g(e){return e.match(Sg)||[]}function Og(e){return Ja(e)?_g(e):dg(e)}function Ng(e){return function(t){t=Mr(t);var r=Ja(t)?Og(t):void 0,n=r?r[0]:t.charAt(0),o=r?ig(r,1).join(""):t.slice(1);return n[e]()+o}}var Rg=Ng("toUpperCase");function Ig(e){return Rg(Mr(e).toLowerCase())}function Pg(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;)r=t(r,e[o],o,e);return r}function Fg(e){return function(t){return e==null?void 0:e[t]}}var Cg={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Bg=Fg(Cg),Lg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ug="\\u0300-\\u036f",jg="\\ufe20-\\ufe2f",Mg="\\u20d0-\\u20ff",kg=Ug+jg+Mg,Dg="["+kg+"]",$g=RegExp(Dg,"g");function qg(e){return e=Mr(e),e&&e.replace(Lg,Bg).replace($g,"")}var Hg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Vg(e){return e.match(Hg)||[]}var Wg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Gg(e){return Wg.test(e)}var iu="\\ud800-\\udfff",Kg="\\u0300-\\u036f",zg="\\ufe20-\\ufe2f",Xg="\\u20d0-\\u20ff",Yg=Kg+zg+Xg,ou="\\u2700-\\u27bf",su="a-z\\xdf-\\xf6\\xf8-\\xff",Jg="\\xac\\xb1\\xd7\\xf7",Zg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Qg="\\u2000-\\u206f",e0=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",au="A-Z\\xc0-\\xd6\\xd8-\\xde",t0="\\ufe0e\\ufe0f",uu=Jg+Zg+Qg+e0,lu="['’]",fu="["+uu+"]",r0="["+Yg+"]",cu="\\d+",n0="["+ou+"]",hu="["+su+"]",du="[^"+iu+uu+cu+ou+su+au+"]",i0="\\ud83c[\\udffb-\\udfff]",o0="(?:"+r0+"|"+i0+")",s0="[^"+iu+"]",pu="(?:\\ud83c[\\udde6-\\uddff]){2}",gu="[\\ud800-\\udbff][\\udc00-\\udfff]",vr="["+au+"]",a0="\\u200d",yu="(?:"+hu+"|"+du+")",u0="(?:"+vr+"|"+du+")",mu="(?:"+lu+"(?:d|ll|m|re|s|t|ve))?",bu="(?:"+lu+"(?:D|LL|M|RE|S|T|VE))?",wu=o0+"?",vu="["+t0+"]?",l0="(?:"+a0+"(?:"+[s0,pu,gu].join("|")+")"+vu+wu+")*",f0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",c0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",h0=vu+wu+l0,d0="(?:"+[n0,pu,gu].join("|")+")"+h0,p0=RegExp([vr+"?"+hu+"+"+mu+"(?="+[fu,vr,"$"].join("|")+")",u0+"+"+bu+"(?="+[fu,vr+yu,"$"].join("|")+")",vr+"?"+yu+"+"+mu,vr+"+"+bu,c0,f0,cu,d0].join("|"),"g");function g0(e){return e.match(p0)||[]}function y0(e,t,r){return e=Mr(e),t=t,t===void 0?Gg(e)?g0(e):Vg(e):e.match(t)||[]}var m0="['’]",b0=RegExp(m0,"g");function w0(e){return function(t){return Pg(y0(qg(t).replace(b0,"")),e,"")}}var v0=w0(function(e,t,r){return t=t.toLowerCase(),e+(r?Ig(t):t)});const E0={complex:["tar.bz2","tar.gz","tar.xz"]},Ei=e=>e.replace(/[^A-Za-z0-9\-_]/g,""),Eu=(e,t)=>!e||typeof e!="string"?"":e.indexOf("!")>=0?e.split("!")[t]:"",x0=e=>Eu(e,0),xu=e=>Eu(e,1),Au=e=>{const t=e.name;if(e.type==="directory"||e.isFolder)return"";const r=t.split(".");if(r.length>2)for(let n=0;n<r.length;n++){const o=r.slice(n,r.length).join(".");if(E0.complex.includes(o))return o}return r.length<2?"":r[r.length-1]},En=e=>{if(!e)return e;const t={};return Object.keys(e).forEach(r=>{t[v0(r)]=e[r]}),t};function Er(e,t=[]){var m,E,x;const r=((m=e.props[ae.Name])==null?void 0:m.toString())||Da.basename(e.filename),n=e.props[ae.FileId],o=e.type==="directory";let i;e.filename.startsWith("/files")||e.filename.startsWith("/space")?i=e.filename.split("/").slice(3).join("/"):i=e.filename,i.startsWith("/")||(i=`/${i}`);const a=Au({...e,name:r}),u=e.props[ae.LockDiscovery];let f,l,s;u&&(f=u[ae.ActiveLock],l=f[ae.LockOwner],s=f[ae.LockTime]);let c=[];e.props[ae.ShareTypes]&&(c=e.props[ae.ShareTypes]["share-type"],Array.isArray(c)||(c=[c]));const d={};for(const p of t||[]){const h=p.split(":").pop();e.props[h]&&(d[p]=e.props[h])}const T={id:n,fileId:n,storageId:x0(n),parentFolderId:e.props[ae.FileParent],mimeType:e.props[ae.MimeType],name:r,extension:o?"":a,path:i,webDavPath:e.filename,type:o?"folder":e.type,isFolder:o,locked:!!f,lockOwner:l,lockTime:s,processing:e.processing||!1,mdate:e.props[ae.LastModifiedDate],size:o?((E=e.props[ae.ContentSize])==null?void 0:E.toString())||"0":((x=e.props[ae.ContentLength])==null?void 0:x.toString())||"0",indicators:[],permissions:e.props[ae.Permissions]||"",starred:e.props[ae.IsFavorite]!==0,etag:e.props[ae.ETag],shareTypes:c,privateLink:e.props[ae.PrivateLink],downloadURL:e.props[ae.DownloadURL],remoteItemId:e.props[ae.RemoteItemId],remoteItemPath:e.props[ae.ShareRoot],owner:{id:e.props[ae.OwnerId],displayName:e.props[ae.OwnerDisplayName]},tags:(e.props[ae.Tags]||"").toString().split(",").filter(Boolean),audio:En(e.props[ae.Audio]),location:En(e.props[ae.Location]),image:En(e.props[ae.Image]),photo:En(e.props[ae.Photo]),extraProps:d,canUpload:function(){return this.permissions.indexOf(Ge.FolderCreateable)>=0},canDownload:function(){return this.permissions.indexOf(Ge.SecureView)===-1},canBeDeleted:function(){return this.permissions.indexOf(Ge.Deletable)>=0},canRename:function(){return this.permissions.indexOf(Ge.Renameable)>=0},canShare:function({ability:p}){return p.can("create-all","Share")&&this.permissions.indexOf(Ge.Shareable)>=0},canCreate:function(){return this.permissions.indexOf(Ge.FolderCreateable)>=0},canEditTags:function(){return this.permissions.indexOf(Ge.Updateable)>=0||this.permissions.indexOf(Ge.FileUpdateable)>=0},isMounted:function(){return this.permissions.indexOf(Ge.Mounted)>=0},isReceivedShare:function(){return this.permissions.indexOf(Ge.Shared)>=0},isShareRoot(){return e.props[ae.ShareRoot]?e.filename.split("/").length===3:!1},canDeny:function(){return this.permissions.indexOf(Ge.Deny)>=0},getDomSelector:()=>Ei(n)};return Object.defineProperty(T,"nodeId",{get(){return xu(this.id)}}),T}function A0(e){var i;const t=e.type==="directory",r=(i=e.props[ae.TrashbinOriginalFilename])==null?void 0:i.toString(),n=Au({name:r,type:e.type}),o=$a.basename(e.filename);return{type:t?"folder":e.type,isFolder:t,ddate:e.props[ae.TrashbinDeletedDate],name:$a.basename(r),extension:n,path:_e(e.props[ae.TrashbinOriginalLocation],{leadingSlash:!0}),id:o,parentFolderId:e.props[ae.FileParent],indicators:[],webDavPath:"",canUpload:()=>!1,canDownload:()=>!1,canBeDeleted:()=>!0,canBeRestored:function(){return!0},canRename:()=>!1,canShare:()=>!1,canCreate:()=>!1,isMounted:()=>!1,isReceivedShare:()=>!1,getDomSelector:()=>Ei(o)}}var bt=(e=>(e.createUpload="libre.graph/driveItem/upload/create",e.createPermissions="libre.graph/driveItem/permissions/create",e.createChildren="libre.graph/driveItem/children/create",e.readBasic="libre.graph/driveItem/basic/read",e.readPath="libre.graph/driveItem/path/read",e.readQuota="libre.graph/driveItem/quota/read",e.readContent="libre.graph/driveItem/content/read",e.readChildren="libre.graph/driveItem/children/read",e.readDeleted="libre.graph/driveItem/deleted/read",e.readPermissions="libre.graph/driveItem/permissions/read",e.readVersions="libre.graph/driveItem/versions/read",e.updatePath="libre.graph/driveItem/path/update",e.updateDeleted="libre.graph/driveItem/deleted/update",e.updatePermissions="libre.graph/driveItem/permissions/update",e.updateVersions="libre.graph/driveItem/versions/update",e.deleteStandard="libre.graph/driveItem/standard/delete",e.deleteDeleted="libre.graph/driveItem/deleted/delete",e.deletePermissions="libre.graph/driveItem/permissions/delete",e))(bt||{});const Tu=e=>(e==null?void 0:e.driveType)==="personal",xn=e=>(e==null?void 0:e.driveType)==="public";function T0(e,t){return _e("spaces",e,t,{leadingSlash:!0})}function xi(e,t=""){return _e("spaces","trash-bin",e,t,{leadingSlash:!0})}function S0(e){var c,d,T,m,E,x;const t=e.publicLinkPassword,r=(c=e.props)==null?void 0:c[ae.FileId],n=(d=e.props)==null?void 0:d[ae.PublicLinkItemType],o=(T=e.props)==null?void 0:T[ae.PublicLinkPermission],i=(m=e.props)==null?void 0:m[ae.PublicLinkExpiration],a=(E=e.props)==null?void 0:E[ae.PublicLinkShareDate],u=(x=e.props)==null?void 0:x[ae.PublicLinkShareOwner],f=e.publicLinkType;let l,s;return f==="ocm"?(l=`ocm/${e.id}`,s=Ud(e.id)):(l=`public/${e.id}`,s=Ld(e.id)),Object.assign(_0({...e,driveType:"public",driveAlias:l,webDavPath:s},{}),{...r&&{fileId:r},...t&&{publicLinkPassword:t},...n&&{publicLinkItemType:n},...o&&{publicLinkPermission:parseInt(o)},...i&&{publicLinkExpiration:i},...a&&{publicLinkShareDate:a},...u&&{publicLinkShareOwner:u},publicLinkType:f})}function _0(e,t){var c,d,T,m,E,x;let r,n;e.special&&(r=e.special.find(p=>p.specialFolder.name==="image"),n=e.special.find(p=>p.specialFolder.name==="readme"),r&&(r.webDavUrl=decodeURI(r.webDavUrl)),n&&(n.webDavUrl=decodeURI(n.webDavUrl)));const o=((d=(c=e.root)==null?void 0:c.deleted)==null?void 0:d.state)==="trashed",i=_e(e.webDavPath||T0(e.id),{leadingSlash:!0}),a=_e(e.serverUrl,"remote.php/dav",i),u=_e(e.webDavTrashPath||xi(e.id),{leadingSlash:!0}),f=_e(e.serverUrl,"remote.php/dav",u),l=(m=(T=e.root)==null?void 0:T.permissions)==null?void 0:m.reduce((p,h)=>{var g;return p[(h.grantedToV2.user||h.grantedToV2.group).id]={grantedTo:h.grantedToV2,permissions:O0(h,t),roleId:(g=h.roles)==null?void 0:g[0]},p},{}),s={id:e.id,fileId:e.id,storageId:e.id,mimeType:"",name:e.name,description:e.description,extension:"",path:"/",webDavPath:i,webDavTrashPath:u,driveAlias:e.driveAlias,driveType:e.driveType,type:"space",isFolder:!0,mdate:e.lastModifiedDateTime,size:((E=e.quota)==null?void 0:E.used)||0,indicators:[],tags:[],permissions:"",starred:!1,etag:"",shareTypes:[],privateLink:e.webUrl,downloadURL:"",owner:(x=e.owner)==null?void 0:x.user,disabled:o,root:e.root,spaceQuota:e.quota,members:l||{},spaceImageData:r,spaceReadmeData:n,canUpload:function({user:p}={}){return Tu(this)&&this.isOwner(p)?!0:vt(this,p).includes(bt.createUpload)},canDownload:function(){return!0},canBeDeleted:function({user:p,ability:h}={}){return this.disabled?h!=null&&h.can("delete-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions):!1},canRename:function({user:p,ability:h}={}){return h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canEditDescription:function({user:p,ability:h}={}){return h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canRestore:function({user:p,ability:h}={}){return this.disabled?h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions):!1},canDisable:function({user:p,ability:h}={}){return this.disabled?!1:h!=null&&h.can("delete-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canShare:function({user:p}={}){return vt(this,p).includes(bt.createPermissions)},canEditImage:function({user:p}={}){return this.disabled?!1:vt(this,p).includes(bt.deletePermissions)},canEditReadme:function({user:p}={}){return this.disabled?!1:vt(this,p).includes(bt.deletePermissions)},canRestoreFromTrashbin:function({user:p}={}){return vt(this,p).includes(bt.updateDeleted)},canDeleteFromTrashBin:function({user:p}={}){return vt(this,p).includes(bt.deletePermissions)},canListVersions:function({user:p}={}){return Tu(this)&&this.isOwner(p)?!0:vt(this,p).includes(bt.readVersions)},canCreate:function(){return!0},canEditTags:function(){return!1},isMounted:function(){return!0},isReceivedShare:function(){return!1},isShareRoot:function(){return["share","mountpoint","public"].includes(e.driveType)},canDeny:()=>!1,getDomSelector:()=>Ei(e.id),getDriveAliasAndItem({path:p}){return _e(this.driveAlias,p,{leadingSlash:!1})},getWebDavUrl({path:p}){return _e(a,p)},getWebDavTrashUrl({path:p}){return _e(f,p)},isMember(p){var h;return xn(this)?!1:this.isOwner(p)||this.members[p.id]?!0:(h=p.memberOf)==null?void 0:h.some(g=>!!this.members[g.id])},isOwner(p){var h;return(p==null?void 0:p.id)===((h=this.owner)==null?void 0:h.id)}};return Object.defineProperty(s,"nodeId",{get(){return xu(this.id)}}),s}function vt(e,t){var o;const r=[];if(!t)return r;const n=e.members[t.id];return n&&r.push(...n.permissions),(o=t.memberOf)==null||o.forEach(i=>{const a=e.members[i.id];a&&r.push(...a.permissions)}),[...new Set(r)]}function O0(e,t){var n;if(e["@libre.graph.permissions.actions"])return e["@libre.graph.permissions.actions"];const r=t[(n=e.roles)==null?void 0:n[0]];if(r){const o=r.rolePermissions.find(({condition:i})=>i==="exists @Resource.Root");return(o==null?void 0:o.allowedResourceActions)||[]}return[]}const N0=(e,t)=>{const r=new URL(e);r.pathname=[...r.pathname.split("/"),"cloud","capabilities"].filter(Boolean).join("/"),r.searchParams.append("format","json");const n=r.href;return{async getCapabilities(){const o=await t.get(n);return rg(o,"data.ocs.data",{capabilities:null,version:null})}}};var Ai={},An={exports:{}},Su;function Ti(){if(Su)return An.exports;Su=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(w,A,P){return Function.prototype.apply.call(w,A,P)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(w){return Object.getOwnPropertyNames(w).concat(Object.getOwnPropertySymbols(w))}:r=function(w){return Object.getOwnPropertyNames(w)};function n(y){console&&console.warn&&console.warn(y)}var o=Number.isNaN||function(w){return w!==w};function i(){i.init.call(this)}An.exports=i,An.exports.once=p,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(y){if(typeof y!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof y)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(y){if(typeof y!="number"||y<0||o(y))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+y+".");a=y}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(w){if(typeof w!="number"||w<0||o(w))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+w+".");return this._maxListeners=w,this};function f(y){return y._maxListeners===void 0?i.defaultMaxListeners:y._maxListeners}i.prototype.getMaxListeners=function(){return f(this)},i.prototype.emit=function(w){for(var A=[],P=1;P<arguments.length;P++)A.push(arguments[P]);var I=w==="error",O=this._events;if(O!==void 0)I=I&&O.error===void 0;else if(!I)return!1;if(I){var j;if(A.length>0&&(j=A[0]),j instanceof Error)throw j;var G=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw G.context=j,G}var L=O[w];if(L===void 0)return!1;if(typeof L=="function")t(L,this,A);else for(var D=L.length,oe=m(L,D),P=0;P<D;++P)t(oe[P],this,A);return!0};function l(y,w,A,P){var I,O,j;if(u(A),O=y._events,O===void 0?(O=y._events=Object.create(null),y._eventsCount=0):(O.newListener!==void 0&&(y.emit("newListener",w,A.listener?A.listener:A),O=y._events),j=O[w]),j===void 0)j=O[w]=A,++y._eventsCount;else if(typeof j=="function"?j=O[w]=P?[A,j]:[j,A]:P?j.unshift(A):j.push(A),I=f(y),I>0&&j.length>I&&!j.warned){j.warned=!0;var G=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");G.name="MaxListenersExceededWarning",G.emitter=y,G.type=w,G.count=j.length,n(G)}return y}i.prototype.addListener=function(w,A){return l(this,w,A,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(w,A){return l(this,w,A,!0)};function s(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(y,w,A){var P={fired:!1,wrapFn:void 0,target:y,type:w,listener:A},I=s.bind(P);return I.listener=A,P.wrapFn=I,I}i.prototype.once=function(w,A){return u(A),this.on(w,c(this,w,A)),this},i.prototype.prependOnceListener=function(w,A){return u(A),this.prependListener(w,c(this,w,A)),this},i.prototype.removeListener=function(w,A){var P,I,O,j,G;if(u(A),I=this._events,I===void 0)return this;if(P=I[w],P===void 0)return this;if(P===A||P.listener===A)--this._eventsCount===0?this._events=Object.create(null):(delete I[w],I.removeListener&&this.emit("removeListener",w,P.listener||A));else if(typeof P!="function"){for(O=-1,j=P.length-1;j>=0;j--)if(P[j]===A||P[j].listener===A){G=P[j].listener,O=j;break}if(O<0)return this;O===0?P.shift():E(P,O),P.length===1&&(I[w]=P[0]),I.removeListener!==void 0&&this.emit("removeListener",w,G||A)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(w){var A,P,I;if(P=this._events,P===void 0)return this;if(P.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):P[w]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete P[w]),this;if(arguments.length===0){var O=Object.keys(P),j;for(I=0;I<O.length;++I)j=O[I],j!=="removeListener"&&this.removeAllListeners(j);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(A=P[w],typeof A=="function")this.removeListener(w,A);else if(A!==void 0)for(I=A.length-1;I>=0;I--)this.removeListener(w,A[I]);return this};function d(y,w,A){var P=y._events;if(P===void 0)return[];var I=P[w];return I===void 0?[]:typeof I=="function"?A?[I.listener||I]:[I]:A?x(I):m(I,I.length)}i.prototype.listeners=function(w){return d(this,w,!0)},i.prototype.rawListeners=function(w){return d(this,w,!1)},i.listenerCount=function(y,w){return typeof y.listenerCount=="function"?y.listenerCount(w):T.call(y,w)},i.prototype.listenerCount=T;function T(y){var w=this._events;if(w!==void 0){var A=w[y];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function m(y,w){for(var A=new Array(w),P=0;P<w;++P)A[P]=y[P];return A}function E(y,w){for(;w+1<y.length;w++)y[w]=y[w+1];y.pop()}function x(y){for(var w=new Array(y.length),A=0;A<w.length;++A)w[A]=y[A].listener||y[A];return w}function p(y,w){return new Promise(function(A,P){function I(j){y.removeListener(w,O),P(j)}function O(){typeof y.removeListener=="function"&&y.removeListener("error",I),A([].slice.call(arguments))}g(y,w,O,{once:!0}),w!=="error"&&h(y,I,{once:!0})})}function h(y,w,A){typeof y.on=="function"&&g(y,"error",w,A)}function g(y,w,A,P){if(typeof y.on=="function")P.once?y.once(w,A):y.on(w,A);else if(typeof y.addEventListener=="function")y.addEventListener(w,function I(O){P.once&&y.removeEventListener(w,I),A(O)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof y)}return An.exports}var Tn={exports:{}},_u;function ar(){return _u||(_u=1,typeof Object.create=="function"?Tn.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Tn.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Tn.exports}var Si,Ou;function Nu(){return Ou||(Ou=1,Si=Ti().EventEmitter),Si}var _i={},Ru;function Sn(){return Ru||(Ru=1,function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},r={};r.byteLength=s,r.toByteArray=d,r.fromByteArray=E;for(var n=[],o=[],i=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,f=a.length;u<f;++u)n[u]=a[u],o[a.charCodeAt(u)]=u;o[45]=62,o[95]=63;function l(h){var g=h.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=h.indexOf("=");y===-1&&(y=g);var w=y===g?0:4-y%4;return[y,w]}function s(h){var g=l(h),y=g[0],w=g[1];return(y+w)*3/4-w}function c(h,g,y){return(g+y)*3/4-y}function d(h){var g,y=l(h),w=y[0],A=y[1],P=new i(c(h,w,A)),I=0,O=A>0?w-4:w,j;for(j=0;j<O;j+=4)g=o[h.charCodeAt(j)]<<18|o[h.charCodeAt(j+1)]<<12|o[h.charCodeAt(j+2)]<<6|o[h.charCodeAt(j+3)],P[I++]=g>>16&255,P[I++]=g>>8&255,P[I++]=g&255;return A===2&&(g=o[h.charCodeAt(j)]<<2|o[h.charCodeAt(j+1)]>>4,P[I++]=g&255),A===1&&(g=o[h.charCodeAt(j)]<<10|o[h.charCodeAt(j+1)]<<4|o[h.charCodeAt(j+2)]>>2,P[I++]=g>>8&255,P[I++]=g&255),P}function T(h){return n[h>>18&63]+n[h>>12&63]+n[h>>6&63]+n[h&63]}function m(h,g,y){for(var w,A=[],P=g;P<y;P+=3)w=(h[P]<<16&16711680)+(h[P+1]<<8&65280)+(h[P+2]&255),A.push(T(w));return A.join("")}function E(h){for(var g,y=h.length,w=y%3,A=[],P=16383,I=0,O=y-w;I<O;I+=P)A.push(m(h,I,I+P>O?O:I+P));return w===1?(g=h[y-1],A.push(n[g>>2]+n[g<<4&63]+"==")):w===2&&(g=(h[y-2]<<8)+h[y-1],A.push(n[g>>10]+n[g>>4&63]+n[g<<2&63]+"=")),A.join("")}var x={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */x.read=function(h,g,y,w,A){var P,I,O=A*8-w-1,j=(1<<O)-1,G=j>>1,L=-7,D=y?A-1:0,oe=y?-1:1,re=h[g+D];for(D+=oe,P=re&(1<<-L)-1,re>>=-L,L+=O;L>0;P=P*256+h[g+D],D+=oe,L-=8);for(I=P&(1<<-L)-1,P>>=-L,L+=w;L>0;I=I*256+h[g+D],D+=oe,L-=8);if(P===0)P=1-G;else{if(P===j)return I?NaN:(re?-1:1)*(1/0);I=I+Math.pow(2,w),P=P-G}return(re?-1:1)*I*Math.pow(2,P-w)},x.write=function(h,g,y,w,A,P){var I,O,j,G=P*8-A-1,L=(1<<G)-1,D=L>>1,oe=A===23?Math.pow(2,-24)-Math.pow(2,-77):0,re=w?0:P-1,he=w?1:-1,fe=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(O=isNaN(g)?1:0,I=L):(I=Math.floor(Math.log(g)/Math.LN2),g*(j=Math.pow(2,-I))<1&&(I--,j*=2),I+D>=1?g+=oe/j:g+=oe*Math.pow(2,1-D),g*j>=2&&(I++,j/=2),I+D>=L?(O=0,I=L):I+D>=1?(O=(g*j-1)*Math.pow(2,A),I=I+D):(O=g*Math.pow(2,D-1)*Math.pow(2,A),I=0));A>=8;h[y+re]=O&255,re+=he,O/=256,A-=8);for(I=I<<A|O,G+=A;G>0;h[y+re]=I&255,re+=he,I/=256,G-=8);h[y+re-he]|=fe*128};/*!
11
+ `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=rr(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&yn.assertOptions(n,{silentJSONParsing:Ct.transitional(Ct.boolean),forcedJSONParsing:Ct.transitional(Ct.boolean),clarifyTimeoutError:Ct.transitional(Ct.boolean)},!1),o!=null&&(Z.isFunction(o)?r.paramsSerializer={serialize:o}:yn.assertOptions(o,{encode:Ct.function,serialize:Ct.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),yn.assertOptions(r,{baseUrl:Ct.spelling("baseURL"),withXsrfToken:Ct.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&Z.merge(i.common,i[r.method]);i&&Z.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=yt.concat(a,i);const u=[];let f=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(r)===!1||(f=f&&E.synchronous,u.unshift(E.fulfilled,E.rejected))});const l=[];this.interceptors.response.forEach(function(E){l.push(E.fulfilled,E.rejected)});let s,c=0,d;if(!f){const m=[Ba.bind(this),void 0];for(m.unshift.apply(m,u),m.push.apply(m,l),d=m.length,s=Promise.resolve(r);c<d;)s=s.then(m[c++],m[c++]);return s}d=u.length;let T=r;for(c=0;c<d;){const m=u[c++],E=u[c++];try{T=m(T)}catch(x){E.call(this,x);break}}try{s=Ba.call(this,T)}catch(m){return Promise.reject(m)}for(c=0,d=l.length;c<d;)s=s.then(l[c++],l[c++]);return s}getUri(t){t=rr(this.defaults,t);const r=Sa(t.baseURL,t.url,t.allowAbsoluteUrls);return ya(r,t.params,t.paramsSerializer)}};Z.forEach(["delete","get","head","options"],function(t){nr.prototype[t]=function(r,n){return this.request(rr(n||{},{method:t,url:r,data:(n||{}).data}))}}),Z.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,u){return this.request(rr(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}nr.prototype[t]=r(),nr.prototype[t+"Form"]=r(!0)});let Od=class Bc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(u=>{n.subscribe(u),i=u}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,u){n.reason||(n.reason=new mr(i,a,u),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Bc(function(o){t=o}),cancel:t}}};function Nd(e){return function(r){return e.apply(null,r)}}function Rd(e){return Z.isObject(e)&&e.isAxiosError===!0}const ci={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ci).forEach(([e,t])=>{ci[t]=e});function ja(e){const t=new nr(e),r=ea(nr.prototype.request,t);return Z.extend(r,nr.prototype,t,{allOwnKeys:!0}),Z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return ja(rr(e,o))},r}const Ye=ja(Br);Ye.Axios=nr,Ye.CanceledError=mr,Ye.CancelToken=Od,Ye.isCancel=Ea,Ye.VERSION=La,Ye.toFormData=fn,Ye.AxiosError=we,Ye.Cancel=Ye.CanceledError,Ye.all=function(t){return Promise.all(t)},Ye.spread=Nd,Ye.isAxiosError=Rd,Ye.mergeConfig=rr,Ye.AxiosHeaders=yt,Ye.formToJSON=e=>wa(Z.isHTMLForm(e)?new FormData(e):e),Ye.getAdapter=Ca.getAdapter,Ye.HttpStatusCode=ci,Ye.default=Ye;const{Axios:f1,AxiosError:c1,CanceledError:h1,isCancel:d1,CancelToken:p1,VERSION:g1,all:y1,Cancel:m1,isAxiosError:b1,spread:w1,toFormData:v1,AxiosHeaders:E1,HttpStatusCode:x1,formToJSON:A1,getAdapter:T1,mergeConfig:S1}=Ye,mn=e=>encodeURIComponent(e).split("%2F").join("/"),Id=/^(\w+:\/\/[^/?]+)?(.*?)$/,Pd=e=>e.filter(t=>typeof t=="string"||typeof t=="number").map(t=>`${t}`).filter(t=>t),Fd=e=>{const t=e.join("/"),[,r="",n=""]=t.match(Id)||[];return{prefix:r,pathname:{parts:n.split("/").filter(o=>o!==""),hasLeading:/^\/+/.test(n),hasTrailing:/\/+$/.test(n)}}},Cd=(e,t)=>{const{prefix:r,pathname:n}=e,{parts:o,hasLeading:i,hasTrailing:a}=n,{leadingSlash:u,trailingSlash:f}=t,l=u===!0||u==="keep"&&i,s=f===!0||f==="keep"&&a;let c=r;return o.length>0&&((c||l)&&(c+="/"),c+=o.join("/")),s&&(c+="/"),!c&&l&&(c+="/"),c},_e=(...e)=>{const t=e[e.length-1];let r;t&&typeof t=="object"&&(r=t,e=e.slice(0,-1)),r={leadingSlash:!0,trailingSlash:!1,...r},e=Pd(e);const n=Fd(e);return Cd(n,r)};class Ma extends Error{constructor(r,n,o=null){super(r);ye(this,"response");ye(this,"statusCode");this.response=n,this.statusCode=o}}class Bd extends Ma{constructor(r,n,o,i=null){super(r,o,i);ye(this,"errorCode");this.errorCode=n}}function Ld(e,t=""){return`/public-files/${e}/${t}`.split("/").filter(Boolean).join("/")}function Ud(e,t=""){return`/ocm/${e}/${t}`.split("/").filter(Boolean).join("/")}var hi,ka;function jd(){if(ka)return hi;ka=1;function e(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function t(o,i){for(var a="",u=0,f=-1,l=0,s,c=0;c<=o.length;++c){if(c<o.length)s=o.charCodeAt(c);else{if(s===47)break;s=47}if(s===47){if(!(f===c-1||l===1))if(f!==c-1&&l===2){if(a.length<2||u!==2||a.charCodeAt(a.length-1)!==46||a.charCodeAt(a.length-2)!==46){if(a.length>2){var d=a.lastIndexOf("/");if(d!==a.length-1){d===-1?(a="",u=0):(a=a.slice(0,d),u=a.length-1-a.lastIndexOf("/")),f=c,l=0;continue}}else if(a.length===2||a.length===1){a="",u=0,f=c,l=0;continue}}i&&(a.length>0?a+="/..":a="..",u=2)}else a.length>0?a+="/"+o.slice(f+1,c):a=o.slice(f+1,c),u=c-f-1;f=c,l=0}else s===46&&l!==-1?++l:l=-1}return a}function r(o,i){var a=i.dir||i.root,u=i.base||(i.name||"")+(i.ext||"");return a?a===i.root?a+u:a+o+u:u}var n={resolve:function(){for(var i="",a=!1,u,f=arguments.length-1;f>=-1&&!a;f--){var l;f>=0?l=arguments[f]:(u===void 0&&(u=me.cwd()),l=u),e(l),l.length!==0&&(i=l+"/"+i,a=l.charCodeAt(0)===47)}return i=t(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(e(i),i.length===0)return".";var a=i.charCodeAt(0)===47,u=i.charCodeAt(i.length-1)===47;return i=t(i,!a),i.length===0&&!a&&(i="."),i.length>0&&u&&(i+="/"),a?"/"+i:i},isAbsolute:function(i){return e(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,a=0;a<arguments.length;++a){var u=arguments[a];e(u),u.length>0&&(i===void 0?i=u:i+="/"+u)}return i===void 0?".":n.normalize(i)},relative:function(i,a){if(e(i),e(a),i===a||(i=n.resolve(i),a=n.resolve(a),i===a))return"";for(var u=1;u<i.length&&i.charCodeAt(u)===47;++u);for(var f=i.length,l=f-u,s=1;s<a.length&&a.charCodeAt(s)===47;++s);for(var c=a.length,d=c-s,T=l<d?l:d,m=-1,E=0;E<=T;++E){if(E===T){if(d>T){if(a.charCodeAt(s+E)===47)return a.slice(s+E+1);if(E===0)return a.slice(s+E)}else l>T&&(i.charCodeAt(u+E)===47?m=E:E===0&&(m=0));break}var x=i.charCodeAt(u+E),p=a.charCodeAt(s+E);if(x!==p)break;x===47&&(m=E)}var h="";for(E=u+m+1;E<=f;++E)(E===f||i.charCodeAt(E)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+a.slice(s+m):(s+=m,a.charCodeAt(s)===47&&++s,a.slice(s))},_makeLong:function(i){return i},dirname:function(i){if(e(i),i.length===0)return".";for(var a=i.charCodeAt(0),u=a===47,f=-1,l=!0,s=i.length-1;s>=1;--s)if(a=i.charCodeAt(s),a===47){if(!l){f=s;break}}else l=!1;return f===-1?u?"/":".":u&&f===1?"//":i.slice(0,f)},basename:function(i,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');e(i);var u=0,f=-1,l=!0,s;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var c=a.length-1,d=-1;for(s=i.length-1;s>=0;--s){var T=i.charCodeAt(s);if(T===47){if(!l){u=s+1;break}}else d===-1&&(l=!1,d=s+1),c>=0&&(T===a.charCodeAt(c)?--c===-1&&(f=s):(c=-1,f=d))}return u===f?f=d:f===-1&&(f=i.length),i.slice(u,f)}else{for(s=i.length-1;s>=0;--s)if(i.charCodeAt(s)===47){if(!l){u=s+1;break}}else f===-1&&(l=!1,f=s+1);return f===-1?"":i.slice(u,f)}},extname:function(i){e(i);for(var a=-1,u=0,f=-1,l=!0,s=0,c=i.length-1;c>=0;--c){var d=i.charCodeAt(c);if(d===47){if(!l){u=c+1;break}continue}f===-1&&(l=!1,f=c+1),d===46?a===-1?a=c:s!==1&&(s=1):a!==-1&&(s=-1)}return a===-1||f===-1||s===0||s===1&&a===f-1&&a===u+1?"":i.slice(a,f)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return r("/",i)},parse:function(i){e(i);var a={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return a;var u=i.charCodeAt(0),f=u===47,l;f?(a.root="/",l=1):l=0;for(var s=-1,c=0,d=-1,T=!0,m=i.length-1,E=0;m>=l;--m){if(u=i.charCodeAt(m),u===47){if(!T){c=m+1;break}continue}d===-1&&(T=!1,d=m+1),u===46?s===-1?s=m:E!==1&&(E=1):s!==-1&&(E=-1)}return s===-1||d===-1||E===0||E===1&&s===d-1&&s===c+1?d!==-1&&(c===0&&f?a.base=a.name=i.slice(1,d):a.base=a.name=i.slice(c,d)):(c===0&&f?(a.name=i.slice(1,s),a.base=i.slice(1,d)):(a.name=i.slice(c,s),a.base=i.slice(c,d)),a.ext=i.slice(s,d)),c>0?a.dir=i.slice(0,c-1):f&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,hi=n,hi}var Da=jd(),$a=Pe(Da);class Ge{}ye(Ge,"Shared","S"),ye(Ge,"Shareable","R"),ye(Ge,"Mounted","M"),ye(Ge,"Deletable","D"),ye(Ge,"Renameable","N"),ye(Ge,"Moveable","V"),ye(Ge,"Updateable","NV"),ye(Ge,"FileUpdateable","W"),ye(Ge,"FolderCreateable","CK"),ye(Ge,"Deny","Z"),ye(Ge,"SecureView","X");var kt=(e=>(e.copy="COPY",e.delete="DELETE",e.lock="LOCK",e.mkcol="MKCOL",e.move="MOVE",e.propfind="PROPFIND",e.proppatch="PROPPATCH",e.put="PUT",e.report="REPORT",e.unlock="UNLOCK",e))(kt||{});const bn=e=>({value:e,type:null}),Md=e=>bn(e),Fe=e=>bn(e),di=e=>bn(e),kd=e=>bn(e),Dd={Permissions:Fe("permissions"),IsFavorite:di("favorite"),FileId:Fe("fileid"),FileParent:Fe("file-parent"),Name:Fe("name"),OwnerId:Fe("owner-id"),OwnerDisplayName:Fe("owner-display-name"),PrivateLink:Fe("privatelink"),ContentLength:di("getcontentlength"),ContentSize:di("size"),LastModifiedDate:Fe("getlastmodified"),Tags:Md("tags"),Audio:{value:"audio",type:null},Location:{value:"location",type:null},Image:{value:"image",type:null},Photo:{value:"photo",type:null},ETag:Fe("getetag"),MimeType:Fe("getcontenttype"),ResourceType:kd("resourcetype"),LockDiscovery:{value:"lockdiscovery",type:null},LockOwner:Fe("owner"),LockTime:Fe("locktime"),ActiveLock:{value:"activelock",type:null},DownloadURL:Fe("downloadURL"),Highlights:Fe("highlights"),MetaPathForUser:Fe("meta-path-for-user"),RemoteItemId:Fe("remote-item-id"),ShareId:Fe("shareid"),ShareRoot:Fe("shareroot"),ShareTypes:{value:"share-types",type:null},SharePermissions:Fe("share-permissions"),TrashbinOriginalFilename:Fe("trashbin-original-filename"),TrashbinOriginalLocation:Fe("trashbin-original-location"),TrashbinDeletedDate:Fe("trashbin-delete-datetime"),PublicLinkItemType:Fe("public-link-item-type"),PublicLinkPermission:Fe("public-link-permission"),PublicLinkExpiration:Fe("public-link-expiration"),PublicLinkShareDate:Fe("public-link-share-datetime"),PublicLinkShareOwner:Fe("public-link-share-owner")},ae=Object.fromEntries(Object.entries(Dd).map(([e,t])=>[e,t.value])),lr=class lr{};ye(lr,"Default",[ae.Permissions,ae.IsFavorite,ae.FileId,ae.FileParent,ae.Name,ae.LockDiscovery,ae.ActiveLock,ae.OwnerId,ae.OwnerDisplayName,ae.RemoteItemId,ae.ShareRoot,ae.ShareTypes,ae.PrivateLink,ae.ContentLength,ae.ContentSize,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.DownloadURL,ae.Tags,ae.Audio,ae.Location,ae.Image,ae.Photo]),ye(lr,"PublicLink",lr.Default.concat([ae.PublicLinkItemType,ae.PublicLinkPermission,ae.PublicLinkExpiration,ae.PublicLinkShareDate,ae.PublicLinkShareOwner])),ye(lr,"Trashbin",[ae.ContentLength,ae.ResourceType,ae.TrashbinOriginalLocation,ae.TrashbinOriginalFilename,ae.TrashbinDeletedDate,ae.Permissions,ae.FileParent]),ye(lr,"DavNamespace",[ae.ContentLength,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.LockDiscovery,ae.ActiveLock]);let ir=lr;var $d=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,qd=typeof self=="object"&&self&&self.Object===Object&&self,pi=$d||qd||Function("return this")(),br=pi.Symbol,qa=Object.prototype,Hd=qa.hasOwnProperty,Vd=qa.toString,Ur=br?br.toStringTag:void 0;function Wd(e){var t=Hd.call(e,Ur),r=e[Ur];try{e[Ur]=void 0;var n=!0}catch{}var o=Vd.call(e);return n&&(t?e[Ur]=r:delete e[Ur]),o}var Gd=Object.prototype,Kd=Gd.toString;function zd(e){return Kd.call(e)}var Xd="[object Null]",Yd="[object Undefined]",Ha=br?br.toStringTag:void 0;function Va(e){return e==null?e===void 0?Yd:Xd:Ha&&Ha in Object(e)?Wd(e):zd(e)}function Jd(e){return e!=null&&typeof e=="object"}var Zd="[object Symbol]";function gi(e){return typeof e=="symbol"||Jd(e)&&Va(e)==Zd}function Qd(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var yi=Array.isArray,Wa=br?br.prototype:void 0,Ga=Wa?Wa.toString:void 0;function Ka(e){if(typeof e=="string")return e;if(yi(e))return Qd(e,Ka)+"";if(gi(e))return Ga?Ga.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function za(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ep="[object AsyncFunction]",tp="[object Function]",rp="[object GeneratorFunction]",np="[object Proxy]";function ip(e){if(!za(e))return!1;var t=Va(e);return t==tp||t==rp||t==ep||t==np}var mi=pi["__core-js_shared__"],Xa=function(){var e=/[^.]+$/.exec(mi&&mi.keys&&mi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function op(e){return!!Xa&&Xa in e}var sp=Function.prototype,ap=sp.toString;function up(e){if(e!=null){try{return ap.call(e)}catch{}try{return e+""}catch{}}return""}var lp=/[\\^$.*+?()[\]{}|]/g,fp=/^\[object .+?Constructor\]$/,cp=Function.prototype,hp=Object.prototype,dp=cp.toString,pp=hp.hasOwnProperty,gp=RegExp("^"+dp.call(pp).replace(lp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yp(e){if(!za(e)||op(e))return!1;var t=ip(e)?gp:fp;return t.test(up(e))}function mp(e,t){return e==null?void 0:e[t]}function Ya(e,t){var r=mp(e,t);return yp(r)?r:void 0}function bp(e,t){return e===t||e!==e&&t!==t}var wp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vp=/^\w*$/;function Ep(e,t){if(yi(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||gi(e)?!0:vp.test(e)||!wp.test(e)||t!=null&&e in Object(t)}var jr=Ya(Object,"create");function xp(){this.__data__=jr?jr(null):{},this.size=0}function Ap(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Tp="__lodash_hash_undefined__",Sp=Object.prototype,_p=Sp.hasOwnProperty;function Op(e){var t=this.__data__;if(jr){var r=t[e];return r===Tp?void 0:r}return _p.call(t,e)?t[e]:void 0}var Np=Object.prototype,Rp=Np.hasOwnProperty;function Ip(e){var t=this.__data__;return jr?t[e]!==void 0:Rp.call(t,e)}var Pp="__lodash_hash_undefined__";function Fp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=jr&&t===void 0?Pp:t,this}function or(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}or.prototype.clear=xp,or.prototype.delete=Ap,or.prototype.get=Op,or.prototype.has=Ip,or.prototype.set=Fp;function Cp(){this.__data__=[],this.size=0}function wn(e,t){for(var r=e.length;r--;)if(bp(e[r][0],t))return r;return-1}var Bp=Array.prototype,Lp=Bp.splice;function Up(e){var t=this.__data__,r=wn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Lp.call(t,r,1),--this.size,!0}function jp(e){var t=this.__data__,r=wn(t,e);return r<0?void 0:t[r][1]}function Mp(e){return wn(this.__data__,e)>-1}function kp(e,t){var r=this.__data__,n=wn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function wr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}wr.prototype.clear=Cp,wr.prototype.delete=Up,wr.prototype.get=jp,wr.prototype.has=Mp,wr.prototype.set=kp;var Dp=Ya(pi,"Map");function $p(){this.size=0,this.__data__={hash:new or,map:new(Dp||wr),string:new or}}function qp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function vn(e,t){var r=e.__data__;return qp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Hp(e){var t=vn(this,e).delete(e);return this.size-=t?1:0,t}function Vp(e){return vn(this,e).get(e)}function Wp(e){return vn(this,e).has(e)}function Gp(e,t){var r=vn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function sr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}sr.prototype.clear=$p,sr.prototype.delete=Hp,sr.prototype.get=Vp,sr.prototype.has=Wp,sr.prototype.set=Gp;var Kp="Expected a function";function bi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Kp);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(bi.Cache||sr),r}bi.Cache=sr;var zp=500;function Xp(e){var t=bi(e,function(n){return r.size===zp&&r.clear(),n}),r=t.cache;return t}var Yp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jp=/\\(\\)?/g,Zp=Xp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Yp,function(r,n,o,i){t.push(o?i.replace(Jp,"$1"):n||r)}),t});function Mr(e){return e==null?"":Ka(e)}function Qp(e,t){return yi(e)?e:Ep(e,t)?[e]:Zp(Mr(e))}function eg(e){if(typeof e=="string"||gi(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function tg(e,t){t=Qp(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[eg(t[r++])];return r&&r==n?e:void 0}function rg(e,t,r){var n=e==null?void 0:tg(e,t);return n===void 0?r:n}function ng(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}function ig(e,t,r){var n=e.length;return r=r===void 0?n:r,ng(e,t,r)}var og="\\ud800-\\udfff",sg="\\u0300-\\u036f",ag="\\ufe20-\\ufe2f",ug="\\u20d0-\\u20ff",lg=sg+ag+ug,fg="\\ufe0e\\ufe0f",cg="\\u200d",hg=RegExp("["+cg+og+lg+fg+"]");function Ja(e){return hg.test(e)}function dg(e){return e.split("")}var Za="\\ud800-\\udfff",pg="\\u0300-\\u036f",gg="\\ufe20-\\ufe2f",yg="\\u20d0-\\u20ff",mg=pg+gg+yg,bg="\\ufe0e\\ufe0f",wg="["+Za+"]",wi="["+mg+"]",vi="\\ud83c[\\udffb-\\udfff]",vg="(?:"+wi+"|"+vi+")",Qa="[^"+Za+"]",eu="(?:\\ud83c[\\udde6-\\uddff]){2}",tu="[\\ud800-\\udbff][\\udc00-\\udfff]",Eg="\\u200d",ru=vg+"?",nu="["+bg+"]?",xg="(?:"+Eg+"(?:"+[Qa,eu,tu].join("|")+")"+nu+ru+")*",Ag=nu+ru+xg,Tg="(?:"+[Qa+wi+"?",wi,eu,tu,wg].join("|")+")",Sg=RegExp(vi+"(?="+vi+")|"+Tg+Ag,"g");function _g(e){return e.match(Sg)||[]}function Og(e){return Ja(e)?_g(e):dg(e)}function Ng(e){return function(t){t=Mr(t);var r=Ja(t)?Og(t):void 0,n=r?r[0]:t.charAt(0),o=r?ig(r,1).join(""):t.slice(1);return n[e]()+o}}var Rg=Ng("toUpperCase");function Ig(e){return Rg(Mr(e).toLowerCase())}function Pg(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;)r=t(r,e[o],o,e);return r}function Fg(e){return function(t){return e==null?void 0:e[t]}}var Cg={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Bg=Fg(Cg),Lg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ug="\\u0300-\\u036f",jg="\\ufe20-\\ufe2f",Mg="\\u20d0-\\u20ff",kg=Ug+jg+Mg,Dg="["+kg+"]",$g=RegExp(Dg,"g");function qg(e){return e=Mr(e),e&&e.replace(Lg,Bg).replace($g,"")}var Hg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Vg(e){return e.match(Hg)||[]}var Wg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Gg(e){return Wg.test(e)}var iu="\\ud800-\\udfff",Kg="\\u0300-\\u036f",zg="\\ufe20-\\ufe2f",Xg="\\u20d0-\\u20ff",Yg=Kg+zg+Xg,ou="\\u2700-\\u27bf",su="a-z\\xdf-\\xf6\\xf8-\\xff",Jg="\\xac\\xb1\\xd7\\xf7",Zg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Qg="\\u2000-\\u206f",e0=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",au="A-Z\\xc0-\\xd6\\xd8-\\xde",t0="\\ufe0e\\ufe0f",uu=Jg+Zg+Qg+e0,lu="['’]",fu="["+uu+"]",r0="["+Yg+"]",cu="\\d+",n0="["+ou+"]",hu="["+su+"]",du="[^"+iu+uu+cu+ou+su+au+"]",i0="\\ud83c[\\udffb-\\udfff]",o0="(?:"+r0+"|"+i0+")",s0="[^"+iu+"]",pu="(?:\\ud83c[\\udde6-\\uddff]){2}",gu="[\\ud800-\\udbff][\\udc00-\\udfff]",vr="["+au+"]",a0="\\u200d",yu="(?:"+hu+"|"+du+")",u0="(?:"+vr+"|"+du+")",mu="(?:"+lu+"(?:d|ll|m|re|s|t|ve))?",bu="(?:"+lu+"(?:D|LL|M|RE|S|T|VE))?",wu=o0+"?",vu="["+t0+"]?",l0="(?:"+a0+"(?:"+[s0,pu,gu].join("|")+")"+vu+wu+")*",f0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",c0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",h0=vu+wu+l0,d0="(?:"+[n0,pu,gu].join("|")+")"+h0,p0=RegExp([vr+"?"+hu+"+"+mu+"(?="+[fu,vr,"$"].join("|")+")",u0+"+"+bu+"(?="+[fu,vr+yu,"$"].join("|")+")",vr+"?"+yu+"+"+mu,vr+"+"+bu,c0,f0,cu,d0].join("|"),"g");function g0(e){return e.match(p0)||[]}function y0(e,t,r){return e=Mr(e),t=t,t===void 0?Gg(e)?g0(e):Vg(e):e.match(t)||[]}var m0="['’]",b0=RegExp(m0,"g");function w0(e){return function(t){return Pg(y0(qg(t).replace(b0,"")),e,"")}}var v0=w0(function(e,t,r){return t=t.toLowerCase(),e+(r?Ig(t):t)});const E0={complex:["tar.bz2","tar.gz","tar.xz"]},Ei=e=>e.replace(/[^A-Za-z0-9\-_]/g,""),Eu=(e,t)=>!e||typeof e!="string"?"":e.indexOf("!")>=0?e.split("!")[t]:"",x0=e=>Eu(e,0),xu=e=>Eu(e,1),Au=e=>{const t=e.name;if(e.type==="directory"||e.isFolder)return"";const r=t.split(".");if(r.length>2)for(let n=0;n<r.length;n++){const o=r.slice(n,r.length).join(".");if(E0.complex.includes(o))return o}return r.length<2?"":r[r.length-1]},En=e=>{if(!e)return e;const t={};return Object.keys(e).forEach(r=>{t[v0(r)]=e[r]}),t};function Er(e,t=[]){var m,E,x;const r=((m=e.props[ae.Name])==null?void 0:m.toString())||Da.basename(e.filename),n=e.props[ae.FileId],o=e.type==="directory";let i;e.filename.startsWith("/files")||e.filename.startsWith("/space")?i=e.filename.split("/").slice(3).join("/"):i=e.filename,i.startsWith("/")||(i=`/${i}`);const a=Au({...e,name:r}),u=e.props[ae.LockDiscovery];let f,l,s;u&&(f=u[ae.ActiveLock],l=f[ae.LockOwner],s=f[ae.LockTime]);let c=[];e.props[ae.ShareTypes]&&(c=e.props[ae.ShareTypes]["share-type"],Array.isArray(c)||(c=[c]));const d={};for(const p of t||[]){const h=p.split(":").pop();e.props[h]&&(d[p]=e.props[h])}const T={id:n,fileId:n,storageId:x0(n),parentFolderId:e.props[ae.FileParent],mimeType:e.props[ae.MimeType],name:r,extension:o?"":a,path:i,webDavPath:e.filename,type:o?"folder":e.type,isFolder:o,locked:!!f,lockOwner:l,lockTime:s,processing:e.processing||!1,mdate:e.props[ae.LastModifiedDate],size:o?((E=e.props[ae.ContentSize])==null?void 0:E.toString())||"0":((x=e.props[ae.ContentLength])==null?void 0:x.toString())||"0",permissions:e.props[ae.Permissions]||"",starred:e.props[ae.IsFavorite]!==0,etag:e.props[ae.ETag],shareTypes:c,privateLink:e.props[ae.PrivateLink],downloadURL:e.props[ae.DownloadURL],remoteItemId:e.props[ae.RemoteItemId],remoteItemPath:e.props[ae.ShareRoot],owner:{id:e.props[ae.OwnerId],displayName:e.props[ae.OwnerDisplayName]},tags:(e.props[ae.Tags]||"").toString().split(",").filter(Boolean),audio:En(e.props[ae.Audio]),location:En(e.props[ae.Location]),image:En(e.props[ae.Image]),photo:En(e.props[ae.Photo]),extraProps:d,canUpload:function(){return this.permissions.indexOf(Ge.FolderCreateable)>=0},canDownload:function(){return this.permissions.indexOf(Ge.SecureView)===-1},canBeDeleted:function(){return this.permissions.indexOf(Ge.Deletable)>=0},canRename:function(){return this.permissions.indexOf(Ge.Renameable)>=0},canShare:function({ability:p}){return p.can("create-all","Share")&&this.permissions.indexOf(Ge.Shareable)>=0},canCreate:function(){return this.permissions.indexOf(Ge.FolderCreateable)>=0},canEditTags:function(){return this.permissions.indexOf(Ge.Updateable)>=0||this.permissions.indexOf(Ge.FileUpdateable)>=0},isMounted:function(){return this.permissions.indexOf(Ge.Mounted)>=0},isReceivedShare:function(){return this.permissions.indexOf(Ge.Shared)>=0},isShareRoot(){return e.props[ae.ShareRoot]?e.filename.split("/").length===3:!1},canDeny:function(){return this.permissions.indexOf(Ge.Deny)>=0},getDomSelector:()=>Ei(n)};return Object.defineProperty(T,"nodeId",{get(){return xu(this.id)}}),T}function A0(e){var i;const t=e.type==="directory",r=(i=e.props[ae.TrashbinOriginalFilename])==null?void 0:i.toString(),n=Au({name:r,type:e.type}),o=$a.basename(e.filename);return{type:t?"folder":e.type,isFolder:t,ddate:e.props[ae.TrashbinDeletedDate],name:$a.basename(r),extension:n,path:_e(e.props[ae.TrashbinOriginalLocation],{leadingSlash:!0}),id:o,parentFolderId:e.props[ae.FileParent],webDavPath:"",canUpload:()=>!1,canDownload:()=>!1,canBeDeleted:()=>!0,canBeRestored:function(){return!0},canRename:()=>!1,canShare:()=>!1,canCreate:()=>!1,isMounted:()=>!1,isReceivedShare:()=>!1,getDomSelector:()=>Ei(o)}}var bt=(e=>(e.createUpload="libre.graph/driveItem/upload/create",e.createPermissions="libre.graph/driveItem/permissions/create",e.createChildren="libre.graph/driveItem/children/create",e.readBasic="libre.graph/driveItem/basic/read",e.readPath="libre.graph/driveItem/path/read",e.readQuota="libre.graph/driveItem/quota/read",e.readContent="libre.graph/driveItem/content/read",e.readChildren="libre.graph/driveItem/children/read",e.readDeleted="libre.graph/driveItem/deleted/read",e.readPermissions="libre.graph/driveItem/permissions/read",e.readVersions="libre.graph/driveItem/versions/read",e.updatePath="libre.graph/driveItem/path/update",e.updateDeleted="libre.graph/driveItem/deleted/update",e.updatePermissions="libre.graph/driveItem/permissions/update",e.updateVersions="libre.graph/driveItem/versions/update",e.deleteStandard="libre.graph/driveItem/standard/delete",e.deleteDeleted="libre.graph/driveItem/deleted/delete",e.deletePermissions="libre.graph/driveItem/permissions/delete",e))(bt||{});const Tu=e=>(e==null?void 0:e.driveType)==="personal",xn=e=>(e==null?void 0:e.driveType)==="public";function T0(e,t){return _e("spaces",e,t,{leadingSlash:!0})}function xi(e,t=""){return _e("spaces","trash-bin",e,t,{leadingSlash:!0})}function S0(e){var c,d,T,m,E,x;const t=e.publicLinkPassword,r=(c=e.props)==null?void 0:c[ae.FileId],n=(d=e.props)==null?void 0:d[ae.PublicLinkItemType],o=(T=e.props)==null?void 0:T[ae.PublicLinkPermission],i=(m=e.props)==null?void 0:m[ae.PublicLinkExpiration],a=(E=e.props)==null?void 0:E[ae.PublicLinkShareDate],u=(x=e.props)==null?void 0:x[ae.PublicLinkShareOwner],f=e.publicLinkType;let l,s;return f==="ocm"?(l=`ocm/${e.id}`,s=Ud(e.id)):(l=`public/${e.id}`,s=Ld(e.id)),Object.assign(_0({...e,driveType:"public",driveAlias:l,webDavPath:s},{}),{...r&&{fileId:r},...t&&{publicLinkPassword:t},...n&&{publicLinkItemType:n},...o&&{publicLinkPermission:parseInt(o)},...i&&{publicLinkExpiration:i},...a&&{publicLinkShareDate:a},...u&&{publicLinkShareOwner:u},publicLinkType:f})}function _0(e,t){var c,d,T,m,E,x;let r,n;e.special&&(r=e.special.find(p=>p.specialFolder.name==="image"),n=e.special.find(p=>p.specialFolder.name==="readme"),r&&(r.webDavUrl=decodeURI(r.webDavUrl)),n&&(n.webDavUrl=decodeURI(n.webDavUrl)));const o=((d=(c=e.root)==null?void 0:c.deleted)==null?void 0:d.state)==="trashed",i=_e(e.webDavPath||T0(e.id),{leadingSlash:!0}),a=_e(e.serverUrl,"remote.php/dav",i),u=_e(e.webDavTrashPath||xi(e.id),{leadingSlash:!0}),f=_e(e.serverUrl,"remote.php/dav",u),l=(m=(T=e.root)==null?void 0:T.permissions)==null?void 0:m.reduce((p,h)=>{var g;return p[(h.grantedToV2.user||h.grantedToV2.group).id]={grantedTo:h.grantedToV2,permissions:O0(h,t),roleId:(g=h.roles)==null?void 0:g[0]},p},{}),s={id:e.id,fileId:e.id,storageId:e.id,mimeType:"",name:e.name,description:e.description,extension:"",path:"/",webDavPath:i,webDavTrashPath:u,driveAlias:e.driveAlias,driveType:e.driveType,type:"space",isFolder:!0,mdate:e.lastModifiedDateTime,size:((E=e.quota)==null?void 0:E.used)||0,tags:[],permissions:"",starred:!1,etag:"",shareTypes:[],privateLink:e.webUrl,downloadURL:"",owner:(x=e.owner)==null?void 0:x.user,disabled:o,root:e.root,spaceQuota:e.quota,members:l||{},spaceImageData:r,spaceReadmeData:n,canUpload:function({user:p}={}){return Tu(this)&&this.isOwner(p)?!0:vt(this,p).includes(bt.createUpload)},canDownload:function(){return!0},canBeDeleted:function({user:p,ability:h}={}){return this.disabled?h!=null&&h.can("delete-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions):!1},canRename:function({user:p,ability:h}={}){return h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canEditDescription:function({user:p,ability:h}={}){return h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canRestore:function({user:p,ability:h}={}){return this.disabled?h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions):!1},canDisable:function({user:p,ability:h}={}){return this.disabled?!1:h!=null&&h.can("delete-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canShare:function({user:p}={}){return vt(this,p).includes(bt.createPermissions)},canEditImage:function({user:p}={}){return this.disabled?!1:vt(this,p).includes(bt.deletePermissions)},canEditReadme:function({user:p}={}){return this.disabled?!1:vt(this,p).includes(bt.deletePermissions)},canRestoreFromTrashbin:function({user:p}={}){return vt(this,p).includes(bt.updateDeleted)},canDeleteFromTrashBin:function({user:p}={}){return vt(this,p).includes(bt.deletePermissions)},canListVersions:function({user:p}={}){return Tu(this)&&this.isOwner(p)?!0:vt(this,p).includes(bt.readVersions)},canCreate:function(){return!0},canEditTags:function(){return!1},isMounted:function(){return!0},isReceivedShare:function(){return!1},isShareRoot:function(){return["share","mountpoint","public"].includes(e.driveType)},canDeny:()=>!1,getDomSelector:()=>Ei(e.id),getDriveAliasAndItem({path:p}){return _e(this.driveAlias,p,{leadingSlash:!1})},getWebDavUrl({path:p}){return _e(a,p)},getWebDavTrashUrl({path:p}){return _e(f,p)},isMember(p){var h;return xn(this)?!1:this.isOwner(p)||this.members[p.id]?!0:(h=p.memberOf)==null?void 0:h.some(g=>!!this.members[g.id])},isOwner(p){var h;return(p==null?void 0:p.id)===((h=this.owner)==null?void 0:h.id)}};return Object.defineProperty(s,"nodeId",{get(){return xu(this.id)}}),s}function vt(e,t){var o;const r=[];if(!t)return r;const n=e.members[t.id];return n&&r.push(...n.permissions),(o=t.memberOf)==null||o.forEach(i=>{const a=e.members[i.id];a&&r.push(...a.permissions)}),[...new Set(r)]}function O0(e,t){var n;if(e["@libre.graph.permissions.actions"])return e["@libre.graph.permissions.actions"];const r=t[(n=e.roles)==null?void 0:n[0]];if(r){const o=r.rolePermissions.find(({condition:i})=>i==="exists @Resource.Root");return(o==null?void 0:o.allowedResourceActions)||[]}return[]}const N0=(e,t)=>{const r=new URL(e);r.pathname=[...r.pathname.split("/"),"cloud","capabilities"].filter(Boolean).join("/"),r.searchParams.append("format","json");const n=r.href;return{async getCapabilities(){const o=await t.get(n);return rg(o,"data.ocs.data",{capabilities:null,version:null})}}};var Ai={},An={exports:{}},Su;function Ti(){if(Su)return An.exports;Su=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(w,A,P){return Function.prototype.apply.call(w,A,P)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(w){return Object.getOwnPropertyNames(w).concat(Object.getOwnPropertySymbols(w))}:r=function(w){return Object.getOwnPropertyNames(w)};function n(y){console&&console.warn&&console.warn(y)}var o=Number.isNaN||function(w){return w!==w};function i(){i.init.call(this)}An.exports=i,An.exports.once=p,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(y){if(typeof y!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof y)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(y){if(typeof y!="number"||y<0||o(y))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+y+".");a=y}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(w){if(typeof w!="number"||w<0||o(w))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+w+".");return this._maxListeners=w,this};function f(y){return y._maxListeners===void 0?i.defaultMaxListeners:y._maxListeners}i.prototype.getMaxListeners=function(){return f(this)},i.prototype.emit=function(w){for(var A=[],P=1;P<arguments.length;P++)A.push(arguments[P]);var I=w==="error",O=this._events;if(O!==void 0)I=I&&O.error===void 0;else if(!I)return!1;if(I){var j;if(A.length>0&&(j=A[0]),j instanceof Error)throw j;var G=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw G.context=j,G}var L=O[w];if(L===void 0)return!1;if(typeof L=="function")t(L,this,A);else for(var D=L.length,oe=m(L,D),P=0;P<D;++P)t(oe[P],this,A);return!0};function l(y,w,A,P){var I,O,j;if(u(A),O=y._events,O===void 0?(O=y._events=Object.create(null),y._eventsCount=0):(O.newListener!==void 0&&(y.emit("newListener",w,A.listener?A.listener:A),O=y._events),j=O[w]),j===void 0)j=O[w]=A,++y._eventsCount;else if(typeof j=="function"?j=O[w]=P?[A,j]:[j,A]:P?j.unshift(A):j.push(A),I=f(y),I>0&&j.length>I&&!j.warned){j.warned=!0;var G=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");G.name="MaxListenersExceededWarning",G.emitter=y,G.type=w,G.count=j.length,n(G)}return y}i.prototype.addListener=function(w,A){return l(this,w,A,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(w,A){return l(this,w,A,!0)};function s(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(y,w,A){var P={fired:!1,wrapFn:void 0,target:y,type:w,listener:A},I=s.bind(P);return I.listener=A,P.wrapFn=I,I}i.prototype.once=function(w,A){return u(A),this.on(w,c(this,w,A)),this},i.prototype.prependOnceListener=function(w,A){return u(A),this.prependListener(w,c(this,w,A)),this},i.prototype.removeListener=function(w,A){var P,I,O,j,G;if(u(A),I=this._events,I===void 0)return this;if(P=I[w],P===void 0)return this;if(P===A||P.listener===A)--this._eventsCount===0?this._events=Object.create(null):(delete I[w],I.removeListener&&this.emit("removeListener",w,P.listener||A));else if(typeof P!="function"){for(O=-1,j=P.length-1;j>=0;j--)if(P[j]===A||P[j].listener===A){G=P[j].listener,O=j;break}if(O<0)return this;O===0?P.shift():E(P,O),P.length===1&&(I[w]=P[0]),I.removeListener!==void 0&&this.emit("removeListener",w,G||A)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(w){var A,P,I;if(P=this._events,P===void 0)return this;if(P.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):P[w]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete P[w]),this;if(arguments.length===0){var O=Object.keys(P),j;for(I=0;I<O.length;++I)j=O[I],j!=="removeListener"&&this.removeAllListeners(j);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(A=P[w],typeof A=="function")this.removeListener(w,A);else if(A!==void 0)for(I=A.length-1;I>=0;I--)this.removeListener(w,A[I]);return this};function d(y,w,A){var P=y._events;if(P===void 0)return[];var I=P[w];return I===void 0?[]:typeof I=="function"?A?[I.listener||I]:[I]:A?x(I):m(I,I.length)}i.prototype.listeners=function(w){return d(this,w,!0)},i.prototype.rawListeners=function(w){return d(this,w,!1)},i.listenerCount=function(y,w){return typeof y.listenerCount=="function"?y.listenerCount(w):T.call(y,w)},i.prototype.listenerCount=T;function T(y){var w=this._events;if(w!==void 0){var A=w[y];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function m(y,w){for(var A=new Array(w),P=0;P<w;++P)A[P]=y[P];return A}function E(y,w){for(;w+1<y.length;w++)y[w]=y[w+1];y.pop()}function x(y){for(var w=new Array(y.length),A=0;A<w.length;++A)w[A]=y[A].listener||y[A];return w}function p(y,w){return new Promise(function(A,P){function I(j){y.removeListener(w,O),P(j)}function O(){typeof y.removeListener=="function"&&y.removeListener("error",I),A([].slice.call(arguments))}g(y,w,O,{once:!0}),w!=="error"&&h(y,I,{once:!0})})}function h(y,w,A){typeof y.on=="function"&&g(y,"error",w,A)}function g(y,w,A,P){if(typeof y.on=="function")P.once?y.once(w,A):y.on(w,A);else if(typeof y.addEventListener=="function")y.addEventListener(w,function I(O){P.once&&y.removeEventListener(w,I),A(O)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof y)}return An.exports}var Tn={exports:{}},_u;function ar(){return _u||(_u=1,typeof Object.create=="function"?Tn.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Tn.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Tn.exports}var Si,Ou;function Nu(){return Ou||(Ou=1,Si=Ti().EventEmitter),Si}var _i={},Ru;function Sn(){return Ru||(Ru=1,function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},r={};r.byteLength=s,r.toByteArray=d,r.fromByteArray=E;for(var n=[],o=[],i=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,f=a.length;u<f;++u)n[u]=a[u],o[a.charCodeAt(u)]=u;o[45]=62,o[95]=63;function l(h){var g=h.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=h.indexOf("=");y===-1&&(y=g);var w=y===g?0:4-y%4;return[y,w]}function s(h){var g=l(h),y=g[0],w=g[1];return(y+w)*3/4-w}function c(h,g,y){return(g+y)*3/4-y}function d(h){var g,y=l(h),w=y[0],A=y[1],P=new i(c(h,w,A)),I=0,O=A>0?w-4:w,j;for(j=0;j<O;j+=4)g=o[h.charCodeAt(j)]<<18|o[h.charCodeAt(j+1)]<<12|o[h.charCodeAt(j+2)]<<6|o[h.charCodeAt(j+3)],P[I++]=g>>16&255,P[I++]=g>>8&255,P[I++]=g&255;return A===2&&(g=o[h.charCodeAt(j)]<<2|o[h.charCodeAt(j+1)]>>4,P[I++]=g&255),A===1&&(g=o[h.charCodeAt(j)]<<10|o[h.charCodeAt(j+1)]<<4|o[h.charCodeAt(j+2)]>>2,P[I++]=g>>8&255,P[I++]=g&255),P}function T(h){return n[h>>18&63]+n[h>>12&63]+n[h>>6&63]+n[h&63]}function m(h,g,y){for(var w,A=[],P=g;P<y;P+=3)w=(h[P]<<16&16711680)+(h[P+1]<<8&65280)+(h[P+2]&255),A.push(T(w));return A.join("")}function E(h){for(var g,y=h.length,w=y%3,A=[],P=16383,I=0,O=y-w;I<O;I+=P)A.push(m(h,I,I+P>O?O:I+P));return w===1?(g=h[y-1],A.push(n[g>>2]+n[g<<4&63]+"==")):w===2&&(g=(h[y-2]<<8)+h[y-1],A.push(n[g>>10]+n[g>>4&63]+n[g<<2&63]+"=")),A.join("")}var x={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */x.read=function(h,g,y,w,A){var P,I,O=A*8-w-1,j=(1<<O)-1,G=j>>1,L=-7,D=y?A-1:0,oe=y?-1:1,re=h[g+D];for(D+=oe,P=re&(1<<-L)-1,re>>=-L,L+=O;L>0;P=P*256+h[g+D],D+=oe,L-=8);for(I=P&(1<<-L)-1,P>>=-L,L+=w;L>0;I=I*256+h[g+D],D+=oe,L-=8);if(P===0)P=1-G;else{if(P===j)return I?NaN:(re?-1:1)*(1/0);I=I+Math.pow(2,w),P=P-G}return(re?-1:1)*I*Math.pow(2,P-w)},x.write=function(h,g,y,w,A,P){var I,O,j,G=P*8-A-1,L=(1<<G)-1,D=L>>1,oe=A===23?Math.pow(2,-24)-Math.pow(2,-77):0,re=w?0:P-1,he=w?1:-1,fe=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(O=isNaN(g)?1:0,I=L):(I=Math.floor(Math.log(g)/Math.LN2),g*(j=Math.pow(2,-I))<1&&(I--,j*=2),I+D>=1?g+=oe/j:g+=oe*Math.pow(2,1-D),g*j>=2&&(I++,j/=2),I+D>=L?(O=0,I=L):I+D>=1?(O=(g*j-1)*Math.pow(2,A),I=I+D):(O=g*Math.pow(2,D-1)*Math.pow(2,A),I=0));A>=8;h[y+re]=O&255,re+=he,O/=256,A-=8);for(I=I<<A|O,G+=A;G>0;h[y+re]=I&255,re+=he,I/=256,G-=8);h[y+re-he]|=fe*128};/*!
12
12
  * The buffer module from node.js, for the browser.
13
13
  *
14
14
  * @author Feross Aboukhadijeh <https://feross.org>