@opencloud-eu/web-pkg 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{TextEditor-CqzAOOm0.js → TextEditor-QVYD64f0.js} +2 -1
- package/dist/assets/{worker-Cgdggo8k.js → worker-BJJcEMnx.js} +30 -30
- package/dist/assets/{worker-HJ1GIjJK.js → worker-C9GzAwNf.js} +30 -30
- package/dist/assets/{worker-bk9PAyWf.js → worker-DIwRVmuf.js} +28 -28
- package/dist/index-zEQVUjcV.js +34130 -0
- package/dist/src/apps/index.d.ts +1 -0
- package/dist/src/apps/types.d.ts +114 -0
- package/dist/src/cern/composables/index.d.ts +1 -0
- package/dist/src/cern/composables/useGroupingSettings.d.ts +34 -0
- package/dist/src/cern/index.d.ts +1 -0
- package/dist/src/components/AppBar/AppBar.vue.d.ts +582 -0
- package/dist/src/components/AppBar/CreateSpace.vue.d.ts +18 -0
- package/dist/src/components/AppBar/index.d.ts +2 -0
- package/dist/src/components/AppLoadingSpinner.vue.d.ts +2 -0
- package/dist/src/components/AppTemplates/AppWrapper.vue.d.ts +251 -0
- package/dist/src/components/AppTemplates/AppWrapperRoute.d.ts +10 -0
- package/dist/src/components/AppTemplates/PartialViews/ErrorScreen.vue.d.ts +22 -0
- package/dist/src/components/AppTemplates/PartialViews/LoadingScreen.vue.d.ts +2 -0
- package/dist/src/components/AppTemplates/index.d.ts +3 -0
- package/dist/src/components/AppTemplates/types.d.ts +11 -0
- package/dist/src/components/AppTopBar.vue.d.ts +17 -0
- package/dist/src/components/Avatars/AvatarUpload.vue.d.ts +5 -0
- package/dist/src/components/Avatars/UserAvatar.vue.d.ts +6 -0
- package/dist/src/components/Avatars/index.d.ts +2 -0
- package/dist/src/components/BatchActions.vue.d.ts +123 -0
- package/dist/src/components/ContextActions/ActionMenuDropItem.vue.d.ts +11 -0
- package/dist/src/components/ContextActions/ActionMenuItem.vue.d.ts +92 -0
- package/dist/src/components/ContextActions/ContextActionMenu.vue.d.ts +147 -0
- package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +41 -0
- package/dist/src/components/ContextActions/index.d.ts +5 -0
- package/dist/src/components/ContextActions/types.d.ts +13 -0
- package/dist/src/components/CreateLinkModal.vue.d.ts +163 -0
- package/dist/src/components/CustomComponentTarget.vue.d.ts +16 -0
- package/dist/src/components/FilesList/ContextActions.vue.d.ts +173 -0
- package/dist/src/components/FilesList/ResourceGhostElement.vue.d.ts +51 -0
- package/dist/src/components/FilesList/ResourceIcon.vue.d.ts +47 -0
- package/dist/src/components/FilesList/ResourceLink.vue.d.ts +67 -0
- package/dist/src/components/FilesList/ResourceListItem.vue.d.ts +21 -0
- package/dist/src/components/FilesList/ResourceName.vue.d.ts +140 -0
- package/dist/src/components/FilesList/ResourceSize.vue.d.ts +25 -0
- package/dist/src/components/FilesList/ResourceStatusIndicators.vue.d.ts +9 -0
- package/dist/src/components/FilesList/ResourceTable.vue.d.ts +1538 -0
- package/dist/src/components/FilesList/ResourceTile.vue.d.ts +177 -0
- package/dist/src/components/FilesList/ResourceTiles.vue.d.ts +204 -0
- package/dist/src/components/FilesList/index.d.ts +10 -0
- package/dist/src/components/Filters/ItemFilterInline.vue.d.ts +28 -0
- package/dist/src/components/Filters/index.d.ts +3 -0
- package/dist/src/components/Filters/types.d.ts +4 -0
- package/dist/src/components/ItemFilter.vue.d.ts +223 -0
- package/dist/src/components/ItemFilterToggle.vue.d.ts +26 -0
- package/dist/src/components/LinkRoleDropdown.vue.d.ts +30 -0
- package/dist/src/components/LoadingIndicator.vue.d.ts +5 -0
- package/dist/src/components/Modals/DatePickerModal.vue.d.ts +104 -0
- package/dist/src/components/Modals/EmojiPickerModal.vue.d.ts +19 -0
- package/dist/src/components/Modals/FilePickerModal.vue.d.ts +41 -0
- package/dist/src/components/Modals/ResourceConflictModal.vue.d.ts +76 -0
- package/dist/src/components/Modals/SaveAsModal.vue.d.ts +49 -0
- package/dist/src/components/Modals/SpaceMoveInfoModal.vue.d.ts +14 -0
- package/dist/src/components/Modals/UnsavedChangesModal.vue.d.ts +27 -0
- package/dist/src/components/Modals/index.d.ts +7 -0
- package/dist/src/components/NoContentMessage.vue.d.ts +23 -0
- package/dist/src/components/Pagination.vue.d.ts +20 -0
- package/dist/src/components/PortalTarget.vue.d.ts +41 -0
- package/dist/src/components/QuotaSelect.vue.d.ts +74 -0
- package/dist/src/components/Search/ResourcePreview.vue.d.ts +48 -0
- package/dist/src/components/Search/index.d.ts +2 -0
- package/dist/src/components/Search/types.d.ts +29 -0
- package/dist/src/components/SearchBarFilter.vue.d.ts +27 -0
- package/dist/src/components/SideBar/CompareSaveDialog.vue.d.ts +38 -0
- package/dist/src/components/SideBar/FileSideBar.vue.d.ts +115 -0
- package/dist/src/components/SideBar/Files/FileInfo.vue.d.ts +5 -0
- package/dist/src/components/SideBar/Files/index.d.ts +1 -0
- package/dist/src/components/SideBar/SideBar.vue.d.ts +41 -0
- package/dist/src/components/SideBar/Spaces/Details/SpaceDetails.vue.d.ts +5 -0
- package/dist/src/components/SideBar/Spaces/Details/SpaceDetailsMultiple.vue.d.ts +6 -0
- package/dist/src/components/SideBar/Spaces/Details/index.d.ts +2 -0
- package/dist/src/components/SideBar/Spaces/SpaceInfo.vue.d.ts +5 -0
- package/dist/src/components/SideBar/Spaces/SpaceNoSelection.vue.d.ts +2 -0
- package/dist/src/components/SideBar/Spaces/index.d.ts +3 -0
- package/dist/src/components/SideBar/WebDavDetails.vue.d.ts +21 -0
- package/dist/src/components/SideBar/index.d.ts +7 -0
- package/dist/src/components/SideBar/types.d.ts +22 -0
- package/dist/src/components/SpaceQuota.vue.d.ts +6 -0
- package/dist/src/components/Spaces/QuotaModal.vue.d.ts +18 -0
- package/dist/src/components/Spaces/SpaceImageModal.vue.d.ts +13 -0
- package/dist/src/components/Spaces/index.d.ts +2 -0
- package/dist/src/components/TextEditor/TextEditor.vue.d.ts +162 -0
- package/dist/src/components/TextEditor/index.d.ts +158 -0
- package/dist/src/components/TextEditor/l18n.d.ts +3 -0
- package/dist/src/components/ViewOptions.vue.d.ts +143 -0
- package/dist/src/components/index.d.ts +28 -0
- package/dist/src/composables/ability/index.d.ts +1 -0
- package/dist/src/composables/ability/useAbility.d.ts +2 -0
- package/dist/src/composables/actions/files/index.d.ts +29 -0
- package/dist/src/composables/actions/files/useFileActions.d.ts +32 -0
- package/dist/src/composables/actions/files/useFileActionsCopy.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsCopyPermanentLink.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsCreateLink.d.ts +6 -0
- package/dist/src/composables/actions/files/useFileActionsCreateNewFile.d.ts +10 -0
- package/dist/src/composables/actions/files/useFileActionsCreateNewFolder.d.ts +9 -0
- package/dist/src/composables/actions/files/useFileActionsCreateNewShortcut.d.ts +8 -0
- package/dist/src/composables/actions/files/useFileActionsCreateSpaceFromResource.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsDelete.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsDisableSync.d.ts +5 -0
- package/dist/src/composables/actions/files/useFileActionsDownloadArchive.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsDownloadFile.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsEmptyTrashBin.d.ts +8 -0
- package/dist/src/composables/actions/files/useFileActionsEnableSync.d.ts +5 -0
- package/dist/src/composables/actions/files/useFileActionsFavorite.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsMove.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsNavigate.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsOpenShortcut.d.ts +5 -0
- package/dist/src/composables/actions/files/useFileActionsOpenWithApp.d.ts +6 -0
- package/dist/src/composables/actions/files/useFileActionsPaste.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsRename.d.ts +6 -0
- package/dist/src/composables/actions/files/useFileActionsRestore.d.ts +15 -0
- package/dist/src/composables/actions/files/useFileActionsSaveAs.d.ts +7 -0
- package/dist/src/composables/actions/files/useFileActionsSetImage.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsShowActions.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsShowDetails.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsShowShares.d.ts +5 -0
- package/dist/src/composables/actions/files/useFileActionsToggleHideShare.d.ts +5 -0
- package/dist/src/composables/actions/files/useFileActionsUndoDelete.d.ts +8 -0
- package/dist/src/composables/actions/helpers/index.d.ts +5 -0
- package/dist/src/composables/actions/helpers/useFileActionsDeleteResources.d.ts +5 -0
- package/dist/src/composables/actions/helpers/useIsAppActive.d.ts +1 -0
- package/dist/src/composables/actions/helpers/useIsFilesAppActive.d.ts +1 -0
- package/dist/src/composables/actions/helpers/useIsResourceNameValid.d.ts +11 -0
- package/dist/src/composables/actions/helpers/useIsSearchActive.d.ts +1 -0
- package/dist/src/composables/actions/index.d.ts +8 -0
- package/dist/src/composables/actions/spaces/index.d.ts +12 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsDelete.d.ts +6 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsDeleteImage.d.ts +8 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsDisable.d.ts +6 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsDuplicate.d.ts +6 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsEditDescription.d.ts +6 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsEditQuota.d.ts +4 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsEditReadmeContent.d.ts +4 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsNavigateToTrash.d.ts +4 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsRename.d.ts +6 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsRestore.d.ts +6 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsSetIcon.d.ts +6 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsShowMembers.d.ts +4 -0
- package/dist/src/composables/actions/types.d.ts +47 -0
- package/dist/src/composables/actions/useActionsShowDetails.d.ts +4 -0
- package/dist/src/composables/actions/useOpenEmptyEditor.d.ts +3 -0
- package/dist/src/composables/actions/useOpenWithDefaultApp.d.ts +7 -0
- package/dist/src/composables/actions/useWindowOpen.d.ts +3 -0
- package/dist/src/composables/appDefaults/index.d.ts +8 -0
- package/dist/src/composables/appDefaults/types.d.ts +15 -0
- package/dist/src/composables/appDefaults/useAppConfig.d.ts +11 -0
- package/dist/src/composables/appDefaults/useAppDefaults.d.ts +20 -0
- package/dist/src/composables/appDefaults/useAppDocumentTitle.d.ts +13 -0
- package/dist/src/composables/appDefaults/useAppFileHandling.d.ts +24 -0
- package/dist/src/composables/appDefaults/useAppFolderHandling.d.ts +16 -0
- package/dist/src/composables/appDefaults/useAppMeta.d.ts +9 -0
- package/dist/src/composables/appDefaults/useAppNavigation.d.ts +27 -0
- package/dist/src/composables/appDefaults/useDocumentTitle.d.ts +8 -0
- package/dist/src/composables/appProviderService/index.d.ts +1 -0
- package/dist/src/composables/appProviderService/useAppProviderService.d.ts +2 -0
- package/dist/src/composables/archiverService/index.d.ts +1 -0
- package/dist/src/composables/archiverService/useArchiverService.d.ts +2 -0
- package/dist/src/composables/authContext/index.d.ts +2 -0
- package/dist/src/composables/authContext/useAuthService.d.ts +10 -0
- package/dist/src/composables/authContext/useRequest.d.ts +15 -0
- package/dist/src/composables/avatars/index.d.ts +1 -0
- package/dist/src/composables/avatars/useLoadAvatars.d.ts +3 -0
- package/dist/src/composables/breadcrumbs/index.d.ts +1 -0
- package/dist/src/composables/breadcrumbs/useBreadcrumbsFromPath.d.ts +14 -0
- package/dist/src/composables/clientService/index.d.ts +1 -0
- package/dist/src/composables/clientService/useClientService.d.ts +2 -0
- package/dist/src/composables/clipboard/index.d.ts +1 -0
- package/dist/src/composables/clipboard/useClipboard.d.ts +3 -0
- package/dist/src/composables/download/index.d.ts +1 -0
- package/dist/src/composables/download/useDownloadFile.d.ts +8 -0
- package/dist/src/composables/driveResolver/index.d.ts +2 -0
- package/dist/src/composables/driveResolver/useDriveResolver.d.ts +13 -0
- package/dist/src/composables/driveResolver/useSpacesLoading.d.ts +3 -0
- package/dist/src/composables/embedMode/index.d.ts +1 -0
- package/dist/src/composables/embedMode/useEmbedMode.d.ts +23 -0
- package/dist/src/composables/eventBus/index.d.ts +1 -0
- package/dist/src/composables/eventBus/useEventBus.d.ts +1 -0
- package/dist/src/composables/fileListHeaderPosition/index.d.ts +1 -0
- package/dist/src/composables/fileListHeaderPosition/useFileListHeaderPosition.d.ts +5 -0
- package/dist/src/composables/filesList/index.d.ts +1 -0
- package/dist/src/composables/filesList/useResourceRouteResolver.d.ts +13 -0
- package/dist/src/composables/folderLink/index.d.ts +1 -0
- package/dist/src/composables/folderLink/useFolderLink.d.ts +15 -0
- package/dist/src/composables/index.d.ts +41 -0
- package/dist/src/composables/isTopBarSticky/index.d.ts +1 -0
- package/dist/src/composables/isTopBarSticky/useIsTopBarSticky.d.ts +8 -0
- package/dist/src/composables/keyboardActions/index.d.ts +3 -0
- package/dist/src/composables/keyboardActions/useCropperKeyboardActions.d.ts +4 -0
- package/dist/src/composables/keyboardActions/useInterceptModifierClick.d.ts +4 -0
- package/dist/src/composables/keyboardActions/useKeyboardActions.d.ts +47 -0
- package/dist/src/composables/links/index.d.ts +1 -0
- package/dist/src/composables/links/useLinkTypes.d.ts +31 -0
- package/dist/src/composables/loadingService/index.d.ts +1 -0
- package/dist/src/composables/loadingService/useLoadingService.d.ts +2 -0
- package/dist/src/composables/localStorage/index.d.ts +1 -0
- package/dist/src/composables/localStorage/useLocalStorage.d.ts +2 -0
- package/dist/src/composables/pagination/constants.d.ts +5 -0
- package/dist/src/composables/pagination/index.d.ts +2 -0
- package/dist/src/composables/pagination/usePagination.d.ts +17 -0
- package/dist/src/composables/passwordPolicyService/index.d.ts +1 -0
- package/dist/src/composables/passwordPolicyService/usePasswordPolicyService.d.ts +2 -0
- package/dist/src/composables/piniaStores/apps.d.ts +157 -0
- package/dist/src/composables/piniaStores/auth.d.ts +60 -0
- package/dist/src/composables/piniaStores/avatars.d.ts +27 -0
- package/dist/src/composables/piniaStores/capabilities.d.ts +1722 -0
- package/dist/src/composables/piniaStores/clipboard.d.ts +598 -0
- package/dist/src/composables/piniaStores/config/config.d.ts +759 -0
- package/dist/src/composables/piniaStores/config/index.d.ts +2 -0
- package/dist/src/composables/piniaStores/config/types.d.ts +194 -0
- package/dist/src/composables/piniaStores/extensionRegistry/extensionPreferences.d.ts +22 -0
- package/dist/src/composables/piniaStores/extensionRegistry/extensionRegistry.d.ts +37 -0
- package/dist/src/composables/piniaStores/extensionRegistry/index.d.ts +3 -0
- package/dist/src/composables/piniaStores/extensionRegistry/types.d.ts +66 -0
- package/dist/src/composables/piniaStores/index.d.ts +16 -0
- package/dist/src/composables/piniaStores/messages.d.ts +866 -0
- package/dist/src/composables/piniaStores/modals.d.ts +1373 -0
- package/dist/src/composables/piniaStores/resources.d.ts +198 -0
- package/dist/src/composables/piniaStores/shares/index.d.ts +2 -0
- package/dist/src/composables/piniaStores/shares/shares.d.ts +57 -0
- package/dist/src/composables/piniaStores/shares/types.d.ts +41 -0
- package/dist/src/composables/piniaStores/spaces.d.ts +9045 -0
- package/dist/src/composables/piniaStores/theme.d.ts +514 -0
- package/dist/src/composables/piniaStores/updates.d.ts +24 -0
- package/dist/src/composables/piniaStores/user.d.ts +15 -0
- package/dist/src/composables/piniaStores/webWorkers.d.ts +29 -0
- package/dist/src/composables/portalTarget/eventTopics.d.ts +3 -0
- package/dist/src/composables/portalTarget/index.d.ts +2 -0
- package/dist/src/composables/portalTarget/usePortalTarget.d.ts +4 -0
- package/dist/src/composables/previewService/index.d.ts +1 -0
- package/dist/src/composables/previewService/usePreviewService.d.ts +2 -0
- package/dist/src/composables/requestHeaders/index.d.ts +1 -0
- package/dist/src/composables/requestHeaders/useRequestHeaders.d.ts +3 -0
- package/dist/src/composables/resources/index.d.ts +5 -0
- package/dist/src/composables/resources/useCanBeOpenedWithSecureView.d.ts +4 -0
- package/dist/src/composables/resources/useCanListVersions.d.ts +7 -0
- package/dist/src/composables/resources/useGetResourceContext.d.ts +1485 -0
- package/dist/src/composables/resources/useLoadPreview.d.ts +26 -0
- package/dist/src/composables/resources/useResourceContents.d.ts +5 -0
- package/dist/src/composables/router/index.d.ts +11 -0
- package/dist/src/composables/router/types.d.ts +16 -0
- package/dist/src/composables/router/useActiveApp.d.ts +4 -0
- package/dist/src/composables/router/useActiveLocation.d.ts +10 -0
- package/dist/src/composables/router/useFileRouteReplace.d.ts +15 -0
- package/dist/src/composables/router/useRoute.d.ts +3 -0
- package/dist/src/composables/router/useRouteMeta.d.ts +2 -0
- package/dist/src/composables/router/useRouteName.d.ts +2 -0
- package/dist/src/composables/router/useRouteParam.d.ts +3 -0
- package/dist/src/composables/router/useRouteQuery.d.ts +3 -0
- package/dist/src/composables/router/useRouteQueryPersisted.d.ts +8 -0
- package/dist/src/composables/router/useRouter.d.ts +2 -0
- package/dist/src/composables/scrollTo/index.d.ts +1 -0
- package/dist/src/composables/scrollTo/useScrollTo.d.ts +9 -0
- package/dist/src/composables/search/constants.d.ts +4 -0
- package/dist/src/composables/search/index.d.ts +2 -0
- package/dist/src/composables/search/useSearch.d.ts +14 -0
- package/dist/src/composables/selection/index.d.ts +2 -0
- package/dist/src/composables/selection/useSelectedResources.d.ts +9 -0
- package/dist/src/composables/selection/useToggleTile.d.ts +4 -0
- package/dist/src/composables/service/index.d.ts +1 -0
- package/dist/src/composables/service/useService.d.ts +1 -0
- package/dist/src/composables/shares/index.d.ts +2 -0
- package/dist/src/composables/shares/useCanListShares.d.ts +7 -0
- package/dist/src/composables/shares/useCanShare.d.ts +7 -0
- package/dist/src/composables/sideBar/eventTopics.d.ts +7 -0
- package/dist/src/composables/sideBar/index.d.ts +2 -0
- package/dist/src/composables/sideBar/useSideBar.d.ts +12 -0
- package/dist/src/composables/sort/constants.d.ts +4 -0
- package/dist/src/composables/sort/index.d.ts +2 -0
- package/dist/src/composables/sort/useSort.d.ts +36 -0
- package/dist/src/composables/spaces/index.d.ts +3 -0
- package/dist/src/composables/spaces/useCreateSpace.d.ts +5 -0
- package/dist/src/composables/spaces/useGetMatchingSpace.d.ts +15 -0
- package/dist/src/composables/spaces/useSpaceHelpers.d.ts +4 -0
- package/dist/src/composables/upload/index.d.ts +1 -0
- package/dist/src/composables/upload/useUpload.d.ts +6 -0
- package/dist/src/composables/viewMode/constants.d.ts +12 -0
- package/dist/src/composables/viewMode/index.d.ts +3 -0
- package/dist/src/composables/viewMode/useTileSize.d.ts +4 -0
- package/dist/src/composables/viewMode/useViewMode.d.ts +4 -0
- package/dist/src/composables/webWorkers/deleteWorker/index.d.ts +1 -0
- package/dist/src/composables/webWorkers/deleteWorker/useDeleteWorker.d.ts +28 -0
- package/dist/src/composables/webWorkers/deleteWorker/worker.d.ts +1 -0
- package/dist/src/composables/webWorkers/index.d.ts +4 -0
- package/dist/src/composables/webWorkers/pasteWorker/index.d.ts +1 -0
- package/dist/src/composables/webWorkers/pasteWorker/usePasteWorker.d.ts +25 -0
- package/dist/src/composables/webWorkers/pasteWorker/worker.d.ts +1 -0
- package/dist/src/composables/webWorkers/restoreWorker/index.d.ts +1 -0
- package/dist/src/composables/webWorkers/restoreWorker/useRestoreWorker.d.ts +28 -0
- package/dist/src/composables/webWorkers/restoreWorker/worker.d.ts +1 -0
- package/dist/src/composables/webWorkers/tokenTimerWorker/index.d.ts +1 -0
- package/dist/src/composables/webWorkers/tokenTimerWorker/useTokenTimerWorker.d.ts +12 -0
- package/dist/src/composables/webWorkers/tokenTimerWorker/worker.d.ts +1 -0
- package/dist/src/constants.d.ts +17 -0
- package/dist/src/errors/index.d.ts +1 -0
- package/dist/src/errors/types.d.ts +13 -0
- package/dist/src/helpers/binary.d.ts +2 -0
- package/dist/src/helpers/breadcrumbs.d.ts +4 -0
- package/dist/src/helpers/cache/cache.d.ts +20 -0
- package/dist/src/helpers/cache/index.d.ts +1 -0
- package/dist/src/helpers/clipboardActions.d.ts +4 -0
- package/dist/src/helpers/contextMenuDropdown.d.ts +7 -0
- package/dist/src/helpers/datetime.d.ts +11 -0
- package/dist/src/helpers/download.d.ts +1 -0
- package/dist/src/helpers/filesize.d.ts +8 -0
- package/dist/src/helpers/folderLink/index.d.ts +1 -0
- package/dist/src/helpers/folderLink/types.d.ts +6 -0
- package/dist/src/helpers/fuse.d.ts +5 -0
- package/dist/src/helpers/index.d.ts +21 -0
- package/dist/src/helpers/locale.d.ts +1 -0
- package/dist/src/helpers/path.d.ts +13 -0
- package/dist/src/helpers/permissions.d.ts +8 -0
- package/dist/src/helpers/platform.d.ts +1 -0
- package/dist/src/helpers/resource/conflictHandling/conflictDialog.d.ts +15 -0
- package/dist/src/helpers/resource/conflictHandling/conflictUtils.d.ts +3 -0
- package/dist/src/helpers/resource/conflictHandling/index.d.ts +4 -0
- package/dist/src/helpers/resource/conflictHandling/transfer.d.ts +27 -0
- package/dist/src/helpers/resource/conflictHandling/types.d.ts +24 -0
- package/dist/src/helpers/resource/filter.d.ts +2 -0
- package/dist/src/helpers/resource/icon.d.ts +10 -0
- package/dist/src/helpers/resource/index.d.ts +5 -0
- package/dist/src/helpers/resource/renameResource.d.ts +2 -0
- package/dist/src/helpers/resource/sameResource.d.ts +2 -0
- package/dist/src/helpers/router/buildUrl.d.ts +2 -0
- package/dist/src/helpers/router/index.d.ts +2 -0
- package/dist/src/helpers/router/routeOptions.d.ts +24 -0
- package/dist/src/helpers/share/driveItem.d.ts +12 -0
- package/dist/src/helpers/share/index.d.ts +2 -0
- package/dist/src/helpers/share/sharedAncestorRoute.d.ts +7 -0
- package/dist/src/helpers/spaces/index.d.ts +1 -0
- package/dist/src/helpers/spaces/permissions.d.ts +13 -0
- package/dist/src/helpers/statusIndicators.d.ts +23 -0
- package/dist/src/helpers/store.d.ts +8 -0
- package/dist/src/helpers/textByteSize.d.ts +1 -0
- package/dist/src/helpers/ui/index.d.ts +3 -0
- package/dist/src/helpers/ui/resourceCheckbox.d.ts +1 -0
- package/dist/src/helpers/ui/resourceTable.d.ts +3 -0
- package/dist/src/helpers/ui/resourceTiles.d.ts +6 -0
- package/dist/src/http/client.d.ts +23 -0
- package/dist/src/http/index.d.ts +1 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/observer/index.d.ts +1 -0
- package/dist/src/observer/visibility.d.ts +26 -0
- package/dist/src/router/common.d.ts +9 -0
- package/dist/src/router/deprecated.d.ts +12 -0
- package/dist/src/router/index.d.ts +12 -0
- package/dist/src/router/public.d.ts +9 -0
- package/dist/src/router/router.d.ts +27 -0
- package/dist/src/router/shares.d.ts +10 -0
- package/dist/src/router/spaces.d.ts +9 -0
- package/dist/src/router/trash.d.ts +9 -0
- package/dist/src/router/utils.d.ts +32 -0
- package/dist/src/services/appProvider/index.d.ts +2 -0
- package/dist/src/services/appProvider/schemas.d.ts +40 -0
- package/dist/src/services/appProvider/service.d.ts +27 -0
- package/dist/src/services/archiver.d.ts +25 -0
- package/dist/src/services/cache.d.ts +14 -0
- package/dist/src/services/client/auth.d.ts +12 -0
- package/dist/src/services/client/client.d.ts +48 -0
- package/dist/src/services/client/index.d.ts +2 -0
- package/dist/src/services/eventBus.d.ts +8 -0
- package/dist/src/services/folder/folderService.d.ts +27 -0
- package/dist/src/services/folder/index.d.ts +2 -0
- package/dist/src/services/folder/loaders/index.d.ts +7 -0
- package/dist/src/services/folder/loaders/loaderFavorites.d.ts +7 -0
- package/dist/src/services/folder/loaders/loaderSharedViaLink.d.ts +7 -0
- package/dist/src/services/folder/loaders/loaderSharedWithMe.d.ts +7 -0
- package/dist/src/services/folder/loaders/loaderSharedWithOthers.d.ts +7 -0
- package/dist/src/services/folder/loaders/loaderSpace.d.ts +7 -0
- package/dist/src/services/folder/loaders/loaderTrashbin.d.ts +7 -0
- package/dist/src/services/folder/loaders/types.d.ts +3 -0
- package/dist/src/services/index.d.ts +10 -0
- package/dist/src/services/loadingService.d.ts +33 -0
- package/dist/src/services/passwordPolicy/index.d.ts +1 -0
- package/dist/src/services/passwordPolicy/passwordPolicy.d.ts +20 -0
- package/dist/src/services/passwordPolicy/rules.d.ts +69 -0
- package/dist/src/services/preview/index.d.ts +2 -0
- package/dist/src/services/preview/previewService.d.ts +21 -0
- package/dist/src/services/preview/types.d.ts +23 -0
- package/dist/src/services/uppy/DropTarget/getDroppedFiles.d.ts +1 -0
- package/dist/src/services/uppy/DropTarget/plugin.d.ts +21 -0
- package/dist/src/services/uppy/DropTarget/types.d.ts +9 -0
- package/dist/src/services/uppy/index.d.ts +2 -0
- package/dist/src/services/uppy/uppyService.d.ts +91 -0
- package/dist/src/services/uppy/utils.d.ts +11 -0
- package/dist/src/types.d.ts +24 -0
- package/dist/src/ui/index.d.ts +1 -0
- package/dist/src/ui/types.d.ts +14 -0
- package/dist/src/utils/dirname.d.ts +1 -0
- package/dist/src/utils/encodePath.d.ts +1 -0
- package/dist/src/utils/index.d.ts +5 -0
- package/dist/src/utils/objectKeys.d.ts +1 -0
- package/dist/src/utils/semver.d.ts +14 -0
- package/dist/src/utils/types.d.ts +5 -0
- package/dist/web-pkg.js +226 -220
- package/dist/web-pkg.umd.cjs +49 -49
- package/package.json +5 -7
- package/dist/index-Ctidv9Qe.js +0 -34023
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
(function(){"use strict";var St=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hn={exports:{}},os;function Vc(){return os||(os=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(c,l,s){this.fn=c,this.context=l,this.once=s||!1}function i(c,l,s,f,h){if(typeof s!="function")throw new TypeError("The listener must be a function");var E=new o(s,f||c,h),m=r?r+l:l;return c._events[m]?c._events[m].fn?c._events[m]=[c._events[m],E]:c._events[m].push(E):(c._events[m]=E,c._eventsCount++),c}function a(c,l){--c._eventsCount===0?c._events=new n:delete c._events[l]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var l=[],s,f;if(this._eventsCount===0)return l;for(f in s=this._events)t.call(s,f)&&l.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(s)):l},u.prototype.listeners=function(l){var s=r?r+l:l,f=this._events[s];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,E=f.length,m=new Array(E);h<E;h++)m[h]=f[h].fn;return m},u.prototype.listenerCount=function(l){var s=r?r+l:l,f=this._events[s];return f?f.fn?1:f.length:0},u.prototype.emit=function(l,s,f,h,E,m){var x=r?r+l:l;if(!this._events[x])return!1;var T=this._events[x],y=arguments.length,p,d;if(T.fn){switch(T.once&&this.removeListener(l,T.fn,void 0,!0),y){case 1:return T.fn.call(T.context),!0;case 2:return T.fn.call(T.context,s),!0;case 3:return T.fn.call(T.context,s,f),!0;case 4:return T.fn.call(T.context,s,f,h),!0;case 5:return T.fn.call(T.context,s,f,h,E),!0;case 6:return T.fn.call(T.context,s,f,h,E,m),!0}for(d=1,p=new Array(y-1);d<y;d++)p[d-1]=arguments[d];T.fn.apply(T.context,p)}else{var g=T.length,v;for(d=0;d<g;d++)switch(T[d].once&&this.removeListener(l,T[d].fn,void 0,!0),y){case 1:T[d].fn.call(T[d].context);break;case 2:T[d].fn.call(T[d].context,s);break;case 3:T[d].fn.call(T[d].context,s,f);break;case 4:T[d].fn.call(T[d].context,s,f,h);break;default:if(!p)for(v=1,p=new Array(y-1);v<y;v++)p[v-1]=arguments[v];T[d].fn.apply(T[d].context,p)}}return!0},u.prototype.on=function(l,s,f){return i(this,l,s,f,!1)},u.prototype.once=function(l,s,f){return i(this,l,s,f,!0)},u.prototype.removeListener=function(l,s,f,h){var E=r?r+l:l;if(!this._events[E])return this;if(!s)return a(this,E),this;var m=this._events[E];if(m.fn)m.fn===s&&(!h||m.once)&&(!f||m.context===f)&&a(this,E);else{for(var x=0,T=[],y=m.length;x<y;x++)(m[x].fn!==s||h&&!m[x].once||f&&m[x].context!==f)&&T.push(m[x]);T.length?this._events[E]=T.length===1?T[0]:T:a(this,E)}return this},u.prototype.removeAllListeners=function(l){var s;return l?(s=r?r+l:l,this._events[s]&&a(this,s)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(hn)),hn.exports}var Wc=Vc(),Gc=fn(Wc);class ss extends Error{constructor(t){super(t),this.name="TimeoutError"}}class Kc extends Error{constructor(t){super(),this.name="AbortError",this.message=t}}const as=e=>globalThis.DOMException===void 0?new Kc(e):new DOMException(e),us=e=>{const t=e.reason===void 0?as("This operation was aborted."):e.reason;return t instanceof Error?t:as(t)};function zc(e,t){const{milliseconds:r,fallback:n,message:o,customTimers:i={setTimeout,clearTimeout}}=t;let a,u;const l=new Promise((s,f)=>{if(typeof r!="number"||Math.sign(r)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${r}\``);if(t.signal){const{signal:E}=t;E.aborted&&f(us(E)),u=()=>{f(us(E))},E.addEventListener("abort",u,{once:!0})}if(r===Number.POSITIVE_INFINITY){e.then(s,f);return}const h=new ss;a=i.setTimeout.call(void 0,()=>{if(n){try{s(n())}catch(E){f(E)}return}typeof e.cancel=="function"&&e.cancel(),o===!1?s():o instanceof Error?f(o):(h.message=o??`Promise timed out after ${r} milliseconds`,f(h))},r),(async()=>{try{s(await e)}catch(E){f(E)}})()}).finally(()=>{l.clear(),u&&t.signal&&t.signal.removeEventListener("abort",u)});return l.clear=()=>{i.clearTimeout.call(void 0,a),a=void 0},l}function Xc(e,t,r){let n=0,o=e.length;for(;o>0;){const i=Math.trunc(o/2);let a=n+i;r(e[a],t)<=0?(n=++a,o-=i+1):o=i}return n}class Yc{#e=[];enqueue(t,r){r={priority:0,...r};const n={priority:r.priority,id:r.id,run:t};if(this.size===0||this.#e[this.size-1].priority>=r.priority){this.#e.push(n);return}const o=Xc(this.#e,n,(i,a)=>a.priority-i.priority);this.#e.splice(o,0,n)}setPriority(t,r){const n=this.#e.findIndex(i=>i.id===t);if(n===-1)throw new ReferenceError(`No promise function with the id "${t}" exists in the queue.`);const[o]=this.#e.splice(n,1);this.enqueue(o.run,{priority:r,id:t})}dequeue(){return this.#e.shift()?.run}filter(t){return this.#e.filter(r=>r.priority===t.priority).map(r=>r.run)}get size(){return this.#e.length}}class Jc extends Gc{#e;#i;#s=0;#t;#r;#c=0;#o;#l;#n;#f;#a=0;#h;#u;#d;#p=1n;timeout;constructor(t){if(super(),t={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:Yc,...t},!(typeof t.intervalCap=="number"&&t.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${t.intervalCap?.toString()??""}\` (${typeof t.intervalCap})`);if(t.interval===void 0||!(Number.isFinite(t.interval)&&t.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${t.interval?.toString()??""}\` (${typeof t.interval})`);this.#e=t.carryoverConcurrencyCount,this.#i=t.intervalCap===Number.POSITIVE_INFINITY||t.interval===0,this.#t=t.intervalCap,this.#r=t.interval,this.#n=new t.queueClass,this.#f=t.queueClass,this.concurrency=t.concurrency,this.timeout=t.timeout,this.#d=t.throwOnTimeout===!0,this.#u=t.autoStart===!1}get#v(){return this.#i||this.#s<this.#t}get#E(){return this.#a<this.#h}#x(){this.#a--,this.#g(),this.emit("next")}#A(){this.#w(),this.#b(),this.#l=void 0}get#T(){const t=Date.now();if(this.#o===void 0){const r=this.#c-t;if(r<0)this.#s=this.#e?this.#a:0;else return this.#l===void 0&&(this.#l=setTimeout(()=>{this.#A()},r)),!0}return!1}#g(){if(this.#n.size===0)return this.#o&&clearInterval(this.#o),this.#o=void 0,this.emit("empty"),this.#a===0&&this.emit("idle"),!1;if(!this.#u){const t=!this.#T;if(this.#v&&this.#E){const r=this.#n.dequeue();return r?(this.emit("active"),r(),t&&this.#b(),!0):!1}}return!1}#b(){this.#i||this.#o!==void 0||(this.#o=setInterval(()=>{this.#w()},this.#r),this.#c=Date.now()+this.#r)}#w(){this.#s===0&&this.#a===0&&this.#o&&(clearInterval(this.#o),this.#o=void 0),this.#s=this.#e?this.#a:0,this.#y()}#y(){for(;this.#g(););}get concurrency(){return this.#h}set concurrency(t){if(!(typeof t=="number"&&t>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${t}\` (${typeof t})`);this.#h=t,this.#y()}async#S(t){return new Promise((r,n)=>{t.addEventListener("abort",()=>{n(t.reason)},{once:!0})})}setPriority(t,r){this.#n.setPriority(t,r)}async add(t,r={}){return r.id??=(this.#p++).toString(),r={timeout:this.timeout,throwOnTimeout:this.#d,...r},new Promise((n,o)=>{this.#n.enqueue(async()=>{this.#a++;try{r.signal?.throwIfAborted(),this.#s++;let i=t({signal:r.signal});r.timeout&&(i=zc(Promise.resolve(i),{milliseconds:r.timeout})),r.signal&&(i=Promise.race([i,this.#S(r.signal)]));const a=await i;n(a),this.emit("completed",a)}catch(i){if(i instanceof ss&&!r.throwOnTimeout){n();return}o(i),this.emit("error",i)}finally{this.#x()}},r),this.emit("add"),this.#g()})}async addAll(t,r){return Promise.all(t.map(async n=>this.add(n,r)))}start(){return this.#u?(this.#u=!1,this.#y(),this):this}pause(){this.#u=!0}clear(){this.#n=new this.#f}async onEmpty(){this.#n.size!==0&&await this.#m("empty")}async onSizeLessThan(t){this.#n.size<t||await this.#m("next",()=>this.#n.size<t)}async onIdle(){this.#a===0&&this.#n.size===0||await this.#m("idle")}async#m(t,r){return new Promise(n=>{const o=()=>{r&&!r()||(this.off(t,o),n())};this.on(t,o)})}get size(){return this.#n.size}sizeBy(t){return this.#n.filter(t).length}get pending(){return this.#a}get isPaused(){return this.#u}}function Zc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ls={exports:{}},je=ls.exports={},ht,dt;function dn(){throw new Error("setTimeout has not been defined")}function pn(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ht=setTimeout:ht=dn}catch{ht=dn}try{typeof clearTimeout=="function"?dt=clearTimeout:dt=pn}catch{dt=pn}})();function cs(e){if(ht===setTimeout)return setTimeout(e,0);if((ht===dn||!ht)&&setTimeout)return ht=setTimeout,setTimeout(e,0);try{return ht(e,0)}catch{try{return ht.call(null,e,0)}catch{return ht.call(this,e,0)}}}function Qc(e){if(dt===clearTimeout)return clearTimeout(e);if((dt===pn||!dt)&&clearTimeout)return dt=clearTimeout,clearTimeout(e);try{return dt(e)}catch{try{return dt.call(null,e)}catch{return dt.call(this,e)}}}var mt=[],Mt=!1,Pt,Ar=-1;function ef(){!Mt||!Pt||(Mt=!1,Pt.length?mt=Pt.concat(mt):Ar=-1,mt.length&&fs())}function fs(){if(!Mt){var e=cs(ef);Mt=!0;for(var t=mt.length;t;){for(Pt=mt,mt=[];++Ar<t;)Pt&&Pt[Ar].run();Ar=-1,t=mt.length}Pt=null,Mt=!1,Qc(e)}}je.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];mt.push(new hs(e,t)),mt.length===1&&!Mt&&cs(fs)};function hs(e,t){this.fun=e,this.array=t}hs.prototype.run=function(){this.fun.apply(null,this.array)},je.title="browser",je.browser=!0,je.env={},je.argv=[],je.version="",je.versions={};function bt(){}je.on=bt,je.addListener=bt,je.once=bt,je.off=bt,je.removeListener=bt,je.removeAllListeners=bt,je.emit=bt,je.prependListener=bt,je.prependOnceListener=bt,je.listeners=function(e){return[]},je.binding=function(e){throw new Error("process.binding is not supported")},je.cwd=function(){return"/"},je.chdir=function(e){throw new Error("process.chdir is not supported")},je.umask=function(){return 0};var tf=ls.exports;const ye=Zc(tf);var gn,ds;function rf(){if(ds)return gn;ds=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,c=-1,l=0,s,f=0;f<=o.length;++f){if(f<o.length)s=o.charCodeAt(f);else{if(s===47)break;s=47}if(s===47){if(!(c===f-1||l===1))if(c!==f-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 h=a.lastIndexOf("/");if(h!==a.length-1){h===-1?(a="",u=0):(a=a.slice(0,h),u=a.length-1-a.lastIndexOf("/")),c=f,l=0;continue}}else if(a.length===2||a.length===1){a="",u=0,c=f,l=0;continue}}i&&(a.length>0?a+="/..":a="..",u=2)}else a.length>0?a+="/"+o.slice(c+1,f):a=o.slice(c+1,f),u=f-c-1;c=f,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,c=arguments.length-1;c>=-1&&!a;c--){var l;c>=0?l=arguments[c]:(u===void 0&&(u=ye.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 c=i.length,l=c-u,s=1;s<a.length&&a.charCodeAt(s)===47;++s);for(var f=a.length,h=f-s,E=l<h?l:h,m=-1,x=0;x<=E;++x){if(x===E){if(h>E){if(a.charCodeAt(s+x)===47)return a.slice(s+x+1);if(x===0)return a.slice(s+x)}else l>E&&(i.charCodeAt(u+x)===47?m=x:x===0&&(m=0));break}var T=i.charCodeAt(u+x),y=a.charCodeAt(s+x);if(T!==y)break;T===47&&(m=x)}var p="";for(x=u+m+1;x<=c;++x)(x===c||i.charCodeAt(x)===47)&&(p.length===0?p+="..":p+="/..");return p.length>0?p+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,c=-1,l=!0,s=i.length-1;s>=1;--s)if(a=i.charCodeAt(s),a===47){if(!l){c=s;break}}else l=!1;return c===-1?u?"/":".":u&&c===1?"//":i.slice(0,c)},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,c=-1,l=!0,s;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var f=a.length-1,h=-1;for(s=i.length-1;s>=0;--s){var E=i.charCodeAt(s);if(E===47){if(!l){u=s+1;break}}else h===-1&&(l=!1,h=s+1),f>=0&&(E===a.charCodeAt(f)?--f===-1&&(c=s):(f=-1,c=h))}return u===c?c=h:c===-1&&(c=i.length),i.slice(u,c)}else{for(s=i.length-1;s>=0;--s)if(i.charCodeAt(s)===47){if(!l){u=s+1;break}}else c===-1&&(l=!1,c=s+1);return c===-1?"":i.slice(u,c)}},extname:function(i){e(i);for(var a=-1,u=0,c=-1,l=!0,s=0,f=i.length-1;f>=0;--f){var h=i.charCodeAt(f);if(h===47){if(!l){u=f+1;break}continue}c===-1&&(l=!1,c=f+1),h===46?a===-1?a=f:s!==1&&(s=1):a!==-1&&(s=-1)}return a===-1||c===-1||s===0||s===1&&a===c-1&&a===u+1?"":i.slice(a,c)},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),c=u===47,l;c?(a.root="/",l=1):l=0;for(var s=-1,f=0,h=-1,E=!0,m=i.length-1,x=0;m>=l;--m){if(u=i.charCodeAt(m),u===47){if(!E){f=m+1;break}continue}h===-1&&(E=!1,h=m+1),u===46?s===-1?s=m:x!==1&&(x=1):s!==-1&&(x=-1)}return s===-1||h===-1||x===0||x===1&&s===h-1&&s===f+1?h!==-1&&(f===0&&c?a.base=a.name=i.slice(1,h):a.base=a.name=i.slice(f,h)):(f===0&&c?(a.name=i.slice(1,s),a.base=i.slice(1,h)):(a.name=i.slice(f,s),a.base=i.slice(f,h)),a.ext=i.slice(s,h)),f>0?a.dir=i.slice(0,f-1):c&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,gn=n,gn}var Tr=rf(),ps=fn(Tr);const wt=globalThis||void 0||self;function gs(e,t){return function(){return e.apply(t,arguments)}}const{toString:nf}=Object.prototype,{getPrototypeOf:yn}=Object,{iterator:Sr,toStringTag:ys}=Symbol,_r=(e=>t=>{const r=nf.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>_r(t)===e),Or=e=>t=>typeof t===e,{isArray:Dt}=Array,$t=Or("undefined");function rr(e){return e!==null&&!$t(e)&&e.constructor!==null&&!$t(e.constructor)&&tt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ms=lt("ArrayBuffer");function of(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ms(e.buffer),t}const sf=Or("string"),tt=Or("function"),bs=Or("number"),nr=e=>e!==null&&typeof e=="object",af=e=>e===!0||e===!1,Nr=e=>{if(_r(e)!=="object")return!1;const t=yn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ys in e)&&!(Sr in e)},uf=e=>{if(!nr(e)||rr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},lf=lt("Date"),cf=lt("File"),ff=lt("Blob"),hf=lt("FileList"),df=e=>nr(e)&&tt(e.pipe),pf=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||tt(e.append)&&((t=_r(e))==="formdata"||t==="object"&&tt(e.toString)&&e.toString()==="[object FormData]"))},gf=lt("URLSearchParams"),[yf,mf,bf,wf]=["ReadableStream","Request","Response","Headers"].map(lt),vf=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ir(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Dt(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(rr(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let u;for(n=0;n<a;n++)u=i[n],t.call(null,e[u],u,e)}}function ws(e,t){if(rr(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const It=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:wt,vs=e=>!$t(e)&&e!==It;function mn(){const{caseless:e,skipUndefined:t}=vs(this)&&this||{},r={},n=(o,i)=>{const a=e&&ws(r,i)||i;Nr(r[a])&&Nr(o)?r[a]=mn(r[a],o):Nr(o)?r[a]=mn({},o):Dt(o)?r[a]=o.slice():(!t||!$t(o))&&(r[a]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&ir(arguments[o],n);return r}const Ef=(e,t,r,{allOwnKeys:n}={})=>(ir(t,(o,i)=>{r&&tt(o)?e[i]=gs(o,r):e[i]=o},{allOwnKeys:n}),e),xf=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Af=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Tf=(e,t,r,n)=>{let o,i,a;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!u[a]&&(t[a]=e[a],u[a]=!0);e=r!==!1&&yn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Sf=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},_f=e=>{if(!e)return null;if(Dt(e))return e;let t=e.length;if(!bs(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Of=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&yn(Uint8Array)),Nf=(e,t)=>{const n=(e&&e[Sr]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Rf=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Pf=lt("HTMLFormElement"),If=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Es=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ff=lt("RegExp"),xs=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ir(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},Cf=e=>{xs(e,(t,r)=>{if(tt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(tt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Bf=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Dt(e)?n(e):n(String(e).split(t)),r},Lf=()=>{},Uf=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function jf(e){return!!(e&&tt(e.append)&&e[ys]==="FormData"&&e[Sr])}const kf=e=>{const t=new Array(10),r=(n,o)=>{if(nr(n)){if(t.indexOf(n)>=0)return;if(rr(n))return n;if(!("toJSON"in n)){t[o]=n;const i=Dt(n)?[]:{};return ir(n,(a,u)=>{const c=r(a,o+1);!$t(c)&&(i[u]=c)}),t[o]=void 0,i}}return n};return r(e,0)},Mf=lt("AsyncFunction"),Df=e=>e&&(nr(e)||tt(e))&&tt(e.then)&&tt(e.catch),As=((e,t)=>e?setImmediate:t?((r,n)=>(It.addEventListener("message",({source:o,data:i})=>{o===It&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),It.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",tt(It.postMessage)),$f=typeof queueMicrotask<"u"?queueMicrotask.bind(It):typeof ye<"u"&&ye.nextTick||As;var X={isArray:Dt,isArrayBuffer:ms,isBuffer:rr,isFormData:pf,isArrayBufferView:of,isString:sf,isNumber:bs,isBoolean:af,isObject:nr,isPlainObject:Nr,isEmptyObject:uf,isReadableStream:yf,isRequest:mf,isResponse:bf,isHeaders:wf,isUndefined:$t,isDate:lf,isFile:cf,isBlob:ff,isRegExp:Ff,isFunction:tt,isStream:df,isURLSearchParams:gf,isTypedArray:Of,isFileList:hf,forEach:ir,merge:mn,extend:Ef,trim:vf,stripBOM:xf,inherits:Af,toFlatObject:Tf,kindOf:_r,kindOfTest:lt,endsWith:Sf,toArray:_f,forEachEntry:Nf,matchAll:Rf,isHTMLForm:Pf,hasOwnProperty:Es,hasOwnProp:Es,reduceDescriptors:xs,freezeMethods:Cf,toObjectSet:Bf,toCamelCase:If,noop:Lf,toFiniteNumber:Uf,findKey:ws,global:It,isContextDefined:vs,isSpecCompliantForm:jf,toJSONObject:kf,isAsyncFn:Mf,isThenable:Df,setImmediate:As,asap:$f,isIterable:e=>e!=null&&tt(e[Sr])},Ts={},Rr={};Rr.byteLength=Vf,Rr.toByteArray=Gf,Rr.fromByteArray=Xf;for(var pt=[],it=[],qf=typeof Uint8Array<"u"?Uint8Array:Array,bn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qt=0,Hf=bn.length;qt<Hf;++qt)pt[qt]=bn[qt],it[bn.charCodeAt(qt)]=qt;it[45]=62,it[95]=63;function Ss(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function Vf(e){var t=Ss(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Wf(e,t,r){return(t+r)*3/4-r}function Gf(e){var t,r=Ss(e),n=r[0],o=r[1],i=new qf(Wf(e,n,o)),a=0,u=o>0?n-4:n,c;for(c=0;c<u;c+=4)t=it[e.charCodeAt(c)]<<18|it[e.charCodeAt(c+1)]<<12|it[e.charCodeAt(c+2)]<<6|it[e.charCodeAt(c+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=t&255;return o===2&&(t=it[e.charCodeAt(c)]<<2|it[e.charCodeAt(c+1)]>>4,i[a++]=t&255),o===1&&(t=it[e.charCodeAt(c)]<<10|it[e.charCodeAt(c+1)]<<4|it[e.charCodeAt(c+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function Kf(e){return pt[e>>18&63]+pt[e>>12&63]+pt[e>>6&63]+pt[e&63]}function zf(e,t,r){for(var n,o=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),o.push(Kf(n));return o.join("")}function Xf(e){for(var t,r=e.length,n=r%3,o=[],i=16383,a=0,u=r-n;a<u;a+=i)o.push(zf(e,a,a+i>u?u:a+i));return n===1?(t=e[r-1],o.push(pt[t>>2]+pt[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],o.push(pt[t>>10]+pt[t>>4&63]+pt[t<<2&63]+"=")),o.join("")}var wn={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */wn.read=function(e,t,r,n,o){var i,a,u=o*8-n-1,c=(1<<u)-1,l=c>>1,s=-7,f=r?o-1:0,h=r?-1:1,E=e[t+f];for(f+=h,i=E&(1<<-s)-1,E>>=-s,s+=u;s>0;i=i*256+e[t+f],f+=h,s-=8);for(a=i&(1<<-s)-1,i>>=-s,s+=n;s>0;a=a*256+e[t+f],f+=h,s-=8);if(i===0)i=1-l;else{if(i===c)return a?NaN:(E?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-l}return(E?-1:1)*a*Math.pow(2,i-n)},wn.write=function(e,t,r,n,o,i){var a,u,c,l=i*8-o-1,s=(1<<l)-1,f=s>>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=n?0:i-1,m=n?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=s):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+f>=1?t+=h/c:t+=h*Math.pow(2,1-f),t*c>=2&&(a++,c/=2),a+f>=s?(u=0,a=s):a+f>=1?(u=(t*c-1)*Math.pow(2,o),a=a+f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[r+E]=u&255,E+=m,u/=256,o-=8);for(a=a<<o|u,l+=o;l>0;e[r+E]=a&255,E+=m,a/=256,l-=8);e[r+E-m]|=x*128};/*!
|
|
1
|
+
(function(){"use strict";var St=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hn={exports:{}},ss;function Hc(){return ss||(ss=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(c,l,s){this.fn=c,this.context=l,this.once=s||!1}function i(c,l,s,f,h){if(typeof s!="function")throw new TypeError("The listener must be a function");var x=new o(s,f||c,h),m=r?r+l:l;return c._events[m]?c._events[m].fn?c._events[m]=[c._events[m],x]:c._events[m].push(x):(c._events[m]=x,c._eventsCount++),c}function a(c,l){--c._eventsCount===0?c._events=new n:delete c._events[l]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var l=[],s,f;if(this._eventsCount===0)return l;for(f in s=this._events)t.call(s,f)&&l.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(s)):l},u.prototype.listeners=function(l){var s=r?r+l:l,f=this._events[s];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,x=f.length,m=new Array(x);h<x;h++)m[h]=f[h].fn;return m},u.prototype.listenerCount=function(l){var s=r?r+l:l,f=this._events[s];return f?f.fn?1:f.length:0},u.prototype.emit=function(l,s,f,h,x,m){var E=r?r+l:l;if(!this._events[E])return!1;var T=this._events[E],y=arguments.length,p,d;if(T.fn){switch(T.once&&this.removeListener(l,T.fn,void 0,!0),y){case 1:return T.fn.call(T.context),!0;case 2:return T.fn.call(T.context,s),!0;case 3:return T.fn.call(T.context,s,f),!0;case 4:return T.fn.call(T.context,s,f,h),!0;case 5:return T.fn.call(T.context,s,f,h,x),!0;case 6:return T.fn.call(T.context,s,f,h,x,m),!0}for(d=1,p=new Array(y-1);d<y;d++)p[d-1]=arguments[d];T.fn.apply(T.context,p)}else{var g=T.length,v;for(d=0;d<g;d++)switch(T[d].once&&this.removeListener(l,T[d].fn,void 0,!0),y){case 1:T[d].fn.call(T[d].context);break;case 2:T[d].fn.call(T[d].context,s);break;case 3:T[d].fn.call(T[d].context,s,f);break;case 4:T[d].fn.call(T[d].context,s,f,h);break;default:if(!p)for(v=1,p=new Array(y-1);v<y;v++)p[v-1]=arguments[v];T[d].fn.apply(T[d].context,p)}}return!0},u.prototype.on=function(l,s,f){return i(this,l,s,f,!1)},u.prototype.once=function(l,s,f){return i(this,l,s,f,!0)},u.prototype.removeListener=function(l,s,f,h){var x=r?r+l:l;if(!this._events[x])return this;if(!s)return a(this,x),this;var m=this._events[x];if(m.fn)m.fn===s&&(!h||m.once)&&(!f||m.context===f)&&a(this,x);else{for(var E=0,T=[],y=m.length;E<y;E++)(m[E].fn!==s||h&&!m[E].once||f&&m[E].context!==f)&&T.push(m[E]);T.length?this._events[x]=T.length===1?T[0]:T:a(this,x)}return this},u.prototype.removeAllListeners=function(l){var s;return l?(s=r?r+l:l,this._events[s]&&a(this,s)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(hn)),hn.exports}var Vc=Hc(),Wc=fn(Vc);class dn extends Error{name="TimeoutError";constructor(t,r){super(t,r),Error.captureStackTrace?.(this,dn)}}const as=e=>e.reason??new DOMException("This operation was aborted.","AbortError");function Gc(e,t){const{milliseconds:r,fallback:n,message:o,customTimers:i={setTimeout,clearTimeout},signal:a}=t;let u,c;const s=new Promise((f,h)=>{if(typeof r!="number"||Math.sign(r)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${r}\``);if(a?.aborted){h(as(a));return}if(a&&(c=()=>{h(as(a))},a.addEventListener("abort",c,{once:!0})),e.then(f,h),r===Number.POSITIVE_INFINITY)return;const x=new dn;u=i.setTimeout(()=>{if(n){try{f(n())}catch(m){h(m)}return}typeof e.cancel=="function"&&e.cancel(),o===!1?f():o instanceof Error?h(o):(x.message=o??`Promise timed out after ${r} milliseconds`,h(x))},r)}).finally(()=>{s.clear(),c&&a&&a.removeEventListener("abort",c)});return s.clear=()=>{i.clearTimeout(u),u=void 0},s}function Kc(e,t,r){let n=0,o=e.length;for(;o>0;){const i=Math.trunc(o/2);let a=n+i;r(e[a],t)<=0?(n=++a,o-=i+1):o=i}return n}class zc{#e=[];enqueue(t,r){const{priority:n=0,id:o}=r??{},i={priority:n,id:o,run:t};if(this.size===0||this.#e[this.size-1].priority>=n){this.#e.push(i);return}const a=Kc(this.#e,i,(u,c)=>c.priority-u.priority);this.#e.splice(a,0,i)}setPriority(t,r){const n=this.#e.findIndex(i=>i.id===t);if(n===-1)throw new ReferenceError(`No promise function with the id "${t}" exists in the queue.`);const[o]=this.#e.splice(n,1);this.enqueue(o.run,{priority:r,id:t})}dequeue(){return this.#e.shift()?.run}filter(t){return this.#e.filter(r=>r.priority===t.priority).map(r=>r.run)}get size(){return this.#e.length}}class Xc extends Wc{#e;#r;#s=0;#t;#n=!1;#c=!1;#l;#h=0;#u=0;#a;#f;#i;#d;#o=0;#p;#g;#_=1n;#m=new Map;timeout;constructor(t){if(super(),t={carryoverIntervalCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:zc,...t},!(typeof t.intervalCap=="number"&&t.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${t.intervalCap?.toString()??""}\` (${typeof t.intervalCap})`);if(t.interval===void 0||!(Number.isFinite(t.interval)&&t.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${t.interval?.toString()??""}\` (${typeof t.interval})`);if(this.#e=t.carryoverIntervalCount??t.carryoverConcurrencyCount??!1,this.#r=t.intervalCap===Number.POSITIVE_INFINITY||t.interval===0,this.#t=t.intervalCap,this.#l=t.interval,this.#i=new t.queueClass,this.#d=t.queueClass,this.concurrency=t.concurrency,t.timeout!==void 0&&!(Number.isFinite(t.timeout)&&t.timeout>0))throw new TypeError(`Expected \`timeout\` to be a positive finite number, got \`${t.timeout}\` (${typeof t.timeout})`);this.timeout=t.timeout,this.#g=t.autoStart===!1,this.#B()}get#O(){return this.#r||this.#s<this.#t}get#N(){return this.#o<this.#p}#R(){this.#o--,this.#o===0&&this.emit("pendingZero"),this.#w(),this.emit("next")}#I(){this.#T(),this.#A(),this.#f=void 0}get#P(){const t=Date.now();if(this.#a===void 0){const r=this.#h-t;if(r<0){if(this.#u>0){const n=t-this.#u;if(n<this.#l)return this.#E(this.#l-n),!0}this.#s=this.#e?this.#o:0}else return this.#E(r),!0}return!1}#E(t){this.#f===void 0&&(this.#f=setTimeout(()=>{this.#I()},t))}#x(){this.#a&&(clearInterval(this.#a),this.#a=void 0)}#F(){this.#f&&(clearTimeout(this.#f),this.#f=void 0)}#w(){if(this.#i.size===0)return this.#x(),this.emit("empty"),this.#o===0&&(this.#F(),this.emit("idle")),!1;let t=!1;if(!this.#g){const r=!this.#P;if(this.#O&&this.#N){const n=this.#i.dequeue();this.#r||(this.#s++,this.#b()),this.emit("active"),this.#u=Date.now(),n(),r&&this.#A(),t=!0}}return t}#A(){this.#r||this.#a!==void 0||(this.#a=setInterval(()=>{this.#T()},this.#l),this.#h=Date.now()+this.#l)}#T(){this.#s===0&&this.#o===0&&this.#a&&this.#x(),this.#s=this.#e?this.#o:0,this.#v(),this.#b()}#v(){for(;this.#w(););}get concurrency(){return this.#p}set concurrency(t){if(!(typeof t=="number"&&t>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${t}\` (${typeof t})`);this.#p=t,this.#v()}async#C(t){return new Promise((r,n)=>{t.addEventListener("abort",()=>{n(t.reason)},{once:!0})})}setPriority(t,r){if(typeof r!="number"||!Number.isFinite(r))throw new TypeError(`Expected \`priority\` to be a finite number, got \`${r}\` (${typeof r})`);this.#i.setPriority(t,r)}async add(t,r={}){return r.id??=(this.#_++).toString(),r={timeout:this.timeout,...r},new Promise((n,o)=>{const i=Symbol(`task-${r.id}`);this.#i.enqueue(async()=>{this.#o++,this.#m.set(i,{id:r.id,priority:r.priority??0,startTime:Date.now(),timeout:r.timeout});try{try{r.signal?.throwIfAborted()}catch(c){throw this.#r||this.#s--,this.#m.delete(i),c}let a=t({signal:r.signal});r.timeout&&(a=Gc(Promise.resolve(a),{milliseconds:r.timeout,message:`Task timed out after ${r.timeout}ms (queue has ${this.#o} running, ${this.#i.size} waiting)`})),r.signal&&(a=Promise.race([a,this.#C(r.signal)]));const u=await a;n(u),this.emit("completed",u)}catch(a){o(a),this.emit("error",a)}finally{this.#m.delete(i),queueMicrotask(()=>{this.#R()})}},r),this.emit("add"),this.#w()})}async addAll(t,r){return Promise.all(t.map(async n=>this.add(n,r)))}start(){return this.#g?(this.#g=!1,this.#v(),this):this}pause(){this.#g=!0}clear(){this.#i=new this.#d,this.#S()}async onEmpty(){this.#i.size!==0&&await this.#y("empty")}async onSizeLessThan(t){this.#i.size<t||await this.#y("next",()=>this.#i.size<t)}async onIdle(){this.#o===0&&this.#i.size===0||await this.#y("idle")}async onPendingZero(){this.#o!==0&&await this.#y("pendingZero")}async onRateLimit(){this.isRateLimited||await this.#y("rateLimit")}async onRateLimitCleared(){this.isRateLimited&&await this.#y("rateLimitCleared")}async onError(){return new Promise((t,r)=>{const n=o=>{this.off("error",n),r(o)};this.on("error",n)})}async#y(t,r){return new Promise(n=>{const o=()=>{r&&!r()||(this.off(t,o),n())};this.on(t,o)})}get size(){return this.#i.size}sizeBy(t){return this.#i.filter(t).length}get pending(){return this.#o}get isPaused(){return this.#g}#B(){this.#r||(this.on("add",()=>{this.#i.size>0&&this.#b()}),this.on("next",()=>{this.#b()}))}#b(){this.#r||this.#c||(this.#c=!0,queueMicrotask(()=>{this.#c=!1,this.#S()}))}#S(){const t=this.#n,r=!this.#r&&this.#s>=this.#t&&this.#i.size>0;r!==t&&(this.#n=r,this.emit(r?"rateLimit":"rateLimitCleared"))}get isRateLimited(){return this.#n}get isSaturated(){return this.#o===this.#p&&this.#i.size>0||this.isRateLimited&&this.#i.size>0}get runningTasks(){return[...this.#m.values()].map(t=>({...t}))}}function Yc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var us={exports:{}},je=us.exports={},ft,ht;function pn(){throw new Error("setTimeout has not been defined")}function gn(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?ft=setTimeout:ft=pn}catch{ft=pn}try{typeof clearTimeout=="function"?ht=clearTimeout:ht=gn}catch{ht=gn}})();function ls(e){if(ft===setTimeout)return setTimeout(e,0);if((ft===pn||!ft)&&setTimeout)return ft=setTimeout,setTimeout(e,0);try{return ft(e,0)}catch{try{return ft.call(null,e,0)}catch{return ft.call(this,e,0)}}}function Jc(e){if(ht===clearTimeout)return clearTimeout(e);if((ht===gn||!ht)&&clearTimeout)return ht=clearTimeout,clearTimeout(e);try{return ht(e)}catch{try{return ht.call(null,e)}catch{return ht.call(this,e)}}}var mt=[],Mt=!1,It,Ar=-1;function Zc(){!Mt||!It||(Mt=!1,It.length?mt=It.concat(mt):Ar=-1,mt.length&&cs())}function cs(){if(!Mt){var e=ls(Zc);Mt=!0;for(var t=mt.length;t;){for(It=mt,mt=[];++Ar<t;)It&&It[Ar].run();Ar=-1,t=mt.length}It=null,Mt=!1,Jc(e)}}je.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];mt.push(new fs(e,t)),mt.length===1&&!Mt&&ls(cs)};function fs(e,t){this.fun=e,this.array=t}fs.prototype.run=function(){this.fun.apply(null,this.array)},je.title="browser",je.browser=!0,je.env={},je.argv=[],je.version="",je.versions={};function bt(){}je.on=bt,je.addListener=bt,je.once=bt,je.off=bt,je.removeListener=bt,je.removeAllListeners=bt,je.emit=bt,je.prependListener=bt,je.prependOnceListener=bt,je.listeners=function(e){return[]},je.binding=function(e){throw new Error("process.binding is not supported")},je.cwd=function(){return"/"},je.chdir=function(e){throw new Error("process.chdir is not supported")},je.umask=function(){return 0};var Qc=us.exports;const ye=Yc(Qc);var yn,hs;function ef(){if(hs)return yn;hs=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,c=-1,l=0,s,f=0;f<=o.length;++f){if(f<o.length)s=o.charCodeAt(f);else{if(s===47)break;s=47}if(s===47){if(!(c===f-1||l===1))if(c!==f-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 h=a.lastIndexOf("/");if(h!==a.length-1){h===-1?(a="",u=0):(a=a.slice(0,h),u=a.length-1-a.lastIndexOf("/")),c=f,l=0;continue}}else if(a.length===2||a.length===1){a="",u=0,c=f,l=0;continue}}i&&(a.length>0?a+="/..":a="..",u=2)}else a.length>0?a+="/"+o.slice(c+1,f):a=o.slice(c+1,f),u=f-c-1;c=f,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,c=arguments.length-1;c>=-1&&!a;c--){var l;c>=0?l=arguments[c]:(u===void 0&&(u=ye.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 c=i.length,l=c-u,s=1;s<a.length&&a.charCodeAt(s)===47;++s);for(var f=a.length,h=f-s,x=l<h?l:h,m=-1,E=0;E<=x;++E){if(E===x){if(h>x){if(a.charCodeAt(s+E)===47)return a.slice(s+E+1);if(E===0)return a.slice(s+E)}else l>x&&(i.charCodeAt(u+E)===47?m=E:E===0&&(m=0));break}var T=i.charCodeAt(u+E),y=a.charCodeAt(s+E);if(T!==y)break;T===47&&(m=E)}var p="";for(E=u+m+1;E<=c;++E)(E===c||i.charCodeAt(E)===47)&&(p.length===0?p+="..":p+="/..");return p.length>0?p+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,c=-1,l=!0,s=i.length-1;s>=1;--s)if(a=i.charCodeAt(s),a===47){if(!l){c=s;break}}else l=!1;return c===-1?u?"/":".":u&&c===1?"//":i.slice(0,c)},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,c=-1,l=!0,s;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var f=a.length-1,h=-1;for(s=i.length-1;s>=0;--s){var x=i.charCodeAt(s);if(x===47){if(!l){u=s+1;break}}else h===-1&&(l=!1,h=s+1),f>=0&&(x===a.charCodeAt(f)?--f===-1&&(c=s):(f=-1,c=h))}return u===c?c=h:c===-1&&(c=i.length),i.slice(u,c)}else{for(s=i.length-1;s>=0;--s)if(i.charCodeAt(s)===47){if(!l){u=s+1;break}}else c===-1&&(l=!1,c=s+1);return c===-1?"":i.slice(u,c)}},extname:function(i){e(i);for(var a=-1,u=0,c=-1,l=!0,s=0,f=i.length-1;f>=0;--f){var h=i.charCodeAt(f);if(h===47){if(!l){u=f+1;break}continue}c===-1&&(l=!1,c=f+1),h===46?a===-1?a=f:s!==1&&(s=1):a!==-1&&(s=-1)}return a===-1||c===-1||s===0||s===1&&a===c-1&&a===u+1?"":i.slice(a,c)},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),c=u===47,l;c?(a.root="/",l=1):l=0;for(var s=-1,f=0,h=-1,x=!0,m=i.length-1,E=0;m>=l;--m){if(u=i.charCodeAt(m),u===47){if(!x){f=m+1;break}continue}h===-1&&(x=!1,h=m+1),u===46?s===-1?s=m:E!==1&&(E=1):s!==-1&&(E=-1)}return s===-1||h===-1||E===0||E===1&&s===h-1&&s===f+1?h!==-1&&(f===0&&c?a.base=a.name=i.slice(1,h):a.base=a.name=i.slice(f,h)):(f===0&&c?(a.name=i.slice(1,s),a.base=i.slice(1,h)):(a.name=i.slice(f,s),a.base=i.slice(f,h)),a.ext=i.slice(s,h)),f>0?a.dir=i.slice(0,f-1):c&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,yn=n,yn}var Tr=ef(),ds=fn(Tr);const wt=globalThis||void 0||self;function ps(e,t){return function(){return e.apply(t,arguments)}}const{toString:tf}=Object.prototype,{getPrototypeOf:mn}=Object,{iterator:Sr,toStringTag:gs}=Symbol,_r=(e=>t=>{const r=tf.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>_r(t)===e),Or=e=>t=>typeof t===e,{isArray:Dt}=Array,$t=Or("undefined");function rr(e){return e!==null&&!$t(e)&&e.constructor!==null&&!$t(e.constructor)&&tt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ys=lt("ArrayBuffer");function rf(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ys(e.buffer),t}const nf=Or("string"),tt=Or("function"),ms=Or("number"),nr=e=>e!==null&&typeof e=="object",of=e=>e===!0||e===!1,Nr=e=>{if(_r(e)!=="object")return!1;const t=mn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(gs in e)&&!(Sr in e)},sf=e=>{if(!nr(e)||rr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},af=lt("Date"),uf=lt("File"),lf=lt("Blob"),cf=lt("FileList"),ff=e=>nr(e)&&tt(e.pipe),hf=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||tt(e.append)&&((t=_r(e))==="formdata"||t==="object"&&tt(e.toString)&&e.toString()==="[object FormData]"))},df=lt("URLSearchParams"),[pf,gf,yf,mf]=["ReadableStream","Request","Response","Headers"].map(lt),bf=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ir(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Dt(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(rr(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let u;for(n=0;n<a;n++)u=i[n],t.call(null,e[u],u,e)}}function bs(e,t){if(rr(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Pt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:wt,ws=e=>!$t(e)&&e!==Pt;function bn(){const{caseless:e,skipUndefined:t}=ws(this)&&this||{},r={},n=(o,i)=>{const a=e&&bs(r,i)||i;Nr(r[a])&&Nr(o)?r[a]=bn(r[a],o):Nr(o)?r[a]=bn({},o):Dt(o)?r[a]=o.slice():(!t||!$t(o))&&(r[a]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&ir(arguments[o],n);return r}const wf=(e,t,r,{allOwnKeys:n}={})=>(ir(t,(o,i)=>{r&&tt(o)?e[i]=ps(o,r):e[i]=o},{allOwnKeys:n}),e),vf=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ef=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},xf=(e,t,r,n)=>{let o,i,a;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!u[a]&&(t[a]=e[a],u[a]=!0);e=r!==!1&&mn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Af=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Tf=e=>{if(!e)return null;if(Dt(e))return e;let t=e.length;if(!ms(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Sf=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&mn(Uint8Array)),_f=(e,t)=>{const n=(e&&e[Sr]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Of=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Nf=lt("HTMLFormElement"),Rf=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),vs=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),If=lt("RegExp"),Es=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ir(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},Pf=e=>{Es(e,(t,r)=>{if(tt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(tt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Ff=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Dt(e)?n(e):n(String(e).split(t)),r},Cf=()=>{},Bf=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Lf(e){return!!(e&&tt(e.append)&&e[gs]==="FormData"&&e[Sr])}const Uf=e=>{const t=new Array(10),r=(n,o)=>{if(nr(n)){if(t.indexOf(n)>=0)return;if(rr(n))return n;if(!("toJSON"in n)){t[o]=n;const i=Dt(n)?[]:{};return ir(n,(a,u)=>{const c=r(a,o+1);!$t(c)&&(i[u]=c)}),t[o]=void 0,i}}return n};return r(e,0)},jf=lt("AsyncFunction"),kf=e=>e&&(nr(e)||tt(e))&&tt(e.then)&&tt(e.catch),xs=((e,t)=>e?setImmediate:t?((r,n)=>(Pt.addEventListener("message",({source:o,data:i})=>{o===Pt&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Pt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",tt(Pt.postMessage)),Mf=typeof queueMicrotask<"u"?queueMicrotask.bind(Pt):typeof ye<"u"&&ye.nextTick||xs;var X={isArray:Dt,isArrayBuffer:ys,isBuffer:rr,isFormData:hf,isArrayBufferView:rf,isString:nf,isNumber:ms,isBoolean:of,isObject:nr,isPlainObject:Nr,isEmptyObject:sf,isReadableStream:pf,isRequest:gf,isResponse:yf,isHeaders:mf,isUndefined:$t,isDate:af,isFile:uf,isBlob:lf,isRegExp:If,isFunction:tt,isStream:ff,isURLSearchParams:df,isTypedArray:Sf,isFileList:cf,forEach:ir,merge:bn,extend:wf,trim:bf,stripBOM:vf,inherits:Ef,toFlatObject:xf,kindOf:_r,kindOfTest:lt,endsWith:Af,toArray:Tf,forEachEntry:_f,matchAll:Of,isHTMLForm:Nf,hasOwnProperty:vs,hasOwnProp:vs,reduceDescriptors:Es,freezeMethods:Pf,toObjectSet:Ff,toCamelCase:Rf,noop:Cf,toFiniteNumber:Bf,findKey:bs,global:Pt,isContextDefined:ws,isSpecCompliantForm:Lf,toJSONObject:Uf,isAsyncFn:jf,isThenable:kf,setImmediate:xs,asap:Mf,isIterable:e=>e!=null&&tt(e[Sr])},As={},Rr={};Rr.byteLength=qf,Rr.toByteArray=Vf,Rr.fromByteArray=Kf;for(var dt=[],it=[],Df=typeof Uint8Array<"u"?Uint8Array:Array,wn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qt=0,$f=wn.length;qt<$f;++qt)dt[qt]=wn[qt],it[wn.charCodeAt(qt)]=qt;it[45]=62,it[95]=63;function Ts(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function qf(e){var t=Ts(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Hf(e,t,r){return(t+r)*3/4-r}function Vf(e){var t,r=Ts(e),n=r[0],o=r[1],i=new Df(Hf(e,n,o)),a=0,u=o>0?n-4:n,c;for(c=0;c<u;c+=4)t=it[e.charCodeAt(c)]<<18|it[e.charCodeAt(c+1)]<<12|it[e.charCodeAt(c+2)]<<6|it[e.charCodeAt(c+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=t&255;return o===2&&(t=it[e.charCodeAt(c)]<<2|it[e.charCodeAt(c+1)]>>4,i[a++]=t&255),o===1&&(t=it[e.charCodeAt(c)]<<10|it[e.charCodeAt(c+1)]<<4|it[e.charCodeAt(c+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function Wf(e){return dt[e>>18&63]+dt[e>>12&63]+dt[e>>6&63]+dt[e&63]}function Gf(e,t,r){for(var n,o=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),o.push(Wf(n));return o.join("")}function Kf(e){for(var t,r=e.length,n=r%3,o=[],i=16383,a=0,u=r-n;a<u;a+=i)o.push(Gf(e,a,a+i>u?u:a+i));return n===1?(t=e[r-1],o.push(dt[t>>2]+dt[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],o.push(dt[t>>10]+dt[t>>4&63]+dt[t<<2&63]+"=")),o.join("")}var vn={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */vn.read=function(e,t,r,n,o){var i,a,u=o*8-n-1,c=(1<<u)-1,l=c>>1,s=-7,f=r?o-1:0,h=r?-1:1,x=e[t+f];for(f+=h,i=x&(1<<-s)-1,x>>=-s,s+=u;s>0;i=i*256+e[t+f],f+=h,s-=8);for(a=i&(1<<-s)-1,i>>=-s,s+=n;s>0;a=a*256+e[t+f],f+=h,s-=8);if(i===0)i=1-l;else{if(i===c)return a?NaN:(x?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-l}return(x?-1:1)*a*Math.pow(2,i-n)},vn.write=function(e,t,r,n,o,i){var a,u,c,l=i*8-o-1,s=(1<<l)-1,f=s>>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=n?0:i-1,m=n?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=s):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+f>=1?t+=h/c:t+=h*Math.pow(2,1-f),t*c>=2&&(a++,c/=2),a+f>=s?(u=0,a=s):a+f>=1?(u=(t*c-1)*Math.pow(2,o),a=a+f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[r+x]=u&255,x+=m,u/=256,o-=8);for(a=a<<o|u,l+=o;l>0;e[r+x]=a&255,x+=m,a/=256,l-=8);e[r+x-m]|=E*128};/*!
|
|
2
2
|
* The buffer module from node.js, for the browser.
|
|
3
3
|
*
|
|
4
4
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
5
|
* @license MIT
|
|
6
|
-
*/(function(e){const t=Rr,r=wn,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o;const{Uint8Array:i,ArrayBuffer:a,SharedArrayBuffer:u}=globalThis;s.TYPED_ARRAY_SUPPORT=c(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{const F=new i(1),b={foo:function(){return 42}};return Object.setPrototypeOf(b,i.prototype),Object.setPrototypeOf(F,b),F.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function l(F){if(F>o)throw new RangeError('The value "'+F+'" is invalid for option "size"');const b=new i(F);return Object.setPrototypeOf(b,s.prototype),b}function s(F,b,S){if(typeof F=="number"){if(typeof b=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(F)}return f(F,b,S)}s.poolSize=8192;function f(F,b,S){if(typeof F=="string")return x(F,b);if(a.isView(F))return y(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(Ge(F,a)||F&&Ge(F.buffer,a)||typeof u<"u"&&(Ge(F,u)||F&&Ge(F.buffer,u)))return p(F,b,S);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const M=F.valueOf&&F.valueOf();if(M!=null&&M!==F)return s.from(M,b,S);const H=d(F);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return s.from(F[Symbol.toPrimitive]("string"),b,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}s.from=function(F,b,S){return f(F,b,S)},Object.setPrototypeOf(s.prototype,i.prototype),Object.setPrototypeOf(s,i);function h(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function E(F,b,S){return h(F),F<=0?l(F):b!==void 0?typeof S=="string"?l(F).fill(b,S):l(F).fill(b):l(F)}s.alloc=function(F,b,S){return E(F,b,S)};function m(F){return h(F),l(F<0?0:g(F)|0)}s.allocUnsafe=function(F){return m(F)},s.allocUnsafeSlow=function(F){return m(F)};function x(F,b){if((typeof b!="string"||b==="")&&(b="utf8"),!s.isEncoding(b))throw new TypeError("Unknown encoding: "+b);const S=A(F,b)|0;let M=l(S);const H=M.write(F,b);return H!==S&&(M=M.slice(0,H)),M}function T(F){const b=F.length<0?0:g(F.length)|0,S=l(b);for(let M=0;M<b;M+=1)S[M]=F[M]&255;return S}function y(F){if(Ge(F,i)){const b=new i(F);return p(b.buffer,b.byteOffset,b.byteLength)}return T(F)}function p(F,b,S){if(b<0||F.byteLength<b)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<b+(S||0))throw new RangeError('"length" is outside of buffer bounds');let M;return b===void 0&&S===void 0?M=new i(F):S===void 0?M=new i(F,b):M=new i(F,b,S),Object.setPrototypeOf(M,s.prototype),M}function d(F){if(s.isBuffer(F)){const b=g(F.length)|0,S=l(b);return S.length===0||F.copy(S,0,0,b),S}if(F.length!==void 0)return typeof F.length!="number"||ut(F.length)?l(0):T(F);if(F.type==="Buffer"&&Array.isArray(F.data))return T(F.data)}function g(F){if(F>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return F|0}function v(F){return+F!=F&&(F=0),s.alloc(+F)}s.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==s.prototype},s.compare=function(b,S){if(Ge(b,i)&&(b=s.from(b,b.offset,b.byteLength)),Ge(S,i)&&(S=s.from(S,S.offset,S.byteLength)),!s.isBuffer(b)||!s.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(b===S)return 0;let M=b.length,H=S.length;for(let z=0,ne=Math.min(M,H);z<ne;++z)if(b[z]!==S[z]){M=b[z],H=S[z];break}return M<H?-1:H<M?1:0},s.isEncoding=function(b){switch(String(b).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(b,S){if(!Array.isArray(b))throw new TypeError('"list" argument must be an Array of Buffers');if(b.length===0)return s.alloc(0);let M;if(S===void 0)for(S=0,M=0;M<b.length;++M)S+=b[M].length;const H=s.allocUnsafe(S);let z=0;for(M=0;M<b.length;++M){let ne=b[M];if(Ge(ne,i))z+ne.length>H.length?(s.isBuffer(ne)||(ne=s.from(ne)),ne.copy(H,z)):i.prototype.set.call(H,ne,z);else if(s.isBuffer(ne))ne.copy(H,z);else throw new TypeError('"list" argument must be an Array of Buffers');z+=ne.length}return H};function A(F,b){if(s.isBuffer(F))return F.length;if(a.isView(F)||Ge(F,a))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);const S=F.length,M=arguments.length>2&&arguments[2]===!0;if(!M&&S===0)return 0;let H=!1;for(;;)switch(b){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return He(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return Ne(F).length;default:if(H)return M?-1:He(F).length;b=(""+b).toLowerCase(),H=!0}}s.byteLength=A;function P(F,b,S){let M=!1;if((b===void 0||b<0)&&(b=0),b>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,b>>>=0,S<=b))return"";for(F||(F="utf8");;)switch(F){case"hex":return G(this,b,S);case"utf8":case"utf-8":return le(this,b,S);case"ascii":return be(this,b,S);case"latin1":case"binary":return pe(this,b,S);case"base64":return ue(this,b,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,b,S);default:if(M)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),M=!0}}s.prototype._isBuffer=!0;function I(F,b,S){const M=F[b];F[b]=F[S],F[S]=M}s.prototype.swap16=function(){const b=this.length;if(b%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let S=0;S<b;S+=2)I(this,S,S+1);return this},s.prototype.swap32=function(){const b=this.length;if(b%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let S=0;S<b;S+=4)I(this,S,S+3),I(this,S+1,S+2);return this},s.prototype.swap64=function(){const b=this.length;if(b%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let S=0;S<b;S+=8)I(this,S,S+7),I(this,S+1,S+6),I(this,S+2,S+5),I(this,S+3,S+4);return this},s.prototype.toString=function(){const b=this.length;return b===0?"":arguments.length===0?le(this,0,b):P.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(b){if(!s.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?!0:s.compare(this,b)===0},s.prototype.inspect=function(){let b="";const S=e.INSPECT_MAX_BYTES;return b=this.toString("hex",0,S).replace(/(.{2})/g,"$1 ").trim(),this.length>S&&(b+=" ... "),"<Buffer "+b+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(b,S,M,H,z){if(Ge(b,i)&&(b=s.from(b,b.offset,b.byteLength)),!s.isBuffer(b))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof b);if(S===void 0&&(S=0),M===void 0&&(M=b?b.length:0),H===void 0&&(H=0),z===void 0&&(z=this.length),S<0||M>b.length||H<0||z>this.length)throw new RangeError("out of range index");if(H>=z&&S>=M)return 0;if(H>=z)return-1;if(S>=M)return 1;if(S>>>=0,M>>>=0,H>>>=0,z>>>=0,this===b)return 0;let ne=z-H,we=M-S;const Re=Math.min(ne,we),Pe=this.slice(H,z),Ie=b.slice(S,M);for(let Ae=0;Ae<Re;++Ae)if(Pe[Ae]!==Ie[Ae]){ne=Pe[Ae],we=Ie[Ae];break}return ne<we?-1:we<ne?1:0};function O(F,b,S,M,H){if(F.length===0)return-1;if(typeof S=="string"?(M=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,ut(S)&&(S=H?0:F.length-1),S<0&&(S=F.length+S),S>=F.length){if(H)return-1;S=F.length-1}else if(S<0)if(H)S=0;else return-1;if(typeof b=="string"&&(b=s.from(b,M)),s.isBuffer(b))return b.length===0?-1:j(F,b,S,M,H);if(typeof b=="number")return b=b&255,typeof i.prototype.indexOf=="function"?H?i.prototype.indexOf.call(F,b,S):i.prototype.lastIndexOf.call(F,b,S):j(F,[b],S,M,H);throw new TypeError("val must be string, number or Buffer")}function j(F,b,S,M,H){let z=1,ne=F.length,we=b.length;if(M!==void 0&&(M=String(M).toLowerCase(),M==="ucs2"||M==="ucs-2"||M==="utf16le"||M==="utf-16le")){if(F.length<2||b.length<2)return-1;z=2,ne/=2,we/=2,S/=2}function Re(Ie,Ae){return z===1?Ie[Ae]:Ie.readUInt16BE(Ae*z)}let Pe;if(H){let Ie=-1;for(Pe=S;Pe<ne;Pe++)if(Re(F,Pe)===Re(b,Ie===-1?0:Pe-Ie)){if(Ie===-1&&(Ie=Pe),Pe-Ie+1===we)return Ie*z}else Ie!==-1&&(Pe-=Pe-Ie),Ie=-1}else for(S+we>ne&&(S=ne-we),Pe=S;Pe>=0;Pe--){let Ie=!0;for(let Ae=0;Ae<we;Ae++)if(Re(F,Pe+Ae)!==Re(b,Ae)){Ie=!1;break}if(Ie)return Pe}return-1}s.prototype.includes=function(b,S,M){return this.indexOf(b,S,M)!==-1},s.prototype.indexOf=function(b,S,M){return O(this,b,S,M,!0)},s.prototype.lastIndexOf=function(b,S,M){return O(this,b,S,M,!1)};function K(F,b,S,M){S=Number(S)||0;const H=F.length-S;M?(M=Number(M),M>H&&(M=H)):M=H;const z=b.length;M>z/2&&(M=z/2);let ne;for(ne=0;ne<M;++ne){const we=parseInt(b.substr(ne*2,2),16);if(ut(we))return ne;F[S+ne]=we}return ne}function L(F,b,S,M){return Ye(He(b,F.length-S),F,S,M)}function k(F,b,S,M){return Ye(Me(b),F,S,M)}function re(F,b,S,M){return Ye(Ne(b),F,S,M)}function ee(F,b,S,M){return Ye(xe(b,F.length-S),F,S,M)}s.prototype.write=function(b,S,M,H){if(S===void 0)H="utf8",M=this.length,S=0;else if(M===void 0&&typeof S=="string")H=S,M=this.length,S=0;else if(isFinite(S))S=S>>>0,isFinite(M)?(M=M>>>0,H===void 0&&(H="utf8")):(H=M,M=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const z=this.length-S;if((M===void 0||M>z)&&(M=z),b.length>0&&(M<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");H||(H="utf8");let ne=!1;for(;;)switch(H){case"hex":return K(this,b,S,M);case"utf8":case"utf-8":return L(this,b,S,M);case"ascii":case"latin1":case"binary":return k(this,b,S,M);case"base64":return re(this,b,S,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,b,S,M);default:if(ne)throw new TypeError("Unknown encoding: "+H);H=(""+H).toLowerCase(),ne=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(F,b,S){return b===0&&S===F.length?t.fromByteArray(F):t.fromByteArray(F.slice(b,S))}function le(F,b,S){S=Math.min(F.length,S);const M=[];let H=b;for(;H<S;){const z=F[H];let ne=null,we=z>239?4:z>223?3:z>191?2:1;if(H+we<=S){let Re,Pe,Ie,Ae;switch(we){case 1:z<128&&(ne=z);break;case 2:Re=F[H+1],(Re&192)===128&&(Ae=(z&31)<<6|Re&63,Ae>127&&(ne=Ae));break;case 3:Re=F[H+1],Pe=F[H+2],(Re&192)===128&&(Pe&192)===128&&(Ae=(z&15)<<12|(Re&63)<<6|Pe&63,Ae>2047&&(Ae<55296||Ae>57343)&&(ne=Ae));break;case 4:Re=F[H+1],Pe=F[H+2],Ie=F[H+3],(Re&192)===128&&(Pe&192)===128&&(Ie&192)===128&&(Ae=(z&15)<<18|(Re&63)<<12|(Pe&63)<<6|Ie&63,Ae>65535&&Ae<1114112&&(ne=Ae))}}ne===null?(ne=65533,we=1):ne>65535&&(ne-=65536,M.push(ne>>>10&1023|55296),ne=56320|ne&1023),M.push(ne),H+=we}return fe(M)}const de=4096;function fe(F){const b=F.length;if(b<=de)return String.fromCharCode.apply(String,F);let S="",M=0;for(;M<b;)S+=String.fromCharCode.apply(String,F.slice(M,M+=de));return S}function be(F,b,S){let M="";S=Math.min(F.length,S);for(let H=b;H<S;++H)M+=String.fromCharCode(F[H]&127);return M}function pe(F,b,S){let M="";S=Math.min(F.length,S);for(let H=b;H<S;++H)M+=String.fromCharCode(F[H]);return M}function G(F,b,S){const M=F.length;(!b||b<0)&&(b=0),(!S||S<0||S>M)&&(S=M);let H="";for(let z=b;z<S;++z)H+=ft[F[z]];return H}function Z(F,b,S){const M=F.slice(b,S);let H="";for(let z=0;z<M.length-1;z+=2)H+=String.fromCharCode(M[z]+M[z+1]*256);return H}s.prototype.slice=function(b,S){const M=this.length;b=~~b,S=S===void 0?M:~~S,b<0?(b+=M,b<0&&(b=0)):b>M&&(b=M),S<0?(S+=M,S<0&&(S=0)):S>M&&(S=M),S<b&&(S=b);const H=this.subarray(b,S);return Object.setPrototypeOf(H,s.prototype),H};function Q(F,b,S){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+b>S)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(b,S,M){b=b>>>0,S=S>>>0,M||Q(b,S,this.length);let H=this[b],z=1,ne=0;for(;++ne<S&&(z*=256);)H+=this[b+ne]*z;return H},s.prototype.readUintBE=s.prototype.readUIntBE=function(b,S,M){b=b>>>0,S=S>>>0,M||Q(b,S,this.length);let H=this[b+--S],z=1;for(;S>0&&(z*=256);)H+=this[b+--S]*z;return H},s.prototype.readUint8=s.prototype.readUInt8=function(b,S){return b=b>>>0,S||Q(b,1,this.length),this[b]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(b,S){return b=b>>>0,S||Q(b,2,this.length),this[b]|this[b+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(b,S){return b=b>>>0,S||Q(b,2,this.length),this[b]<<8|this[b+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+this[b+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),this[b]*16777216+(this[b+1]<<16|this[b+2]<<8|this[b+3])},s.prototype.readBigUInt64LE=Ve(function(b){b=b>>>0,ce(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&he(b,this.length-8);const H=S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24,z=this[++b]+this[++b]*2**8+this[++b]*2**16+M*2**24;return BigInt(H)+(BigInt(z)<<BigInt(32))}),s.prototype.readBigUInt64BE=Ve(function(b){b=b>>>0,ce(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&he(b,this.length-8);const H=S*2**24+this[++b]*2**16+this[++b]*2**8+this[++b],z=this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+M;return(BigInt(H)<<BigInt(32))+BigInt(z)}),s.prototype.readIntLE=function(b,S,M){b=b>>>0,S=S>>>0,M||Q(b,S,this.length);let H=this[b],z=1,ne=0;for(;++ne<S&&(z*=256);)H+=this[b+ne]*z;return z*=128,H>=z&&(H-=Math.pow(2,8*S)),H},s.prototype.readIntBE=function(b,S,M){b=b>>>0,S=S>>>0,M||Q(b,S,this.length);let H=S,z=1,ne=this[b+--H];for(;H>0&&(z*=256);)ne+=this[b+--H]*z;return z*=128,ne>=z&&(ne-=Math.pow(2,8*S)),ne},s.prototype.readInt8=function(b,S){return b=b>>>0,S||Q(b,1,this.length),this[b]&128?(255-this[b]+1)*-1:this[b]},s.prototype.readInt16LE=function(b,S){b=b>>>0,S||Q(b,2,this.length);const M=this[b]|this[b+1]<<8;return M&32768?M|4294901760:M},s.prototype.readInt16BE=function(b,S){b=b>>>0,S||Q(b,2,this.length);const M=this[b+1]|this[b]<<8;return M&32768?M|4294901760:M},s.prototype.readInt32LE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},s.prototype.readInt32BE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},s.prototype.readBigInt64LE=Ve(function(b){b=b>>>0,ce(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&he(b,this.length-8);const H=this[b+4]+this[b+5]*2**8+this[b+6]*2**16+(M<<24);return(BigInt(H)<<BigInt(32))+BigInt(S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24)}),s.prototype.readBigInt64BE=Ve(function(b){b=b>>>0,ce(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&he(b,this.length-8);const H=(S<<24)+this[++b]*2**16+this[++b]*2**8+this[++b];return(BigInt(H)<<BigInt(32))+BigInt(this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+M)}),s.prototype.readFloatLE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),r.read(this,b,!0,23,4)},s.prototype.readFloatBE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),r.read(this,b,!1,23,4)},s.prototype.readDoubleLE=function(b,S){return b=b>>>0,S||Q(b,8,this.length),r.read(this,b,!0,52,8)},s.prototype.readDoubleBE=function(b,S){return b=b>>>0,S||Q(b,8,this.length),r.read(this,b,!1,52,8)};function ae(F,b,S,M,H,z){if(!s.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>H||b<z)throw new RangeError('"value" argument is out of bounds');if(S+M>F.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(b,S,M,H){if(b=+b,S=S>>>0,M=M>>>0,!H){const we=Math.pow(2,8*M)-1;ae(this,b,S,M,we,0)}let z=1,ne=0;for(this[S]=b&255;++ne<M&&(z*=256);)this[S+ne]=b/z&255;return S+M},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(b,S,M,H){if(b=+b,S=S>>>0,M=M>>>0,!H){const we=Math.pow(2,8*M)-1;ae(this,b,S,M,we,0)}let z=M-1,ne=1;for(this[S+z]=b&255;--z>=0&&(ne*=256);)this[S+z]=b/ne&255;return S+M},s.prototype.writeUint8=s.prototype.writeUInt8=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,1,255,0),this[S]=b&255,S+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,2,65535,0),this[S]=b&255,this[S+1]=b>>>8,S+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,2,65535,0),this[S]=b>>>8,this[S+1]=b&255,S+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,4,4294967295,0),this[S+3]=b>>>24,this[S+2]=b>>>16,this[S+1]=b>>>8,this[S]=b&255,S+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,4,4294967295,0),this[S]=b>>>24,this[S+1]=b>>>16,this[S+2]=b>>>8,this[S+3]=b&255,S+4};function V(F,b,S,M,H){ge(b,M,H,F,S,7);let z=Number(b&BigInt(4294967295));F[S++]=z,z=z>>8,F[S++]=z,z=z>>8,F[S++]=z,z=z>>8,F[S++]=z;let ne=Number(b>>BigInt(32)&BigInt(4294967295));return F[S++]=ne,ne=ne>>8,F[S++]=ne,ne=ne>>8,F[S++]=ne,ne=ne>>8,F[S++]=ne,S}function R(F,b,S,M,H){ge(b,M,H,F,S,7);let z=Number(b&BigInt(4294967295));F[S+7]=z,z=z>>8,F[S+6]=z,z=z>>8,F[S+5]=z,z=z>>8,F[S+4]=z;let ne=Number(b>>BigInt(32)&BigInt(4294967295));return F[S+3]=ne,ne=ne>>8,F[S+2]=ne,ne=ne>>8,F[S+1]=ne,ne=ne>>8,F[S]=ne,S+8}s.prototype.writeBigUInt64LE=Ve(function(b,S=0){return V(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Ve(function(b,S=0){return R(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(b,S,M,H){if(b=+b,S=S>>>0,!H){const Re=Math.pow(2,8*M-1);ae(this,b,S,M,Re-1,-Re)}let z=0,ne=1,we=0;for(this[S]=b&255;++z<M&&(ne*=256);)b<0&&we===0&&this[S+z-1]!==0&&(we=1),this[S+z]=(b/ne>>0)-we&255;return S+M},s.prototype.writeIntBE=function(b,S,M,H){if(b=+b,S=S>>>0,!H){const Re=Math.pow(2,8*M-1);ae(this,b,S,M,Re-1,-Re)}let z=M-1,ne=1,we=0;for(this[S+z]=b&255;--z>=0&&(ne*=256);)b<0&&we===0&&this[S+z+1]!==0&&(we=1),this[S+z]=(b/ne>>0)-we&255;return S+M},s.prototype.writeInt8=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,1,127,-128),b<0&&(b=255+b+1),this[S]=b&255,S+1},s.prototype.writeInt16LE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,2,32767,-32768),this[S]=b&255,this[S+1]=b>>>8,S+2},s.prototype.writeInt16BE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,2,32767,-32768),this[S]=b>>>8,this[S+1]=b&255,S+2},s.prototype.writeInt32LE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,4,2147483647,-2147483648),this[S]=b&255,this[S+1]=b>>>8,this[S+2]=b>>>16,this[S+3]=b>>>24,S+4},s.prototype.writeInt32BE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),this[S]=b>>>24,this[S+1]=b>>>16,this[S+2]=b>>>8,this[S+3]=b&255,S+4},s.prototype.writeBigInt64LE=Ve(function(b,S=0){return V(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Ve(function(b,S=0){return R(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function N(F,b,S,M,H,z){if(S+M>F.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function q(F,b,S,M,H){return b=+b,S=S>>>0,H||N(F,b,S,4),r.write(F,b,S,M,23,4),S+4}s.prototype.writeFloatLE=function(b,S,M){return q(this,b,S,!0,M)},s.prototype.writeFloatBE=function(b,S,M){return q(this,b,S,!1,M)};function $(F,b,S,M,H){return b=+b,S=S>>>0,H||N(F,b,S,8),r.write(F,b,S,M,52,8),S+8}s.prototype.writeDoubleLE=function(b,S,M){return $(this,b,S,!0,M)},s.prototype.writeDoubleBE=function(b,S,M){return $(this,b,S,!1,M)},s.prototype.copy=function(b,S,M,H){if(!s.isBuffer(b))throw new TypeError("argument should be a Buffer");if(M||(M=0),!H&&H!==0&&(H=this.length),S>=b.length&&(S=b.length),S||(S=0),H>0&&H<M&&(H=M),H===M||b.length===0||this.length===0)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(M<0||M>=this.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length),b.length-S<H-M&&(H=b.length-S+M);const z=H-M;return this===b&&typeof i.prototype.copyWithin=="function"?this.copyWithin(S,M,H):i.prototype.set.call(b,this.subarray(M,H),S),z},s.prototype.fill=function(b,S,M,H){if(typeof b=="string"){if(typeof S=="string"?(H=S,S=0,M=this.length):typeof M=="string"&&(H=M,M=this.length),H!==void 0&&typeof H!="string")throw new TypeError("encoding must be a string");if(typeof H=="string"&&!s.isEncoding(H))throw new TypeError("Unknown encoding: "+H);if(b.length===1){const ne=b.charCodeAt(0);(H==="utf8"&&ne<128||H==="latin1")&&(b=ne)}}else typeof b=="number"?b=b&255:typeof b=="boolean"&&(b=Number(b));if(S<0||this.length<S||this.length<M)throw new RangeError("Out of range index");if(M<=S)return this;S=S>>>0,M=M===void 0?this.length:M>>>0,b||(b=0);let z;if(typeof b=="number")for(z=S;z<M;++z)this[z]=b;else{const ne=s.isBuffer(b)?b:s.from(b,H),we=ne.length;if(we===0)throw new TypeError('The value "'+b+'" is invalid for argument "value"');for(z=0;z<M-S;++z)this[z+S]=ne[z%we]}return this};const B={};function U(F,b,S){B[F]=class extends S{constructor(){super(),Object.defineProperty(this,"message",{value:b.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${F}]`,this.stack,delete this.name}get code(){return F}set code(H){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:H,writable:!0})}toString(){return`${this.name} [${F}]: ${this.message}`}}}U("ERR_BUFFER_OUT_OF_BOUNDS",function(F){return F?`${F} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(F,b){return`The "${F}" argument must be of type number. Received type ${typeof b}`},TypeError),U("ERR_OUT_OF_RANGE",function(F,b,S){let M=`The value of "${F}" is out of range.`,H=S;return Number.isInteger(S)&&Math.abs(S)>2**32?H=J(String(S)):typeof S=="bigint"&&(H=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(H=J(H)),H+="n"),M+=` It must be ${b}. Received ${H}`,M},RangeError);function J(F){let b="",S=F.length;const M=F[0]==="-"?1:0;for(;S>=M+4;S-=3)b=`_${F.slice(S-3,S)}${b}`;return`${F.slice(0,S)}${b}`}function oe(F,b,S){ce(b,"offset"),(F[b]===void 0||F[b+S]===void 0)&&he(b,F.length-(S+1))}function ge(F,b,S,M,H,z){if(F>S||F<b){const ne=typeof b=="bigint"?"n":"";let we;throw b===0||b===BigInt(0)?we=`>= 0${ne} and < 2${ne} ** ${(z+1)*8}${ne}`:we=`>= -(2${ne} ** ${(z+1)*8-1}${ne}) and < 2 ** ${(z+1)*8-1}${ne}`,new B.ERR_OUT_OF_RANGE("value",we,F)}oe(M,H,z)}function ce(F,b){if(typeof F!="number")throw new B.ERR_INVALID_ARG_TYPE(b,"number",F)}function he(F,b,S){throw Math.floor(F)!==F?(ce(F,S),new B.ERR_OUT_OF_RANGE("offset","an integer",F)):b<0?new B.ERR_BUFFER_OUT_OF_BOUNDS:new B.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${b}`,F)}const Oe=/[^+/0-9A-Za-z-_]/g;function te(F){if(F=F.split("=")[0],F=F.trim().replace(Oe,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function He(F,b){b=b||1/0;let S;const M=F.length;let H=null;const z=[];for(let ne=0;ne<M;++ne){if(S=F.charCodeAt(ne),S>55295&&S<57344){if(!H){if(S>56319){(b-=3)>-1&&z.push(239,191,189);continue}else if(ne+1===M){(b-=3)>-1&&z.push(239,191,189);continue}H=S;continue}if(S<56320){(b-=3)>-1&&z.push(239,191,189),H=S;continue}S=(H-55296<<10|S-56320)+65536}else H&&(b-=3)>-1&&z.push(239,191,189);if(H=null,S<128){if((b-=1)<0)break;z.push(S)}else if(S<2048){if((b-=2)<0)break;z.push(S>>6|192,S&63|128)}else if(S<65536){if((b-=3)<0)break;z.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((b-=4)<0)break;z.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return z}function Me(F){const b=[];for(let S=0;S<F.length;++S)b.push(F.charCodeAt(S)&255);return b}function xe(F,b){let S,M,H;const z=[];for(let ne=0;ne<F.length&&!((b-=2)<0);++ne)S=F.charCodeAt(ne),M=S>>8,H=S%256,z.push(H),z.push(M);return z}function Ne(F){return t.toByteArray(te(F))}function Ye(F,b,S,M){let H;for(H=0;H<M&&!(H+S>=b.length||H>=F.length);++H)b[H+S]=F[H];return H}function Ge(F,b){return F instanceof b||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===b.name}function ut(F){return F!==F}const ft=(function(){const F="0123456789abcdef",b=new Array(256);for(let S=0;S<16;++S){const M=S*16;for(let H=0;H<16;++H)b[M+H]=F[S]+F[H]}return b})();function Ve(F){return typeof BigInt>"u"?Nt:F}function Nt(){throw new Error("BigInt not supported")}})(Ts);const Ht=Ts.Buffer;function me(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}X.inherits(me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:X.toJSONObject(this.config),code:this.code,status:this.status}}});const _s=me.prototype,Os={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Os[e]={value:e}}),Object.defineProperties(me,Os),Object.defineProperty(_s,"isAxiosError",{value:!0}),me.from=(e,t,r,n,o,i)=>{const a=Object.create(_s);X.toFlatObject(e,a,function(s){return s!==Error.prototype},l=>l!=="isAxiosError");const u=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return me.call(a,u,c,r,n,o),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};var Yf=null;function vn(e){return X.isPlainObject(e)||X.isArray(e)}function Ns(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function Rs(e,t,r){return e?e.concat(t).map(function(o,i){return o=Ns(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Jf(e){return X.isArray(e)&&!e.some(vn)}const Zf=X.toFlatObject(X,{},null,function(t){return/^is[A-Z]/.test(t)});function Pr(e,t,r){if(!X.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=X.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,T){return!X.isUndefined(T[x])});const n=r.metaTokens,o=r.visitor||s,i=r.dots,a=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(t);if(!X.isFunction(o))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(X.isDate(m))return m.toISOString();if(X.isBoolean(m))return m.toString();if(!c&&X.isBlob(m))throw new me("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(m)||X.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Ht.from(m):m}function s(m,x,T){let y=m;if(m&&!T&&typeof m=="object"){if(X.endsWith(x,"{}"))x=n?x:x.slice(0,-2),m=JSON.stringify(m);else if(X.isArray(m)&&Jf(m)||(X.isFileList(m)||X.endsWith(x,"[]"))&&(y=X.toArray(m)))return x=Ns(x),y.forEach(function(d,g){!(X.isUndefined(d)||d===null)&&t.append(a===!0?Rs([x],g,i):a===null?x:x+"[]",l(d))}),!1}return vn(m)?!0:(t.append(Rs(T,x,i),l(m)),!1)}const f=[],h=Object.assign(Zf,{defaultVisitor:s,convertValue:l,isVisitable:vn});function E(m,x){if(!X.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+x.join("."));f.push(m),X.forEach(m,function(y,p){(!(X.isUndefined(y)||y===null)&&o.call(t,y,X.isString(p)?p.trim():p,x,h))===!0&&E(y,x?x.concat(p):[p])}),f.pop()}}if(!X.isObject(e))throw new TypeError("data must be an object");return E(e),t}function Ps(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function En(e,t){this._pairs=[],e&&Pr(e,this,t)}const Is=En.prototype;Is.append=function(t,r){this._pairs.push([t,r])},Is.toString=function(t){const r=t?function(n){return t.call(this,n,Ps)}:Ps;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Qf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Fs(e,t,r){if(!t)return e;const n=r&&r.encode||Qf;X.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=X.isURLSearchParams(t)?t.toString():new En(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Cs{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){X.forEach(this.handlers,function(n){n!==null&&t(n)})}}var Bs={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eh=typeof URLSearchParams<"u"?URLSearchParams:En,th=typeof FormData<"u"?FormData:null,rh=typeof Blob<"u"?Blob:null,nh={isBrowser:!0,classes:{URLSearchParams:eh,FormData:th,Blob:rh},protocols:["http","https","file","blob","url","data"]};const xn=typeof window<"u"&&typeof document<"u",An=typeof navigator=="object"&&navigator||void 0,ih=xn&&(!An||["ReactNative","NativeScript","NS"].indexOf(An.product)<0),oh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sh=xn&&window.location.href||"http://localhost";var ah=Object.freeze({__proto__:null,hasBrowserEnv:xn,hasStandardBrowserEnv:ih,hasStandardBrowserWebWorkerEnv:oh,navigator:An,origin:sh}),Ke={...ah,...nh};function uh(e,t){return Pr(e,new Ke.classes.URLSearchParams,{visitor:function(r,n,o,i){return Ke.isNode&&X.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function lh(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ch(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function Ls(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const u=Number.isFinite(+a),c=i>=r.length;return a=!a&&X.isArray(o)?o.length:a,c?(X.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!u):((!o[a]||!X.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&X.isArray(o[a])&&(o[a]=ch(o[a])),!u)}if(X.isFormData(e)&&X.isFunction(e.entries)){const r={};return X.forEachEntry(e,(n,o)=>{t(lh(n),o,r,0)}),r}return null}function fh(e,t,r){if(X.isString(e))try{return(t||JSON.parse)(e),X.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const or={transitional:Bs,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=X.isObject(t);if(i&&X.isHTMLForm(t)&&(t=new FormData(t)),X.isFormData(t))return o?JSON.stringify(Ls(t)):t;if(X.isArrayBuffer(t)||X.isBuffer(t)||X.isStream(t)||X.isFile(t)||X.isBlob(t)||X.isReadableStream(t))return t;if(X.isArrayBufferView(t))return t.buffer;if(X.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return uh(t,this.formSerializer).toString();if((u=X.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Pr(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),fh(t)):t}],transformResponse:[function(t){const r=this.transitional||or.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(X.isResponse(t)||X.isReadableStream(t))return t;if(t&&X.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(u){if(a)throw u.name==="SyntaxError"?me.from(u,me.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],e=>{or.headers[e]={}});const hh=X.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var dh=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
7
|
-
`).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&
|
|
8
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}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[Us]=this[Us]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=sr(a);n[u]||(mh(o,a),n[u]=!0)}return X.isArray(t)?t.forEach(i):i(t),this}};rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(rt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),X.freezeMethods(rt);function Sn(e,t){const r=this||or,n=t||r,o=rt.from(n.headers);let i=n.data;return X.forEach(e,function(u){i=u.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function js(e){return!!(e&&e.__CANCEL__)}function Vt(e,t,r){me.call(this,e??"canceled",me.ERR_CANCELED,t,r),this.name="CanceledError"}X.inherits(Vt,me,{__CANCEL__:!0});function ks(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new me("Request failed with status code "+r.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function bh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function wh(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(c){const l=Date.now(),s=n[i];a||(a=l),r[o]=c,n[o]=l;let f=i,h=0;for(;f!==o;)h+=r[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const E=s&&l-s;return E?Math.round(h*1e3/E):void 0}}function vh(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(...l)};return[(...l)=>{const s=Date.now(),f=s-r;f>=n?a(l,s):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-f)))},()=>o&&a(o)]}const Fr=(e,t,r=3)=>{let n=0;const o=wh(50,250);return vh(i=>{const a=i.loaded,u=i.lengthComputable?i.total:void 0,c=a-n,l=o(c),s=a<=u;n=a;const f={loaded:a,total:u,progress:u?a/u:void 0,bytes:c,rate:l||void 0,estimated:l&&u&&s?(u-a)/l:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(f)},r)},Ms=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ds=e=>(...t)=>X.asap(()=>e(...t));var Eh=Ke.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ke.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ke.origin),Ke.navigator&&/(msie|trident)/i.test(Ke.navigator.userAgent)):()=>!0,xh=Ke.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];X.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),X.isString(n)&&a.push("path="+n),X.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 Ah(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Th(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $s(e,t,r){let n=!Ah(t);return e&&(n||r==!1)?Th(e,t):t}const qs=e=>e instanceof rt?{...e}:e;function Ft(e,t){t=t||{};const r={};function n(l,s,f,h){return X.isPlainObject(l)&&X.isPlainObject(s)?X.merge.call({caseless:h},l,s):X.isPlainObject(s)?X.merge({},s):X.isArray(s)?s.slice():s}function o(l,s,f,h){if(X.isUndefined(s)){if(!X.isUndefined(l))return n(void 0,l,f,h)}else return n(l,s,f,h)}function i(l,s){if(!X.isUndefined(s))return n(void 0,s)}function a(l,s){if(X.isUndefined(s)){if(!X.isUndefined(l))return n(void 0,l)}else return n(void 0,s)}function u(l,s,f){if(f in t)return n(l,s);if(f in e)return n(void 0,l)}const c={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,f)=>o(qs(l),qs(s),f,!0)};return X.forEach(Object.keys({...e,...t}),function(s){const f=c[s]||o,h=f(e[s],t[s],s);X.isUndefined(h)&&f!==u||(r[s]=h)}),r}var Hs=e=>{const t=Ft({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;if(t.headers=a=rt.from(a),t.url=Fs($s(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),X.isFormData(r)){if(Ke.hasStandardBrowserEnv||Ke.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(X.isFunction(r.getHeaders)){const c=r.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([s,f])=>{l.includes(s.toLowerCase())&&a.set(s,f)})}}if(Ke.hasStandardBrowserEnv&&(n&&X.isFunction(n)&&(n=n(t)),n||n!==!1&&Eh(t.url))){const c=o&&i&&xh.read(i);c&&a.set(o,c)}return t},Sh=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=Hs(e);let i=o.data;const a=rt.from(o.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:l}=o,s,f,h,E,m;function x(){E&&E(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let T=new XMLHttpRequest;T.open(o.method.toUpperCase(),o.url,!0),T.timeout=o.timeout;function y(){if(!T)return;const d=rt.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),v={data:!u||u==="text"||u==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:d,config:e,request:T};ks(function(P){r(P),x()},function(P){n(P),x()},v),T=null}"onloadend"in T?T.onloadend=y:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(y)},T.onabort=function(){T&&(n(new me("Request aborted",me.ECONNABORTED,e,T)),T=null)},T.onerror=function(g){const v=g&&g.message?g.message:"Network Error",A=new me(v,me.ERR_NETWORK,e,T);A.event=g||null,n(A),T=null},T.ontimeout=function(){let g=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const v=o.transitional||Bs;o.timeoutErrorMessage&&(g=o.timeoutErrorMessage),n(new me(g,v.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,e,T)),T=null},i===void 0&&a.setContentType(null),"setRequestHeader"in T&&X.forEach(a.toJSON(),function(g,v){T.setRequestHeader(v,g)}),X.isUndefined(o.withCredentials)||(T.withCredentials=!!o.withCredentials),u&&u!=="json"&&(T.responseType=o.responseType),l&&([h,m]=Fr(l,!0),T.addEventListener("progress",h)),c&&T.upload&&([f,E]=Fr(c),T.upload.addEventListener("progress",f),T.upload.addEventListener("loadend",E)),(o.cancelToken||o.signal)&&(s=d=>{T&&(n(!d||d.type?new Vt(null,e,T):d),T.abort(),T=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const p=bh(o.url);if(p&&Ke.protocols.indexOf(p)===-1){n(new me("Unsupported protocol "+p+":",me.ERR_BAD_REQUEST,e));return}T.send(i||null)})};const _h=(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 me?s:new Vt(s instanceof Error?s.message:s))}};let a=t&&setTimeout(()=>{a=null,i(new me(`timeout ${t} of ms exceeded`,me.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:c}=n;return c.unsubscribe=()=>X.asap(u),c}},Oh=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},Nh=async function*(e,t){for await(const r of Rh(e))yield*Oh(r,t)},Rh=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()}},Vs=(e,t,r,n)=>{const o=Nh(e,t);let i=0,a,u=c=>{a||(a=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:l,value:s}=await o.next();if(l){u(),c.close();return}let f=s.byteLength;if(r){let h=i+=f;r(h)}c.enqueue(new Uint8Array(s))}catch(l){throw u(l),l}},cancel(c){return u(c),o.return()}},{highWaterMark:2})},Ws=64*1024,{isFunction:Cr}=X,Ph=(({Request:e,Response:t})=>({Request:e,Response:t}))(X.global),{ReadableStream:Gs,TextEncoder:Ks}=X.global,zs=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ih=e=>{e=X.merge.call({skipUndefined:!0},Ph,e);const{fetch:t,Request:r,Response:n}=e,o=t?Cr(t):typeof fetch=="function",i=Cr(r),a=Cr(n);if(!o)return!1;const u=o&&Cr(Gs),c=o&&(typeof Ks=="function"?(m=>x=>m.encode(x))(new Ks):async m=>new Uint8Array(await new r(m).arrayBuffer())),l=i&&u&&zs(()=>{let m=!1;const x=new r(Ke.origin,{body:new Gs,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!x}),s=a&&u&&zs(()=>X.isReadableStream(new n("").body)),f={stream:s&&(m=>m.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!f[m]&&(f[m]=(x,T)=>{let y=x&&x[m];if(y)return y.call(x);throw new me(`Response type '${m}' is not supported`,me.ERR_NOT_SUPPORT,T)})});const h=async m=>{if(m==null)return 0;if(X.isBlob(m))return m.size;if(X.isSpecCompliantForm(m))return(await new r(Ke.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(X.isArrayBufferView(m)||X.isArrayBuffer(m))return m.byteLength;if(X.isURLSearchParams(m)&&(m=m+""),X.isString(m))return(await c(m)).byteLength},E=async(m,x)=>{const T=X.toFiniteNumber(m.getContentLength());return T??h(x)};return async m=>{let{url:x,method:T,data:y,signal:p,cancelToken:d,timeout:g,onDownloadProgress:v,onUploadProgress:A,responseType:P,headers:I,withCredentials:O="same-origin",fetchOptions:j}=Hs(m),K=t||fetch;P=P?(P+"").toLowerCase():"text";let L=_h([p,d&&d.toAbortSignal()],g),k=null;const re=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let ee;try{if(A&&l&&T!=="get"&&T!=="head"&&(ee=await E(I,y))!==0){let pe=new r(x,{method:"POST",body:y,duplex:"half"}),G;if(X.isFormData(y)&&(G=pe.headers.get("content-type"))&&I.setContentType(G),pe.body){const[Z,Q]=Ms(ee,Fr(Ds(A)));y=Vs(pe.body,Ws,Z,Q)}}X.isString(O)||(O=O?"include":"omit");const ue=i&&"credentials"in r.prototype,le={...j,signal:L,method:T.toUpperCase(),headers:I.normalize().toJSON(),body:y,duplex:"half",credentials:ue?O:void 0};k=i&&new r(x,le);let de=await(i?K(k,j):K(x,le));const fe=s&&(P==="stream"||P==="response");if(s&&(v||fe&&re)){const pe={};["status","statusText","headers"].forEach(ae=>{pe[ae]=de[ae]});const G=X.toFiniteNumber(de.headers.get("content-length")),[Z,Q]=v&&Ms(G,Fr(Ds(v),!0))||[];de=new n(Vs(de.body,Ws,Z,()=>{Q&&Q(),re&&re()}),pe)}P=P||"text";let be=await f[X.findKey(f,P)||"text"](de,m);return!fe&&re&&re(),await new Promise((pe,G)=>{ks(pe,G,{data:be,headers:rt.from(de.headers),status:de.status,statusText:de.statusText,config:m,request:k})})}catch(ue){throw re&&re(),ue&&ue.name==="TypeError"&&/Load failed|fetch/i.test(ue.message)?Object.assign(new me("Network Error",me.ERR_NETWORK,m,k),{cause:ue.cause||ue}):me.from(ue,ue&&ue.code,m,k)}}},Fh=new Map,Xs=e=>{let t=e?e.env:{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let a=i.length,u=a,c,l,s=Fh;for(;u--;)c=i[u],l=s.get(c),l===void 0&&s.set(c,l=u?new Map:Ih(t)),s=l;return l};Xs();const _n={http:Yf,xhr:Sh,fetch:{get:Xs}};X.forEach(_n,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ys=e=>`- ${e}`,Ch=e=>X.isFunction(e)||e===null||e===!1;var Js={getAdapter:(e,t)=>{e=X.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let a=0;a<r;a++){n=e[a];let u;if(o=n,!Ch(n)&&(o=_n[(u=String(n)).toLowerCase()],o===void 0))throw new me(`Unknown adapter '${u}'`);if(o&&(X.isFunction(o)||(o=o.get(t))))break;i[u||"#"+a]=o}if(!o){const a=Object.entries(i).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let u=r?a.length>1?`since :
|
|
9
|
-
`+a.map(
|
|
10
|
-
`):" "+
|
|
11
|
-
`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ft(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Lr.assertOptions(n,{silentJSONParsing:gt.transitional(gt.boolean),forcedJSONParsing:gt.transitional(gt.boolean),clarifyTimeoutError:gt.transitional(gt.boolean)},!1),o!=null&&(X.isFunction(o)?r.paramsSerializer={serialize:o}:Lr.assertOptions(o,{encode:gt.function,serialize:gt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Lr.assertOptions(r,{baseUrl:gt.spelling("baseURL"),withXsrfToken:gt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&X.merge(i.common,i[r.method]);i&&X.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=rt.concat(a,i);const u=[];let c=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(r)===!1||(c=c&&x.synchronous,u.unshift(x.fulfilled,x.rejected))});const l=[];this.interceptors.response.forEach(function(x){l.push(x.fulfilled,x.rejected)});let s,f=0,h;if(!c){const m=[Zs.bind(this),void 0];for(m.unshift(...u),m.push(...l),h=m.length,s=Promise.resolve(r);f<h;)s=s.then(m[f++],m[f++]);return s}h=u.length;let E=r;for(;f<h;){const m=u[f++],x=u[f++];try{E=m(E)}catch(T){x.call(this,T);break}}try{s=Zs.call(this,E)}catch(m){return Promise.reject(m)}for(f=0,h=l.length;f<h;)s=s.then(l[f++],l[f++]);return s}getUri(t){t=Ft(this.defaults,t);const r=$s(t.baseURL,t.url,t.allowAbsoluteUrls);return Fs(r,t.params,t.paramsSerializer)}};X.forEach(["delete","get","head","options"],function(t){Ct.prototype[t]=function(r,n){return this.request(Ft(n||{},{method:t,url:r,data:(n||{}).data}))}}),X.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,u){return this.request(Ft(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Ct.prototype[t]=r(),Ct.prototype[t+"Form"]=r(!0)});let Lh=class Hc{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 Vt(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 Hc(function(o){t=o}),cancel:t}}};function Uh(e){return function(r){return e.apply(null,r)}}function jh(e){return X.isObject(e)&&e.isAxiosError===!0}const Nn={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(Nn).forEach(([e,t])=>{Nn[t]=e});function ta(e){const t=new Ct(e),r=gs(Ct.prototype.request,t);return X.extend(r,Ct.prototype,t,{allOwnKeys:!0}),X.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return ta(Ft(e,o))},r}const ke=ta(or);ke.Axios=Ct,ke.CanceledError=Vt,ke.CancelToken=Lh,ke.isCancel=js,ke.VERSION=Qs,ke.toFormData=Pr,ke.AxiosError=me,ke.Cancel=ke.CanceledError,ke.all=function(t){return Promise.all(t)},ke.spread=Uh,ke.isAxiosError=jh,ke.mergeConfig=Ft,ke.AxiosHeaders=rt,ke.formToJSON=e=>Ls(X.isHTMLForm(e)?new FormData(e):e),ke.getAdapter=Js.getAdapter,ke.HttpStatusCode=Nn,ke.default=ke;const{Axios:cb,AxiosError:fb,CanceledError:hb,isCancel:db,CancelToken:pb,VERSION:gb,all:yb,Cancel:mb,isAxiosError:bb,spread:wb,toFormData:vb,AxiosHeaders:Eb,HttpStatusCode:xb,formToJSON:Ab,getAdapter:Tb,mergeConfig:Sb}=ke,Ur=e=>encodeURIComponent(e).split("%2F").join("/"),kh=/^(\w+:\/\/[^/?]+)?(.*?)$/,Mh=e=>e.filter(t=>typeof t=="string"||typeof t=="number").map(t=>`${t}`).filter(t=>t),Dh=e=>{const t=e.join("/"),[,r="",n=""]=t.match(kh)||[];return{prefix:r,pathname:{parts:n.split("/").filter(o=>o!==""),hasLeading:/^\/+/.test(n),hasTrailing:/\/+$/.test(n)}}},$h=(e,t)=>{const{prefix:r,pathname:n}=e,{parts:o,hasLeading:i,hasTrailing:a}=n,{leadingSlash:u,trailingSlash:c}=t,l=u===!0||u==="keep"&&i,s=c===!0||c==="keep"&&a;let f=r;return o.length>0&&((f||l)&&(f+="/"),f+=o.join("/")),s&&(f+="/"),!f&&l&&(f+="/"),f},Ee=(...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=Mh(e);const n=Dh(e);return $h(n,r)};class ra extends Error{response;statusCode;constructor(t,r,n=null){super(t),this.response=r,this.statusCode=n}}class qh extends ra{errorCode;constructor(t,r,n,o=null){super(t,n,o),this.errorCode=r}}function Hh(e,t=""){return`/public-files/${e}/${t}`.split("/").filter(Boolean).join("/")}function Vh(e,t=""){return`/ocm/${e}/${t}`.split("/").filter(Boolean).join("/")}class ct{static Shared="S";static Shareable="R";static Mounted="M";static Deletable="D";static Renameable="N";static Moveable="V";static Updateable="NV";static FileUpdateable="W";static FolderCreateable="CK";static Deny="Z";static SecureView="X"}var vt=(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))(vt||{});const jr=e=>({value:e,type:null}),Wh=e=>jr(e),Te=e=>jr(e),kr=e=>jr(e),Gh=e=>jr(e),Kh={Permissions:Te("permissions"),IsFavorite:kr("favorite"),FileId:Te("fileid"),FileParent:Te("file-parent"),Name:Te("name"),OwnerId:Te("owner-id"),OwnerDisplayName:Te("owner-display-name"),PrivateLink:Te("privatelink"),ContentLength:kr("getcontentlength"),ContentSize:kr("size"),LastModifiedDate:Te("getlastmodified"),Tags:Wh("tags"),Audio:{value:"audio",type:null},Location:{value:"location",type:null},Image:{value:"image",type:null},Photo:{value:"photo",type:null},ETag:Te("getetag"),MimeType:Te("getcontenttype"),ResourceType:Gh("resourcetype"),LockDiscovery:{value:"lockdiscovery",type:null},LockOwner:Te("owner"),LockTime:Te("locktime"),ActiveLock:{value:"activelock",type:null},DownloadURL:Te("downloadURL"),Highlights:Te("highlights"),MetaPathForUser:Te("meta-path-for-user"),RemoteItemId:Te("remote-item-id"),HasPreview:kr("has-preview"),ShareId:Te("shareid"),ShareRoot:Te("shareroot"),ShareTypes:{value:"share-types",type:null},SharePermissions:Te("share-permissions"),TrashbinOriginalFilename:Te("trashbin-original-filename"),TrashbinOriginalLocation:Te("trashbin-original-location"),TrashbinDeletedDate:Te("trashbin-delete-datetime"),PublicLinkItemType:Te("public-link-item-type"),PublicLinkPermission:Te("public-link-permission"),PublicLinkExpiration:Te("public-link-expiration"),PublicLinkShareDate:Te("public-link-share-datetime"),PublicLinkShareOwner:Te("public-link-share-owner")},se=Object.fromEntries(Object.entries(Kh).map(([e,t])=>[e,t.value]));class Bt{static Default=[se.Permissions,se.IsFavorite,se.FileId,se.FileParent,se.Name,se.LockDiscovery,se.ActiveLock,se.OwnerId,se.OwnerDisplayName,se.RemoteItemId,se.ShareRoot,se.ShareTypes,se.PrivateLink,se.ContentLength,se.ContentSize,se.LastModifiedDate,se.ETag,se.MimeType,se.ResourceType,se.DownloadURL,se.Tags,se.Audio,se.Location,se.Image,se.Photo,se.HasPreview];static PublicLink=Bt.Default.concat([se.PublicLinkItemType,se.PublicLinkPermission,se.PublicLinkExpiration,se.PublicLinkShareDate,se.PublicLinkShareOwner]);static Trashbin=[se.ContentLength,se.ResourceType,se.TrashbinOriginalLocation,se.TrashbinOriginalFilename,se.TrashbinDeletedDate,se.Permissions,se.FileParent];static DavNamespace=[se.ContentLength,se.LastModifiedDate,se.ETag,se.MimeType,se.ResourceType,se.LockDiscovery,se.ActiveLock]}var zh=typeof wt=="object"&&wt&&wt.Object===Object&&wt,Xh=typeof self=="object"&&self&&self.Object===Object&&self,Rn=zh||Xh||Function("return this")(),Wt=Rn.Symbol,na=Object.prototype,Yh=na.hasOwnProperty,Jh=na.toString,ar=Wt?Wt.toStringTag:void 0;function Zh(e){var t=Yh.call(e,ar),r=e[ar];try{e[ar]=void 0;var n=!0}catch{}var o=Jh.call(e);return n&&(t?e[ar]=r:delete e[ar]),o}var Qh=Object.prototype,ed=Qh.toString;function td(e){return ed.call(e)}var rd="[object Null]",nd="[object Undefined]",ia=Wt?Wt.toStringTag:void 0;function oa(e){return e==null?e===void 0?nd:rd:ia&&ia in Object(e)?Zh(e):td(e)}function id(e){return e!=null&&typeof e=="object"}var od="[object Symbol]";function Pn(e){return typeof e=="symbol"||id(e)&&oa(e)==od}function sd(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 In=Array.isArray,sa=Wt?Wt.prototype:void 0,aa=sa?sa.toString:void 0;function ua(e){if(typeof e=="string")return e;if(In(e))return sd(e,ua)+"";if(Pn(e))return aa?aa.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function la(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ad="[object AsyncFunction]",ud="[object Function]",ld="[object GeneratorFunction]",cd="[object Proxy]";function fd(e){if(!la(e))return!1;var t=oa(e);return t==ud||t==ld||t==ad||t==cd}var Fn=Rn["__core-js_shared__"],ca=(function(){var e=/[^.]+$/.exec(Fn&&Fn.keys&&Fn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function hd(e){return!!ca&&ca in e}var dd=Function.prototype,pd=dd.toString;function gd(e){if(e!=null){try{return pd.call(e)}catch{}try{return e+""}catch{}}return""}var yd=/[\\^$.*+?()[\]{}|]/g,md=/^\[object .+?Constructor\]$/,bd=Function.prototype,wd=Object.prototype,vd=bd.toString,Ed=wd.hasOwnProperty,xd=RegExp("^"+vd.call(Ed).replace(yd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ad(e){if(!la(e)||hd(e))return!1;var t=fd(e)?xd:md;return t.test(gd(e))}function Td(e,t){return e?.[t]}function fa(e,t){var r=Td(e,t);return Ad(r)?r:void 0}function Sd(e,t){return e===t||e!==e&&t!==t}var _d=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Od=/^\w*$/;function Nd(e,t){if(In(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Pn(e)?!0:Od.test(e)||!_d.test(e)||t!=null&&e in Object(t)}var ur=fa(Object,"create");function Rd(){this.__data__=ur?ur(null):{},this.size=0}function Pd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Id="__lodash_hash_undefined__",Fd=Object.prototype,Cd=Fd.hasOwnProperty;function Bd(e){var t=this.__data__;if(ur){var r=t[e];return r===Id?void 0:r}return Cd.call(t,e)?t[e]:void 0}var Ld=Object.prototype,Ud=Ld.hasOwnProperty;function jd(e){var t=this.__data__;return ur?t[e]!==void 0:Ud.call(t,e)}var kd="__lodash_hash_undefined__";function Md(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ur&&t===void 0?kd:t,this}function Lt(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])}}Lt.prototype.clear=Rd,Lt.prototype.delete=Pd,Lt.prototype.get=Bd,Lt.prototype.has=jd,Lt.prototype.set=Md;function Dd(){this.__data__=[],this.size=0}function Mr(e,t){for(var r=e.length;r--;)if(Sd(e[r][0],t))return r;return-1}var $d=Array.prototype,qd=$d.splice;function Hd(e){var t=this.__data__,r=Mr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():qd.call(t,r,1),--this.size,!0}function Vd(e){var t=this.__data__,r=Mr(t,e);return r<0?void 0:t[r][1]}function Wd(e){return Mr(this.__data__,e)>-1}function Gd(e,t){var r=this.__data__,n=Mr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Gt(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])}}Gt.prototype.clear=Dd,Gt.prototype.delete=Hd,Gt.prototype.get=Vd,Gt.prototype.has=Wd,Gt.prototype.set=Gd;var Kd=fa(Rn,"Map");function zd(){this.size=0,this.__data__={hash:new Lt,map:new(Kd||Gt),string:new Lt}}function Xd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Dr(e,t){var r=e.__data__;return Xd(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Yd(e){var t=Dr(this,e).delete(e);return this.size-=t?1:0,t}function Jd(e){return Dr(this,e).get(e)}function Zd(e){return Dr(this,e).has(e)}function Qd(e,t){var r=Dr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ut(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])}}Ut.prototype.clear=zd,Ut.prototype.delete=Yd,Ut.prototype.get=Jd,Ut.prototype.has=Zd,Ut.prototype.set=Qd;var ep="Expected a function";function Cn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ep);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(Cn.Cache||Ut),r}Cn.Cache=Ut;var tp=500;function rp(e){var t=Cn(e,function(n){return r.size===tp&&r.clear(),n}),r=t.cache;return t}var np=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ip=/\\(\\)?/g,op=rp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(np,function(r,n,o,i){t.push(o?i.replace(ip,"$1"):n||r)}),t});function lr(e){return e==null?"":ua(e)}function sp(e,t){return In(e)?e:Nd(e,t)?[e]:op(lr(e))}function ap(e){if(typeof e=="string"||Pn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function up(e,t){t=sp(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ap(t[r++])];return r&&r==n?e:void 0}function lp(e,t,r){var n=e==null?void 0:up(e,t);return n===void 0?r:n}function cp(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 fp(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:cp(e,t,r)}var hp="\\ud800-\\udfff",dp="\\u0300-\\u036f",pp="\\ufe20-\\ufe2f",gp="\\u20d0-\\u20ff",yp=dp+pp+gp,mp="\\ufe0e\\ufe0f",bp="\\u200d",wp=RegExp("["+bp+hp+yp+mp+"]");function ha(e){return wp.test(e)}function vp(e){return e.split("")}var da="\\ud800-\\udfff",Ep="\\u0300-\\u036f",xp="\\ufe20-\\ufe2f",Ap="\\u20d0-\\u20ff",Tp=Ep+xp+Ap,Sp="\\ufe0e\\ufe0f",_p="["+da+"]",Bn="["+Tp+"]",Ln="\\ud83c[\\udffb-\\udfff]",Op="(?:"+Bn+"|"+Ln+")",pa="[^"+da+"]",ga="(?:\\ud83c[\\udde6-\\uddff]){2}",ya="[\\ud800-\\udbff][\\udc00-\\udfff]",Np="\\u200d",ma=Op+"?",ba="["+Sp+"]?",Rp="(?:"+Np+"(?:"+[pa,ga,ya].join("|")+")"+ba+ma+")*",Pp=ba+ma+Rp,Ip="(?:"+[pa+Bn+"?",Bn,ga,ya,_p].join("|")+")",Fp=RegExp(Ln+"(?="+Ln+")|"+Ip+Pp,"g");function Cp(e){return e.match(Fp)||[]}function Bp(e){return ha(e)?Cp(e):vp(e)}function Lp(e){return function(t){t=lr(t);var r=ha(t)?Bp(t):void 0,n=r?r[0]:t.charAt(0),o=r?fp(r,1).join(""):t.slice(1);return n[e]()+o}}var Up=Lp("toUpperCase");function jp(e){return Up(lr(e).toLowerCase())}function kp(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 Mp(e){return function(t){return e?.[t]}}var Dp={À:"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"},$p=Mp(Dp),qp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Hp="\\u0300-\\u036f",Vp="\\ufe20-\\ufe2f",Wp="\\u20d0-\\u20ff",Gp=Hp+Vp+Wp,Kp="["+Gp+"]",zp=RegExp(Kp,"g");function Xp(e){return e=lr(e),e&&e.replace(qp,$p).replace(zp,"")}var Yp=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Jp(e){return e.match(Yp)||[]}var Zp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Qp(e){return Zp.test(e)}var wa="\\ud800-\\udfff",eg="\\u0300-\\u036f",tg="\\ufe20-\\ufe2f",rg="\\u20d0-\\u20ff",ng=eg+tg+rg,va="\\u2700-\\u27bf",Ea="a-z\\xdf-\\xf6\\xf8-\\xff",ig="\\xac\\xb1\\xd7\\xf7",og="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",sg="\\u2000-\\u206f",ag=" \\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",xa="A-Z\\xc0-\\xd6\\xd8-\\xde",ug="\\ufe0e\\ufe0f",Aa=ig+og+sg+ag,Ta="['’]",Sa="["+Aa+"]",lg="["+ng+"]",_a="\\d+",cg="["+va+"]",Oa="["+Ea+"]",Na="[^"+wa+Aa+_a+va+Ea+xa+"]",fg="\\ud83c[\\udffb-\\udfff]",hg="(?:"+lg+"|"+fg+")",dg="[^"+wa+"]",Ra="(?:\\ud83c[\\udde6-\\uddff]){2}",Pa="[\\ud800-\\udbff][\\udc00-\\udfff]",Kt="["+xa+"]",pg="\\u200d",Ia="(?:"+Oa+"|"+Na+")",gg="(?:"+Kt+"|"+Na+")",Fa="(?:"+Ta+"(?:d|ll|m|re|s|t|ve))?",Ca="(?:"+Ta+"(?:D|LL|M|RE|S|T|VE))?",Ba=hg+"?",La="["+ug+"]?",yg="(?:"+pg+"(?:"+[dg,Ra,Pa].join("|")+")"+La+Ba+")*",mg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wg=La+Ba+yg,vg="(?:"+[cg,Ra,Pa].join("|")+")"+wg,Eg=RegExp([Kt+"?"+Oa+"+"+Fa+"(?="+[Sa,Kt,"$"].join("|")+")",gg+"+"+Ca+"(?="+[Sa,Kt+Ia,"$"].join("|")+")",Kt+"?"+Ia+"+"+Fa,Kt+"+"+Ca,bg,mg,_a,vg].join("|"),"g");function xg(e){return e.match(Eg)||[]}function Ag(e,t,r){return e=lr(e),t=t,t===void 0?Qp(e)?xg(e):Jp(e):e.match(t)||[]}var Tg="['’]",Sg=RegExp(Tg,"g");function _g(e){return function(t){return kp(Ag(Xp(t).replace(Sg,"")),e,"")}}var Og=_g(function(e,t,r){return t=t.toLowerCase(),e+(r?jp(t):t)});const Ng={complex:["tar.bz2","tar.gz","tar.xz"]},Un=e=>e.replace(/[^A-Za-z0-9\-_]/g,""),Ua=(e,t)=>!e||typeof e!="string"?"":e.indexOf("!")>=0?e.split("!")[t]:"",Rg=e=>Ua(e,0),ja=e=>Ua(e,1),ka=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(Ng.complex.includes(o))return o}return r.length<2?"":r[r.length-1]},$r=e=>{if(!e)return e;const t={};return Object.keys(e).forEach(r=>{t[Og(r)]=e[r]}),t};function zt(e,t=[]){const r=e.props[se.Name]?.toString()||Tr.basename(e.filename),n=e.props[se.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=ka({...e,name:r}),u=e.props[se.LockDiscovery];let c,l,s;u&&(c=u[se.ActiveLock],l=c[se.LockOwner],s=c[se.LockTime]);let f=[];e.props[se.ShareTypes]&&(f=e.props[se.ShareTypes]["share-type"],Array.isArray(f)||(f=[f]));const h={};for(const m of t||[]){const x=m.split(":").pop();e.props[x]&&(h[m]=e.props[x])}const E={id:n,fileId:n,storageId:Rg(n),parentFolderId:e.props[se.FileParent],mimeType:e.props[se.MimeType],name:r,extension:o?"":a,path:i,webDavPath:e.filename,type:o?"folder":e.type,isFolder:o,locked:!!c,lockOwner:l,lockTime:s,processing:e.processing||!1,mdate:e.props[se.LastModifiedDate],size:o?e.props[se.ContentSize]?.toString()||"0":e.props[se.ContentLength]?.toString()||"0",permissions:e.props[se.Permissions]||"",starred:e.props[se.IsFavorite]!==0,etag:e.props[se.ETag],shareTypes:f,privateLink:e.props[se.PrivateLink],downloadURL:e.props[se.DownloadURL],remoteItemId:e.props[se.RemoteItemId],remoteItemPath:e.props[se.ShareRoot],owner:{id:e.props[se.OwnerId],displayName:e.props[se.OwnerDisplayName]},tags:(e.props[se.Tags]||"").toString().split(",").filter(Boolean),audio:$r(e.props[se.Audio]),location:$r(e.props[se.Location]),image:$r(e.props[se.Image]),photo:$r(e.props[se.Photo]),extraProps:h,hasPreview:()=>e.props[se.HasPreview]===1,canUpload:function(){return this.permissions.indexOf(ct.FolderCreateable)>=0},canDownload:function(){return this.permissions.indexOf(ct.SecureView)===-1},canBeDeleted:function(){return this.permissions.indexOf(ct.Deletable)>=0},canRename:function(){return this.permissions.indexOf(ct.Renameable)>=0},canShare:function({ability:m}){return m.can("create-all","Share")&&this.permissions.indexOf(ct.Shareable)>=0},canCreate:function(){return this.permissions.indexOf(ct.FolderCreateable)>=0},canEditTags:function(){return this.permissions.indexOf(ct.Updateable)>=0||this.permissions.indexOf(ct.FileUpdateable)>=0},isMounted:function(){return this.permissions.indexOf(ct.Mounted)>=0},isReceivedShare:function(){return this.permissions.indexOf(ct.Shared)>=0},isShareRoot(){return e.props[se.ShareRoot]?e.filename.split("/").length===3:!1},canDeny:function(){return this.permissions.indexOf(ct.Deny)>=0},getDomSelector:()=>Un(n)};return Object.defineProperty(E,"nodeId",{get(){return ja(this.id)}}),E}function Pg(e){const t=e.type==="directory",r=e.props[se.TrashbinOriginalFilename]?.toString(),n=ka({name:r,type:e.type}),o=ps.basename(e.filename);return{type:t?"folder":e.type,isFolder:t,ddate:e.props[se.TrashbinDeletedDate],name:ps.basename(r),extension:n,path:Ee(e.props[se.TrashbinOriginalLocation],{leadingSlash:!0}),id:o,parentFolderId:e.props[se.FileParent],webDavPath:"",canUpload:()=>!1,canDownload:()=>!1,canBeDeleted:()=>!0,canBeRestored:function(){return!0},canRename:()=>!1,canShare:()=>!1,canCreate:()=>!1,isMounted:()=>!1,isReceivedShare:()=>!1,getDomSelector:()=>Un(o)}}var nt=(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))(nt||{});const jn=e=>e?.driveType==="personal",kn=e=>e?.driveType==="public";function Ig(e,t){return Ee("spaces",e,t,{leadingSlash:!0})}function Mn(e,t=""){return Ee("spaces","trash-bin",e,t,{leadingSlash:!0})}function Fg(e){const t=e.publicLinkPassword,r=e.props?.[se.FileId],n=e.props?.[se.PublicLinkItemType],o=e.props?.[se.PublicLinkPermission],i=e.props?.[se.PublicLinkExpiration],a=e.props?.[se.PublicLinkShareDate],u=e.props?.[se.PublicLinkShareOwner],c=e.publicLinkType;let l,s;return c==="ocm"?(l=`ocm/${e.id}`,s=Vh(e.id)):(l=`public/${e.id}`,s=Hh(e.id)),Object.assign(Cg({...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:c})}function Cg(e){let t,r;e.special&&(t=e.special.find(l=>l.specialFolder.name==="image"),r=e.special.find(l=>l.specialFolder.name==="readme"),t&&(t.webDavUrl=decodeURI(t.webDavUrl)),r&&(r.webDavUrl=decodeURI(r.webDavUrl)));const n=e.root?.deleted?.state==="trashed",o=Ee(e.webDavPath||Ig(e.id),{leadingSlash:!0}),i=Ee(e.serverUrl,"remote.php/dav",o),a=Ee(e.webDavTrashPath||Mn(e.id),{leadingSlash:!0}),u=Ee(e.serverUrl,"remote.php/dav",a),c={id:e.id,fileId:e.id,storageId:e.id,mimeType:"",name:e.name,description:e.description,extension:"",path:"/",webDavPath:o,webDavTrashPath:a,driveAlias:e.driveAlias,driveType:e.driveType,type:"space",isFolder:!0,mdate:e.lastModifiedDateTime,size:e.quota?.used||0,tags:[],permissions:"",starred:!1,etag:"",shareTypes:[],privateLink:e.webUrl,downloadURL:"",owner:e.owner?.user,disabled:n,root:e.root,spaceQuota:e.quota,spaceImageData:t,spaceReadmeData:r,hasTrashedItems:e["@libre.graph.hasTrashedItems"]||!1,graphPermissions:void 0,canUpload:function({user:l}={}){return jn(this)&&this.isOwner(l)?!0:this.graphPermissions?.includes(nt.createUpload)},canDownload:function(){return!0},canBeDeleted:function({ability:l}={}){return this.disabled?l?.can("delete-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions):!1},canRename:function({ability:l}={}){return l?.can("update-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions)},canEditDescription:function({ability:l}={}){return l?.can("update-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions)},canRestore:function({ability:l}={}){return this.disabled?l?.can("update-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions):!1},canDisable:function({ability:l}={}){return this.disabled?!1:l?.can("delete-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions)},canShare:function(){return this.graphPermissions?.includes(nt.createPermissions)},canEditImage:function(){return this.disabled?!1:this.graphPermissions?.includes(nt.deletePermissions)},canEditReadme:function(){return this.disabled?!1:this.graphPermissions?.includes(nt.deletePermissions)},canRestoreFromTrashbin:function(){return this.graphPermissions?.includes(nt.updateDeleted)},canDeleteFromTrashBin:function({user:l}={}){return jn(this)&&this.isOwner(l)?!0:this.graphPermissions?.includes(nt.deletePermissions)},canListVersions:function({user:l}={}){return jn(this)&&this.isOwner(l)?!0:this.graphPermissions?.includes(nt.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:()=>Un(e.id),getDriveAliasAndItem({path:l}){return Ee(this.driveAlias,l,{leadingSlash:!1})},getWebDavUrl({path:l}){return Ee(i,l)},getWebDavTrashUrl({path:l}){return Ee(u,l)},isOwner(l){return l?.id===this.owner?.id}};return Object.defineProperty(c,"nodeId",{get(){return ja(this.id)}}),c}const Bg=(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 lp(o,"data.ocs.data",{capabilities:null,version:null})}}};var Dn={},qr={exports:{}},Ma;function $n(){if(Ma)return qr.exports;Ma=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(v,A,P){return Function.prototype.apply.call(v,A,P)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(v){return Object.getOwnPropertyNames(v).concat(Object.getOwnPropertySymbols(v))}:r=function(v){return Object.getOwnPropertyNames(v)};function n(g){console&&console.warn&&console.warn(g)}var o=Number.isNaN||function(v){return v!==v};function i(){i.init.call(this)}qr.exports=i,qr.exports.once=y,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(g){if(typeof g!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof g)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(g){if(typeof g!="number"||g<0||o(g))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+g+".");a=g}}),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(v){if(typeof v!="number"||v<0||o(v))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+v+".");return this._maxListeners=v,this};function c(g){return g._maxListeners===void 0?i.defaultMaxListeners:g._maxListeners}i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(v){for(var A=[],P=1;P<arguments.length;P++)A.push(arguments[P]);var I=v==="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 K=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw K.context=j,K}var L=O[v];if(L===void 0)return!1;if(typeof L=="function")t(L,this,A);else for(var k=L.length,re=m(L,k),P=0;P<k;++P)t(re[P],this,A);return!0};function l(g,v,A,P){var I,O,j;if(u(A),O=g._events,O===void 0?(O=g._events=Object.create(null),g._eventsCount=0):(O.newListener!==void 0&&(g.emit("newListener",v,A.listener?A.listener:A),O=g._events),j=O[v]),j===void 0)j=O[v]=A,++g._eventsCount;else if(typeof j=="function"?j=O[v]=P?[A,j]:[j,A]:P?j.unshift(A):j.push(A),I=c(g),I>0&&j.length>I&&!j.warned){j.warned=!0;var K=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");K.name="MaxListenersExceededWarning",K.emitter=g,K.type=v,K.count=j.length,n(K)}return g}i.prototype.addListener=function(v,A){return l(this,v,A,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(v,A){return l(this,v,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 f(g,v,A){var P={fired:!1,wrapFn:void 0,target:g,type:v,listener:A},I=s.bind(P);return I.listener=A,P.wrapFn=I,I}i.prototype.once=function(v,A){return u(A),this.on(v,f(this,v,A)),this},i.prototype.prependOnceListener=function(v,A){return u(A),this.prependListener(v,f(this,v,A)),this},i.prototype.removeListener=function(v,A){var P,I,O,j,K;if(u(A),I=this._events,I===void 0)return this;if(P=I[v],P===void 0)return this;if(P===A||P.listener===A)--this._eventsCount===0?this._events=Object.create(null):(delete I[v],I.removeListener&&this.emit("removeListener",v,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){K=P[j].listener,O=j;break}if(O<0)return this;O===0?P.shift():x(P,O),P.length===1&&(I[v]=P[0]),I.removeListener!==void 0&&this.emit("removeListener",v,K||A)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(v){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[v]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete P[v]),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[v],typeof A=="function")this.removeListener(v,A);else if(A!==void 0)for(I=A.length-1;I>=0;I--)this.removeListener(v,A[I]);return this};function h(g,v,A){var P=g._events;if(P===void 0)return[];var I=P[v];return I===void 0?[]:typeof I=="function"?A?[I.listener||I]:[I]:A?T(I):m(I,I.length)}i.prototype.listeners=function(v){return h(this,v,!0)},i.prototype.rawListeners=function(v){return h(this,v,!1)},i.listenerCount=function(g,v){return typeof g.listenerCount=="function"?g.listenerCount(v):E.call(g,v)},i.prototype.listenerCount=E;function E(g){var v=this._events;if(v!==void 0){var A=v[g];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(g,v){for(var A=new Array(v),P=0;P<v;++P)A[P]=g[P];return A}function x(g,v){for(;v+1<g.length;v++)g[v]=g[v+1];g.pop()}function T(g){for(var v=new Array(g.length),A=0;A<v.length;++A)v[A]=g[A].listener||g[A];return v}function y(g,v){return new Promise(function(A,P){function I(j){g.removeListener(v,O),P(j)}function O(){typeof g.removeListener=="function"&&g.removeListener("error",I),A([].slice.call(arguments))}d(g,v,O,{once:!0}),v!=="error"&&p(g,I,{once:!0})})}function p(g,v,A){typeof g.on=="function"&&d(g,"error",v,A)}function d(g,v,A,P){if(typeof g.on=="function")P.once?g.once(v,A):g.on(v,A);else if(typeof g.addEventListener=="function")g.addEventListener(v,function I(O){P.once&&g.removeEventListener(v,I),A(O)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof g)}return qr.exports}var Hr={exports:{}},Da;function jt(){return Da||(Da=1,typeof Object.create=="function"?Hr.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Hr.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Hr.exports}var qn,$a;function qa(){return $a||($a=1,qn=$n().EventEmitter),qn}var Hn={},Ha;function Vr(){return Ha||(Ha=1,(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},r={};r.byteLength=s,r.toByteArray=h,r.fromByteArray=x;for(var n=[],o=[],i=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=a.length;u<c;++u)n[u]=a[u],o[a.charCodeAt(u)]=u;o[45]=62,o[95]=63;function l(p){var d=p.length;if(d%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");g===-1&&(g=d);var v=g===d?0:4-g%4;return[g,v]}function s(p){var d=l(p),g=d[0],v=d[1];return(g+v)*3/4-v}function f(p,d,g){return(d+g)*3/4-g}function h(p){var d,g=l(p),v=g[0],A=g[1],P=new i(f(p,v,A)),I=0,O=A>0?v-4:v,j;for(j=0;j<O;j+=4)d=o[p.charCodeAt(j)]<<18|o[p.charCodeAt(j+1)]<<12|o[p.charCodeAt(j+2)]<<6|o[p.charCodeAt(j+3)],P[I++]=d>>16&255,P[I++]=d>>8&255,P[I++]=d&255;return A===2&&(d=o[p.charCodeAt(j)]<<2|o[p.charCodeAt(j+1)]>>4,P[I++]=d&255),A===1&&(d=o[p.charCodeAt(j)]<<10|o[p.charCodeAt(j+1)]<<4|o[p.charCodeAt(j+2)]>>2,P[I++]=d>>8&255,P[I++]=d&255),P}function E(p){return n[p>>18&63]+n[p>>12&63]+n[p>>6&63]+n[p&63]}function m(p,d,g){for(var v,A=[],P=d;P<g;P+=3)v=(p[P]<<16&16711680)+(p[P+1]<<8&65280)+(p[P+2]&255),A.push(E(v));return A.join("")}function x(p){for(var d,g=p.length,v=g%3,A=[],P=16383,I=0,O=g-v;I<O;I+=P)A.push(m(p,I,I+P>O?O:I+P));return v===1?(d=p[g-1],A.push(n[d>>2]+n[d<<4&63]+"==")):v===2&&(d=(p[g-2]<<8)+p[g-1],A.push(n[d>>10]+n[d>>4&63]+n[d<<2&63]+"=")),A.join("")}var T={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */T.read=function(p,d,g,v,A){var P,I,O=A*8-v-1,j=(1<<O)-1,K=j>>1,L=-7,k=g?A-1:0,re=g?-1:1,ee=p[d+k];for(k+=re,P=ee&(1<<-L)-1,ee>>=-L,L+=O;L>0;P=P*256+p[d+k],k+=re,L-=8);for(I=P&(1<<-L)-1,P>>=-L,L+=v;L>0;I=I*256+p[d+k],k+=re,L-=8);if(P===0)P=1-K;else{if(P===j)return I?NaN:(ee?-1:1)*(1/0);I=I+Math.pow(2,v),P=P-K}return(ee?-1:1)*I*Math.pow(2,P-v)},T.write=function(p,d,g,v,A,P){var I,O,j,K=P*8-A-1,L=(1<<K)-1,k=L>>1,re=A===23?Math.pow(2,-24)-Math.pow(2,-77):0,ee=v?0:P-1,ue=v?1:-1,le=d<0||d===0&&1/d<0?1:0;for(d=Math.abs(d),isNaN(d)||d===1/0?(O=isNaN(d)?1:0,I=L):(I=Math.floor(Math.log(d)/Math.LN2),d*(j=Math.pow(2,-I))<1&&(I--,j*=2),I+k>=1?d+=re/j:d+=re*Math.pow(2,1-k),d*j>=2&&(I++,j/=2),I+k>=L?(O=0,I=L):I+k>=1?(O=(d*j-1)*Math.pow(2,A),I=I+k):(O=d*Math.pow(2,k-1)*Math.pow(2,A),I=0));A>=8;p[g+ee]=O&255,ee+=ue,O/=256,A-=8);for(I=I<<A|O,K+=A;K>0;p[g+ee]=I&255,ee+=ue,I/=256,K-=8);p[g+ee-ue]|=le*128};/*!
|
|
6
|
+
*/(function(e){const t=Rr,r=vn,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o;const{Uint8Array:i,ArrayBuffer:a,SharedArrayBuffer:u}=globalThis;s.TYPED_ARRAY_SUPPORT=c(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{const F=new i(1),b={foo:function(){return 42}};return Object.setPrototypeOf(b,i.prototype),Object.setPrototypeOf(F,b),F.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function l(F){if(F>o)throw new RangeError('The value "'+F+'" is invalid for option "size"');const b=new i(F);return Object.setPrototypeOf(b,s.prototype),b}function s(F,b,S){if(typeof F=="number"){if(typeof b=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(F)}return f(F,b,S)}s.poolSize=8192;function f(F,b,S){if(typeof F=="string")return E(F,b);if(a.isView(F))return y(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(Ge(F,a)||F&&Ge(F.buffer,a)||typeof u<"u"&&(Ge(F,u)||F&&Ge(F.buffer,u)))return p(F,b,S);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const M=F.valueOf&&F.valueOf();if(M!=null&&M!==F)return s.from(M,b,S);const H=d(F);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return s.from(F[Symbol.toPrimitive]("string"),b,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}s.from=function(F,b,S){return f(F,b,S)},Object.setPrototypeOf(s.prototype,i.prototype),Object.setPrototypeOf(s,i);function h(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function x(F,b,S){return h(F),F<=0?l(F):b!==void 0?typeof S=="string"?l(F).fill(b,S):l(F).fill(b):l(F)}s.alloc=function(F,b,S){return x(F,b,S)};function m(F){return h(F),l(F<0?0:g(F)|0)}s.allocUnsafe=function(F){return m(F)},s.allocUnsafeSlow=function(F){return m(F)};function E(F,b){if((typeof b!="string"||b==="")&&(b="utf8"),!s.isEncoding(b))throw new TypeError("Unknown encoding: "+b);const S=A(F,b)|0;let M=l(S);const H=M.write(F,b);return H!==S&&(M=M.slice(0,H)),M}function T(F){const b=F.length<0?0:g(F.length)|0,S=l(b);for(let M=0;M<b;M+=1)S[M]=F[M]&255;return S}function y(F){if(Ge(F,i)){const b=new i(F);return p(b.buffer,b.byteOffset,b.byteLength)}return T(F)}function p(F,b,S){if(b<0||F.byteLength<b)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<b+(S||0))throw new RangeError('"length" is outside of buffer bounds');let M;return b===void 0&&S===void 0?M=new i(F):S===void 0?M=new i(F,b):M=new i(F,b,S),Object.setPrototypeOf(M,s.prototype),M}function d(F){if(s.isBuffer(F)){const b=g(F.length)|0,S=l(b);return S.length===0||F.copy(S,0,0,b),S}if(F.length!==void 0)return typeof F.length!="number"||ut(F.length)?l(0):T(F);if(F.type==="Buffer"&&Array.isArray(F.data))return T(F.data)}function g(F){if(F>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return F|0}function v(F){return+F!=F&&(F=0),s.alloc(+F)}s.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==s.prototype},s.compare=function(b,S){if(Ge(b,i)&&(b=s.from(b,b.offset,b.byteLength)),Ge(S,i)&&(S=s.from(S,S.offset,S.byteLength)),!s.isBuffer(b)||!s.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(b===S)return 0;let M=b.length,H=S.length;for(let z=0,ne=Math.min(M,H);z<ne;++z)if(b[z]!==S[z]){M=b[z],H=S[z];break}return M<H?-1:H<M?1:0},s.isEncoding=function(b){switch(String(b).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(b,S){if(!Array.isArray(b))throw new TypeError('"list" argument must be an Array of Buffers');if(b.length===0)return s.alloc(0);let M;if(S===void 0)for(S=0,M=0;M<b.length;++M)S+=b[M].length;const H=s.allocUnsafe(S);let z=0;for(M=0;M<b.length;++M){let ne=b[M];if(Ge(ne,i))z+ne.length>H.length?(s.isBuffer(ne)||(ne=s.from(ne)),ne.copy(H,z)):i.prototype.set.call(H,ne,z);else if(s.isBuffer(ne))ne.copy(H,z);else throw new TypeError('"list" argument must be an Array of Buffers');z+=ne.length}return H};function A(F,b){if(s.isBuffer(F))return F.length;if(a.isView(F)||Ge(F,a))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);const S=F.length,M=arguments.length>2&&arguments[2]===!0;if(!M&&S===0)return 0;let H=!1;for(;;)switch(b){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return He(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return Ne(F).length;default:if(H)return M?-1:He(F).length;b=(""+b).toLowerCase(),H=!0}}s.byteLength=A;function I(F,b,S){let M=!1;if((b===void 0||b<0)&&(b=0),b>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,b>>>=0,S<=b))return"";for(F||(F="utf8");;)switch(F){case"hex":return G(this,b,S);case"utf8":case"utf-8":return le(this,b,S);case"ascii":return be(this,b,S);case"latin1":case"binary":return pe(this,b,S);case"base64":return ue(this,b,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,b,S);default:if(M)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),M=!0}}s.prototype._isBuffer=!0;function P(F,b,S){const M=F[b];F[b]=F[S],F[S]=M}s.prototype.swap16=function(){const b=this.length;if(b%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let S=0;S<b;S+=2)P(this,S,S+1);return this},s.prototype.swap32=function(){const b=this.length;if(b%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let S=0;S<b;S+=4)P(this,S,S+3),P(this,S+1,S+2);return this},s.prototype.swap64=function(){const b=this.length;if(b%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let S=0;S<b;S+=8)P(this,S,S+7),P(this,S+1,S+6),P(this,S+2,S+5),P(this,S+3,S+4);return this},s.prototype.toString=function(){const b=this.length;return b===0?"":arguments.length===0?le(this,0,b):I.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(b){if(!s.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?!0:s.compare(this,b)===0},s.prototype.inspect=function(){let b="";const S=e.INSPECT_MAX_BYTES;return b=this.toString("hex",0,S).replace(/(.{2})/g,"$1 ").trim(),this.length>S&&(b+=" ... "),"<Buffer "+b+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(b,S,M,H,z){if(Ge(b,i)&&(b=s.from(b,b.offset,b.byteLength)),!s.isBuffer(b))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof b);if(S===void 0&&(S=0),M===void 0&&(M=b?b.length:0),H===void 0&&(H=0),z===void 0&&(z=this.length),S<0||M>b.length||H<0||z>this.length)throw new RangeError("out of range index");if(H>=z&&S>=M)return 0;if(H>=z)return-1;if(S>=M)return 1;if(S>>>=0,M>>>=0,H>>>=0,z>>>=0,this===b)return 0;let ne=z-H,we=M-S;const Re=Math.min(ne,we),Ie=this.slice(H,z),Pe=b.slice(S,M);for(let Ae=0;Ae<Re;++Ae)if(Ie[Ae]!==Pe[Ae]){ne=Ie[Ae],we=Pe[Ae];break}return ne<we?-1:we<ne?1:0};function O(F,b,S,M,H){if(F.length===0)return-1;if(typeof S=="string"?(M=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,ut(S)&&(S=H?0:F.length-1),S<0&&(S=F.length+S),S>=F.length){if(H)return-1;S=F.length-1}else if(S<0)if(H)S=0;else return-1;if(typeof b=="string"&&(b=s.from(b,M)),s.isBuffer(b))return b.length===0?-1:j(F,b,S,M,H);if(typeof b=="number")return b=b&255,typeof i.prototype.indexOf=="function"?H?i.prototype.indexOf.call(F,b,S):i.prototype.lastIndexOf.call(F,b,S):j(F,[b],S,M,H);throw new TypeError("val must be string, number or Buffer")}function j(F,b,S,M,H){let z=1,ne=F.length,we=b.length;if(M!==void 0&&(M=String(M).toLowerCase(),M==="ucs2"||M==="ucs-2"||M==="utf16le"||M==="utf-16le")){if(F.length<2||b.length<2)return-1;z=2,ne/=2,we/=2,S/=2}function Re(Pe,Ae){return z===1?Pe[Ae]:Pe.readUInt16BE(Ae*z)}let Ie;if(H){let Pe=-1;for(Ie=S;Ie<ne;Ie++)if(Re(F,Ie)===Re(b,Pe===-1?0:Ie-Pe)){if(Pe===-1&&(Pe=Ie),Ie-Pe+1===we)return Pe*z}else Pe!==-1&&(Ie-=Ie-Pe),Pe=-1}else for(S+we>ne&&(S=ne-we),Ie=S;Ie>=0;Ie--){let Pe=!0;for(let Ae=0;Ae<we;Ae++)if(Re(F,Ie+Ae)!==Re(b,Ae)){Pe=!1;break}if(Pe)return Ie}return-1}s.prototype.includes=function(b,S,M){return this.indexOf(b,S,M)!==-1},s.prototype.indexOf=function(b,S,M){return O(this,b,S,M,!0)},s.prototype.lastIndexOf=function(b,S,M){return O(this,b,S,M,!1)};function K(F,b,S,M){S=Number(S)||0;const H=F.length-S;M?(M=Number(M),M>H&&(M=H)):M=H;const z=b.length;M>z/2&&(M=z/2);let ne;for(ne=0;ne<M;++ne){const we=parseInt(b.substr(ne*2,2),16);if(ut(we))return ne;F[S+ne]=we}return ne}function L(F,b,S,M){return Ye(He(b,F.length-S),F,S,M)}function k(F,b,S,M){return Ye(Me(b),F,S,M)}function re(F,b,S,M){return Ye(Ne(b),F,S,M)}function ee(F,b,S,M){return Ye(xe(b,F.length-S),F,S,M)}s.prototype.write=function(b,S,M,H){if(S===void 0)H="utf8",M=this.length,S=0;else if(M===void 0&&typeof S=="string")H=S,M=this.length,S=0;else if(isFinite(S))S=S>>>0,isFinite(M)?(M=M>>>0,H===void 0&&(H="utf8")):(H=M,M=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const z=this.length-S;if((M===void 0||M>z)&&(M=z),b.length>0&&(M<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");H||(H="utf8");let ne=!1;for(;;)switch(H){case"hex":return K(this,b,S,M);case"utf8":case"utf-8":return L(this,b,S,M);case"ascii":case"latin1":case"binary":return k(this,b,S,M);case"base64":return re(this,b,S,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,b,S,M);default:if(ne)throw new TypeError("Unknown encoding: "+H);H=(""+H).toLowerCase(),ne=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(F,b,S){return b===0&&S===F.length?t.fromByteArray(F):t.fromByteArray(F.slice(b,S))}function le(F,b,S){S=Math.min(F.length,S);const M=[];let H=b;for(;H<S;){const z=F[H];let ne=null,we=z>239?4:z>223?3:z>191?2:1;if(H+we<=S){let Re,Ie,Pe,Ae;switch(we){case 1:z<128&&(ne=z);break;case 2:Re=F[H+1],(Re&192)===128&&(Ae=(z&31)<<6|Re&63,Ae>127&&(ne=Ae));break;case 3:Re=F[H+1],Ie=F[H+2],(Re&192)===128&&(Ie&192)===128&&(Ae=(z&15)<<12|(Re&63)<<6|Ie&63,Ae>2047&&(Ae<55296||Ae>57343)&&(ne=Ae));break;case 4:Re=F[H+1],Ie=F[H+2],Pe=F[H+3],(Re&192)===128&&(Ie&192)===128&&(Pe&192)===128&&(Ae=(z&15)<<18|(Re&63)<<12|(Ie&63)<<6|Pe&63,Ae>65535&&Ae<1114112&&(ne=Ae))}}ne===null?(ne=65533,we=1):ne>65535&&(ne-=65536,M.push(ne>>>10&1023|55296),ne=56320|ne&1023),M.push(ne),H+=we}return fe(M)}const de=4096;function fe(F){const b=F.length;if(b<=de)return String.fromCharCode.apply(String,F);let S="",M=0;for(;M<b;)S+=String.fromCharCode.apply(String,F.slice(M,M+=de));return S}function be(F,b,S){let M="";S=Math.min(F.length,S);for(let H=b;H<S;++H)M+=String.fromCharCode(F[H]&127);return M}function pe(F,b,S){let M="";S=Math.min(F.length,S);for(let H=b;H<S;++H)M+=String.fromCharCode(F[H]);return M}function G(F,b,S){const M=F.length;(!b||b<0)&&(b=0),(!S||S<0||S>M)&&(S=M);let H="";for(let z=b;z<S;++z)H+=ct[F[z]];return H}function Z(F,b,S){const M=F.slice(b,S);let H="";for(let z=0;z<M.length-1;z+=2)H+=String.fromCharCode(M[z]+M[z+1]*256);return H}s.prototype.slice=function(b,S){const M=this.length;b=~~b,S=S===void 0?M:~~S,b<0?(b+=M,b<0&&(b=0)):b>M&&(b=M),S<0?(S+=M,S<0&&(S=0)):S>M&&(S=M),S<b&&(S=b);const H=this.subarray(b,S);return Object.setPrototypeOf(H,s.prototype),H};function Q(F,b,S){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+b>S)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(b,S,M){b=b>>>0,S=S>>>0,M||Q(b,S,this.length);let H=this[b],z=1,ne=0;for(;++ne<S&&(z*=256);)H+=this[b+ne]*z;return H},s.prototype.readUintBE=s.prototype.readUIntBE=function(b,S,M){b=b>>>0,S=S>>>0,M||Q(b,S,this.length);let H=this[b+--S],z=1;for(;S>0&&(z*=256);)H+=this[b+--S]*z;return H},s.prototype.readUint8=s.prototype.readUInt8=function(b,S){return b=b>>>0,S||Q(b,1,this.length),this[b]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(b,S){return b=b>>>0,S||Q(b,2,this.length),this[b]|this[b+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(b,S){return b=b>>>0,S||Q(b,2,this.length),this[b]<<8|this[b+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+this[b+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),this[b]*16777216+(this[b+1]<<16|this[b+2]<<8|this[b+3])},s.prototype.readBigUInt64LE=Ve(function(b){b=b>>>0,ce(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&he(b,this.length-8);const H=S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24,z=this[++b]+this[++b]*2**8+this[++b]*2**16+M*2**24;return BigInt(H)+(BigInt(z)<<BigInt(32))}),s.prototype.readBigUInt64BE=Ve(function(b){b=b>>>0,ce(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&he(b,this.length-8);const H=S*2**24+this[++b]*2**16+this[++b]*2**8+this[++b],z=this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+M;return(BigInt(H)<<BigInt(32))+BigInt(z)}),s.prototype.readIntLE=function(b,S,M){b=b>>>0,S=S>>>0,M||Q(b,S,this.length);let H=this[b],z=1,ne=0;for(;++ne<S&&(z*=256);)H+=this[b+ne]*z;return z*=128,H>=z&&(H-=Math.pow(2,8*S)),H},s.prototype.readIntBE=function(b,S,M){b=b>>>0,S=S>>>0,M||Q(b,S,this.length);let H=S,z=1,ne=this[b+--H];for(;H>0&&(z*=256);)ne+=this[b+--H]*z;return z*=128,ne>=z&&(ne-=Math.pow(2,8*S)),ne},s.prototype.readInt8=function(b,S){return b=b>>>0,S||Q(b,1,this.length),this[b]&128?(255-this[b]+1)*-1:this[b]},s.prototype.readInt16LE=function(b,S){b=b>>>0,S||Q(b,2,this.length);const M=this[b]|this[b+1]<<8;return M&32768?M|4294901760:M},s.prototype.readInt16BE=function(b,S){b=b>>>0,S||Q(b,2,this.length);const M=this[b+1]|this[b]<<8;return M&32768?M|4294901760:M},s.prototype.readInt32LE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},s.prototype.readInt32BE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},s.prototype.readBigInt64LE=Ve(function(b){b=b>>>0,ce(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&he(b,this.length-8);const H=this[b+4]+this[b+5]*2**8+this[b+6]*2**16+(M<<24);return(BigInt(H)<<BigInt(32))+BigInt(S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24)}),s.prototype.readBigInt64BE=Ve(function(b){b=b>>>0,ce(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&he(b,this.length-8);const H=(S<<24)+this[++b]*2**16+this[++b]*2**8+this[++b];return(BigInt(H)<<BigInt(32))+BigInt(this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+M)}),s.prototype.readFloatLE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),r.read(this,b,!0,23,4)},s.prototype.readFloatBE=function(b,S){return b=b>>>0,S||Q(b,4,this.length),r.read(this,b,!1,23,4)},s.prototype.readDoubleLE=function(b,S){return b=b>>>0,S||Q(b,8,this.length),r.read(this,b,!0,52,8)},s.prototype.readDoubleBE=function(b,S){return b=b>>>0,S||Q(b,8,this.length),r.read(this,b,!1,52,8)};function ae(F,b,S,M,H,z){if(!s.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>H||b<z)throw new RangeError('"value" argument is out of bounds');if(S+M>F.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(b,S,M,H){if(b=+b,S=S>>>0,M=M>>>0,!H){const we=Math.pow(2,8*M)-1;ae(this,b,S,M,we,0)}let z=1,ne=0;for(this[S]=b&255;++ne<M&&(z*=256);)this[S+ne]=b/z&255;return S+M},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(b,S,M,H){if(b=+b,S=S>>>0,M=M>>>0,!H){const we=Math.pow(2,8*M)-1;ae(this,b,S,M,we,0)}let z=M-1,ne=1;for(this[S+z]=b&255;--z>=0&&(ne*=256);)this[S+z]=b/ne&255;return S+M},s.prototype.writeUint8=s.prototype.writeUInt8=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,1,255,0),this[S]=b&255,S+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,2,65535,0),this[S]=b&255,this[S+1]=b>>>8,S+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,2,65535,0),this[S]=b>>>8,this[S+1]=b&255,S+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,4,4294967295,0),this[S+3]=b>>>24,this[S+2]=b>>>16,this[S+1]=b>>>8,this[S]=b&255,S+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,4,4294967295,0),this[S]=b>>>24,this[S+1]=b>>>16,this[S+2]=b>>>8,this[S+3]=b&255,S+4};function V(F,b,S,M,H){ge(b,M,H,F,S,7);let z=Number(b&BigInt(4294967295));F[S++]=z,z=z>>8,F[S++]=z,z=z>>8,F[S++]=z,z=z>>8,F[S++]=z;let ne=Number(b>>BigInt(32)&BigInt(4294967295));return F[S++]=ne,ne=ne>>8,F[S++]=ne,ne=ne>>8,F[S++]=ne,ne=ne>>8,F[S++]=ne,S}function R(F,b,S,M,H){ge(b,M,H,F,S,7);let z=Number(b&BigInt(4294967295));F[S+7]=z,z=z>>8,F[S+6]=z,z=z>>8,F[S+5]=z,z=z>>8,F[S+4]=z;let ne=Number(b>>BigInt(32)&BigInt(4294967295));return F[S+3]=ne,ne=ne>>8,F[S+2]=ne,ne=ne>>8,F[S+1]=ne,ne=ne>>8,F[S]=ne,S+8}s.prototype.writeBigUInt64LE=Ve(function(b,S=0){return V(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Ve(function(b,S=0){return R(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(b,S,M,H){if(b=+b,S=S>>>0,!H){const Re=Math.pow(2,8*M-1);ae(this,b,S,M,Re-1,-Re)}let z=0,ne=1,we=0;for(this[S]=b&255;++z<M&&(ne*=256);)b<0&&we===0&&this[S+z-1]!==0&&(we=1),this[S+z]=(b/ne>>0)-we&255;return S+M},s.prototype.writeIntBE=function(b,S,M,H){if(b=+b,S=S>>>0,!H){const Re=Math.pow(2,8*M-1);ae(this,b,S,M,Re-1,-Re)}let z=M-1,ne=1,we=0;for(this[S+z]=b&255;--z>=0&&(ne*=256);)b<0&&we===0&&this[S+z+1]!==0&&(we=1),this[S+z]=(b/ne>>0)-we&255;return S+M},s.prototype.writeInt8=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,1,127,-128),b<0&&(b=255+b+1),this[S]=b&255,S+1},s.prototype.writeInt16LE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,2,32767,-32768),this[S]=b&255,this[S+1]=b>>>8,S+2},s.prototype.writeInt16BE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,2,32767,-32768),this[S]=b>>>8,this[S+1]=b&255,S+2},s.prototype.writeInt32LE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,4,2147483647,-2147483648),this[S]=b&255,this[S+1]=b>>>8,this[S+2]=b>>>16,this[S+3]=b>>>24,S+4},s.prototype.writeInt32BE=function(b,S,M){return b=+b,S=S>>>0,M||ae(this,b,S,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),this[S]=b>>>24,this[S+1]=b>>>16,this[S+2]=b>>>8,this[S+3]=b&255,S+4},s.prototype.writeBigInt64LE=Ve(function(b,S=0){return V(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Ve(function(b,S=0){return R(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function N(F,b,S,M,H,z){if(S+M>F.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function q(F,b,S,M,H){return b=+b,S=S>>>0,H||N(F,b,S,4),r.write(F,b,S,M,23,4),S+4}s.prototype.writeFloatLE=function(b,S,M){return q(this,b,S,!0,M)},s.prototype.writeFloatBE=function(b,S,M){return q(this,b,S,!1,M)};function $(F,b,S,M,H){return b=+b,S=S>>>0,H||N(F,b,S,8),r.write(F,b,S,M,52,8),S+8}s.prototype.writeDoubleLE=function(b,S,M){return $(this,b,S,!0,M)},s.prototype.writeDoubleBE=function(b,S,M){return $(this,b,S,!1,M)},s.prototype.copy=function(b,S,M,H){if(!s.isBuffer(b))throw new TypeError("argument should be a Buffer");if(M||(M=0),!H&&H!==0&&(H=this.length),S>=b.length&&(S=b.length),S||(S=0),H>0&&H<M&&(H=M),H===M||b.length===0||this.length===0)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(M<0||M>=this.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length),b.length-S<H-M&&(H=b.length-S+M);const z=H-M;return this===b&&typeof i.prototype.copyWithin=="function"?this.copyWithin(S,M,H):i.prototype.set.call(b,this.subarray(M,H),S),z},s.prototype.fill=function(b,S,M,H){if(typeof b=="string"){if(typeof S=="string"?(H=S,S=0,M=this.length):typeof M=="string"&&(H=M,M=this.length),H!==void 0&&typeof H!="string")throw new TypeError("encoding must be a string");if(typeof H=="string"&&!s.isEncoding(H))throw new TypeError("Unknown encoding: "+H);if(b.length===1){const ne=b.charCodeAt(0);(H==="utf8"&&ne<128||H==="latin1")&&(b=ne)}}else typeof b=="number"?b=b&255:typeof b=="boolean"&&(b=Number(b));if(S<0||this.length<S||this.length<M)throw new RangeError("Out of range index");if(M<=S)return this;S=S>>>0,M=M===void 0?this.length:M>>>0,b||(b=0);let z;if(typeof b=="number")for(z=S;z<M;++z)this[z]=b;else{const ne=s.isBuffer(b)?b:s.from(b,H),we=ne.length;if(we===0)throw new TypeError('The value "'+b+'" is invalid for argument "value"');for(z=0;z<M-S;++z)this[z+S]=ne[z%we]}return this};const B={};function U(F,b,S){B[F]=class extends S{constructor(){super(),Object.defineProperty(this,"message",{value:b.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${F}]`,this.stack,delete this.name}get code(){return F}set code(H){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:H,writable:!0})}toString(){return`${this.name} [${F}]: ${this.message}`}}}U("ERR_BUFFER_OUT_OF_BOUNDS",function(F){return F?`${F} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(F,b){return`The "${F}" argument must be of type number. Received type ${typeof b}`},TypeError),U("ERR_OUT_OF_RANGE",function(F,b,S){let M=`The value of "${F}" is out of range.`,H=S;return Number.isInteger(S)&&Math.abs(S)>2**32?H=J(String(S)):typeof S=="bigint"&&(H=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(H=J(H)),H+="n"),M+=` It must be ${b}. Received ${H}`,M},RangeError);function J(F){let b="",S=F.length;const M=F[0]==="-"?1:0;for(;S>=M+4;S-=3)b=`_${F.slice(S-3,S)}${b}`;return`${F.slice(0,S)}${b}`}function oe(F,b,S){ce(b,"offset"),(F[b]===void 0||F[b+S]===void 0)&&he(b,F.length-(S+1))}function ge(F,b,S,M,H,z){if(F>S||F<b){const ne=typeof b=="bigint"?"n":"";let we;throw b===0||b===BigInt(0)?we=`>= 0${ne} and < 2${ne} ** ${(z+1)*8}${ne}`:we=`>= -(2${ne} ** ${(z+1)*8-1}${ne}) and < 2 ** ${(z+1)*8-1}${ne}`,new B.ERR_OUT_OF_RANGE("value",we,F)}oe(M,H,z)}function ce(F,b){if(typeof F!="number")throw new B.ERR_INVALID_ARG_TYPE(b,"number",F)}function he(F,b,S){throw Math.floor(F)!==F?(ce(F,S),new B.ERR_OUT_OF_RANGE("offset","an integer",F)):b<0?new B.ERR_BUFFER_OUT_OF_BOUNDS:new B.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${b}`,F)}const Oe=/[^+/0-9A-Za-z-_]/g;function te(F){if(F=F.split("=")[0],F=F.trim().replace(Oe,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function He(F,b){b=b||1/0;let S;const M=F.length;let H=null;const z=[];for(let ne=0;ne<M;++ne){if(S=F.charCodeAt(ne),S>55295&&S<57344){if(!H){if(S>56319){(b-=3)>-1&&z.push(239,191,189);continue}else if(ne+1===M){(b-=3)>-1&&z.push(239,191,189);continue}H=S;continue}if(S<56320){(b-=3)>-1&&z.push(239,191,189),H=S;continue}S=(H-55296<<10|S-56320)+65536}else H&&(b-=3)>-1&&z.push(239,191,189);if(H=null,S<128){if((b-=1)<0)break;z.push(S)}else if(S<2048){if((b-=2)<0)break;z.push(S>>6|192,S&63|128)}else if(S<65536){if((b-=3)<0)break;z.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((b-=4)<0)break;z.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return z}function Me(F){const b=[];for(let S=0;S<F.length;++S)b.push(F.charCodeAt(S)&255);return b}function xe(F,b){let S,M,H;const z=[];for(let ne=0;ne<F.length&&!((b-=2)<0);++ne)S=F.charCodeAt(ne),M=S>>8,H=S%256,z.push(H),z.push(M);return z}function Ne(F){return t.toByteArray(te(F))}function Ye(F,b,S,M){let H;for(H=0;H<M&&!(H+S>=b.length||H>=F.length);++H)b[H+S]=F[H];return H}function Ge(F,b){return F instanceof b||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===b.name}function ut(F){return F!==F}const ct=(function(){const F="0123456789abcdef",b=new Array(256);for(let S=0;S<16;++S){const M=S*16;for(let H=0;H<16;++H)b[M+H]=F[S]+F[H]}return b})();function Ve(F){return typeof BigInt>"u"?Nt:F}function Nt(){throw new Error("BigInt not supported")}})(As);const Ht=As.Buffer;function me(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}X.inherits(me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:X.toJSONObject(this.config),code:this.code,status:this.status}}});const Ss=me.prototype,_s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{_s[e]={value:e}}),Object.defineProperties(me,_s),Object.defineProperty(Ss,"isAxiosError",{value:!0}),me.from=(e,t,r,n,o,i)=>{const a=Object.create(Ss);X.toFlatObject(e,a,function(s){return s!==Error.prototype},l=>l!=="isAxiosError");const u=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return me.call(a,u,c,r,n,o),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};var zf=null;function En(e){return X.isPlainObject(e)||X.isArray(e)}function Os(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function Ns(e,t,r){return e?e.concat(t).map(function(o,i){return o=Os(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Xf(e){return X.isArray(e)&&!e.some(En)}const Yf=X.toFlatObject(X,{},null,function(t){return/^is[A-Z]/.test(t)});function Ir(e,t,r){if(!X.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=X.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,T){return!X.isUndefined(T[E])});const n=r.metaTokens,o=r.visitor||s,i=r.dots,a=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(t);if(!X.isFunction(o))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(X.isDate(m))return m.toISOString();if(X.isBoolean(m))return m.toString();if(!c&&X.isBlob(m))throw new me("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(m)||X.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Ht.from(m):m}function s(m,E,T){let y=m;if(m&&!T&&typeof m=="object"){if(X.endsWith(E,"{}"))E=n?E:E.slice(0,-2),m=JSON.stringify(m);else if(X.isArray(m)&&Xf(m)||(X.isFileList(m)||X.endsWith(E,"[]"))&&(y=X.toArray(m)))return E=Os(E),y.forEach(function(d,g){!(X.isUndefined(d)||d===null)&&t.append(a===!0?Ns([E],g,i):a===null?E:E+"[]",l(d))}),!1}return En(m)?!0:(t.append(Ns(T,E,i),l(m)),!1)}const f=[],h=Object.assign(Yf,{defaultVisitor:s,convertValue:l,isVisitable:En});function x(m,E){if(!X.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+E.join("."));f.push(m),X.forEach(m,function(y,p){(!(X.isUndefined(y)||y===null)&&o.call(t,y,X.isString(p)?p.trim():p,E,h))===!0&&x(y,E?E.concat(p):[p])}),f.pop()}}if(!X.isObject(e))throw new TypeError("data must be an object");return x(e),t}function Rs(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function xn(e,t){this._pairs=[],e&&Ir(e,this,t)}const Is=xn.prototype;Is.append=function(t,r){this._pairs.push([t,r])},Is.toString=function(t){const r=t?function(n){return t.call(this,n,Rs)}:Rs;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Jf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ps(e,t,r){if(!t)return e;const n=r&&r.encode||Jf;X.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=X.isURLSearchParams(t)?t.toString():new xn(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Fs{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){X.forEach(this.handlers,function(n){n!==null&&t(n)})}}var Cs={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Zf=typeof URLSearchParams<"u"?URLSearchParams:xn,Qf=typeof FormData<"u"?FormData:null,eh=typeof Blob<"u"?Blob:null,th={isBrowser:!0,classes:{URLSearchParams:Zf,FormData:Qf,Blob:eh},protocols:["http","https","file","blob","url","data"]};const An=typeof window<"u"&&typeof document<"u",Tn=typeof navigator=="object"&&navigator||void 0,rh=An&&(!Tn||["ReactNative","NativeScript","NS"].indexOf(Tn.product)<0),nh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ih=An&&window.location.href||"http://localhost";var oh=Object.freeze({__proto__:null,hasBrowserEnv:An,hasStandardBrowserEnv:rh,hasStandardBrowserWebWorkerEnv:nh,navigator:Tn,origin:ih}),Ke={...oh,...th};function sh(e,t){return Ir(e,new Ke.classes.URLSearchParams,{visitor:function(r,n,o,i){return Ke.isNode&&X.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function ah(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function uh(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function Bs(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const u=Number.isFinite(+a),c=i>=r.length;return a=!a&&X.isArray(o)?o.length:a,c?(X.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!u):((!o[a]||!X.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&X.isArray(o[a])&&(o[a]=uh(o[a])),!u)}if(X.isFormData(e)&&X.isFunction(e.entries)){const r={};return X.forEachEntry(e,(n,o)=>{t(ah(n),o,r,0)}),r}return null}function lh(e,t,r){if(X.isString(e))try{return(t||JSON.parse)(e),X.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const or={transitional:Cs,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=X.isObject(t);if(i&&X.isHTMLForm(t)&&(t=new FormData(t)),X.isFormData(t))return o?JSON.stringify(Bs(t)):t;if(X.isArrayBuffer(t)||X.isBuffer(t)||X.isStream(t)||X.isFile(t)||X.isBlob(t)||X.isReadableStream(t))return t;if(X.isArrayBufferView(t))return t.buffer;if(X.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return sh(t,this.formSerializer).toString();if((u=X.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Ir(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),lh(t)):t}],transformResponse:[function(t){const r=this.transitional||or.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(X.isResponse(t)||X.isReadableStream(t))return t;if(t&&X.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(u){if(a)throw u.name==="SyntaxError"?me.from(u,me.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],e=>{or.headers[e]={}});const ch=X.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var fh=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
7
|
+
`).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&ch[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};const Ls=Symbol("internals");function sr(e){return e&&String(e).trim().toLowerCase()}function Pr(e){return e===!1||e==null?e:X.isArray(e)?e.map(Pr):String(e)}function hh(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const dh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Sn(e,t,r,n,o){if(X.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!X.isString(t)){if(X.isString(n))return t.indexOf(n)!==-1;if(X.isRegExp(n))return n.test(t)}}function ph(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function gh(e,t){const r=X.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}let rt=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(u,c,l){const s=sr(c);if(!s)throw new Error("header name must be a non-empty string");const f=X.findKey(o,s);(!f||o[f]===void 0||l===!0||l===void 0&&o[f]!==!1)&&(o[f||c]=Pr(u))}const a=(u,c)=>X.forEach(u,(l,s)=>i(l,s,c));if(X.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(X.isString(t)&&(t=t.trim())&&!dh(t))a(fh(t),r);else if(X.isObject(t)&&X.isIterable(t)){let u={},c,l;for(const s of t){if(!X.isArray(s))throw TypeError("Object iterator must return a key-value pair");u[l=s[0]]=(c=u[l])?X.isArray(c)?[...c,s[1]]:[c,s[1]]:s[1]}a(u,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=sr(t),t){const n=X.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return hh(o);if(X.isFunction(r))return r.call(this,o,n);if(X.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=sr(t),t){const n=X.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Sn(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=sr(a),a){const u=X.findKey(n,a);u&&(!r||Sn(n,n[u],u,r))&&(delete n[u],o=!0)}}return X.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||Sn(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return X.forEach(this,(o,i)=>{const a=X.findKey(n,i);if(a){r[a]=Pr(o),delete r[i];return}const u=t?ph(i):String(i).trim();u!==i&&delete r[i],r[u]=Pr(o),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return X.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&X.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
8
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}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[Ls]=this[Ls]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=sr(a);n[u]||(gh(o,a),n[u]=!0)}return X.isArray(t)?t.forEach(i):i(t),this}};rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(rt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),X.freezeMethods(rt);function _n(e,t){const r=this||or,n=t||r,o=rt.from(n.headers);let i=n.data;return X.forEach(e,function(u){i=u.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Us(e){return!!(e&&e.__CANCEL__)}function Vt(e,t,r){me.call(this,e??"canceled",me.ERR_CANCELED,t,r),this.name="CanceledError"}X.inherits(Vt,me,{__CANCEL__:!0});function js(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new me("Request failed with status code "+r.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function yh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function mh(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(c){const l=Date.now(),s=n[i];a||(a=l),r[o]=c,n[o]=l;let f=i,h=0;for(;f!==o;)h+=r[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const x=s&&l-s;return x?Math.round(h*1e3/x):void 0}}function bh(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(...l)};return[(...l)=>{const s=Date.now(),f=s-r;f>=n?a(l,s):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-f)))},()=>o&&a(o)]}const Fr=(e,t,r=3)=>{let n=0;const o=mh(50,250);return bh(i=>{const a=i.loaded,u=i.lengthComputable?i.total:void 0,c=a-n,l=o(c),s=a<=u;n=a;const f={loaded:a,total:u,progress:u?a/u:void 0,bytes:c,rate:l||void 0,estimated:l&&u&&s?(u-a)/l:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(f)},r)},ks=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ms=e=>(...t)=>X.asap(()=>e(...t));var wh=Ke.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ke.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ke.origin),Ke.navigator&&/(msie|trident)/i.test(Ke.navigator.userAgent)):()=>!0,vh=Ke.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];X.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),X.isString(n)&&a.push("path="+n),X.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 Eh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xh(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ds(e,t,r){let n=!Eh(t);return e&&(n||r==!1)?xh(e,t):t}const $s=e=>e instanceof rt?{...e}:e;function Ft(e,t){t=t||{};const r={};function n(l,s,f,h){return X.isPlainObject(l)&&X.isPlainObject(s)?X.merge.call({caseless:h},l,s):X.isPlainObject(s)?X.merge({},s):X.isArray(s)?s.slice():s}function o(l,s,f,h){if(X.isUndefined(s)){if(!X.isUndefined(l))return n(void 0,l,f,h)}else return n(l,s,f,h)}function i(l,s){if(!X.isUndefined(s))return n(void 0,s)}function a(l,s){if(X.isUndefined(s)){if(!X.isUndefined(l))return n(void 0,l)}else return n(void 0,s)}function u(l,s,f){if(f in t)return n(l,s);if(f in e)return n(void 0,l)}const c={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,f)=>o($s(l),$s(s),f,!0)};return X.forEach(Object.keys({...e,...t}),function(s){const f=c[s]||o,h=f(e[s],t[s],s);X.isUndefined(h)&&f!==u||(r[s]=h)}),r}var qs=e=>{const t=Ft({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;if(t.headers=a=rt.from(a),t.url=Ps(Ds(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),X.isFormData(r)){if(Ke.hasStandardBrowserEnv||Ke.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(X.isFunction(r.getHeaders)){const c=r.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([s,f])=>{l.includes(s.toLowerCase())&&a.set(s,f)})}}if(Ke.hasStandardBrowserEnv&&(n&&X.isFunction(n)&&(n=n(t)),n||n!==!1&&wh(t.url))){const c=o&&i&&vh.read(i);c&&a.set(o,c)}return t},Ah=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=qs(e);let i=o.data;const a=rt.from(o.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:l}=o,s,f,h,x,m;function E(){x&&x(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let T=new XMLHttpRequest;T.open(o.method.toUpperCase(),o.url,!0),T.timeout=o.timeout;function y(){if(!T)return;const d=rt.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),v={data:!u||u==="text"||u==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:d,config:e,request:T};js(function(I){r(I),E()},function(I){n(I),E()},v),T=null}"onloadend"in T?T.onloadend=y:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(y)},T.onabort=function(){T&&(n(new me("Request aborted",me.ECONNABORTED,e,T)),T=null)},T.onerror=function(g){const v=g&&g.message?g.message:"Network Error",A=new me(v,me.ERR_NETWORK,e,T);A.event=g||null,n(A),T=null},T.ontimeout=function(){let g=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const v=o.transitional||Cs;o.timeoutErrorMessage&&(g=o.timeoutErrorMessage),n(new me(g,v.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,e,T)),T=null},i===void 0&&a.setContentType(null),"setRequestHeader"in T&&X.forEach(a.toJSON(),function(g,v){T.setRequestHeader(v,g)}),X.isUndefined(o.withCredentials)||(T.withCredentials=!!o.withCredentials),u&&u!=="json"&&(T.responseType=o.responseType),l&&([h,m]=Fr(l,!0),T.addEventListener("progress",h)),c&&T.upload&&([f,x]=Fr(c),T.upload.addEventListener("progress",f),T.upload.addEventListener("loadend",x)),(o.cancelToken||o.signal)&&(s=d=>{T&&(n(!d||d.type?new Vt(null,e,T):d),T.abort(),T=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const p=yh(o.url);if(p&&Ke.protocols.indexOf(p)===-1){n(new me("Unsupported protocol "+p+":",me.ERR_BAD_REQUEST,e));return}T.send(i||null)})};const Th=(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 me?s:new Vt(s instanceof Error?s.message:s))}};let a=t&&setTimeout(()=>{a=null,i(new me(`timeout ${t} of ms exceeded`,me.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:c}=n;return c.unsubscribe=()=>X.asap(u),c}},Sh=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},_h=async function*(e,t){for await(const r of Oh(e))yield*Sh(r,t)},Oh=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()}},Hs=(e,t,r,n)=>{const o=_h(e,t);let i=0,a,u=c=>{a||(a=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:l,value:s}=await o.next();if(l){u(),c.close();return}let f=s.byteLength;if(r){let h=i+=f;r(h)}c.enqueue(new Uint8Array(s))}catch(l){throw u(l),l}},cancel(c){return u(c),o.return()}},{highWaterMark:2})},Vs=64*1024,{isFunction:Cr}=X,Nh=(({Request:e,Response:t})=>({Request:e,Response:t}))(X.global),{ReadableStream:Ws,TextEncoder:Gs}=X.global,Ks=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Rh=e=>{e=X.merge.call({skipUndefined:!0},Nh,e);const{fetch:t,Request:r,Response:n}=e,o=t?Cr(t):typeof fetch=="function",i=Cr(r),a=Cr(n);if(!o)return!1;const u=o&&Cr(Ws),c=o&&(typeof Gs=="function"?(m=>E=>m.encode(E))(new Gs):async m=>new Uint8Array(await new r(m).arrayBuffer())),l=i&&u&&Ks(()=>{let m=!1;const E=new r(Ke.origin,{body:new Ws,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!E}),s=a&&u&&Ks(()=>X.isReadableStream(new n("").body)),f={stream:s&&(m=>m.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!f[m]&&(f[m]=(E,T)=>{let y=E&&E[m];if(y)return y.call(E);throw new me(`Response type '${m}' is not supported`,me.ERR_NOT_SUPPORT,T)})});const h=async m=>{if(m==null)return 0;if(X.isBlob(m))return m.size;if(X.isSpecCompliantForm(m))return(await new r(Ke.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(X.isArrayBufferView(m)||X.isArrayBuffer(m))return m.byteLength;if(X.isURLSearchParams(m)&&(m=m+""),X.isString(m))return(await c(m)).byteLength},x=async(m,E)=>{const T=X.toFiniteNumber(m.getContentLength());return T??h(E)};return async m=>{let{url:E,method:T,data:y,signal:p,cancelToken:d,timeout:g,onDownloadProgress:v,onUploadProgress:A,responseType:I,headers:P,withCredentials:O="same-origin",fetchOptions:j}=qs(m),K=t||fetch;I=I?(I+"").toLowerCase():"text";let L=Th([p,d&&d.toAbortSignal()],g),k=null;const re=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let ee;try{if(A&&l&&T!=="get"&&T!=="head"&&(ee=await x(P,y))!==0){let pe=new r(E,{method:"POST",body:y,duplex:"half"}),G;if(X.isFormData(y)&&(G=pe.headers.get("content-type"))&&P.setContentType(G),pe.body){const[Z,Q]=ks(ee,Fr(Ms(A)));y=Hs(pe.body,Vs,Z,Q)}}X.isString(O)||(O=O?"include":"omit");const ue=i&&"credentials"in r.prototype,le={...j,signal:L,method:T.toUpperCase(),headers:P.normalize().toJSON(),body:y,duplex:"half",credentials:ue?O:void 0};k=i&&new r(E,le);let de=await(i?K(k,j):K(E,le));const fe=s&&(I==="stream"||I==="response");if(s&&(v||fe&&re)){const pe={};["status","statusText","headers"].forEach(ae=>{pe[ae]=de[ae]});const G=X.toFiniteNumber(de.headers.get("content-length")),[Z,Q]=v&&ks(G,Fr(Ms(v),!0))||[];de=new n(Hs(de.body,Vs,Z,()=>{Q&&Q(),re&&re()}),pe)}I=I||"text";let be=await f[X.findKey(f,I)||"text"](de,m);return!fe&&re&&re(),await new Promise((pe,G)=>{js(pe,G,{data:be,headers:rt.from(de.headers),status:de.status,statusText:de.statusText,config:m,request:k})})}catch(ue){throw re&&re(),ue&&ue.name==="TypeError"&&/Load failed|fetch/i.test(ue.message)?Object.assign(new me("Network Error",me.ERR_NETWORK,m,k),{cause:ue.cause||ue}):me.from(ue,ue&&ue.code,m,k)}}},Ih=new Map,zs=e=>{let t=e?e.env:{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let a=i.length,u=a,c,l,s=Ih;for(;u--;)c=i[u],l=s.get(c),l===void 0&&s.set(c,l=u?new Map:Rh(t)),s=l;return l};zs();const On={http:zf,xhr:Ah,fetch:{get:zs}};X.forEach(On,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Xs=e=>`- ${e}`,Ph=e=>X.isFunction(e)||e===null||e===!1;var Ys={getAdapter:(e,t)=>{e=X.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let a=0;a<r;a++){n=e[a];let u;if(o=n,!Ph(n)&&(o=On[(u=String(n)).toLowerCase()],o===void 0))throw new me(`Unknown adapter '${u}'`);if(o&&(X.isFunction(o)||(o=o.get(t))))break;i[u||"#"+a]=o}if(!o){const a=Object.entries(i).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let u=r?a.length>1?`since :
|
|
9
|
+
`+a.map(Xs).join(`
|
|
10
|
+
`):" "+Xs(a[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return o},adapters:On};function Nn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vt(null,e)}function Js(e){return Nn(e),e.headers=rt.from(e.headers),e.data=_n.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ys.getAdapter(e.adapter||or.adapter,e)(e).then(function(n){return Nn(e),n.data=_n.call(e,e.transformResponse,n),n.headers=rt.from(n.headers),n},function(n){return Us(n)||(Nn(e),n&&n.response&&(n.response.data=_n.call(e,e.transformResponse,n.response),n.response.headers=rt.from(n.response.headers))),Promise.reject(n)})}const Zs="1.12.2",Br={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Br[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Qs={};Br.transitional=function(t,r,n){function o(i,a){return"[Axios v"+Zs+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,u)=>{if(t===!1)throw new me(o(a," has been removed"+(r?" in "+r:"")),me.ERR_DEPRECATED);return r&&!Qs[a]&&(Qs[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}},Br.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Fh(e,t,r){if(typeof e!="object")throw new me("options must be an object",me.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],c=u===void 0||a(u,i,e);if(c!==!0)throw new me("option "+i+" must be "+c,me.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new me("Unknown option "+i,me.ERR_BAD_OPTION)}}var Lr={assertOptions:Fh,validators:Br};const pt=Lr.validators;let Ct=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Fs,response:new Fs}}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=Ft(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Lr.assertOptions(n,{silentJSONParsing:pt.transitional(pt.boolean),forcedJSONParsing:pt.transitional(pt.boolean),clarifyTimeoutError:pt.transitional(pt.boolean)},!1),o!=null&&(X.isFunction(o)?r.paramsSerializer={serialize:o}:Lr.assertOptions(o,{encode:pt.function,serialize:pt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Lr.assertOptions(r,{baseUrl:pt.spelling("baseURL"),withXsrfToken:pt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&X.merge(i.common,i[r.method]);i&&X.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=rt.concat(a,i);const u=[];let c=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(r)===!1||(c=c&&E.synchronous,u.unshift(E.fulfilled,E.rejected))});const l=[];this.interceptors.response.forEach(function(E){l.push(E.fulfilled,E.rejected)});let s,f=0,h;if(!c){const m=[Js.bind(this),void 0];for(m.unshift(...u),m.push(...l),h=m.length,s=Promise.resolve(r);f<h;)s=s.then(m[f++],m[f++]);return s}h=u.length;let x=r;for(;f<h;){const m=u[f++],E=u[f++];try{x=m(x)}catch(T){E.call(this,T);break}}try{s=Js.call(this,x)}catch(m){return Promise.reject(m)}for(f=0,h=l.length;f<h;)s=s.then(l[f++],l[f++]);return s}getUri(t){t=Ft(this.defaults,t);const r=Ds(t.baseURL,t.url,t.allowAbsoluteUrls);return Ps(r,t.params,t.paramsSerializer)}};X.forEach(["delete","get","head","options"],function(t){Ct.prototype[t]=function(r,n){return this.request(Ft(n||{},{method:t,url:r,data:(n||{}).data}))}}),X.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,u){return this.request(Ft(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Ct.prototype[t]=r(),Ct.prototype[t+"Form"]=r(!0)});let Ch=class qc{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 Vt(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 qc(function(o){t=o}),cancel:t}}};function Bh(e){return function(r){return e.apply(null,r)}}function Lh(e){return X.isObject(e)&&e.isAxiosError===!0}const Rn={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(Rn).forEach(([e,t])=>{Rn[t]=e});function ea(e){const t=new Ct(e),r=ps(Ct.prototype.request,t);return X.extend(r,Ct.prototype,t,{allOwnKeys:!0}),X.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return ea(Ft(e,o))},r}const ke=ea(or);ke.Axios=Ct,ke.CanceledError=Vt,ke.CancelToken=Ch,ke.isCancel=Us,ke.VERSION=Zs,ke.toFormData=Ir,ke.AxiosError=me,ke.Cancel=ke.CanceledError,ke.all=function(t){return Promise.all(t)},ke.spread=Bh,ke.isAxiosError=Lh,ke.mergeConfig=Ft,ke.AxiosHeaders=rt,ke.formToJSON=e=>Bs(X.isHTMLForm(e)?new FormData(e):e),ke.getAdapter=Ys.getAdapter,ke.HttpStatusCode=Rn,ke.default=ke;const{Axios:ub,AxiosError:lb,CanceledError:cb,isCancel:fb,CancelToken:hb,VERSION:db,all:pb,Cancel:gb,isAxiosError:yb,spread:mb,toFormData:bb,AxiosHeaders:wb,HttpStatusCode:vb,formToJSON:Eb,getAdapter:xb,mergeConfig:Ab}=ke,Ur=e=>encodeURIComponent(e).split("%2F").join("/"),Uh=/^(\w+:\/\/[^/?]+)?(.*?)$/,jh=e=>e.filter(t=>typeof t=="string"||typeof t=="number").map(t=>`${t}`).filter(t=>t),kh=e=>{const t=e.join("/"),[,r="",n=""]=t.match(Uh)||[];return{prefix:r,pathname:{parts:n.split("/").filter(o=>o!==""),hasLeading:/^\/+/.test(n),hasTrailing:/\/+$/.test(n)}}},Mh=(e,t)=>{const{prefix:r,pathname:n}=e,{parts:o,hasLeading:i,hasTrailing:a}=n,{leadingSlash:u,trailingSlash:c}=t,l=u===!0||u==="keep"&&i,s=c===!0||c==="keep"&&a;let f=r;return o.length>0&&((f||l)&&(f+="/"),f+=o.join("/")),s&&(f+="/"),!f&&l&&(f+="/"),f},Ee=(...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=jh(e);const n=kh(e);return Mh(n,r)};class ta extends Error{response;statusCode;constructor(t,r,n=null){super(t),this.response=r,this.statusCode=n}}class Dh extends ta{errorCode;constructor(t,r,n,o=null){super(t,n,o),this.errorCode=r}}function $h(e,t=""){return`/public-files/${e}/${t}`.split("/").filter(Boolean).join("/")}function qh(e,t=""){return`/ocm/${e}/${t}`.split("/").filter(Boolean).join("/")}class gt{static Shared="S";static Shareable="R";static Mounted="M";static Deletable="D";static Renameable="N";static Moveable="V";static Updateable="NV";static FileUpdateable="W";static FolderCreateable="CK";static Deny="Z";static SecureView="X"}var vt=(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))(vt||{});const jr=e=>({value:e,type:null}),Hh=e=>jr(e),Te=e=>jr(e),kr=e=>jr(e),Vh=e=>jr(e),Wh={Permissions:Te("permissions"),IsFavorite:kr("favorite"),FileId:Te("fileid"),FileParent:Te("file-parent"),Name:Te("name"),OwnerId:Te("owner-id"),OwnerDisplayName:Te("owner-display-name"),PrivateLink:Te("privatelink"),ContentLength:kr("getcontentlength"),ContentSize:kr("size"),LastModifiedDate:Te("getlastmodified"),Tags:Hh("tags"),Audio:{value:"audio",type:null},Location:{value:"location",type:null},Image:{value:"image",type:null},Photo:{value:"photo",type:null},ETag:Te("getetag"),MimeType:Te("getcontenttype"),ResourceType:Vh("resourcetype"),LockDiscovery:{value:"lockdiscovery",type:null},LockOwner:Te("owner"),LockTime:Te("locktime"),ActiveLock:{value:"activelock",type:null},DownloadURL:Te("downloadURL"),Highlights:Te("highlights"),MetaPathForUser:Te("meta-path-for-user"),RemoteItemId:Te("remote-item-id"),HasPreview:kr("has-preview"),ShareId:Te("shareid"),ShareRoot:Te("shareroot"),ShareTypes:{value:"share-types",type:null},SharePermissions:Te("share-permissions"),TrashbinOriginalFilename:Te("trashbin-original-filename"),TrashbinOriginalLocation:Te("trashbin-original-location"),TrashbinDeletedDate:Te("trashbin-delete-datetime"),PublicLinkItemType:Te("public-link-item-type"),PublicLinkPermission:Te("public-link-permission"),PublicLinkExpiration:Te("public-link-expiration"),PublicLinkShareDate:Te("public-link-share-datetime"),PublicLinkShareOwner:Te("public-link-share-owner")},se=Object.fromEntries(Object.entries(Wh).map(([e,t])=>[e,t.value]));class Bt{static Default=[se.Permissions,se.IsFavorite,se.FileId,se.FileParent,se.Name,se.LockDiscovery,se.ActiveLock,se.OwnerId,se.OwnerDisplayName,se.RemoteItemId,se.ShareRoot,se.ShareTypes,se.PrivateLink,se.ContentLength,se.ContentSize,se.LastModifiedDate,se.ETag,se.MimeType,se.ResourceType,se.DownloadURL,se.Tags,se.Audio,se.Location,se.Image,se.Photo,se.HasPreview];static PublicLink=Bt.Default.concat([se.PublicLinkItemType,se.PublicLinkPermission,se.PublicLinkExpiration,se.PublicLinkShareDate,se.PublicLinkShareOwner]);static Trashbin=[se.ContentLength,se.ResourceType,se.TrashbinOriginalLocation,se.TrashbinOriginalFilename,se.TrashbinDeletedDate,se.Permissions,se.FileParent];static DavNamespace=[se.ContentLength,se.LastModifiedDate,se.ETag,se.MimeType,se.ResourceType,se.LockDiscovery,se.ActiveLock]}var Gh=typeof wt=="object"&&wt&&wt.Object===Object&&wt,Kh=typeof self=="object"&&self&&self.Object===Object&&self,In=Gh||Kh||Function("return this")(),Wt=In.Symbol,ra=Object.prototype,zh=ra.hasOwnProperty,Xh=ra.toString,ar=Wt?Wt.toStringTag:void 0;function Yh(e){var t=zh.call(e,ar),r=e[ar];try{e[ar]=void 0;var n=!0}catch{}var o=Xh.call(e);return n&&(t?e[ar]=r:delete e[ar]),o}var Jh=Object.prototype,Zh=Jh.toString;function Qh(e){return Zh.call(e)}var ed="[object Null]",td="[object Undefined]",na=Wt?Wt.toStringTag:void 0;function ia(e){return e==null?e===void 0?td:ed:na&&na in Object(e)?Yh(e):Qh(e)}function rd(e){return e!=null&&typeof e=="object"}var nd="[object Symbol]";function Pn(e){return typeof e=="symbol"||rd(e)&&ia(e)==nd}function id(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 Fn=Array.isArray,oa=Wt?Wt.prototype:void 0,sa=oa?oa.toString:void 0;function aa(e){if(typeof e=="string")return e;if(Fn(e))return id(e,aa)+"";if(Pn(e))return sa?sa.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ua(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var od="[object AsyncFunction]",sd="[object Function]",ad="[object GeneratorFunction]",ud="[object Proxy]";function ld(e){if(!ua(e))return!1;var t=ia(e);return t==sd||t==ad||t==od||t==ud}var Cn=In["__core-js_shared__"],la=(function(){var e=/[^.]+$/.exec(Cn&&Cn.keys&&Cn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function cd(e){return!!la&&la in e}var fd=Function.prototype,hd=fd.toString;function dd(e){if(e!=null){try{return hd.call(e)}catch{}try{return e+""}catch{}}return""}var pd=/[\\^$.*+?()[\]{}|]/g,gd=/^\[object .+?Constructor\]$/,yd=Function.prototype,md=Object.prototype,bd=yd.toString,wd=md.hasOwnProperty,vd=RegExp("^"+bd.call(wd).replace(pd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ed(e){if(!ua(e)||cd(e))return!1;var t=ld(e)?vd:gd;return t.test(dd(e))}function xd(e,t){return e?.[t]}function ca(e,t){var r=xd(e,t);return Ed(r)?r:void 0}function Ad(e,t){return e===t||e!==e&&t!==t}var Td=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sd=/^\w*$/;function _d(e,t){if(Fn(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Pn(e)?!0:Sd.test(e)||!Td.test(e)||t!=null&&e in Object(t)}var ur=ca(Object,"create");function Od(){this.__data__=ur?ur(null):{},this.size=0}function Nd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Rd="__lodash_hash_undefined__",Id=Object.prototype,Pd=Id.hasOwnProperty;function Fd(e){var t=this.__data__;if(ur){var r=t[e];return r===Rd?void 0:r}return Pd.call(t,e)?t[e]:void 0}var Cd=Object.prototype,Bd=Cd.hasOwnProperty;function Ld(e){var t=this.__data__;return ur?t[e]!==void 0:Bd.call(t,e)}var Ud="__lodash_hash_undefined__";function jd(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ur&&t===void 0?Ud:t,this}function Lt(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])}}Lt.prototype.clear=Od,Lt.prototype.delete=Nd,Lt.prototype.get=Fd,Lt.prototype.has=Ld,Lt.prototype.set=jd;function kd(){this.__data__=[],this.size=0}function Mr(e,t){for(var r=e.length;r--;)if(Ad(e[r][0],t))return r;return-1}var Md=Array.prototype,Dd=Md.splice;function $d(e){var t=this.__data__,r=Mr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Dd.call(t,r,1),--this.size,!0}function qd(e){var t=this.__data__,r=Mr(t,e);return r<0?void 0:t[r][1]}function Hd(e){return Mr(this.__data__,e)>-1}function Vd(e,t){var r=this.__data__,n=Mr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Gt(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])}}Gt.prototype.clear=kd,Gt.prototype.delete=$d,Gt.prototype.get=qd,Gt.prototype.has=Hd,Gt.prototype.set=Vd;var Wd=ca(In,"Map");function Gd(){this.size=0,this.__data__={hash:new Lt,map:new(Wd||Gt),string:new Lt}}function Kd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Dr(e,t){var r=e.__data__;return Kd(t)?r[typeof t=="string"?"string":"hash"]:r.map}function zd(e){var t=Dr(this,e).delete(e);return this.size-=t?1:0,t}function Xd(e){return Dr(this,e).get(e)}function Yd(e){return Dr(this,e).has(e)}function Jd(e,t){var r=Dr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ut(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])}}Ut.prototype.clear=Gd,Ut.prototype.delete=zd,Ut.prototype.get=Xd,Ut.prototype.has=Yd,Ut.prototype.set=Jd;var Zd="Expected a function";function Bn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Zd);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(Bn.Cache||Ut),r}Bn.Cache=Ut;var Qd=500;function ep(e){var t=Bn(e,function(n){return r.size===Qd&&r.clear(),n}),r=t.cache;return t}var tp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rp=/\\(\\)?/g,np=ep(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(tp,function(r,n,o,i){t.push(o?i.replace(rp,"$1"):n||r)}),t});function lr(e){return e==null?"":aa(e)}function ip(e,t){return Fn(e)?e:_d(e,t)?[e]:np(lr(e))}function op(e){if(typeof e=="string"||Pn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function sp(e,t){t=ip(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[op(t[r++])];return r&&r==n?e:void 0}function ap(e,t,r){var n=e==null?void 0:sp(e,t);return n===void 0?r:n}function up(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 lp(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:up(e,t,r)}var cp="\\ud800-\\udfff",fp="\\u0300-\\u036f",hp="\\ufe20-\\ufe2f",dp="\\u20d0-\\u20ff",pp=fp+hp+dp,gp="\\ufe0e\\ufe0f",yp="\\u200d",mp=RegExp("["+yp+cp+pp+gp+"]");function fa(e){return mp.test(e)}function bp(e){return e.split("")}var ha="\\ud800-\\udfff",wp="\\u0300-\\u036f",vp="\\ufe20-\\ufe2f",Ep="\\u20d0-\\u20ff",xp=wp+vp+Ep,Ap="\\ufe0e\\ufe0f",Tp="["+ha+"]",Ln="["+xp+"]",Un="\\ud83c[\\udffb-\\udfff]",Sp="(?:"+Ln+"|"+Un+")",da="[^"+ha+"]",pa="(?:\\ud83c[\\udde6-\\uddff]){2}",ga="[\\ud800-\\udbff][\\udc00-\\udfff]",_p="\\u200d",ya=Sp+"?",ma="["+Ap+"]?",Op="(?:"+_p+"(?:"+[da,pa,ga].join("|")+")"+ma+ya+")*",Np=ma+ya+Op,Rp="(?:"+[da+Ln+"?",Ln,pa,ga,Tp].join("|")+")",Ip=RegExp(Un+"(?="+Un+")|"+Rp+Np,"g");function Pp(e){return e.match(Ip)||[]}function Fp(e){return fa(e)?Pp(e):bp(e)}function Cp(e){return function(t){t=lr(t);var r=fa(t)?Fp(t):void 0,n=r?r[0]:t.charAt(0),o=r?lp(r,1).join(""):t.slice(1);return n[e]()+o}}var Bp=Cp("toUpperCase");function Lp(e){return Bp(lr(e).toLowerCase())}function Up(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 jp(e){return function(t){return e?.[t]}}var kp={À:"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"},Mp=jp(kp),Dp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$p="\\u0300-\\u036f",qp="\\ufe20-\\ufe2f",Hp="\\u20d0-\\u20ff",Vp=$p+qp+Hp,Wp="["+Vp+"]",Gp=RegExp(Wp,"g");function Kp(e){return e=lr(e),e&&e.replace(Dp,Mp).replace(Gp,"")}var zp=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Xp(e){return e.match(zp)||[]}var Yp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Jp(e){return Yp.test(e)}var ba="\\ud800-\\udfff",Zp="\\u0300-\\u036f",Qp="\\ufe20-\\ufe2f",eg="\\u20d0-\\u20ff",tg=Zp+Qp+eg,wa="\\u2700-\\u27bf",va="a-z\\xdf-\\xf6\\xf8-\\xff",rg="\\xac\\xb1\\xd7\\xf7",ng="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ig="\\u2000-\\u206f",og=" \\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",Ea="A-Z\\xc0-\\xd6\\xd8-\\xde",sg="\\ufe0e\\ufe0f",xa=rg+ng+ig+og,Aa="['’]",Ta="["+xa+"]",ag="["+tg+"]",Sa="\\d+",ug="["+wa+"]",_a="["+va+"]",Oa="[^"+ba+xa+Sa+wa+va+Ea+"]",lg="\\ud83c[\\udffb-\\udfff]",cg="(?:"+ag+"|"+lg+")",fg="[^"+ba+"]",Na="(?:\\ud83c[\\udde6-\\uddff]){2}",Ra="[\\ud800-\\udbff][\\udc00-\\udfff]",Kt="["+Ea+"]",hg="\\u200d",Ia="(?:"+_a+"|"+Oa+")",dg="(?:"+Kt+"|"+Oa+")",Pa="(?:"+Aa+"(?:d|ll|m|re|s|t|ve))?",Fa="(?:"+Aa+"(?:D|LL|M|RE|S|T|VE))?",Ca=cg+"?",Ba="["+sg+"]?",pg="(?:"+hg+"(?:"+[fg,Na,Ra].join("|")+")"+Ba+Ca+")*",gg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",mg=Ba+Ca+pg,bg="(?:"+[ug,Na,Ra].join("|")+")"+mg,wg=RegExp([Kt+"?"+_a+"+"+Pa+"(?="+[Ta,Kt,"$"].join("|")+")",dg+"+"+Fa+"(?="+[Ta,Kt+Ia,"$"].join("|")+")",Kt+"?"+Ia+"+"+Pa,Kt+"+"+Fa,yg,gg,Sa,bg].join("|"),"g");function vg(e){return e.match(wg)||[]}function Eg(e,t,r){return e=lr(e),t=t,t===void 0?Jp(e)?vg(e):Xp(e):e.match(t)||[]}var xg="['’]",Ag=RegExp(xg,"g");function Tg(e){return function(t){return Up(Eg(Kp(t).replace(Ag,"")),e,"")}}var Sg=Tg(function(e,t,r){return t=t.toLowerCase(),e+(r?Lp(t):t)});const _g={complex:["tar.bz2","tar.gz","tar.xz"]},jn=e=>e.replace(/[^A-Za-z0-9\-_]/g,""),La=(e,t)=>!e||typeof e!="string"?"":e.indexOf("!")>=0?e.split("!")[t]:"",Og=e=>La(e,0),Ua=e=>La(e,1),ja=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(_g.complex.includes(o))return o}return r.length<2?"":r[r.length-1]},$r=e=>{if(!e)return e;const t={};return Object.keys(e).forEach(r=>{t[Sg(r)]=e[r]}),t};function zt(e,t=[]){const r=e.props[se.Name]?.toString()||Tr.basename(e.filename),n=e.props[se.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=ja({...e,name:r}),u=e.props[se.LockDiscovery];let c,l,s;u&&(c=u[se.ActiveLock],l=c[se.LockOwner],s=c[se.LockTime]);let f=[];e.props[se.ShareTypes]&&(f=e.props[se.ShareTypes]["share-type"],Array.isArray(f)||(f=[f]));const h={};for(const m of t||[]){const E=m.split(":").pop();e.props[E]&&(h[m]=e.props[E])}const x={id:n,fileId:n,storageId:Og(n),parentFolderId:e.props[se.FileParent],mimeType:e.props[se.MimeType],name:r,extension:o?"":a,path:i,webDavPath:e.filename,type:o?"folder":e.type,isFolder:o,locked:!!c,lockOwner:l,lockTime:s,processing:e.processing||!1,mdate:e.props[se.LastModifiedDate],size:o?e.props[se.ContentSize]?.toString()||"0":e.props[se.ContentLength]?.toString()||"0",permissions:e.props[se.Permissions]||"",starred:e.props[se.IsFavorite]!==0,etag:e.props[se.ETag],shareTypes:f,privateLink:e.props[se.PrivateLink],downloadURL:e.props[se.DownloadURL],remoteItemId:e.props[se.RemoteItemId],remoteItemPath:e.props[se.ShareRoot],owner:{id:e.props[se.OwnerId],displayName:e.props[se.OwnerDisplayName]},tags:(e.props[se.Tags]||"").toString().split(",").filter(Boolean),audio:$r(e.props[se.Audio]),location:$r(e.props[se.Location]),image:$r(e.props[se.Image]),photo:$r(e.props[se.Photo]),extraProps:h,hasPreview:()=>e.props[se.HasPreview]===1,canUpload:function(){return this.permissions.indexOf(gt.FolderCreateable)>=0},canDownload:function(){return this.permissions.indexOf(gt.SecureView)===-1},canBeDeleted:function(){return this.permissions.indexOf(gt.Deletable)>=0},canRename:function(){return this.permissions.indexOf(gt.Renameable)>=0},canShare:function({ability:m}){return m.can("create-all","Share")&&this.permissions.indexOf(gt.Shareable)>=0},canCreate:function(){return this.permissions.indexOf(gt.FolderCreateable)>=0},canEditTags:function(){return this.permissions.indexOf(gt.Updateable)>=0||this.permissions.indexOf(gt.FileUpdateable)>=0},isMounted:function(){return this.permissions.indexOf(gt.Mounted)>=0},isReceivedShare:function(){return this.permissions.indexOf(gt.Shared)>=0},isShareRoot(){return e.props[se.ShareRoot]?e.filename.split("/").length===3:!1},getDomSelector:()=>jn(n)};return Object.defineProperty(x,"nodeId",{get(){return Ua(this.id)}}),x}function Ng(e){const t=e.type==="directory",r=e.props[se.TrashbinOriginalFilename]?.toString(),n=ja({name:r,type:e.type}),o=ds.basename(e.filename);return{type:t?"folder":e.type,isFolder:t,ddate:e.props[se.TrashbinDeletedDate],name:ds.basename(r),extension:n,path:Ee(e.props[se.TrashbinOriginalLocation],{leadingSlash:!0}),id:o,parentFolderId:e.props[se.FileParent],webDavPath:"",canUpload:()=>!1,canDownload:()=>!1,canBeDeleted:()=>!0,canBeRestored:function(){return!0},canRename:()=>!1,canShare:()=>!1,canCreate:()=>!1,isMounted:()=>!1,isReceivedShare:()=>!1,getDomSelector:()=>jn(o)}}var nt=(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))(nt||{});const kn=e=>e?.driveType==="personal",Mn=e=>e?.driveType==="public";function Rg(e,t){return Ee("spaces",e,t,{leadingSlash:!0})}function Dn(e,t=""){return Ee("spaces","trash-bin",e,t,{leadingSlash:!0})}function Ig(e){const t=e.publicLinkPassword,r=e.props?.[se.FileId],n=e.props?.[se.PublicLinkItemType],o=e.props?.[se.PublicLinkPermission],i=e.props?.[se.PublicLinkExpiration],a=e.props?.[se.PublicLinkShareDate],u=e.props?.[se.PublicLinkShareOwner],c=e.publicLinkType;let l,s;return c==="ocm"?(l=`ocm/${e.id}`,s=qh(e.id)):(l=`public/${e.id}`,s=$h(e.id)),Object.assign(Pg({...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:c})}function Pg(e){let t,r;e.special&&(t=e.special.find(l=>l.specialFolder.name==="image"),r=e.special.find(l=>l.specialFolder.name==="readme"),t&&(t.webDavUrl=decodeURI(t.webDavUrl)),r&&(r.webDavUrl=decodeURI(r.webDavUrl)));const n=e.root?.deleted?.state==="trashed",o=Ee(e.webDavPath||Rg(e.id),{leadingSlash:!0}),i=Ee(e.serverUrl,"remote.php/dav",o),a=Ee(e.webDavTrashPath||Dn(e.id),{leadingSlash:!0}),u=Ee(e.serverUrl,"remote.php/dav",a),c={id:e.id,fileId:e.id,storageId:e.id,mimeType:"",name:e.name,description:e.description,extension:"",path:"/",webDavPath:o,webDavTrashPath:a,driveAlias:e.driveAlias,driveType:e.driveType,type:"space",isFolder:!0,mdate:e.lastModifiedDateTime,size:e.quota?.used||0,tags:[],permissions:"",starred:!1,etag:"",shareTypes:[],privateLink:e.webUrl,downloadURL:"",owner:e.owner?.user,disabled:n,root:e.root,spaceQuota:e.quota,spaceImageData:t,spaceReadmeData:r,hasTrashedItems:e["@libre.graph.hasTrashedItems"]||!1,graphPermissions:void 0,canUpload:function({user:l}={}){return kn(this)&&this.isOwner(l)?!0:this.graphPermissions?.includes(nt.createUpload)},canDownload:function(){return!0},canBeDeleted:function({ability:l}={}){return this.disabled?l?.can("delete-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions):!1},canRename:function({ability:l}={}){return l?.can("update-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions)},canEditDescription:function({ability:l}={}){return l?.can("update-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions)},canRestore:function({ability:l}={}){return this.disabled?l?.can("update-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions):!1},canDisable:function({ability:l}={}){return this.disabled?!1:l?.can("delete-all","Drive")?!0:this.graphPermissions?.includes(nt.deletePermissions)},canShare:function(){return this.graphPermissions?.includes(nt.createPermissions)},canEditImage:function(){return this.disabled?!1:this.graphPermissions?.includes(nt.deletePermissions)},canEditReadme:function(){return this.disabled?!1:this.graphPermissions?.includes(nt.deletePermissions)},canRestoreFromTrashbin:function(){return this.graphPermissions?.includes(nt.updateDeleted)},canDeleteFromTrashBin:function({user:l}={}){return kn(this)&&this.isOwner(l)?!0:this.graphPermissions?.includes(nt.deletePermissions)},canListVersions:function({user:l}={}){return kn(this)&&this.isOwner(l)?!0:this.graphPermissions?.includes(nt.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)},getDomSelector:()=>jn(e.id),getDriveAliasAndItem({path:l}){return Ee(this.driveAlias,l,{leadingSlash:!1})},getWebDavUrl({path:l}){return Ee(i,l)},getWebDavTrashUrl({path:l}){return Ee(u,l)},isOwner(l){return l?.id===this.owner?.id}};return Object.defineProperty(c,"nodeId",{get(){return Ua(this.id)}}),c}const Fg=(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 ap(o,"data.ocs.data",{capabilities:null,version:null})}}};var $n={},qr={exports:{}},ka;function qn(){if(ka)return qr.exports;ka=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(v,A,I){return Function.prototype.apply.call(v,A,I)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(v){return Object.getOwnPropertyNames(v).concat(Object.getOwnPropertySymbols(v))}:r=function(v){return Object.getOwnPropertyNames(v)};function n(g){console&&console.warn&&console.warn(g)}var o=Number.isNaN||function(v){return v!==v};function i(){i.init.call(this)}qr.exports=i,qr.exports.once=y,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(g){if(typeof g!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof g)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(g){if(typeof g!="number"||g<0||o(g))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+g+".");a=g}}),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(v){if(typeof v!="number"||v<0||o(v))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+v+".");return this._maxListeners=v,this};function c(g){return g._maxListeners===void 0?i.defaultMaxListeners:g._maxListeners}i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(v){for(var A=[],I=1;I<arguments.length;I++)A.push(arguments[I]);var P=v==="error",O=this._events;if(O!==void 0)P=P&&O.error===void 0;else if(!P)return!1;if(P){var j;if(A.length>0&&(j=A[0]),j instanceof Error)throw j;var K=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw K.context=j,K}var L=O[v];if(L===void 0)return!1;if(typeof L=="function")t(L,this,A);else for(var k=L.length,re=m(L,k),I=0;I<k;++I)t(re[I],this,A);return!0};function l(g,v,A,I){var P,O,j;if(u(A),O=g._events,O===void 0?(O=g._events=Object.create(null),g._eventsCount=0):(O.newListener!==void 0&&(g.emit("newListener",v,A.listener?A.listener:A),O=g._events),j=O[v]),j===void 0)j=O[v]=A,++g._eventsCount;else if(typeof j=="function"?j=O[v]=I?[A,j]:[j,A]:I?j.unshift(A):j.push(A),P=c(g),P>0&&j.length>P&&!j.warned){j.warned=!0;var K=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");K.name="MaxListenersExceededWarning",K.emitter=g,K.type=v,K.count=j.length,n(K)}return g}i.prototype.addListener=function(v,A){return l(this,v,A,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(v,A){return l(this,v,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 f(g,v,A){var I={fired:!1,wrapFn:void 0,target:g,type:v,listener:A},P=s.bind(I);return P.listener=A,I.wrapFn=P,P}i.prototype.once=function(v,A){return u(A),this.on(v,f(this,v,A)),this},i.prototype.prependOnceListener=function(v,A){return u(A),this.prependListener(v,f(this,v,A)),this},i.prototype.removeListener=function(v,A){var I,P,O,j,K;if(u(A),P=this._events,P===void 0)return this;if(I=P[v],I===void 0)return this;if(I===A||I.listener===A)--this._eventsCount===0?this._events=Object.create(null):(delete P[v],P.removeListener&&this.emit("removeListener",v,I.listener||A));else if(typeof I!="function"){for(O=-1,j=I.length-1;j>=0;j--)if(I[j]===A||I[j].listener===A){K=I[j].listener,O=j;break}if(O<0)return this;O===0?I.shift():E(I,O),I.length===1&&(P[v]=I[0]),P.removeListener!==void 0&&this.emit("removeListener",v,K||A)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(v){var A,I,P;if(I=this._events,I===void 0)return this;if(I.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):I[v]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete I[v]),this;if(arguments.length===0){var O=Object.keys(I),j;for(P=0;P<O.length;++P)j=O[P],j!=="removeListener"&&this.removeAllListeners(j);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(A=I[v],typeof A=="function")this.removeListener(v,A);else if(A!==void 0)for(P=A.length-1;P>=0;P--)this.removeListener(v,A[P]);return this};function h(g,v,A){var I=g._events;if(I===void 0)return[];var P=I[v];return P===void 0?[]:typeof P=="function"?A?[P.listener||P]:[P]:A?T(P):m(P,P.length)}i.prototype.listeners=function(v){return h(this,v,!0)},i.prototype.rawListeners=function(v){return h(this,v,!1)},i.listenerCount=function(g,v){return typeof g.listenerCount=="function"?g.listenerCount(v):x.call(g,v)},i.prototype.listenerCount=x;function x(g){var v=this._events;if(v!==void 0){var A=v[g];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(g,v){for(var A=new Array(v),I=0;I<v;++I)A[I]=g[I];return A}function E(g,v){for(;v+1<g.length;v++)g[v]=g[v+1];g.pop()}function T(g){for(var v=new Array(g.length),A=0;A<v.length;++A)v[A]=g[A].listener||g[A];return v}function y(g,v){return new Promise(function(A,I){function P(j){g.removeListener(v,O),I(j)}function O(){typeof g.removeListener=="function"&&g.removeListener("error",P),A([].slice.call(arguments))}d(g,v,O,{once:!0}),v!=="error"&&p(g,P,{once:!0})})}function p(g,v,A){typeof g.on=="function"&&d(g,"error",v,A)}function d(g,v,A,I){if(typeof g.on=="function")I.once?g.once(v,A):g.on(v,A);else if(typeof g.addEventListener=="function")g.addEventListener(v,function P(O){I.once&&g.removeEventListener(v,P),A(O)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof g)}return qr.exports}var Hr={exports:{}},Ma;function jt(){return Ma||(Ma=1,typeof Object.create=="function"?Hr.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Hr.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Hr.exports}var Hn,Da;function $a(){return Da||(Da=1,Hn=qn().EventEmitter),Hn}var Vn={},qa;function Vr(){return qa||(qa=1,(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},r={};r.byteLength=s,r.toByteArray=h,r.fromByteArray=E;for(var n=[],o=[],i=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=a.length;u<c;++u)n[u]=a[u],o[a.charCodeAt(u)]=u;o[45]=62,o[95]=63;function l(p){var d=p.length;if(d%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");g===-1&&(g=d);var v=g===d?0:4-g%4;return[g,v]}function s(p){var d=l(p),g=d[0],v=d[1];return(g+v)*3/4-v}function f(p,d,g){return(d+g)*3/4-g}function h(p){var d,g=l(p),v=g[0],A=g[1],I=new i(f(p,v,A)),P=0,O=A>0?v-4:v,j;for(j=0;j<O;j+=4)d=o[p.charCodeAt(j)]<<18|o[p.charCodeAt(j+1)]<<12|o[p.charCodeAt(j+2)]<<6|o[p.charCodeAt(j+3)],I[P++]=d>>16&255,I[P++]=d>>8&255,I[P++]=d&255;return A===2&&(d=o[p.charCodeAt(j)]<<2|o[p.charCodeAt(j+1)]>>4,I[P++]=d&255),A===1&&(d=o[p.charCodeAt(j)]<<10|o[p.charCodeAt(j+1)]<<4|o[p.charCodeAt(j+2)]>>2,I[P++]=d>>8&255,I[P++]=d&255),I}function x(p){return n[p>>18&63]+n[p>>12&63]+n[p>>6&63]+n[p&63]}function m(p,d,g){for(var v,A=[],I=d;I<g;I+=3)v=(p[I]<<16&16711680)+(p[I+1]<<8&65280)+(p[I+2]&255),A.push(x(v));return A.join("")}function E(p){for(var d,g=p.length,v=g%3,A=[],I=16383,P=0,O=g-v;P<O;P+=I)A.push(m(p,P,P+I>O?O:P+I));return v===1?(d=p[g-1],A.push(n[d>>2]+n[d<<4&63]+"==")):v===2&&(d=(p[g-2]<<8)+p[g-1],A.push(n[d>>10]+n[d>>4&63]+n[d<<2&63]+"=")),A.join("")}var T={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */T.read=function(p,d,g,v,A){var I,P,O=A*8-v-1,j=(1<<O)-1,K=j>>1,L=-7,k=g?A-1:0,re=g?-1:1,ee=p[d+k];for(k+=re,I=ee&(1<<-L)-1,ee>>=-L,L+=O;L>0;I=I*256+p[d+k],k+=re,L-=8);for(P=I&(1<<-L)-1,I>>=-L,L+=v;L>0;P=P*256+p[d+k],k+=re,L-=8);if(I===0)I=1-K;else{if(I===j)return P?NaN:(ee?-1:1)*(1/0);P=P+Math.pow(2,v),I=I-K}return(ee?-1:1)*P*Math.pow(2,I-v)},T.write=function(p,d,g,v,A,I){var P,O,j,K=I*8-A-1,L=(1<<K)-1,k=L>>1,re=A===23?Math.pow(2,-24)-Math.pow(2,-77):0,ee=v?0:I-1,ue=v?1:-1,le=d<0||d===0&&1/d<0?1:0;for(d=Math.abs(d),isNaN(d)||d===1/0?(O=isNaN(d)?1:0,P=L):(P=Math.floor(Math.log(d)/Math.LN2),d*(j=Math.pow(2,-P))<1&&(P--,j*=2),P+k>=1?d+=re/j:d+=re*Math.pow(2,1-k),d*j>=2&&(P++,j/=2),P+k>=L?(O=0,P=L):P+k>=1?(O=(d*j-1)*Math.pow(2,A),P=P+k):(O=d*Math.pow(2,k-1)*Math.pow(2,A),P=0));A>=8;p[g+ee]=O&255,ee+=ue,O/=256,A-=8);for(P=P<<A|O,K+=A;K>0;p[g+ee]=P&255,ee+=ue,P/=256,K-=8);p[g+ee-ue]|=le*128};/*!
|
|
12
12
|
* The buffer module from node.js, for the browser.
|
|
13
13
|
*
|
|
14
14
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
15
15
|
* @license MIT
|
|
16
|
-
*/(function(p){const d=r,g=T,v=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;p.Buffer=L,p.SlowBuffer=Z,p.INSPECT_MAX_BYTES=50;const A=2147483647;p.kMaxLength=A;const{Uint8Array:P,ArrayBuffer:I,SharedArrayBuffer:O}=globalThis;L.TYPED_ARRAY_SUPPORT=j(),!L.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function j(){try{const C=new P(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,P.prototype),Object.setPrototypeOf(C,w),C.foo()===42}catch{return!1}}Object.defineProperty(L.prototype,"parent",{enumerable:!0,get:function(){if(L.isBuffer(this))return this.buffer}}),Object.defineProperty(L.prototype,"offset",{enumerable:!0,get:function(){if(L.isBuffer(this))return this.byteOffset}});function K(C){if(C>A)throw new RangeError('The value "'+C+'" is invalid for option "size"');const w=new P(C);return Object.setPrototypeOf(w,L.prototype),w}function L(C,w,_){if(typeof C=="number"){if(typeof w=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ue(C)}return k(C,w,_)}L.poolSize=8192;function k(C,w,_){if(typeof C=="string")return le(C,w);if(I.isView(C))return fe(C);if(C==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C);if(yt(C,I)||C&&yt(C.buffer,I)||typeof O<"u"&&(yt(C,O)||C&&yt(C.buffer,O)))return be(C,w,_);if(typeof C=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const D=C.valueOf&&C.valueOf();if(D!=null&&D!==C)return L.from(D,w,_);const W=pe(C);if(W)return W;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof C[Symbol.toPrimitive]=="function")return L.from(C[Symbol.toPrimitive]("string"),w,_);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C)}L.from=function(C,w,_){return k(C,w,_)},Object.setPrototypeOf(L.prototype,P.prototype),Object.setPrototypeOf(L,P);function re(C){if(typeof C!="number")throw new TypeError('"size" argument must be of type number');if(C<0)throw new RangeError('The value "'+C+'" is invalid for option "size"')}function ee(C,w,_){return re(C),C<=0?K(C):w!==void 0?typeof _=="string"?K(C).fill(w,_):K(C).fill(w):K(C)}L.alloc=function(C,w,_){return ee(C,w,_)};function ue(C){return re(C),K(C<0?0:G(C)|0)}L.allocUnsafe=function(C){return ue(C)},L.allocUnsafeSlow=function(C){return ue(C)};function le(C,w){if((typeof w!="string"||w==="")&&(w="utf8"),!L.isEncoding(w))throw new TypeError("Unknown encoding: "+w);const _=Q(C,w)|0;let D=K(_);const W=D.write(C,w);return W!==_&&(D=D.slice(0,W)),D}function de(C){const w=C.length<0?0:G(C.length)|0,_=K(w);for(let D=0;D<w;D+=1)_[D]=C[D]&255;return _}function fe(C){if(yt(C,P)){const w=new P(C);return be(w.buffer,w.byteOffset,w.byteLength)}return de(C)}function be(C,w,_){if(w<0||C.byteLength<w)throw new RangeError('"offset" is outside of buffer bounds');if(C.byteLength<w+(_||0))throw new RangeError('"length" is outside of buffer bounds');let D;return w===void 0&&_===void 0?D=new P(C):_===void 0?D=new P(C,w):D=new P(C,w,_),Object.setPrototypeOf(D,L.prototype),D}function pe(C){if(L.isBuffer(C)){const w=G(C.length)|0,_=K(w);return _.length===0||C.copy(_,0,0,w),_}if(C.length!==void 0)return typeof C.length!="number"||is(C.length)?K(0):de(C);if(C.type==="Buffer"&&Array.isArray(C.data))return de(C.data)}function G(C){if(C>=A)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+A.toString(16)+" bytes");return C|0}function Z(C){return+C!=C&&(C=0),L.alloc(+C)}L.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==L.prototype},L.compare=function(w,_){if(yt(w,P)&&(w=L.from(w,w.offset,w.byteLength)),yt(_,P)&&(_=L.from(_,_.offset,_.byteLength)),!L.isBuffer(w)||!L.isBuffer(_))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===_)return 0;let D=w.length,W=_.length;for(let Y=0,ie=Math.min(D,W);Y<ie;++Y)if(w[Y]!==_[Y]){D=w[Y],W=_[Y];break}return D<W?-1:W<D?1:0},L.isEncoding=function(w){switch(String(w).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},L.concat=function(w,_){if(!Array.isArray(w))throw new TypeError('"list" argument must be an Array of Buffers');if(w.length===0)return L.alloc(0);let D;if(_===void 0)for(_=0,D=0;D<w.length;++D)_+=w[D].length;const W=L.allocUnsafe(_);let Y=0;for(D=0;D<w.length;++D){let ie=w[D];if(yt(ie,P))Y+ie.length>W.length?(L.isBuffer(ie)||(ie=L.from(ie)),ie.copy(W,Y)):P.prototype.set.call(W,ie,Y);else if(L.isBuffer(ie))ie.copy(W,Y);else throw new TypeError('"list" argument must be an Array of Buffers');Y+=ie.length}return W};function Q(C,w){if(L.isBuffer(C))return C.length;if(I.isView(C)||yt(C,I))return C.byteLength;if(typeof C!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof C);const _=C.length,D=arguments.length>2&&arguments[2]===!0;if(!D&&_===0)return 0;let W=!1;for(;;)switch(w){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":return Re(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return Ae(C).length;default:if(W)return D?-1:Re(C).length;w=(""+w).toLowerCase(),W=!0}}L.byteLength=Q;function ae(C,w,_){let D=!1;if((w===void 0||w<0)&&(w=0),w>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,w>>>=0,_<=w))return"";for(C||(C="utf8");;)switch(C){case"hex":return He(this,w,_);case"utf8":case"utf-8":return ge(this,w,_);case"ascii":return Oe(this,w,_);case"latin1":case"binary":return te(this,w,_);case"base64":return oe(this,w,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Me(this,w,_);default:if(D)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),D=!0}}L.prototype._isBuffer=!0;function V(C,w,_){const D=C[w];C[w]=C[_],C[_]=D}L.prototype.swap16=function(){const w=this.length;if(w%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let _=0;_<w;_+=2)V(this,_,_+1);return this},L.prototype.swap32=function(){const w=this.length;if(w%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let _=0;_<w;_+=4)V(this,_,_+3),V(this,_+1,_+2);return this},L.prototype.swap64=function(){const w=this.length;if(w%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let _=0;_<w;_+=8)V(this,_,_+7),V(this,_+1,_+6),V(this,_+2,_+5),V(this,_+3,_+4);return this},L.prototype.toString=function(){const w=this.length;return w===0?"":arguments.length===0?ge(this,0,w):ae.apply(this,arguments)},L.prototype.toLocaleString=L.prototype.toString,L.prototype.equals=function(w){if(!L.isBuffer(w))throw new TypeError("Argument must be a Buffer");return this===w?!0:L.compare(this,w)===0},L.prototype.inspect=function(){let w="";const _=p.INSPECT_MAX_BYTES;return w=this.toString("hex",0,_).replace(/(.{2})/g,"$1 ").trim(),this.length>_&&(w+=" ... "),"<Buffer "+w+">"},v&&(L.prototype[v]=L.prototype.inspect),L.prototype.compare=function(w,_,D,W,Y){if(yt(w,P)&&(w=L.from(w,w.offset,w.byteLength)),!L.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(_===void 0&&(_=0),D===void 0&&(D=w?w.length:0),W===void 0&&(W=0),Y===void 0&&(Y=this.length),_<0||D>w.length||W<0||Y>this.length)throw new RangeError("out of range index");if(W>=Y&&_>=D)return 0;if(W>=Y)return-1;if(_>=D)return 1;if(_>>>=0,D>>>=0,W>>>=0,Y>>>=0,this===w)return 0;let ie=Y-W,ve=D-_;const Le=Math.min(ie,ve),Fe=this.slice(W,Y),Ue=w.slice(_,D);for(let _e=0;_e<Le;++_e)if(Fe[_e]!==Ue[_e]){ie=Fe[_e],ve=Ue[_e];break}return ie<ve?-1:ve<ie?1:0};function R(C,w,_,D,W){if(C.length===0)return-1;if(typeof _=="string"?(D=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,is(_)&&(_=W?0:C.length-1),_<0&&(_=C.length+_),_>=C.length){if(W)return-1;_=C.length-1}else if(_<0)if(W)_=0;else return-1;if(typeof w=="string"&&(w=L.from(w,D)),L.isBuffer(w))return w.length===0?-1:N(C,w,_,D,W);if(typeof w=="number")return w=w&255,typeof P.prototype.indexOf=="function"?W?P.prototype.indexOf.call(C,w,_):P.prototype.lastIndexOf.call(C,w,_):N(C,[w],_,D,W);throw new TypeError("val must be string, number or Buffer")}function N(C,w,_,D,W){let Y=1,ie=C.length,ve=w.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(C.length<2||w.length<2)return-1;Y=2,ie/=2,ve/=2,_/=2}function Le(Ue,_e){return Y===1?Ue[_e]:Ue.readUInt16BE(_e*Y)}let Fe;if(W){let Ue=-1;for(Fe=_;Fe<ie;Fe++)if(Le(C,Fe)===Le(w,Ue===-1?0:Fe-Ue)){if(Ue===-1&&(Ue=Fe),Fe-Ue+1===ve)return Ue*Y}else Ue!==-1&&(Fe-=Fe-Ue),Ue=-1}else for(_+ve>ie&&(_=ie-ve),Fe=_;Fe>=0;Fe--){let Ue=!0;for(let _e=0;_e<ve;_e++)if(Le(C,Fe+_e)!==Le(w,_e)){Ue=!1;break}if(Ue)return Fe}return-1}L.prototype.includes=function(w,_,D){return this.indexOf(w,_,D)!==-1},L.prototype.indexOf=function(w,_,D){return R(this,w,_,D,!0)},L.prototype.lastIndexOf=function(w,_,D){return R(this,w,_,D,!1)};function q(C,w,_,D){_=Number(_)||0;const W=C.length-_;D?(D=Number(D),D>W&&(D=W)):D=W;const Y=w.length;D>Y/2&&(D=Y/2);let ie;for(ie=0;ie<D;++ie){const ve=parseInt(w.substr(ie*2,2),16);if(is(ve))return ie;C[_+ie]=ve}return ie}function $(C,w,_,D){return cn(Re(w,C.length-_),C,_,D)}function B(C,w,_,D){return cn(Pe(w),C,_,D)}function U(C,w,_,D){return cn(Ae(w),C,_,D)}function J(C,w,_,D){return cn(Ie(w,C.length-_),C,_,D)}L.prototype.write=function(w,_,D,W){if(_===void 0)W="utf8",D=this.length,_=0;else if(D===void 0&&typeof _=="string")W=_,D=this.length,_=0;else if(isFinite(_))_=_>>>0,isFinite(D)?(D=D>>>0,W===void 0&&(W="utf8")):(W=D,D=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Y=this.length-_;if((D===void 0||D>Y)&&(D=Y),w.length>0&&(D<0||_<0)||_>this.length)throw new RangeError("Attempt to write outside buffer bounds");W||(W="utf8");let ie=!1;for(;;)switch(W){case"hex":return q(this,w,_,D);case"utf8":case"utf-8":return $(this,w,_,D);case"ascii":case"latin1":case"binary":return B(this,w,_,D);case"base64":return U(this,w,_,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,w,_,D);default:if(ie)throw new TypeError("Unknown encoding: "+W);W=(""+W).toLowerCase(),ie=!0}},L.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function oe(C,w,_){return w===0&&_===C.length?d.fromByteArray(C):d.fromByteArray(C.slice(w,_))}function ge(C,w,_){_=Math.min(C.length,_);const D=[];let W=w;for(;W<_;){const Y=C[W];let ie=null,ve=Y>239?4:Y>223?3:Y>191?2:1;if(W+ve<=_){let Le,Fe,Ue,_e;switch(ve){case 1:Y<128&&(ie=Y);break;case 2:Le=C[W+1],(Le&192)===128&&(_e=(Y&31)<<6|Le&63,_e>127&&(ie=_e));break;case 3:Le=C[W+1],Fe=C[W+2],(Le&192)===128&&(Fe&192)===128&&(_e=(Y&15)<<12|(Le&63)<<6|Fe&63,_e>2047&&(_e<55296||_e>57343)&&(ie=_e));break;case 4:Le=C[W+1],Fe=C[W+2],Ue=C[W+3],(Le&192)===128&&(Fe&192)===128&&(Ue&192)===128&&(_e=(Y&15)<<18|(Le&63)<<12|(Fe&63)<<6|Ue&63,_e>65535&&_e<1114112&&(ie=_e))}}ie===null?(ie=65533,ve=1):ie>65535&&(ie-=65536,D.push(ie>>>10&1023|55296),ie=56320|ie&1023),D.push(ie),W+=ve}return he(D)}const ce=4096;function he(C){const w=C.length;if(w<=ce)return String.fromCharCode.apply(String,C);let _="",D=0;for(;D<w;)_+=String.fromCharCode.apply(String,C.slice(D,D+=ce));return _}function Oe(C,w,_){let D="";_=Math.min(C.length,_);for(let W=w;W<_;++W)D+=String.fromCharCode(C[W]&127);return D}function te(C,w,_){let D="";_=Math.min(C.length,_);for(let W=w;W<_;++W)D+=String.fromCharCode(C[W]);return D}function He(C,w,_){const D=C.length;(!w||w<0)&&(w=0),(!_||_<0||_>D)&&(_=D);let W="";for(let Y=w;Y<_;++Y)W+=sb[C[Y]];return W}function Me(C,w,_){const D=C.slice(w,_);let W="";for(let Y=0;Y<D.length-1;Y+=2)W+=String.fromCharCode(D[Y]+D[Y+1]*256);return W}L.prototype.slice=function(w,_){const D=this.length;w=~~w,_=_===void 0?D:~~_,w<0?(w+=D,w<0&&(w=0)):w>D&&(w=D),_<0?(_+=D,_<0&&(_=0)):_>D&&(_=D),_<w&&(_=w);const W=this.subarray(w,_);return Object.setPrototypeOf(W,L.prototype),W};function xe(C,w,_){if(C%1!==0||C<0)throw new RangeError("offset is not uint");if(C+w>_)throw new RangeError("Trying to access beyond buffer length")}L.prototype.readUintLE=L.prototype.readUIntLE=function(w,_,D){w=w>>>0,_=_>>>0,D||xe(w,_,this.length);let W=this[w],Y=1,ie=0;for(;++ie<_&&(Y*=256);)W+=this[w+ie]*Y;return W},L.prototype.readUintBE=L.prototype.readUIntBE=function(w,_,D){w=w>>>0,_=_>>>0,D||xe(w,_,this.length);let W=this[w+--_],Y=1;for(;_>0&&(Y*=256);)W+=this[w+--_]*Y;return W},L.prototype.readUint8=L.prototype.readUInt8=function(w,_){return w=w>>>0,_||xe(w,1,this.length),this[w]},L.prototype.readUint16LE=L.prototype.readUInt16LE=function(w,_){return w=w>>>0,_||xe(w,2,this.length),this[w]|this[w+1]<<8},L.prototype.readUint16BE=L.prototype.readUInt16BE=function(w,_){return w=w>>>0,_||xe(w,2,this.length),this[w]<<8|this[w+1]},L.prototype.readUint32LE=L.prototype.readUInt32LE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+this[w+3]*16777216},L.prototype.readUint32BE=L.prototype.readUInt32BE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),this[w]*16777216+(this[w+1]<<16|this[w+2]<<8|this[w+3])},L.prototype.readBigUInt64LE=Rt(function(w){w=w>>>0,H(w,"offset");const _=this[w],D=this[w+7];(_===void 0||D===void 0)&&z(w,this.length-8);const W=_+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24,Y=this[++w]+this[++w]*2**8+this[++w]*2**16+D*2**24;return BigInt(W)+(BigInt(Y)<<BigInt(32))}),L.prototype.readBigUInt64BE=Rt(function(w){w=w>>>0,H(w,"offset");const _=this[w],D=this[w+7];(_===void 0||D===void 0)&&z(w,this.length-8);const W=_*2**24+this[++w]*2**16+this[++w]*2**8+this[++w],Y=this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+D;return(BigInt(W)<<BigInt(32))+BigInt(Y)}),L.prototype.readIntLE=function(w,_,D){w=w>>>0,_=_>>>0,D||xe(w,_,this.length);let W=this[w],Y=1,ie=0;for(;++ie<_&&(Y*=256);)W+=this[w+ie]*Y;return Y*=128,W>=Y&&(W-=Math.pow(2,8*_)),W},L.prototype.readIntBE=function(w,_,D){w=w>>>0,_=_>>>0,D||xe(w,_,this.length);let W=_,Y=1,ie=this[w+--W];for(;W>0&&(Y*=256);)ie+=this[w+--W]*Y;return Y*=128,ie>=Y&&(ie-=Math.pow(2,8*_)),ie},L.prototype.readInt8=function(w,_){return w=w>>>0,_||xe(w,1,this.length),this[w]&128?(255-this[w]+1)*-1:this[w]},L.prototype.readInt16LE=function(w,_){w=w>>>0,_||xe(w,2,this.length);const D=this[w]|this[w+1]<<8;return D&32768?D|4294901760:D},L.prototype.readInt16BE=function(w,_){w=w>>>0,_||xe(w,2,this.length);const D=this[w+1]|this[w]<<8;return D&32768?D|4294901760:D},L.prototype.readInt32LE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},L.prototype.readInt32BE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},L.prototype.readBigInt64LE=Rt(function(w){w=w>>>0,H(w,"offset");const _=this[w],D=this[w+7];(_===void 0||D===void 0)&&z(w,this.length-8);const W=this[w+4]+this[w+5]*2**8+this[w+6]*2**16+(D<<24);return(BigInt(W)<<BigInt(32))+BigInt(_+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24)}),L.prototype.readBigInt64BE=Rt(function(w){w=w>>>0,H(w,"offset");const _=this[w],D=this[w+7];(_===void 0||D===void 0)&&z(w,this.length-8);const W=(_<<24)+this[++w]*2**16+this[++w]*2**8+this[++w];return(BigInt(W)<<BigInt(32))+BigInt(this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+D)}),L.prototype.readFloatLE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),g.read(this,w,!0,23,4)},L.prototype.readFloatBE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),g.read(this,w,!1,23,4)},L.prototype.readDoubleLE=function(w,_){return w=w>>>0,_||xe(w,8,this.length),g.read(this,w,!0,52,8)},L.prototype.readDoubleBE=function(w,_){return w=w>>>0,_||xe(w,8,this.length),g.read(this,w,!1,52,8)};function Ne(C,w,_,D,W,Y){if(!L.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>W||w<Y)throw new RangeError('"value" argument is out of bounds');if(_+D>C.length)throw new RangeError("Index out of range")}L.prototype.writeUintLE=L.prototype.writeUIntLE=function(w,_,D,W){if(w=+w,_=_>>>0,D=D>>>0,!W){const ve=Math.pow(2,8*D)-1;Ne(this,w,_,D,ve,0)}let Y=1,ie=0;for(this[_]=w&255;++ie<D&&(Y*=256);)this[_+ie]=w/Y&255;return _+D},L.prototype.writeUintBE=L.prototype.writeUIntBE=function(w,_,D,W){if(w=+w,_=_>>>0,D=D>>>0,!W){const ve=Math.pow(2,8*D)-1;Ne(this,w,_,D,ve,0)}let Y=D-1,ie=1;for(this[_+Y]=w&255;--Y>=0&&(ie*=256);)this[_+Y]=w/ie&255;return _+D},L.prototype.writeUint8=L.prototype.writeUInt8=function(w,_,D){return w=+w,_=_>>>0,D||Ne(this,w,_,1,255,0),this[_]=w&255,_+1},L.prototype.writeUint16LE=L.prototype.writeUInt16LE=function(w,_,D){return w=+w,_=_>>>0,D||Ne(this,w,_,2,65535,0),this[_]=w&255,this[_+1]=w>>>8,_+2},L.prototype.writeUint16BE=L.prototype.writeUInt16BE=function(w,_,D){return w=+w,_=_>>>0,D||Ne(this,w,_,2,65535,0),this[_]=w>>>8,this[_+1]=w&255,_+2},L.prototype.writeUint32LE=L.prototype.writeUInt32LE=function(w,_,D){return w=+w,_=_>>>0,D||Ne(this,w,_,4,4294967295,0),this[_+3]=w>>>24,this[_+2]=w>>>16,this[_+1]=w>>>8,this[_]=w&255,_+4},L.prototype.writeUint32BE=L.prototype.writeUInt32BE=function(w,_,D){return w=+w,_=_>>>0,D||Ne(this,w,_,4,4294967295,0),this[_]=w>>>24,this[_+1]=w>>>16,this[_+2]=w>>>8,this[_+3]=w&255,_+4};function Ye(C,w,_,D,W){M(w,D,W,C,_,7);let Y=Number(w&BigInt(4294967295));C[_++]=Y,Y=Y>>8,C[_++]=Y,Y=Y>>8,C[_++]=Y,Y=Y>>8,C[_++]=Y;let ie=Number(w>>BigInt(32)&BigInt(4294967295));return C[_++]=ie,ie=ie>>8,C[_++]=ie,ie=ie>>8,C[_++]=ie,ie=ie>>8,C[_++]=ie,_}function Ge(C,w,_,D,W){M(w,D,W,C,_,7);let Y=Number(w&BigInt(4294967295));C[_+7]=Y,Y=Y>>8,C[_+6]=Y,Y=Y>>8,C[_+5]=Y,Y=Y>>8,C[_+4]=Y;let ie=Number(w>>BigInt(32)&BigInt(4294967295));return C[_+3]=ie,ie=ie>>8,C[_+2]=ie,ie=ie>>8,C[_+1]=ie,ie=ie>>8,C[_]=ie,_+8}L.prototype.writeBigUInt64LE=Rt(function(w,_=0){return Ye(this,w,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeBigUInt64BE=Rt(function(w,_=0){return Ge(this,w,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeIntLE=function(w,_,D,W){if(w=+w,_=_>>>0,!W){const Le=Math.pow(2,8*D-1);Ne(this,w,_,D,Le-1,-Le)}let Y=0,ie=1,ve=0;for(this[_]=w&255;++Y<D&&(ie*=256);)w<0&&ve===0&&this[_+Y-1]!==0&&(ve=1),this[_+Y]=(w/ie>>0)-ve&255;return _+D},L.prototype.writeIntBE=function(w,_,D,W){if(w=+w,_=_>>>0,!W){const Le=Math.pow(2,8*D-1);Ne(this,w,_,D,Le-1,-Le)}let Y=D-1,ie=1,ve=0;for(this[_+Y]=w&255;--Y>=0&&(ie*=256);)w<0&&ve===0&&this[_+Y+1]!==0&&(ve=1),this[_+Y]=(w/ie>>0)-ve&255;return _+D},L.prototype.writeInt8=function(w,_,D){return w=+w,_=_>>>0,D||Ne(this,w,_,1,127,-128),w<0&&(w=255+w+1),this[_]=w&255,_+1},L.prototype.writeInt16LE=function(w,_,D){return w=+w,_=_>>>0,D||Ne(this,w,_,2,32767,-32768),this[_]=w&255,this[_+1]=w>>>8,_+2},L.prototype.writeInt16BE=function(w,_,D){return w=+w,_=_>>>0,D||Ne(this,w,_,2,32767,-32768),this[_]=w>>>8,this[_+1]=w&255,_+2},L.prototype.writeInt32LE=function(w,_,D){return w=+w,_=_>>>0,D||Ne(this,w,_,4,2147483647,-2147483648),this[_]=w&255,this[_+1]=w>>>8,this[_+2]=w>>>16,this[_+3]=w>>>24,_+4},L.prototype.writeInt32BE=function(w,_,D){return w=+w,_=_>>>0,D||Ne(this,w,_,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[_]=w>>>24,this[_+1]=w>>>16,this[_+2]=w>>>8,this[_+3]=w&255,_+4},L.prototype.writeBigInt64LE=Rt(function(w,_=0){return Ye(this,w,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),L.prototype.writeBigInt64BE=Rt(function(w,_=0){return Ge(this,w,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ut(C,w,_,D,W,Y){if(_+D>C.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function ft(C,w,_,D,W){return w=+w,_=_>>>0,W||ut(C,w,_,4),g.write(C,w,_,D,23,4),_+4}L.prototype.writeFloatLE=function(w,_,D){return ft(this,w,_,!0,D)},L.prototype.writeFloatBE=function(w,_,D){return ft(this,w,_,!1,D)};function Ve(C,w,_,D,W){return w=+w,_=_>>>0,W||ut(C,w,_,8),g.write(C,w,_,D,52,8),_+8}L.prototype.writeDoubleLE=function(w,_,D){return Ve(this,w,_,!0,D)},L.prototype.writeDoubleBE=function(w,_,D){return Ve(this,w,_,!1,D)},L.prototype.copy=function(w,_,D,W){if(!L.isBuffer(w))throw new TypeError("argument should be a Buffer");if(D||(D=0),!W&&W!==0&&(W=this.length),_>=w.length&&(_=w.length),_||(_=0),W>0&&W<D&&(W=D),W===D||w.length===0||this.length===0)return 0;if(_<0)throw new RangeError("targetStart out of bounds");if(D<0||D>=this.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("sourceEnd out of bounds");W>this.length&&(W=this.length),w.length-_<W-D&&(W=w.length-_+D);const Y=W-D;return this===w&&typeof P.prototype.copyWithin=="function"?this.copyWithin(_,D,W):P.prototype.set.call(w,this.subarray(D,W),_),Y},L.prototype.fill=function(w,_,D,W){if(typeof w=="string"){if(typeof _=="string"?(W=_,_=0,D=this.length):typeof D=="string"&&(W=D,D=this.length),W!==void 0&&typeof W!="string")throw new TypeError("encoding must be a string");if(typeof W=="string"&&!L.isEncoding(W))throw new TypeError("Unknown encoding: "+W);if(w.length===1){const ie=w.charCodeAt(0);(W==="utf8"&&ie<128||W==="latin1")&&(w=ie)}}else typeof w=="number"?w=w&255:typeof w=="boolean"&&(w=Number(w));if(_<0||this.length<_||this.length<D)throw new RangeError("Out of range index");if(D<=_)return this;_=_>>>0,D=D===void 0?this.length:D>>>0,w||(w=0);let Y;if(typeof w=="number")for(Y=_;Y<D;++Y)this[Y]=w;else{const ie=L.isBuffer(w)?w:L.from(w,W),ve=ie.length;if(ve===0)throw new TypeError('The value "'+w+'" is invalid for argument "value"');for(Y=0;Y<D-_;++Y)this[Y+_]=ie[Y%ve]}return this};const Nt={};function F(C,w,_){Nt[C]=class extends _{constructor(){super(),Object.defineProperty(this,"message",{value:w.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${C}]`,this.stack,delete this.name}get code(){return C}set code(W){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:W,writable:!0})}toString(){return`${this.name} [${C}]: ${this.message}`}}}F("ERR_BUFFER_OUT_OF_BOUNDS",function(C){return C?`${C} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(C,w){return`The "${C}" argument must be of type number. Received type ${typeof w}`},TypeError),F("ERR_OUT_OF_RANGE",function(C,w,_){let D=`The value of "${C}" is out of range.`,W=_;return Number.isInteger(_)&&Math.abs(_)>2**32?W=b(String(_)):typeof _=="bigint"&&(W=String(_),(_>BigInt(2)**BigInt(32)||_<-(BigInt(2)**BigInt(32)))&&(W=b(W)),W+="n"),D+=` It must be ${w}. Received ${W}`,D},RangeError);function b(C){let w="",_=C.length;const D=C[0]==="-"?1:0;for(;_>=D+4;_-=3)w=`_${C.slice(_-3,_)}${w}`;return`${C.slice(0,_)}${w}`}function S(C,w,_){H(w,"offset"),(C[w]===void 0||C[w+_]===void 0)&&z(w,C.length-(_+1))}function M(C,w,_,D,W,Y){if(C>_||C<w){const ie=typeof w=="bigint"?"n":"";let ve;throw w===0||w===BigInt(0)?ve=`>= 0${ie} and < 2${ie} ** ${(Y+1)*8}${ie}`:ve=`>= -(2${ie} ** ${(Y+1)*8-1}${ie}) and < 2 ** ${(Y+1)*8-1}${ie}`,new Nt.ERR_OUT_OF_RANGE("value",ve,C)}S(D,W,Y)}function H(C,w){if(typeof C!="number")throw new Nt.ERR_INVALID_ARG_TYPE(w,"number",C)}function z(C,w,_){throw Math.floor(C)!==C?(H(C,_),new Nt.ERR_OUT_OF_RANGE("offset","an integer",C)):w<0?new Nt.ERR_BUFFER_OUT_OF_BOUNDS:new Nt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${w}`,C)}const ne=/[^+/0-9A-Za-z-_]/g;function we(C){if(C=C.split("=")[0],C=C.trim().replace(ne,""),C.length<2)return"";for(;C.length%4!==0;)C=C+"=";return C}function Re(C,w){w=w||1/0;let _;const D=C.length;let W=null;const Y=[];for(let ie=0;ie<D;++ie){if(_=C.charCodeAt(ie),_>55295&&_<57344){if(!W){if(_>56319){(w-=3)>-1&&Y.push(239,191,189);continue}else if(ie+1===D){(w-=3)>-1&&Y.push(239,191,189);continue}W=_;continue}if(_<56320){(w-=3)>-1&&Y.push(239,191,189),W=_;continue}_=(W-55296<<10|_-56320)+65536}else W&&(w-=3)>-1&&Y.push(239,191,189);if(W=null,_<128){if((w-=1)<0)break;Y.push(_)}else if(_<2048){if((w-=2)<0)break;Y.push(_>>6|192,_&63|128)}else if(_<65536){if((w-=3)<0)break;Y.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((w-=4)<0)break;Y.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return Y}function Pe(C){const w=[];for(let _=0;_<C.length;++_)w.push(C.charCodeAt(_)&255);return w}function Ie(C,w){let _,D,W;const Y=[];for(let ie=0;ie<C.length&&!((w-=2)<0);++ie)_=C.charCodeAt(ie),D=_>>8,W=_%256,Y.push(W),Y.push(D);return Y}function Ae(C){return d.toByteArray(we(C))}function cn(C,w,_,D){let W;for(W=0;W<D&&!(W+_>=w.length||W>=C.length);++W)w[W+_]=C[W];return W}function yt(C,w){return C instanceof w||C!=null&&C.constructor!=null&&C.constructor.name!=null&&C.constructor.name===w.name}function is(C){return C!==C}const sb=(function(){const C="0123456789abcdef",w=new Array(256);for(let _=0;_<16;++_){const D=_*16;for(let W=0;W<16;++W)w[D+W]=C[_]+C[W]}return w})();function Rt(C){return typeof BigInt>"u"?ab:C}function ab(){throw new Error("BigInt not supported")}})(t);const y=t.Buffer;e.Blob=t.Blob,e.BlobOptions=t.BlobOptions,e.Buffer=t.Buffer,e.File=t.File,e.FileOptions=t.FileOptions,e.INSPECT_MAX_BYTES=t.INSPECT_MAX_BYTES,e.SlowBuffer=t.SlowBuffer,e.TranscodeEncoding=t.TranscodeEncoding,e.atob=t.atob,e.btoa=t.btoa,e.constants=t.constants,e.default=y,e.isAscii=t.isAscii,e.isUtf8=t.isUtf8,e.kMaxLength=t.kMaxLength,e.kStringMaxLength=t.kStringMaxLength,e.resolveObjectURL=t.resolveObjectURL,e.transcode=t.transcode})(Hn)),Hn}var Vn={},Wn={},Gn,Va;function Wa(){return Va||(Va=1,Gn=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==o||u.enumerable!==!0)return!1}return!0}),Gn}var Kn,Ga;function Wr(){if(Ga)return Kn;Ga=1;var e=Wa();return Kn=function(){return e()&&!!Symbol.toStringTag},Kn}var zn,Ka;function za(){return Ka||(Ka=1,zn=Object),zn}var Xn,Xa;function Lg(){return Xa||(Xa=1,Xn=Error),Xn}var Yn,Ya;function Ug(){return Ya||(Ya=1,Yn=EvalError),Yn}var Jn,Ja;function jg(){return Ja||(Ja=1,Jn=RangeError),Jn}var Zn,Za;function kg(){return Za||(Za=1,Zn=ReferenceError),Zn}var Qn,Qa;function eu(){return Qa||(Qa=1,Qn=SyntaxError),Qn}var ei,tu;function cr(){return tu||(tu=1,ei=TypeError),ei}var ti,ru;function Mg(){return ru||(ru=1,ti=URIError),ti}var ri,nu;function Dg(){return nu||(nu=1,ri=Math.abs),ri}var ni,iu;function $g(){return iu||(iu=1,ni=Math.floor),ni}var ii,ou;function qg(){return ou||(ou=1,ii=Math.max),ii}var oi,su;function Hg(){return su||(su=1,oi=Math.min),oi}var si,au;function Vg(){return au||(au=1,si=Math.pow),si}var ai,uu;function Wg(){return uu||(uu=1,ai=Math.round),ai}var ui,lu;function Gg(){return lu||(lu=1,ui=Number.isNaN||function(t){return t!==t}),ui}var li,cu;function Kg(){if(cu)return li;cu=1;var e=Gg();return li=function(r){return e(r)||r===0?r:r<0?-1:1},li}var ci,fu;function zg(){return fu||(fu=1,ci=Object.getOwnPropertyDescriptor),ci}var fi,hu;function Xt(){if(hu)return fi;hu=1;var e=zg();if(e)try{e([],"length")}catch{e=null}return fi=e,fi}var hi,du;function Gr(){if(du)return hi;du=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return hi=e,hi}var di,pu;function Xg(){if(pu)return di;pu=1;var e=typeof Symbol<"u"&&Symbol,t=Wa();return di=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},di}var pi,gu;function yu(){return gu||(gu=1,pi=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),pi}var gi,mu;function bu(){if(mu)return gi;mu=1;var e=za();return gi=e.getPrototypeOf||null,gi}var yi,wu;function Yg(){if(wu)return yi;wu=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(c,l){for(var s=[],f=0;f<c.length;f+=1)s[f]=c[f];for(var h=0;h<l.length;h+=1)s[h+c.length]=l[h];return s},i=function(c,l){for(var s=[],f=l,h=0;f<c.length;f+=1,h+=1)s[h]=c[f];return s},a=function(u,c){for(var l="",s=0;s<u.length;s+=1)l+=u[s],s+1<u.length&&(l+=c);return l};return yi=function(c){var l=this;if(typeof l!="function"||t.apply(l)!==n)throw new TypeError(e+l);for(var s=i(arguments,1),f,h=function(){if(this instanceof f){var y=l.apply(this,o(s,arguments));return Object(y)===y?y:this}return l.apply(c,o(s,arguments))},E=r(0,l.length-s.length),m=[],x=0;x<E;x++)m[x]="$"+x;if(f=Function("binder","return function ("+a(m,",")+"){ return binder.apply(this,arguments); }")(h),l.prototype){var T=function(){};T.prototype=l.prototype,f.prototype=new T,T.prototype=null}return f},yi}var mi,vu;function fr(){if(vu)return mi;vu=1;var e=Yg();return mi=Function.prototype.bind||e,mi}var bi,Eu;function wi(){return Eu||(Eu=1,bi=Function.prototype.call),bi}var vi,xu;function Ei(){return xu||(xu=1,vi=Function.prototype.apply),vi}var xi,Au;function Jg(){return Au||(Au=1,xi=typeof Reflect<"u"&&Reflect&&Reflect.apply),xi}var Ai,Tu;function Su(){if(Tu)return Ai;Tu=1;var e=fr(),t=Ei(),r=wi(),n=Jg();return Ai=n||e.call(r,t),Ai}var Ti,_u;function Si(){if(_u)return Ti;_u=1;var e=fr(),t=cr(),r=wi(),n=Su();return Ti=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},Ti}var _i,Ou;function Zg(){if(Ou)return _i;Ou=1;var e=Si(),t=Xt(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return _i=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(u){return i(u==null?u:o(u))}:!1,_i}var Oi,Nu;function Ni(){if(Nu)return Oi;Nu=1;var e=yu(),t=bu(),r=Zg();return Oi=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,Oi}var Ri,Ru;function Pu(){if(Ru)return Ri;Ru=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=fr();return Ri=r.call(e,t),Ri}var Pi,Iu;function Fu(){if(Iu)return Pi;Iu=1;var e,t=za(),r=Lg(),n=Ug(),o=jg(),i=kg(),a=eu(),u=cr(),c=Mg(),l=Dg(),s=$g(),f=qg(),h=Hg(),E=Vg(),m=Wg(),x=Kg(),T=Function,y=function(q){try{return T('"use strict"; return ('+q+").constructor;")()}catch{}},p=Xt(),d=Gr(),g=function(){throw new u},v=p?(function(){try{return arguments.callee,g}catch{try{return p(arguments,"callee").get}catch{return g}}})():g,A=Xg()(),P=Ni(),I=bu(),O=yu(),j=Ei(),K=wi(),L={},k=typeof Uint8Array>"u"||!P?e:P(Uint8Array),re={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":A&&P?P([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":L,"%AsyncGenerator%":L,"%AsyncGeneratorFunction%":L,"%AsyncIteratorPrototype%":L,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":T,"%GeneratorFunction%":L,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&P?P(P([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!P?e:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":p,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!P?e:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&P?P(""[Symbol.iterator]()):e,"%Symbol%":A?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":v,"%TypedArray%":k,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":K,"%Function.prototype.apply%":j,"%Object.defineProperty%":d,"%Object.getPrototypeOf%":I,"%Math.abs%":l,"%Math.floor%":s,"%Math.max%":f,"%Math.min%":h,"%Math.pow%":E,"%Math.round%":m,"%Math.sign%":x,"%Reflect.getPrototypeOf%":O};if(P)try{null.error}catch(q){var ee=P(P(q));re["%Error.prototype%"]=ee}var ue=function q($){var B;if($==="%AsyncFunction%")B=y("async function () {}");else if($==="%GeneratorFunction%")B=y("function* () {}");else if($==="%AsyncGeneratorFunction%")B=y("async function* () {}");else if($==="%AsyncGenerator%"){var U=q("%AsyncGeneratorFunction%");U&&(B=U.prototype)}else if($==="%AsyncIteratorPrototype%"){var J=q("%AsyncGenerator%");J&&P&&(B=P(J.prototype))}return re[$]=B,B},le={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},de=fr(),fe=Pu(),be=de.call(K,Array.prototype.concat),pe=de.call(j,Array.prototype.splice),G=de.call(K,String.prototype.replace),Z=de.call(K,String.prototype.slice),Q=de.call(K,RegExp.prototype.exec),ae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,R=function($){var B=Z($,0,1),U=Z($,-1);if(B==="%"&&U!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(U==="%"&&B!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var J=[];return G($,ae,function(oe,ge,ce,he){J[J.length]=ce?G(he,V,"$1"):ge||oe}),J},N=function($,B){var U=$,J;if(fe(le,U)&&(J=le[U],U="%"+J[0]+"%"),fe(re,U)){var oe=re[U];if(oe===L&&(oe=ue(U)),typeof oe>"u"&&!B)throw new u("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:J,name:U,value:oe}}throw new a("intrinsic "+$+" does not exist!")};return Pi=function($,B){if(typeof $!="string"||$.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof B!="boolean")throw new u('"allowMissing" argument must be a boolean');if(Q(/^%?[^%]*%?$/,$)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var U=R($),J=U.length>0?U[0]:"",oe=N("%"+J+"%",B),ge=oe.name,ce=oe.value,he=!1,Oe=oe.alias;Oe&&(J=Oe[0],pe(U,be([0,1],Oe)));for(var te=1,He=!0;te<U.length;te+=1){var Me=U[te],xe=Z(Me,0,1),Ne=Z(Me,-1);if((xe==='"'||xe==="'"||xe==="`"||Ne==='"'||Ne==="'"||Ne==="`")&&xe!==Ne)throw new a("property names with quotes must have matching quotes");if((Me==="constructor"||!He)&&(he=!0),J+="."+Me,ge="%"+J+"%",fe(re,ge))ce=re[ge];else if(ce!=null){if(!(Me in ce)){if(!B)throw new u("base intrinsic for "+$+" exists, but the property is not available.");return}if(p&&te+1>=U.length){var Ye=p(ce,Me);He=!!Ye,He&&"get"in Ye&&!("originalValue"in Ye.get)?ce=Ye.get:ce=ce[Me]}else He=fe(ce,Me),ce=ce[Me];He&&!he&&(re[ge]=ce)}}return ce},Pi}var Ii,Cu;function hr(){if(Cu)return Ii;Cu=1;var e=Fu(),t=Si(),r=t([e("%String.prototype.indexOf%")]);return Ii=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},Ii}var Fi,Bu;function Qg(){if(Bu)return Fi;Bu=1;var e=Wr()(),t=hr(),r=t("Object.prototype.toString"),n=function(u){return e&&u&&typeof u=="object"&&Symbol.toStringTag in u?!1:r(u)==="[object Arguments]"},o=function(u){return n(u)?!0:u!==null&&typeof u=="object"&&"length"in u&&typeof u.length=="number"&&u.length>=0&&r(u)!=="[object Array]"&&"callee"in u&&r(u.callee)==="[object Function]"},i=(function(){return n(arguments)})();return n.isLegacyArguments=o,Fi=i?n:o,Fi}var Ci,Lu;function e0(){if(Lu)return Ci;Lu=1;var e=hr(),t=Wr()(),r=Pu(),n=Xt(),o;if(t){var i=e("RegExp.prototype.exec"),a={},u=function(){throw a},c={toString:u,valueOf:u};typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),o=function(h){if(!h||typeof h!="object")return!1;var E=n(h,"lastIndex"),m=E&&r(E,"value");if(!m)return!1;try{i(h,c)}catch(x){return x===a}}}else{var l=e("Object.prototype.toString"),s="[object RegExp]";o=function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:l(h)===s}}return Ci=o,Ci}var Bi,Uu;function t0(){if(Uu)return Bi;Uu=1;var e=hr(),t=e0(),r=e("RegExp.prototype.exec"),n=cr();return Bi=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(u){return r(i,u)!==null}},Bi}var Li,ju;function r0(){if(ju)return Li;ju=1;var e=hr(),t=t0(),r=t(/^\s*(?:function)?\*/),n=Wr()(),o=Ni(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),u=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},c;return Li=function(s){if(typeof s!="function")return!1;if(r(a(s)))return!0;if(!n){var f=i(s);return f==="[object GeneratorFunction]"}if(!o)return!1;if(typeof c>"u"){var h=u();c=h?o(h):!1}return o(s)===c},Li}var Ui,ku;function n0(){if(ku)return Ui;ku=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(p){p!==n&&(t=null)}else t=null;var o=/^\s*class\b/,i=function(d){try{var g=e.call(d);return o.test(g)}catch{return!1}},a=function(d){try{return i(d)?!1:(e.call(d),!0)}catch{return!1}},u=Object.prototype.toString,c="[object Object]",l="[object Function]",s="[object GeneratorFunction]",f="[object HTMLAllCollection]",h="[object HTML document.all class]",E="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,x=!(0 in[,]),T=function(){return!1};if(typeof document=="object"){var y=document.all;u.call(y)===u.call(document.all)&&(T=function(d){if((x||!d)&&(typeof d>"u"||typeof d=="object"))try{var g=u.call(d);return(g===f||g===h||g===E||g===c)&&d("")==null}catch{}return!1})}return Ui=t?function(d){if(T(d))return!0;if(!d||typeof d!="function"&&typeof d!="object")return!1;try{t(d,null,r)}catch(g){if(g!==n)return!1}return!i(d)&&a(d)}:function(d){if(T(d))return!0;if(!d||typeof d!="function"&&typeof d!="object")return!1;if(m)return a(d);if(i(d))return!1;var g=u.call(d);return g!==l&&g!==s&&!/^\[object HTML/.test(g)?!1:a(d)},Ui}var ji,Mu;function i0(){if(Mu)return ji;Mu=1;var e=n0(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(c,l,s){for(var f=0,h=c.length;f<h;f++)r.call(c,f)&&(s==null?l(c[f],f,c):l.call(s,c[f],f,c))},o=function(c,l,s){for(var f=0,h=c.length;f<h;f++)s==null?l(c.charAt(f),f,c):l.call(s,c.charAt(f),f,c)},i=function(c,l,s){for(var f in c)r.call(c,f)&&(s==null?l(c[f],f,c):l.call(s,c[f],f,c))};function a(u){return t.call(u)==="[object Array]"}return ji=function(c,l,s){if(!e(l))throw new TypeError("iterator must be a function");var f;arguments.length>=3&&(f=s),a(c)?n(c,l,f):typeof c=="string"?o(c,l,f):i(c,l,f)},ji}var ki,Du;function o0(){return Du||(Du=1,ki=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),ki}var Mi,$u;function s0(){if($u)return Mi;$u=1;var e=o0(),t=typeof globalThis>"u"?St:globalThis;return Mi=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},Mi}var Di={exports:{}},$i,qu;function a0(){if(qu)return $i;qu=1;var e=Gr(),t=eu(),r=cr(),n=Xt();return $i=function(i,a,u){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,h=!!n&&n(i,a);if(e)e(i,a,{configurable:s===null&&h?h.configurable:!s,enumerable:c===null&&h?h.enumerable:!c,value:u,writable:l===null&&h?h.writable:!l});else if(f||!c&&!l&&!s)i[a]=u;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$i}var qi,Hu;function u0(){if(Hu)return qi;Hu=1;var e=Gr(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},qi=t,qi}var Hi,Vu;function l0(){if(Vu)return Hi;Vu=1;var e=Fu(),t=a0(),r=u0()(),n=Xt(),o=cr(),i=e("%Math.floor%");return Hi=function(u,c){if(typeof u!="function")throw new o("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||i(c)!==c)throw new o("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],s=!0,f=!0;if("length"in u&&n){var h=n(u,"length");h&&!h.configurable&&(s=!1),h&&!h.writable&&(f=!1)}return(s||f||!l)&&(r?t(u,"length",c,!0,!0):t(u,"length",c)),u},Hi}var Vi,Wu;function c0(){if(Wu)return Vi;Wu=1;var e=fr(),t=Ei(),r=Su();return Vi=function(){return r(e,t,arguments)},Vi}var Gu;function f0(){return Gu||(Gu=1,(function(e){var t=l0(),r=Gr(),n=Si(),o=c0();e.exports=function(a){var u=n(arguments),c=a.length-(arguments.length-1);return t(u,1+(c>0?c:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o})(Di)),Di.exports}var Wi,Ku;function zu(){if(Ku)return Wi;Ku=1;var e=i0(),t=s0(),r=f0(),n=hr(),o=Xt(),i=Ni(),a=n("Object.prototype.toString"),u=Wr()(),c=typeof globalThis>"u"?St:globalThis,l=t(),s=n("String.prototype.slice"),f=n("Array.prototype.indexOf",!0)||function(T,y){for(var p=0;p<T.length;p+=1)if(T[p]===y)return p;return-1},h={__proto__:null};u&&o&&i?e(l,function(x){var T=new c[x];if(Symbol.toStringTag in T&&i){var y=i(T),p=o(y,Symbol.toStringTag);if(!p&&y){var d=i(y);p=o(d,Symbol.toStringTag)}h["$"+x]=r(p.get)}}):e(l,function(x){var T=new c[x],y=T.slice||T.set;y&&(h["$"+x]=r(y))});var E=function(T){var y=!1;return e(h,function(p,d){if(!y)try{"$"+p(T)===d&&(y=s(d,1))}catch{}}),y},m=function(T){var y=!1;return e(h,function(p,d){if(!y)try{p(T),y=s(d,1)}catch{}}),y};return Wi=function(T){if(!T||typeof T!="object")return!1;if(!u){var y=s(a(T),8,-1);return f(l,y)>-1?y:y!=="Object"?!1:m(T)}return o?E(T):null},Wi}var Gi,Xu;function h0(){if(Xu)return Gi;Xu=1;var e=zu();return Gi=function(r){return!!e(r)},Gi}var Yu;function d0(){return Yu||(Yu=1,(function(e){var t=Qg(),r=r0(),n=zu(),o=h0();function i(te){return te.call.bind(te)}var a=typeof BigInt<"u",u=typeof Symbol<"u",c=i(Object.prototype.toString),l=i(Number.prototype.valueOf),s=i(String.prototype.valueOf),f=i(Boolean.prototype.valueOf);if(a)var h=i(BigInt.prototype.valueOf);if(u)var E=i(Symbol.prototype.valueOf);function m(te,He){if(typeof te!="object")return!1;try{return He(te),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=o;function x(te){return typeof Promise<"u"&&te instanceof Promise||te!==null&&typeof te=="object"&&typeof te.then=="function"&&typeof te.catch=="function"}e.isPromise=x;function T(te){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(te):o(te)||Z(te)}e.isArrayBufferView=T;function y(te){return n(te)==="Uint8Array"}e.isUint8Array=y;function p(te){return n(te)==="Uint8ClampedArray"}e.isUint8ClampedArray=p;function d(te){return n(te)==="Uint16Array"}e.isUint16Array=d;function g(te){return n(te)==="Uint32Array"}e.isUint32Array=g;function v(te){return n(te)==="Int8Array"}e.isInt8Array=v;function A(te){return n(te)==="Int16Array"}e.isInt16Array=A;function P(te){return n(te)==="Int32Array"}e.isInt32Array=P;function I(te){return n(te)==="Float32Array"}e.isFloat32Array=I;function O(te){return n(te)==="Float64Array"}e.isFloat64Array=O;function j(te){return n(te)==="BigInt64Array"}e.isBigInt64Array=j;function K(te){return n(te)==="BigUint64Array"}e.isBigUint64Array=K;function L(te){return c(te)==="[object Map]"}L.working=typeof Map<"u"&&L(new Map);function k(te){return typeof Map>"u"?!1:L.working?L(te):te instanceof Map}e.isMap=k;function re(te){return c(te)==="[object Set]"}re.working=typeof Set<"u"&&re(new Set);function ee(te){return typeof Set>"u"?!1:re.working?re(te):te instanceof Set}e.isSet=ee;function ue(te){return c(te)==="[object WeakMap]"}ue.working=typeof WeakMap<"u"&&ue(new WeakMap);function le(te){return typeof WeakMap>"u"?!1:ue.working?ue(te):te instanceof WeakMap}e.isWeakMap=le;function de(te){return c(te)==="[object WeakSet]"}de.working=typeof WeakSet<"u"&&de(new WeakSet);function fe(te){return de(te)}e.isWeakSet=fe;function be(te){return c(te)==="[object ArrayBuffer]"}be.working=typeof ArrayBuffer<"u"&&be(new ArrayBuffer);function pe(te){return typeof ArrayBuffer>"u"?!1:be.working?be(te):te instanceof ArrayBuffer}e.isArrayBuffer=pe;function G(te){return c(te)==="[object DataView]"}G.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&G(new DataView(new ArrayBuffer(1),0,1));function Z(te){return typeof DataView>"u"?!1:G.working?G(te):te instanceof DataView}e.isDataView=Z;var Q=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ae(te){return c(te)==="[object SharedArrayBuffer]"}function V(te){return typeof Q>"u"?!1:(typeof ae.working>"u"&&(ae.working=ae(new Q)),ae.working?ae(te):te instanceof Q)}e.isSharedArrayBuffer=V;function R(te){return c(te)==="[object AsyncFunction]"}e.isAsyncFunction=R;function N(te){return c(te)==="[object Map Iterator]"}e.isMapIterator=N;function q(te){return c(te)==="[object Set Iterator]"}e.isSetIterator=q;function $(te){return c(te)==="[object Generator]"}e.isGeneratorObject=$;function B(te){return c(te)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=B;function U(te){return m(te,l)}e.isNumberObject=U;function J(te){return m(te,s)}e.isStringObject=J;function oe(te){return m(te,f)}e.isBooleanObject=oe;function ge(te){return a&&m(te,h)}e.isBigIntObject=ge;function ce(te){return u&&m(te,E)}e.isSymbolObject=ce;function he(te){return U(te)||J(te)||oe(te)||ge(te)||ce(te)}e.isBoxedPrimitive=he;function Oe(te){return typeof Uint8Array<"u"&&(pe(te)||V(te))}e.isAnyArrayBuffer=Oe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(te){Object.defineProperty(e,te,{enumerable:!1,value:function(){throw new Error(te+" is not supported in userland")}})})})(Wn)),Wn}var Ki,Ju;function p0(){return Ju||(Ju=1,Ki=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),Ki}var Zu;function Qu(){return Zu||(Zu=1,(function(e){var t=Object.getOwnPropertyDescriptors||function(Z){for(var Q=Object.keys(Z),ae={},V=0;V<Q.length;V++)ae[Q[V]]=Object.getOwnPropertyDescriptor(Z,Q[V]);return ae},r=/%[sdj%]/g;e.format=function(G){if(!v(G)){for(var Z=[],Q=0;Q<arguments.length;Q++)Z.push(a(arguments[Q]));return Z.join(" ")}for(var Q=1,ae=arguments,V=ae.length,R=String(G).replace(r,function(q){if(q==="%%")return"%";if(Q>=V)return q;switch(q){case"%s":return String(ae[Q++]);case"%d":return Number(ae[Q++]);case"%j":try{return JSON.stringify(ae[Q++])}catch{return"[Circular]"}default:return q}}),N=ae[Q];Q<V;N=ae[++Q])p(N)||!O(N)?R+=" "+N:R+=" "+a(N);return R},e.deprecate=function(G,Z){if(typeof ye<"u"&&ye.noDeprecation===!0)return G;if(typeof ye>"u")return function(){return e.deprecate(G,Z).apply(this,arguments)};var Q=!1;function ae(){if(!Q){if(ye.throwDeprecation)throw new Error(Z);ye.traceDeprecation?console.trace(Z):console.error(Z),Q=!0}return G.apply(this,arguments)}return ae};var n={},o=/^$/;if(ye.env.NODE_DEBUG){var i=ye.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(G){if(G=G.toUpperCase(),!n[G])if(o.test(G)){var Z=ye.pid;n[G]=function(){var Q=e.format.apply(e,arguments);console.error("%s %d: %s",G,Z,Q)}}else n[G]=function(){};return n[G]};function a(G,Z){var Q={seen:[],stylize:c};return arguments.length>=3&&(Q.depth=arguments[2]),arguments.length>=4&&(Q.colors=arguments[3]),y(Z)?Q.showHidden=Z:Z&&e._extend(Q,Z),P(Q.showHidden)&&(Q.showHidden=!1),P(Q.depth)&&(Q.depth=2),P(Q.colors)&&(Q.colors=!1),P(Q.customInspect)&&(Q.customInspect=!0),Q.colors&&(Q.stylize=u),s(Q,G,Q.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function u(G,Z){var Q=a.styles[Z];return Q?"\x1B["+a.colors[Q][0]+"m"+G+"\x1B["+a.colors[Q][1]+"m":G}function c(G,Z){return G}function l(G){var Z={};return G.forEach(function(Q,ae){Z[Q]=!0}),Z}function s(G,Z,Q){if(G.customInspect&&Z&&L(Z.inspect)&&Z.inspect!==e.inspect&&!(Z.constructor&&Z.constructor.prototype===Z)){var ae=Z.inspect(Q,G);return v(ae)||(ae=s(G,ae,Q)),ae}var V=f(G,Z);if(V)return V;var R=Object.keys(Z),N=l(R);if(G.showHidden&&(R=Object.getOwnPropertyNames(Z)),K(Z)&&(R.indexOf("message")>=0||R.indexOf("description")>=0))return h(Z);if(R.length===0){if(L(Z)){var q=Z.name?": "+Z.name:"";return G.stylize("[Function"+q+"]","special")}if(I(Z))return G.stylize(RegExp.prototype.toString.call(Z),"regexp");if(j(Z))return G.stylize(Date.prototype.toString.call(Z),"date");if(K(Z))return h(Z)}var $="",B=!1,U=["{","}"];if(T(Z)&&(B=!0,U=["[","]"]),L(Z)){var J=Z.name?": "+Z.name:"";$=" [Function"+J+"]"}if(I(Z)&&($=" "+RegExp.prototype.toString.call(Z)),j(Z)&&($=" "+Date.prototype.toUTCString.call(Z)),K(Z)&&($=" "+h(Z)),R.length===0&&(!B||Z.length==0))return U[0]+$+U[1];if(Q<0)return I(Z)?G.stylize(RegExp.prototype.toString.call(Z),"regexp"):G.stylize("[Object]","special");G.seen.push(Z);var oe;return B?oe=E(G,Z,Q,N,R):oe=R.map(function(ge){return m(G,Z,Q,N,ge,B)}),G.seen.pop(),x(oe,$,U)}function f(G,Z){if(P(Z))return G.stylize("undefined","undefined");if(v(Z)){var Q="'"+JSON.stringify(Z).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return G.stylize(Q,"string")}if(g(Z))return G.stylize(""+Z,"number");if(y(Z))return G.stylize(""+Z,"boolean");if(p(Z))return G.stylize("null","null")}function h(G){return"["+Error.prototype.toString.call(G)+"]"}function E(G,Z,Q,ae,V){for(var R=[],N=0,q=Z.length;N<q;++N)de(Z,String(N))?R.push(m(G,Z,Q,ae,String(N),!0)):R.push("");return V.forEach(function($){$.match(/^\d+$/)||R.push(m(G,Z,Q,ae,$,!0))}),R}function m(G,Z,Q,ae,V,R){var N,q,$;if($=Object.getOwnPropertyDescriptor(Z,V)||{value:Z[V]},$.get?$.set?q=G.stylize("[Getter/Setter]","special"):q=G.stylize("[Getter]","special"):$.set&&(q=G.stylize("[Setter]","special")),de(ae,V)||(N="["+V+"]"),q||(G.seen.indexOf($.value)<0?(p(Q)?q=s(G,$.value,null):q=s(G,$.value,Q-1),q.indexOf(`
|
|
16
|
+
*/(function(p){const d=r,g=T,v=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;p.Buffer=L,p.SlowBuffer=Z,p.INSPECT_MAX_BYTES=50;const A=2147483647;p.kMaxLength=A;const{Uint8Array:I,ArrayBuffer:P,SharedArrayBuffer:O}=globalThis;L.TYPED_ARRAY_SUPPORT=j(),!L.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function j(){try{const C=new I(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,I.prototype),Object.setPrototypeOf(C,w),C.foo()===42}catch{return!1}}Object.defineProperty(L.prototype,"parent",{enumerable:!0,get:function(){if(L.isBuffer(this))return this.buffer}}),Object.defineProperty(L.prototype,"offset",{enumerable:!0,get:function(){if(L.isBuffer(this))return this.byteOffset}});function K(C){if(C>A)throw new RangeError('The value "'+C+'" is invalid for option "size"');const w=new I(C);return Object.setPrototypeOf(w,L.prototype),w}function L(C,w,_){if(typeof C=="number"){if(typeof w=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ue(C)}return k(C,w,_)}L.poolSize=8192;function k(C,w,_){if(typeof C=="string")return le(C,w);if(P.isView(C))return fe(C);if(C==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C);if(yt(C,P)||C&&yt(C.buffer,P)||typeof O<"u"&&(yt(C,O)||C&&yt(C.buffer,O)))return be(C,w,_);if(typeof C=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const D=C.valueOf&&C.valueOf();if(D!=null&&D!==C)return L.from(D,w,_);const W=pe(C);if(W)return W;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof C[Symbol.toPrimitive]=="function")return L.from(C[Symbol.toPrimitive]("string"),w,_);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C)}L.from=function(C,w,_){return k(C,w,_)},Object.setPrototypeOf(L.prototype,I.prototype),Object.setPrototypeOf(L,I);function re(C){if(typeof C!="number")throw new TypeError('"size" argument must be of type number');if(C<0)throw new RangeError('The value "'+C+'" is invalid for option "size"')}function ee(C,w,_){return re(C),C<=0?K(C):w!==void 0?typeof _=="string"?K(C).fill(w,_):K(C).fill(w):K(C)}L.alloc=function(C,w,_){return ee(C,w,_)};function ue(C){return re(C),K(C<0?0:G(C)|0)}L.allocUnsafe=function(C){return ue(C)},L.allocUnsafeSlow=function(C){return ue(C)};function le(C,w){if((typeof w!="string"||w==="")&&(w="utf8"),!L.isEncoding(w))throw new TypeError("Unknown encoding: "+w);const _=Q(C,w)|0;let D=K(_);const W=D.write(C,w);return W!==_&&(D=D.slice(0,W)),D}function de(C){const w=C.length<0?0:G(C.length)|0,_=K(w);for(let D=0;D<w;D+=1)_[D]=C[D]&255;return _}function fe(C){if(yt(C,I)){const w=new I(C);return be(w.buffer,w.byteOffset,w.byteLength)}return de(C)}function be(C,w,_){if(w<0||C.byteLength<w)throw new RangeError('"offset" is outside of buffer bounds');if(C.byteLength<w+(_||0))throw new RangeError('"length" is outside of buffer bounds');let D;return w===void 0&&_===void 0?D=new I(C):_===void 0?D=new I(C,w):D=new I(C,w,_),Object.setPrototypeOf(D,L.prototype),D}function pe(C){if(L.isBuffer(C)){const w=G(C.length)|0,_=K(w);return _.length===0||C.copy(_,0,0,w),_}if(C.length!==void 0)return typeof C.length!="number"||os(C.length)?K(0):de(C);if(C.type==="Buffer"&&Array.isArray(C.data))return de(C.data)}function G(C){if(C>=A)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+A.toString(16)+" bytes");return C|0}function Z(C){return+C!=C&&(C=0),L.alloc(+C)}L.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==L.prototype},L.compare=function(w,_){if(yt(w,I)&&(w=L.from(w,w.offset,w.byteLength)),yt(_,I)&&(_=L.from(_,_.offset,_.byteLength)),!L.isBuffer(w)||!L.isBuffer(_))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===_)return 0;let D=w.length,W=_.length;for(let Y=0,ie=Math.min(D,W);Y<ie;++Y)if(w[Y]!==_[Y]){D=w[Y],W=_[Y];break}return D<W?-1:W<D?1:0},L.isEncoding=function(w){switch(String(w).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},L.concat=function(w,_){if(!Array.isArray(w))throw new TypeError('"list" argument must be an Array of Buffers');if(w.length===0)return L.alloc(0);let D;if(_===void 0)for(_=0,D=0;D<w.length;++D)_+=w[D].length;const W=L.allocUnsafe(_);let Y=0;for(D=0;D<w.length;++D){let ie=w[D];if(yt(ie,I))Y+ie.length>W.length?(L.isBuffer(ie)||(ie=L.from(ie)),ie.copy(W,Y)):I.prototype.set.call(W,ie,Y);else if(L.isBuffer(ie))ie.copy(W,Y);else throw new TypeError('"list" argument must be an Array of Buffers');Y+=ie.length}return W};function Q(C,w){if(L.isBuffer(C))return C.length;if(P.isView(C)||yt(C,P))return C.byteLength;if(typeof C!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof C);const _=C.length,D=arguments.length>2&&arguments[2]===!0;if(!D&&_===0)return 0;let W=!1;for(;;)switch(w){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":return Re(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return Ae(C).length;default:if(W)return D?-1:Re(C).length;w=(""+w).toLowerCase(),W=!0}}L.byteLength=Q;function ae(C,w,_){let D=!1;if((w===void 0||w<0)&&(w=0),w>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,w>>>=0,_<=w))return"";for(C||(C="utf8");;)switch(C){case"hex":return He(this,w,_);case"utf8":case"utf-8":return ge(this,w,_);case"ascii":return Oe(this,w,_);case"latin1":case"binary":return te(this,w,_);case"base64":return oe(this,w,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Me(this,w,_);default:if(D)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),D=!0}}L.prototype._isBuffer=!0;function V(C,w,_){const D=C[w];C[w]=C[_],C[_]=D}L.prototype.swap16=function(){const w=this.length;if(w%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let _=0;_<w;_+=2)V(this,_,_+1);return this},L.prototype.swap32=function(){const w=this.length;if(w%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let _=0;_<w;_+=4)V(this,_,_+3),V(this,_+1,_+2);return this},L.prototype.swap64=function(){const w=this.length;if(w%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let _=0;_<w;_+=8)V(this,_,_+7),V(this,_+1,_+6),V(this,_+2,_+5),V(this,_+3,_+4);return this},L.prototype.toString=function(){const w=this.length;return w===0?"":arguments.length===0?ge(this,0,w):ae.apply(this,arguments)},L.prototype.toLocaleString=L.prototype.toString,L.prototype.equals=function(w){if(!L.isBuffer(w))throw new TypeError("Argument must be a Buffer");return this===w?!0:L.compare(this,w)===0},L.prototype.inspect=function(){let w="";const _=p.INSPECT_MAX_BYTES;return w=this.toString("hex",0,_).replace(/(.{2})/g,"$1 ").trim(),this.length>_&&(w+=" ... "),"<Buffer "+w+">"},v&&(L.prototype[v]=L.prototype.inspect),L.prototype.compare=function(w,_,D,W,Y){if(yt(w,I)&&(w=L.from(w,w.offset,w.byteLength)),!L.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(_===void 0&&(_=0),D===void 0&&(D=w?w.length:0),W===void 0&&(W=0),Y===void 0&&(Y=this.length),_<0||D>w.length||W<0||Y>this.length)throw new RangeError("out of range index");if(W>=Y&&_>=D)return 0;if(W>=Y)return-1;if(_>=D)return 1;if(_>>>=0,D>>>=0,W>>>=0,Y>>>=0,this===w)return 0;let ie=Y-W,ve=D-_;const Le=Math.min(ie,ve),Fe=this.slice(W,Y),Ue=w.slice(_,D);for(let _e=0;_e<Le;++_e)if(Fe[_e]!==Ue[_e]){ie=Fe[_e],ve=Ue[_e];break}return ie<ve?-1:ve<ie?1:0};function R(C,w,_,D,W){if(C.length===0)return-1;if(typeof _=="string"?(D=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,os(_)&&(_=W?0:C.length-1),_<0&&(_=C.length+_),_>=C.length){if(W)return-1;_=C.length-1}else if(_<0)if(W)_=0;else return-1;if(typeof w=="string"&&(w=L.from(w,D)),L.isBuffer(w))return w.length===0?-1:N(C,w,_,D,W);if(typeof w=="number")return w=w&255,typeof I.prototype.indexOf=="function"?W?I.prototype.indexOf.call(C,w,_):I.prototype.lastIndexOf.call(C,w,_):N(C,[w],_,D,W);throw new TypeError("val must be string, number or Buffer")}function N(C,w,_,D,W){let Y=1,ie=C.length,ve=w.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(C.length<2||w.length<2)return-1;Y=2,ie/=2,ve/=2,_/=2}function Le(Ue,_e){return Y===1?Ue[_e]:Ue.readUInt16BE(_e*Y)}let Fe;if(W){let Ue=-1;for(Fe=_;Fe<ie;Fe++)if(Le(C,Fe)===Le(w,Ue===-1?0:Fe-Ue)){if(Ue===-1&&(Ue=Fe),Fe-Ue+1===ve)return Ue*Y}else Ue!==-1&&(Fe-=Fe-Ue),Ue=-1}else for(_+ve>ie&&(_=ie-ve),Fe=_;Fe>=0;Fe--){let Ue=!0;for(let _e=0;_e<ve;_e++)if(Le(C,Fe+_e)!==Le(w,_e)){Ue=!1;break}if(Ue)return Fe}return-1}L.prototype.includes=function(w,_,D){return this.indexOf(w,_,D)!==-1},L.prototype.indexOf=function(w,_,D){return R(this,w,_,D,!0)},L.prototype.lastIndexOf=function(w,_,D){return R(this,w,_,D,!1)};function q(C,w,_,D){_=Number(_)||0;const W=C.length-_;D?(D=Number(D),D>W&&(D=W)):D=W;const Y=w.length;D>Y/2&&(D=Y/2);let ie;for(ie=0;ie<D;++ie){const ve=parseInt(w.substr(ie*2,2),16);if(os(ve))return ie;C[_+ie]=ve}return ie}function $(C,w,_,D){return cn(Re(w,C.length-_),C,_,D)}function B(C,w,_,D){return cn(Ie(w),C,_,D)}function U(C,w,_,D){return cn(Ae(w),C,_,D)}function J(C,w,_,D){return cn(Pe(w,C.length-_),C,_,D)}L.prototype.write=function(w,_,D,W){if(_===void 0)W="utf8",D=this.length,_=0;else if(D===void 0&&typeof _=="string")W=_,D=this.length,_=0;else if(isFinite(_))_=_>>>0,isFinite(D)?(D=D>>>0,W===void 0&&(W="utf8")):(W=D,D=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Y=this.length-_;if((D===void 0||D>Y)&&(D=Y),w.length>0&&(D<0||_<0)||_>this.length)throw new RangeError("Attempt to write outside buffer bounds");W||(W="utf8");let ie=!1;for(;;)switch(W){case"hex":return q(this,w,_,D);case"utf8":case"utf-8":return $(this,w,_,D);case"ascii":case"latin1":case"binary":return B(this,w,_,D);case"base64":return U(this,w,_,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,w,_,D);default:if(ie)throw new TypeError("Unknown encoding: "+W);W=(""+W).toLowerCase(),ie=!0}},L.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function oe(C,w,_){return w===0&&_===C.length?d.fromByteArray(C):d.fromByteArray(C.slice(w,_))}function ge(C,w,_){_=Math.min(C.length,_);const D=[];let W=w;for(;W<_;){const Y=C[W];let ie=null,ve=Y>239?4:Y>223?3:Y>191?2:1;if(W+ve<=_){let Le,Fe,Ue,_e;switch(ve){case 1:Y<128&&(ie=Y);break;case 2:Le=C[W+1],(Le&192)===128&&(_e=(Y&31)<<6|Le&63,_e>127&&(ie=_e));break;case 3:Le=C[W+1],Fe=C[W+2],(Le&192)===128&&(Fe&192)===128&&(_e=(Y&15)<<12|(Le&63)<<6|Fe&63,_e>2047&&(_e<55296||_e>57343)&&(ie=_e));break;case 4:Le=C[W+1],Fe=C[W+2],Ue=C[W+3],(Le&192)===128&&(Fe&192)===128&&(Ue&192)===128&&(_e=(Y&15)<<18|(Le&63)<<12|(Fe&63)<<6|Ue&63,_e>65535&&_e<1114112&&(ie=_e))}}ie===null?(ie=65533,ve=1):ie>65535&&(ie-=65536,D.push(ie>>>10&1023|55296),ie=56320|ie&1023),D.push(ie),W+=ve}return he(D)}const ce=4096;function he(C){const w=C.length;if(w<=ce)return String.fromCharCode.apply(String,C);let _="",D=0;for(;D<w;)_+=String.fromCharCode.apply(String,C.slice(D,D+=ce));return _}function Oe(C,w,_){let D="";_=Math.min(C.length,_);for(let W=w;W<_;++W)D+=String.fromCharCode(C[W]&127);return D}function te(C,w,_){let D="";_=Math.min(C.length,_);for(let W=w;W<_;++W)D+=String.fromCharCode(C[W]);return D}function He(C,w,_){const D=C.length;(!w||w<0)&&(w=0),(!_||_<0||_>D)&&(_=D);let W="";for(let Y=w;Y<_;++Y)W+=ib[C[Y]];return W}function Me(C,w,_){const D=C.slice(w,_);let W="";for(let Y=0;Y<D.length-1;Y+=2)W+=String.fromCharCode(D[Y]+D[Y+1]*256);return W}L.prototype.slice=function(w,_){const D=this.length;w=~~w,_=_===void 0?D:~~_,w<0?(w+=D,w<0&&(w=0)):w>D&&(w=D),_<0?(_+=D,_<0&&(_=0)):_>D&&(_=D),_<w&&(_=w);const W=this.subarray(w,_);return Object.setPrototypeOf(W,L.prototype),W};function xe(C,w,_){if(C%1!==0||C<0)throw new RangeError("offset is not uint");if(C+w>_)throw new RangeError("Trying to access beyond buffer length")}L.prototype.readUintLE=L.prototype.readUIntLE=function(w,_,D){w=w>>>0,_=_>>>0,D||xe(w,_,this.length);let W=this[w],Y=1,ie=0;for(;++ie<_&&(Y*=256);)W+=this[w+ie]*Y;return W},L.prototype.readUintBE=L.prototype.readUIntBE=function(w,_,D){w=w>>>0,_=_>>>0,D||xe(w,_,this.length);let W=this[w+--_],Y=1;for(;_>0&&(Y*=256);)W+=this[w+--_]*Y;return W},L.prototype.readUint8=L.prototype.readUInt8=function(w,_){return w=w>>>0,_||xe(w,1,this.length),this[w]},L.prototype.readUint16LE=L.prototype.readUInt16LE=function(w,_){return w=w>>>0,_||xe(w,2,this.length),this[w]|this[w+1]<<8},L.prototype.readUint16BE=L.prototype.readUInt16BE=function(w,_){return w=w>>>0,_||xe(w,2,this.length),this[w]<<8|this[w+1]},L.prototype.readUint32LE=L.prototype.readUInt32LE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+this[w+3]*16777216},L.prototype.readUint32BE=L.prototype.readUInt32BE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),this[w]*16777216+(this[w+1]<<16|this[w+2]<<8|this[w+3])},L.prototype.readBigUInt64LE=Rt(function(w){w=w>>>0,H(w,"offset");const _=this[w],D=this[w+7];(_===void 0||D===void 0)&&z(w,this.length-8);const W=_+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24,Y=this[++w]+this[++w]*2**8+this[++w]*2**16+D*2**24;return BigInt(W)+(BigInt(Y)<<BigInt(32))}),L.prototype.readBigUInt64BE=Rt(function(w){w=w>>>0,H(w,"offset");const _=this[w],D=this[w+7];(_===void 0||D===void 0)&&z(w,this.length-8);const W=_*2**24+this[++w]*2**16+this[++w]*2**8+this[++w],Y=this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+D;return(BigInt(W)<<BigInt(32))+BigInt(Y)}),L.prototype.readIntLE=function(w,_,D){w=w>>>0,_=_>>>0,D||xe(w,_,this.length);let W=this[w],Y=1,ie=0;for(;++ie<_&&(Y*=256);)W+=this[w+ie]*Y;return Y*=128,W>=Y&&(W-=Math.pow(2,8*_)),W},L.prototype.readIntBE=function(w,_,D){w=w>>>0,_=_>>>0,D||xe(w,_,this.length);let W=_,Y=1,ie=this[w+--W];for(;W>0&&(Y*=256);)ie+=this[w+--W]*Y;return Y*=128,ie>=Y&&(ie-=Math.pow(2,8*_)),ie},L.prototype.readInt8=function(w,_){return w=w>>>0,_||xe(w,1,this.length),this[w]&128?(255-this[w]+1)*-1:this[w]},L.prototype.readInt16LE=function(w,_){w=w>>>0,_||xe(w,2,this.length);const D=this[w]|this[w+1]<<8;return D&32768?D|4294901760:D},L.prototype.readInt16BE=function(w,_){w=w>>>0,_||xe(w,2,this.length);const D=this[w+1]|this[w]<<8;return D&32768?D|4294901760:D},L.prototype.readInt32LE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},L.prototype.readInt32BE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},L.prototype.readBigInt64LE=Rt(function(w){w=w>>>0,H(w,"offset");const _=this[w],D=this[w+7];(_===void 0||D===void 0)&&z(w,this.length-8);const W=this[w+4]+this[w+5]*2**8+this[w+6]*2**16+(D<<24);return(BigInt(W)<<BigInt(32))+BigInt(_+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24)}),L.prototype.readBigInt64BE=Rt(function(w){w=w>>>0,H(w,"offset");const _=this[w],D=this[w+7];(_===void 0||D===void 0)&&z(w,this.length-8);const W=(_<<24)+this[++w]*2**16+this[++w]*2**8+this[++w];return(BigInt(W)<<BigInt(32))+BigInt(this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+D)}),L.prototype.readFloatLE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),g.read(this,w,!0,23,4)},L.prototype.readFloatBE=function(w,_){return w=w>>>0,_||xe(w,4,this.length),g.read(this,w,!1,23,4)},L.prototype.readDoubleLE=function(w,_){return w=w>>>0,_||xe(w,8,this.length),g.read(this,w,!0,52,8)},L.prototype.readDoubleBE=function(w,_){return w=w>>>0,_||xe(w,8,this.length),g.read(this,w,!1,52,8)};function Ne(C,w,_,D,W,Y){if(!L.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>W||w<Y)throw new RangeError('"value" argument is out of bounds');if(_+D>C.length)throw new RangeError("Index out of range")}L.prototype.writeUintLE=L.prototype.writeUIntLE=function(w,_,D,W){if(w=+w,_=_>>>0,D=D>>>0,!W){const ve=Math.pow(2,8*D)-1;Ne(this,w,_,D,ve,0)}let Y=1,ie=0;for(this[_]=w&255;++ie<D&&(Y*=256);)this[_+ie]=w/Y&255;return _+D},L.prototype.writeUintBE=L.prototype.writeUIntBE=function(w,_,D,W){if(w=+w,_=_>>>0,D=D>>>0,!W){const ve=Math.pow(2,8*D)-1;Ne(this,w,_,D,ve,0)}let Y=D-1,ie=1;for(this[_+Y]=w&255;--Y>=0&&(ie*=256);)this[_+Y]=w/ie&255;return _+D},L.prototype.writeUint8=L.prototype.writeUInt8=function(w,_,D){return w=+w,_=_>>>0,D||Ne(this,w,_,1,255,0),this[_]=w&255,_+1},L.prototype.writeUint16LE=L.prototype.writeUInt16LE=function(w,_,D){return w=+w,_=_>>>0,D||Ne(this,w,_,2,65535,0),this[_]=w&255,this[_+1]=w>>>8,_+2},L.prototype.writeUint16BE=L.prototype.writeUInt16BE=function(w,_,D){return w=+w,_=_>>>0,D||Ne(this,w,_,2,65535,0),this[_]=w>>>8,this[_+1]=w&255,_+2},L.prototype.writeUint32LE=L.prototype.writeUInt32LE=function(w,_,D){return w=+w,_=_>>>0,D||Ne(this,w,_,4,4294967295,0),this[_+3]=w>>>24,this[_+2]=w>>>16,this[_+1]=w>>>8,this[_]=w&255,_+4},L.prototype.writeUint32BE=L.prototype.writeUInt32BE=function(w,_,D){return w=+w,_=_>>>0,D||Ne(this,w,_,4,4294967295,0),this[_]=w>>>24,this[_+1]=w>>>16,this[_+2]=w>>>8,this[_+3]=w&255,_+4};function Ye(C,w,_,D,W){M(w,D,W,C,_,7);let Y=Number(w&BigInt(4294967295));C[_++]=Y,Y=Y>>8,C[_++]=Y,Y=Y>>8,C[_++]=Y,Y=Y>>8,C[_++]=Y;let ie=Number(w>>BigInt(32)&BigInt(4294967295));return C[_++]=ie,ie=ie>>8,C[_++]=ie,ie=ie>>8,C[_++]=ie,ie=ie>>8,C[_++]=ie,_}function Ge(C,w,_,D,W){M(w,D,W,C,_,7);let Y=Number(w&BigInt(4294967295));C[_+7]=Y,Y=Y>>8,C[_+6]=Y,Y=Y>>8,C[_+5]=Y,Y=Y>>8,C[_+4]=Y;let ie=Number(w>>BigInt(32)&BigInt(4294967295));return C[_+3]=ie,ie=ie>>8,C[_+2]=ie,ie=ie>>8,C[_+1]=ie,ie=ie>>8,C[_]=ie,_+8}L.prototype.writeBigUInt64LE=Rt(function(w,_=0){return Ye(this,w,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeBigUInt64BE=Rt(function(w,_=0){return Ge(this,w,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeIntLE=function(w,_,D,W){if(w=+w,_=_>>>0,!W){const Le=Math.pow(2,8*D-1);Ne(this,w,_,D,Le-1,-Le)}let Y=0,ie=1,ve=0;for(this[_]=w&255;++Y<D&&(ie*=256);)w<0&&ve===0&&this[_+Y-1]!==0&&(ve=1),this[_+Y]=(w/ie>>0)-ve&255;return _+D},L.prototype.writeIntBE=function(w,_,D,W){if(w=+w,_=_>>>0,!W){const Le=Math.pow(2,8*D-1);Ne(this,w,_,D,Le-1,-Le)}let Y=D-1,ie=1,ve=0;for(this[_+Y]=w&255;--Y>=0&&(ie*=256);)w<0&&ve===0&&this[_+Y+1]!==0&&(ve=1),this[_+Y]=(w/ie>>0)-ve&255;return _+D},L.prototype.writeInt8=function(w,_,D){return w=+w,_=_>>>0,D||Ne(this,w,_,1,127,-128),w<0&&(w=255+w+1),this[_]=w&255,_+1},L.prototype.writeInt16LE=function(w,_,D){return w=+w,_=_>>>0,D||Ne(this,w,_,2,32767,-32768),this[_]=w&255,this[_+1]=w>>>8,_+2},L.prototype.writeInt16BE=function(w,_,D){return w=+w,_=_>>>0,D||Ne(this,w,_,2,32767,-32768),this[_]=w>>>8,this[_+1]=w&255,_+2},L.prototype.writeInt32LE=function(w,_,D){return w=+w,_=_>>>0,D||Ne(this,w,_,4,2147483647,-2147483648),this[_]=w&255,this[_+1]=w>>>8,this[_+2]=w>>>16,this[_+3]=w>>>24,_+4},L.prototype.writeInt32BE=function(w,_,D){return w=+w,_=_>>>0,D||Ne(this,w,_,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[_]=w>>>24,this[_+1]=w>>>16,this[_+2]=w>>>8,this[_+3]=w&255,_+4},L.prototype.writeBigInt64LE=Rt(function(w,_=0){return Ye(this,w,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),L.prototype.writeBigInt64BE=Rt(function(w,_=0){return Ge(this,w,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ut(C,w,_,D,W,Y){if(_+D>C.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function ct(C,w,_,D,W){return w=+w,_=_>>>0,W||ut(C,w,_,4),g.write(C,w,_,D,23,4),_+4}L.prototype.writeFloatLE=function(w,_,D){return ct(this,w,_,!0,D)},L.prototype.writeFloatBE=function(w,_,D){return ct(this,w,_,!1,D)};function Ve(C,w,_,D,W){return w=+w,_=_>>>0,W||ut(C,w,_,8),g.write(C,w,_,D,52,8),_+8}L.prototype.writeDoubleLE=function(w,_,D){return Ve(this,w,_,!0,D)},L.prototype.writeDoubleBE=function(w,_,D){return Ve(this,w,_,!1,D)},L.prototype.copy=function(w,_,D,W){if(!L.isBuffer(w))throw new TypeError("argument should be a Buffer");if(D||(D=0),!W&&W!==0&&(W=this.length),_>=w.length&&(_=w.length),_||(_=0),W>0&&W<D&&(W=D),W===D||w.length===0||this.length===0)return 0;if(_<0)throw new RangeError("targetStart out of bounds");if(D<0||D>=this.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("sourceEnd out of bounds");W>this.length&&(W=this.length),w.length-_<W-D&&(W=w.length-_+D);const Y=W-D;return this===w&&typeof I.prototype.copyWithin=="function"?this.copyWithin(_,D,W):I.prototype.set.call(w,this.subarray(D,W),_),Y},L.prototype.fill=function(w,_,D,W){if(typeof w=="string"){if(typeof _=="string"?(W=_,_=0,D=this.length):typeof D=="string"&&(W=D,D=this.length),W!==void 0&&typeof W!="string")throw new TypeError("encoding must be a string");if(typeof W=="string"&&!L.isEncoding(W))throw new TypeError("Unknown encoding: "+W);if(w.length===1){const ie=w.charCodeAt(0);(W==="utf8"&&ie<128||W==="latin1")&&(w=ie)}}else typeof w=="number"?w=w&255:typeof w=="boolean"&&(w=Number(w));if(_<0||this.length<_||this.length<D)throw new RangeError("Out of range index");if(D<=_)return this;_=_>>>0,D=D===void 0?this.length:D>>>0,w||(w=0);let Y;if(typeof w=="number")for(Y=_;Y<D;++Y)this[Y]=w;else{const ie=L.isBuffer(w)?w:L.from(w,W),ve=ie.length;if(ve===0)throw new TypeError('The value "'+w+'" is invalid for argument "value"');for(Y=0;Y<D-_;++Y)this[Y+_]=ie[Y%ve]}return this};const Nt={};function F(C,w,_){Nt[C]=class extends _{constructor(){super(),Object.defineProperty(this,"message",{value:w.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${C}]`,this.stack,delete this.name}get code(){return C}set code(W){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:W,writable:!0})}toString(){return`${this.name} [${C}]: ${this.message}`}}}F("ERR_BUFFER_OUT_OF_BOUNDS",function(C){return C?`${C} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(C,w){return`The "${C}" argument must be of type number. Received type ${typeof w}`},TypeError),F("ERR_OUT_OF_RANGE",function(C,w,_){let D=`The value of "${C}" is out of range.`,W=_;return Number.isInteger(_)&&Math.abs(_)>2**32?W=b(String(_)):typeof _=="bigint"&&(W=String(_),(_>BigInt(2)**BigInt(32)||_<-(BigInt(2)**BigInt(32)))&&(W=b(W)),W+="n"),D+=` It must be ${w}. Received ${W}`,D},RangeError);function b(C){let w="",_=C.length;const D=C[0]==="-"?1:0;for(;_>=D+4;_-=3)w=`_${C.slice(_-3,_)}${w}`;return`${C.slice(0,_)}${w}`}function S(C,w,_){H(w,"offset"),(C[w]===void 0||C[w+_]===void 0)&&z(w,C.length-(_+1))}function M(C,w,_,D,W,Y){if(C>_||C<w){const ie=typeof w=="bigint"?"n":"";let ve;throw w===0||w===BigInt(0)?ve=`>= 0${ie} and < 2${ie} ** ${(Y+1)*8}${ie}`:ve=`>= -(2${ie} ** ${(Y+1)*8-1}${ie}) and < 2 ** ${(Y+1)*8-1}${ie}`,new Nt.ERR_OUT_OF_RANGE("value",ve,C)}S(D,W,Y)}function H(C,w){if(typeof C!="number")throw new Nt.ERR_INVALID_ARG_TYPE(w,"number",C)}function z(C,w,_){throw Math.floor(C)!==C?(H(C,_),new Nt.ERR_OUT_OF_RANGE("offset","an integer",C)):w<0?new Nt.ERR_BUFFER_OUT_OF_BOUNDS:new Nt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${w}`,C)}const ne=/[^+/0-9A-Za-z-_]/g;function we(C){if(C=C.split("=")[0],C=C.trim().replace(ne,""),C.length<2)return"";for(;C.length%4!==0;)C=C+"=";return C}function Re(C,w){w=w||1/0;let _;const D=C.length;let W=null;const Y=[];for(let ie=0;ie<D;++ie){if(_=C.charCodeAt(ie),_>55295&&_<57344){if(!W){if(_>56319){(w-=3)>-1&&Y.push(239,191,189);continue}else if(ie+1===D){(w-=3)>-1&&Y.push(239,191,189);continue}W=_;continue}if(_<56320){(w-=3)>-1&&Y.push(239,191,189),W=_;continue}_=(W-55296<<10|_-56320)+65536}else W&&(w-=3)>-1&&Y.push(239,191,189);if(W=null,_<128){if((w-=1)<0)break;Y.push(_)}else if(_<2048){if((w-=2)<0)break;Y.push(_>>6|192,_&63|128)}else if(_<65536){if((w-=3)<0)break;Y.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((w-=4)<0)break;Y.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return Y}function Ie(C){const w=[];for(let _=0;_<C.length;++_)w.push(C.charCodeAt(_)&255);return w}function Pe(C,w){let _,D,W;const Y=[];for(let ie=0;ie<C.length&&!((w-=2)<0);++ie)_=C.charCodeAt(ie),D=_>>8,W=_%256,Y.push(W),Y.push(D);return Y}function Ae(C){return d.toByteArray(we(C))}function cn(C,w,_,D){let W;for(W=0;W<D&&!(W+_>=w.length||W>=C.length);++W)w[W+_]=C[W];return W}function yt(C,w){return C instanceof w||C!=null&&C.constructor!=null&&C.constructor.name!=null&&C.constructor.name===w.name}function os(C){return C!==C}const ib=(function(){const C="0123456789abcdef",w=new Array(256);for(let _=0;_<16;++_){const D=_*16;for(let W=0;W<16;++W)w[D+W]=C[_]+C[W]}return w})();function Rt(C){return typeof BigInt>"u"?ob:C}function ob(){throw new Error("BigInt not supported")}})(t);const y=t.Buffer;e.Blob=t.Blob,e.BlobOptions=t.BlobOptions,e.Buffer=t.Buffer,e.File=t.File,e.FileOptions=t.FileOptions,e.INSPECT_MAX_BYTES=t.INSPECT_MAX_BYTES,e.SlowBuffer=t.SlowBuffer,e.TranscodeEncoding=t.TranscodeEncoding,e.atob=t.atob,e.btoa=t.btoa,e.constants=t.constants,e.default=y,e.isAscii=t.isAscii,e.isUtf8=t.isUtf8,e.kMaxLength=t.kMaxLength,e.kStringMaxLength=t.kStringMaxLength,e.resolveObjectURL=t.resolveObjectURL,e.transcode=t.transcode})(Vn)),Vn}var Wn={},Gn={},Kn,Ha;function Va(){return Ha||(Ha=1,Kn=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==o||u.enumerable!==!0)return!1}return!0}),Kn}var zn,Wa;function Wr(){if(Wa)return zn;Wa=1;var e=Va();return zn=function(){return e()&&!!Symbol.toStringTag},zn}var Xn,Ga;function Ka(){return Ga||(Ga=1,Xn=Object),Xn}var Yn,za;function Cg(){return za||(za=1,Yn=Error),Yn}var Jn,Xa;function Bg(){return Xa||(Xa=1,Jn=EvalError),Jn}var Zn,Ya;function Lg(){return Ya||(Ya=1,Zn=RangeError),Zn}var Qn,Ja;function Ug(){return Ja||(Ja=1,Qn=ReferenceError),Qn}var ei,Za;function Qa(){return Za||(Za=1,ei=SyntaxError),ei}var ti,eu;function cr(){return eu||(eu=1,ti=TypeError),ti}var ri,tu;function jg(){return tu||(tu=1,ri=URIError),ri}var ni,ru;function kg(){return ru||(ru=1,ni=Math.abs),ni}var ii,nu;function Mg(){return nu||(nu=1,ii=Math.floor),ii}var oi,iu;function Dg(){return iu||(iu=1,oi=Math.max),oi}var si,ou;function $g(){return ou||(ou=1,si=Math.min),si}var ai,su;function qg(){return su||(su=1,ai=Math.pow),ai}var ui,au;function Hg(){return au||(au=1,ui=Math.round),ui}var li,uu;function Vg(){return uu||(uu=1,li=Number.isNaN||function(t){return t!==t}),li}var ci,lu;function Wg(){if(lu)return ci;lu=1;var e=Vg();return ci=function(r){return e(r)||r===0?r:r<0?-1:1},ci}var fi,cu;function Gg(){return cu||(cu=1,fi=Object.getOwnPropertyDescriptor),fi}var hi,fu;function Xt(){if(fu)return hi;fu=1;var e=Gg();if(e)try{e([],"length")}catch{e=null}return hi=e,hi}var di,hu;function Gr(){if(hu)return di;hu=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return di=e,di}var pi,du;function Kg(){if(du)return pi;du=1;var e=typeof Symbol<"u"&&Symbol,t=Va();return pi=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},pi}var gi,pu;function gu(){return pu||(pu=1,gi=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),gi}var yi,yu;function mu(){if(yu)return yi;yu=1;var e=Ka();return yi=e.getPrototypeOf||null,yi}var mi,bu;function zg(){if(bu)return mi;bu=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(c,l){for(var s=[],f=0;f<c.length;f+=1)s[f]=c[f];for(var h=0;h<l.length;h+=1)s[h+c.length]=l[h];return s},i=function(c,l){for(var s=[],f=l,h=0;f<c.length;f+=1,h+=1)s[h]=c[f];return s},a=function(u,c){for(var l="",s=0;s<u.length;s+=1)l+=u[s],s+1<u.length&&(l+=c);return l};return mi=function(c){var l=this;if(typeof l!="function"||t.apply(l)!==n)throw new TypeError(e+l);for(var s=i(arguments,1),f,h=function(){if(this instanceof f){var y=l.apply(this,o(s,arguments));return Object(y)===y?y:this}return l.apply(c,o(s,arguments))},x=r(0,l.length-s.length),m=[],E=0;E<x;E++)m[E]="$"+E;if(f=Function("binder","return function ("+a(m,",")+"){ return binder.apply(this,arguments); }")(h),l.prototype){var T=function(){};T.prototype=l.prototype,f.prototype=new T,T.prototype=null}return f},mi}var bi,wu;function fr(){if(wu)return bi;wu=1;var e=zg();return bi=Function.prototype.bind||e,bi}var wi,vu;function vi(){return vu||(vu=1,wi=Function.prototype.call),wi}var Ei,Eu;function xi(){return Eu||(Eu=1,Ei=Function.prototype.apply),Ei}var Ai,xu;function Xg(){return xu||(xu=1,Ai=typeof Reflect<"u"&&Reflect&&Reflect.apply),Ai}var Ti,Au;function Tu(){if(Au)return Ti;Au=1;var e=fr(),t=xi(),r=vi(),n=Xg();return Ti=n||e.call(r,t),Ti}var Si,Su;function _i(){if(Su)return Si;Su=1;var e=fr(),t=cr(),r=vi(),n=Tu();return Si=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},Si}var Oi,_u;function Yg(){if(_u)return Oi;_u=1;var e=_i(),t=Xt(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return Oi=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(u){return i(u==null?u:o(u))}:!1,Oi}var Ni,Ou;function Ri(){if(Ou)return Ni;Ou=1;var e=gu(),t=mu(),r=Yg();return Ni=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,Ni}var Ii,Nu;function Ru(){if(Nu)return Ii;Nu=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=fr();return Ii=r.call(e,t),Ii}var Pi,Iu;function Pu(){if(Iu)return Pi;Iu=1;var e,t=Ka(),r=Cg(),n=Bg(),o=Lg(),i=Ug(),a=Qa(),u=cr(),c=jg(),l=kg(),s=Mg(),f=Dg(),h=$g(),x=qg(),m=Hg(),E=Wg(),T=Function,y=function(q){try{return T('"use strict"; return ('+q+").constructor;")()}catch{}},p=Xt(),d=Gr(),g=function(){throw new u},v=p?(function(){try{return arguments.callee,g}catch{try{return p(arguments,"callee").get}catch{return g}}})():g,A=Kg()(),I=Ri(),P=mu(),O=gu(),j=xi(),K=vi(),L={},k=typeof Uint8Array>"u"||!I?e:I(Uint8Array),re={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":A&&I?I([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":L,"%AsyncGenerator%":L,"%AsyncGeneratorFunction%":L,"%AsyncIteratorPrototype%":L,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":T,"%GeneratorFunction%":L,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&I?I(I([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!I?e:I(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":p,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!I?e:I(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&I?I(""[Symbol.iterator]()):e,"%Symbol%":A?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":v,"%TypedArray%":k,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":K,"%Function.prototype.apply%":j,"%Object.defineProperty%":d,"%Object.getPrototypeOf%":P,"%Math.abs%":l,"%Math.floor%":s,"%Math.max%":f,"%Math.min%":h,"%Math.pow%":x,"%Math.round%":m,"%Math.sign%":E,"%Reflect.getPrototypeOf%":O};if(I)try{null.error}catch(q){var ee=I(I(q));re["%Error.prototype%"]=ee}var ue=function q($){var B;if($==="%AsyncFunction%")B=y("async function () {}");else if($==="%GeneratorFunction%")B=y("function* () {}");else if($==="%AsyncGeneratorFunction%")B=y("async function* () {}");else if($==="%AsyncGenerator%"){var U=q("%AsyncGeneratorFunction%");U&&(B=U.prototype)}else if($==="%AsyncIteratorPrototype%"){var J=q("%AsyncGenerator%");J&&I&&(B=I(J.prototype))}return re[$]=B,B},le={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},de=fr(),fe=Ru(),be=de.call(K,Array.prototype.concat),pe=de.call(j,Array.prototype.splice),G=de.call(K,String.prototype.replace),Z=de.call(K,String.prototype.slice),Q=de.call(K,RegExp.prototype.exec),ae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,R=function($){var B=Z($,0,1),U=Z($,-1);if(B==="%"&&U!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(U==="%"&&B!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var J=[];return G($,ae,function(oe,ge,ce,he){J[J.length]=ce?G(he,V,"$1"):ge||oe}),J},N=function($,B){var U=$,J;if(fe(le,U)&&(J=le[U],U="%"+J[0]+"%"),fe(re,U)){var oe=re[U];if(oe===L&&(oe=ue(U)),typeof oe>"u"&&!B)throw new u("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:J,name:U,value:oe}}throw new a("intrinsic "+$+" does not exist!")};return Pi=function($,B){if(typeof $!="string"||$.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof B!="boolean")throw new u('"allowMissing" argument must be a boolean');if(Q(/^%?[^%]*%?$/,$)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var U=R($),J=U.length>0?U[0]:"",oe=N("%"+J+"%",B),ge=oe.name,ce=oe.value,he=!1,Oe=oe.alias;Oe&&(J=Oe[0],pe(U,be([0,1],Oe)));for(var te=1,He=!0;te<U.length;te+=1){var Me=U[te],xe=Z(Me,0,1),Ne=Z(Me,-1);if((xe==='"'||xe==="'"||xe==="`"||Ne==='"'||Ne==="'"||Ne==="`")&&xe!==Ne)throw new a("property names with quotes must have matching quotes");if((Me==="constructor"||!He)&&(he=!0),J+="."+Me,ge="%"+J+"%",fe(re,ge))ce=re[ge];else if(ce!=null){if(!(Me in ce)){if(!B)throw new u("base intrinsic for "+$+" exists, but the property is not available.");return}if(p&&te+1>=U.length){var Ye=p(ce,Me);He=!!Ye,He&&"get"in Ye&&!("originalValue"in Ye.get)?ce=Ye.get:ce=ce[Me]}else He=fe(ce,Me),ce=ce[Me];He&&!he&&(re[ge]=ce)}}return ce},Pi}var Fi,Fu;function hr(){if(Fu)return Fi;Fu=1;var e=Pu(),t=_i(),r=t([e("%String.prototype.indexOf%")]);return Fi=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},Fi}var Ci,Cu;function Jg(){if(Cu)return Ci;Cu=1;var e=Wr()(),t=hr(),r=t("Object.prototype.toString"),n=function(u){return e&&u&&typeof u=="object"&&Symbol.toStringTag in u?!1:r(u)==="[object Arguments]"},o=function(u){return n(u)?!0:u!==null&&typeof u=="object"&&"length"in u&&typeof u.length=="number"&&u.length>=0&&r(u)!=="[object Array]"&&"callee"in u&&r(u.callee)==="[object Function]"},i=(function(){return n(arguments)})();return n.isLegacyArguments=o,Ci=i?n:o,Ci}var Bi,Bu;function Zg(){if(Bu)return Bi;Bu=1;var e=hr(),t=Wr()(),r=Ru(),n=Xt(),o;if(t){var i=e("RegExp.prototype.exec"),a={},u=function(){throw a},c={toString:u,valueOf:u};typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),o=function(h){if(!h||typeof h!="object")return!1;var x=n(h,"lastIndex"),m=x&&r(x,"value");if(!m)return!1;try{i(h,c)}catch(E){return E===a}}}else{var l=e("Object.prototype.toString"),s="[object RegExp]";o=function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:l(h)===s}}return Bi=o,Bi}var Li,Lu;function Qg(){if(Lu)return Li;Lu=1;var e=hr(),t=Zg(),r=e("RegExp.prototype.exec"),n=cr();return Li=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(u){return r(i,u)!==null}},Li}var Ui,Uu;function e0(){if(Uu)return Ui;Uu=1;var e=hr(),t=Qg(),r=t(/^\s*(?:function)?\*/),n=Wr()(),o=Ri(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),u=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},c;return Ui=function(s){if(typeof s!="function")return!1;if(r(a(s)))return!0;if(!n){var f=i(s);return f==="[object GeneratorFunction]"}if(!o)return!1;if(typeof c>"u"){var h=u();c=h?o(h):!1}return o(s)===c},Ui}var ji,ju;function t0(){if(ju)return ji;ju=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(p){p!==n&&(t=null)}else t=null;var o=/^\s*class\b/,i=function(d){try{var g=e.call(d);return o.test(g)}catch{return!1}},a=function(d){try{return i(d)?!1:(e.call(d),!0)}catch{return!1}},u=Object.prototype.toString,c="[object Object]",l="[object Function]",s="[object GeneratorFunction]",f="[object HTMLAllCollection]",h="[object HTML document.all class]",x="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,E=!(0 in[,]),T=function(){return!1};if(typeof document=="object"){var y=document.all;u.call(y)===u.call(document.all)&&(T=function(d){if((E||!d)&&(typeof d>"u"||typeof d=="object"))try{var g=u.call(d);return(g===f||g===h||g===x||g===c)&&d("")==null}catch{}return!1})}return ji=t?function(d){if(T(d))return!0;if(!d||typeof d!="function"&&typeof d!="object")return!1;try{t(d,null,r)}catch(g){if(g!==n)return!1}return!i(d)&&a(d)}:function(d){if(T(d))return!0;if(!d||typeof d!="function"&&typeof d!="object")return!1;if(m)return a(d);if(i(d))return!1;var g=u.call(d);return g!==l&&g!==s&&!/^\[object HTML/.test(g)?!1:a(d)},ji}var ki,ku;function r0(){if(ku)return ki;ku=1;var e=t0(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(c,l,s){for(var f=0,h=c.length;f<h;f++)r.call(c,f)&&(s==null?l(c[f],f,c):l.call(s,c[f],f,c))},o=function(c,l,s){for(var f=0,h=c.length;f<h;f++)s==null?l(c.charAt(f),f,c):l.call(s,c.charAt(f),f,c)},i=function(c,l,s){for(var f in c)r.call(c,f)&&(s==null?l(c[f],f,c):l.call(s,c[f],f,c))};function a(u){return t.call(u)==="[object Array]"}return ki=function(c,l,s){if(!e(l))throw new TypeError("iterator must be a function");var f;arguments.length>=3&&(f=s),a(c)?n(c,l,f):typeof c=="string"?o(c,l,f):i(c,l,f)},ki}var Mi,Mu;function n0(){return Mu||(Mu=1,Mi=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Mi}var Di,Du;function i0(){if(Du)return Di;Du=1;var e=n0(),t=typeof globalThis>"u"?St:globalThis;return Di=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},Di}var $i={exports:{}},qi,$u;function o0(){if($u)return qi;$u=1;var e=Gr(),t=Qa(),r=cr(),n=Xt();return qi=function(i,a,u){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,h=!!n&&n(i,a);if(e)e(i,a,{configurable:s===null&&h?h.configurable:!s,enumerable:c===null&&h?h.enumerable:!c,value:u,writable:l===null&&h?h.writable:!l});else if(f||!c&&!l&&!s)i[a]=u;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},qi}var Hi,qu;function s0(){if(qu)return Hi;qu=1;var e=Gr(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Hi=t,Hi}var Vi,Hu;function a0(){if(Hu)return Vi;Hu=1;var e=Pu(),t=o0(),r=s0()(),n=Xt(),o=cr(),i=e("%Math.floor%");return Vi=function(u,c){if(typeof u!="function")throw new o("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||i(c)!==c)throw new o("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],s=!0,f=!0;if("length"in u&&n){var h=n(u,"length");h&&!h.configurable&&(s=!1),h&&!h.writable&&(f=!1)}return(s||f||!l)&&(r?t(u,"length",c,!0,!0):t(u,"length",c)),u},Vi}var Wi,Vu;function u0(){if(Vu)return Wi;Vu=1;var e=fr(),t=xi(),r=Tu();return Wi=function(){return r(e,t,arguments)},Wi}var Wu;function l0(){return Wu||(Wu=1,(function(e){var t=a0(),r=Gr(),n=_i(),o=u0();e.exports=function(a){var u=n(arguments),c=a.length-(arguments.length-1);return t(u,1+(c>0?c:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o})($i)),$i.exports}var Gi,Gu;function Ku(){if(Gu)return Gi;Gu=1;var e=r0(),t=i0(),r=l0(),n=hr(),o=Xt(),i=Ri(),a=n("Object.prototype.toString"),u=Wr()(),c=typeof globalThis>"u"?St:globalThis,l=t(),s=n("String.prototype.slice"),f=n("Array.prototype.indexOf",!0)||function(T,y){for(var p=0;p<T.length;p+=1)if(T[p]===y)return p;return-1},h={__proto__:null};u&&o&&i?e(l,function(E){var T=new c[E];if(Symbol.toStringTag in T&&i){var y=i(T),p=o(y,Symbol.toStringTag);if(!p&&y){var d=i(y);p=o(d,Symbol.toStringTag)}h["$"+E]=r(p.get)}}):e(l,function(E){var T=new c[E],y=T.slice||T.set;y&&(h["$"+E]=r(y))});var x=function(T){var y=!1;return e(h,function(p,d){if(!y)try{"$"+p(T)===d&&(y=s(d,1))}catch{}}),y},m=function(T){var y=!1;return e(h,function(p,d){if(!y)try{p(T),y=s(d,1)}catch{}}),y};return Gi=function(T){if(!T||typeof T!="object")return!1;if(!u){var y=s(a(T),8,-1);return f(l,y)>-1?y:y!=="Object"?!1:m(T)}return o?x(T):null},Gi}var Ki,zu;function c0(){if(zu)return Ki;zu=1;var e=Ku();return Ki=function(r){return!!e(r)},Ki}var Xu;function f0(){return Xu||(Xu=1,(function(e){var t=Jg(),r=e0(),n=Ku(),o=c0();function i(te){return te.call.bind(te)}var a=typeof BigInt<"u",u=typeof Symbol<"u",c=i(Object.prototype.toString),l=i(Number.prototype.valueOf),s=i(String.prototype.valueOf),f=i(Boolean.prototype.valueOf);if(a)var h=i(BigInt.prototype.valueOf);if(u)var x=i(Symbol.prototype.valueOf);function m(te,He){if(typeof te!="object")return!1;try{return He(te),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=o;function E(te){return typeof Promise<"u"&&te instanceof Promise||te!==null&&typeof te=="object"&&typeof te.then=="function"&&typeof te.catch=="function"}e.isPromise=E;function T(te){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(te):o(te)||Z(te)}e.isArrayBufferView=T;function y(te){return n(te)==="Uint8Array"}e.isUint8Array=y;function p(te){return n(te)==="Uint8ClampedArray"}e.isUint8ClampedArray=p;function d(te){return n(te)==="Uint16Array"}e.isUint16Array=d;function g(te){return n(te)==="Uint32Array"}e.isUint32Array=g;function v(te){return n(te)==="Int8Array"}e.isInt8Array=v;function A(te){return n(te)==="Int16Array"}e.isInt16Array=A;function I(te){return n(te)==="Int32Array"}e.isInt32Array=I;function P(te){return n(te)==="Float32Array"}e.isFloat32Array=P;function O(te){return n(te)==="Float64Array"}e.isFloat64Array=O;function j(te){return n(te)==="BigInt64Array"}e.isBigInt64Array=j;function K(te){return n(te)==="BigUint64Array"}e.isBigUint64Array=K;function L(te){return c(te)==="[object Map]"}L.working=typeof Map<"u"&&L(new Map);function k(te){return typeof Map>"u"?!1:L.working?L(te):te instanceof Map}e.isMap=k;function re(te){return c(te)==="[object Set]"}re.working=typeof Set<"u"&&re(new Set);function ee(te){return typeof Set>"u"?!1:re.working?re(te):te instanceof Set}e.isSet=ee;function ue(te){return c(te)==="[object WeakMap]"}ue.working=typeof WeakMap<"u"&&ue(new WeakMap);function le(te){return typeof WeakMap>"u"?!1:ue.working?ue(te):te instanceof WeakMap}e.isWeakMap=le;function de(te){return c(te)==="[object WeakSet]"}de.working=typeof WeakSet<"u"&&de(new WeakSet);function fe(te){return de(te)}e.isWeakSet=fe;function be(te){return c(te)==="[object ArrayBuffer]"}be.working=typeof ArrayBuffer<"u"&&be(new ArrayBuffer);function pe(te){return typeof ArrayBuffer>"u"?!1:be.working?be(te):te instanceof ArrayBuffer}e.isArrayBuffer=pe;function G(te){return c(te)==="[object DataView]"}G.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&G(new DataView(new ArrayBuffer(1),0,1));function Z(te){return typeof DataView>"u"?!1:G.working?G(te):te instanceof DataView}e.isDataView=Z;var Q=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ae(te){return c(te)==="[object SharedArrayBuffer]"}function V(te){return typeof Q>"u"?!1:(typeof ae.working>"u"&&(ae.working=ae(new Q)),ae.working?ae(te):te instanceof Q)}e.isSharedArrayBuffer=V;function R(te){return c(te)==="[object AsyncFunction]"}e.isAsyncFunction=R;function N(te){return c(te)==="[object Map Iterator]"}e.isMapIterator=N;function q(te){return c(te)==="[object Set Iterator]"}e.isSetIterator=q;function $(te){return c(te)==="[object Generator]"}e.isGeneratorObject=$;function B(te){return c(te)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=B;function U(te){return m(te,l)}e.isNumberObject=U;function J(te){return m(te,s)}e.isStringObject=J;function oe(te){return m(te,f)}e.isBooleanObject=oe;function ge(te){return a&&m(te,h)}e.isBigIntObject=ge;function ce(te){return u&&m(te,x)}e.isSymbolObject=ce;function he(te){return U(te)||J(te)||oe(te)||ge(te)||ce(te)}e.isBoxedPrimitive=he;function Oe(te){return typeof Uint8Array<"u"&&(pe(te)||V(te))}e.isAnyArrayBuffer=Oe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(te){Object.defineProperty(e,te,{enumerable:!1,value:function(){throw new Error(te+" is not supported in userland")}})})})(Gn)),Gn}var zi,Yu;function h0(){return Yu||(Yu=1,zi=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),zi}var Ju;function Zu(){return Ju||(Ju=1,(function(e){var t=Object.getOwnPropertyDescriptors||function(Z){for(var Q=Object.keys(Z),ae={},V=0;V<Q.length;V++)ae[Q[V]]=Object.getOwnPropertyDescriptor(Z,Q[V]);return ae},r=/%[sdj%]/g;e.format=function(G){if(!v(G)){for(var Z=[],Q=0;Q<arguments.length;Q++)Z.push(a(arguments[Q]));return Z.join(" ")}for(var Q=1,ae=arguments,V=ae.length,R=String(G).replace(r,function(q){if(q==="%%")return"%";if(Q>=V)return q;switch(q){case"%s":return String(ae[Q++]);case"%d":return Number(ae[Q++]);case"%j":try{return JSON.stringify(ae[Q++])}catch{return"[Circular]"}default:return q}}),N=ae[Q];Q<V;N=ae[++Q])p(N)||!O(N)?R+=" "+N:R+=" "+a(N);return R},e.deprecate=function(G,Z){if(typeof ye<"u"&&ye.noDeprecation===!0)return G;if(typeof ye>"u")return function(){return e.deprecate(G,Z).apply(this,arguments)};var Q=!1;function ae(){if(!Q){if(ye.throwDeprecation)throw new Error(Z);ye.traceDeprecation?console.trace(Z):console.error(Z),Q=!0}return G.apply(this,arguments)}return ae};var n={},o=/^$/;if(ye.env.NODE_DEBUG){var i=ye.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(G){if(G=G.toUpperCase(),!n[G])if(o.test(G)){var Z=ye.pid;n[G]=function(){var Q=e.format.apply(e,arguments);console.error("%s %d: %s",G,Z,Q)}}else n[G]=function(){};return n[G]};function a(G,Z){var Q={seen:[],stylize:c};return arguments.length>=3&&(Q.depth=arguments[2]),arguments.length>=4&&(Q.colors=arguments[3]),y(Z)?Q.showHidden=Z:Z&&e._extend(Q,Z),I(Q.showHidden)&&(Q.showHidden=!1),I(Q.depth)&&(Q.depth=2),I(Q.colors)&&(Q.colors=!1),I(Q.customInspect)&&(Q.customInspect=!0),Q.colors&&(Q.stylize=u),s(Q,G,Q.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function u(G,Z){var Q=a.styles[Z];return Q?"\x1B["+a.colors[Q][0]+"m"+G+"\x1B["+a.colors[Q][1]+"m":G}function c(G,Z){return G}function l(G){var Z={};return G.forEach(function(Q,ae){Z[Q]=!0}),Z}function s(G,Z,Q){if(G.customInspect&&Z&&L(Z.inspect)&&Z.inspect!==e.inspect&&!(Z.constructor&&Z.constructor.prototype===Z)){var ae=Z.inspect(Q,G);return v(ae)||(ae=s(G,ae,Q)),ae}var V=f(G,Z);if(V)return V;var R=Object.keys(Z),N=l(R);if(G.showHidden&&(R=Object.getOwnPropertyNames(Z)),K(Z)&&(R.indexOf("message")>=0||R.indexOf("description")>=0))return h(Z);if(R.length===0){if(L(Z)){var q=Z.name?": "+Z.name:"";return G.stylize("[Function"+q+"]","special")}if(P(Z))return G.stylize(RegExp.prototype.toString.call(Z),"regexp");if(j(Z))return G.stylize(Date.prototype.toString.call(Z),"date");if(K(Z))return h(Z)}var $="",B=!1,U=["{","}"];if(T(Z)&&(B=!0,U=["[","]"]),L(Z)){var J=Z.name?": "+Z.name:"";$=" [Function"+J+"]"}if(P(Z)&&($=" "+RegExp.prototype.toString.call(Z)),j(Z)&&($=" "+Date.prototype.toUTCString.call(Z)),K(Z)&&($=" "+h(Z)),R.length===0&&(!B||Z.length==0))return U[0]+$+U[1];if(Q<0)return P(Z)?G.stylize(RegExp.prototype.toString.call(Z),"regexp"):G.stylize("[Object]","special");G.seen.push(Z);var oe;return B?oe=x(G,Z,Q,N,R):oe=R.map(function(ge){return m(G,Z,Q,N,ge,B)}),G.seen.pop(),E(oe,$,U)}function f(G,Z){if(I(Z))return G.stylize("undefined","undefined");if(v(Z)){var Q="'"+JSON.stringify(Z).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return G.stylize(Q,"string")}if(g(Z))return G.stylize(""+Z,"number");if(y(Z))return G.stylize(""+Z,"boolean");if(p(Z))return G.stylize("null","null")}function h(G){return"["+Error.prototype.toString.call(G)+"]"}function x(G,Z,Q,ae,V){for(var R=[],N=0,q=Z.length;N<q;++N)de(Z,String(N))?R.push(m(G,Z,Q,ae,String(N),!0)):R.push("");return V.forEach(function($){$.match(/^\d+$/)||R.push(m(G,Z,Q,ae,$,!0))}),R}function m(G,Z,Q,ae,V,R){var N,q,$;if($=Object.getOwnPropertyDescriptor(Z,V)||{value:Z[V]},$.get?$.set?q=G.stylize("[Getter/Setter]","special"):q=G.stylize("[Getter]","special"):$.set&&(q=G.stylize("[Setter]","special")),de(ae,V)||(N="["+V+"]"),q||(G.seen.indexOf($.value)<0?(p(Q)?q=s(G,$.value,null):q=s(G,$.value,Q-1),q.indexOf(`
|
|
17
17
|
`)>-1&&(R?q=q.split(`
|
|
18
18
|
`).map(function(B){return" "+B}).join(`
|
|
19
19
|
`).slice(2):q=`
|
|
20
20
|
`+q.split(`
|
|
21
21
|
`).map(function(B){return" "+B}).join(`
|
|
22
|
-
`))):q=G.stylize("[Circular]","special")),
|
|
22
|
+
`))):q=G.stylize("[Circular]","special")),I(N)){if(R&&V.match(/^\d+$/))return q;N=JSON.stringify(""+V),N.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(N=N.slice(1,-1),N=G.stylize(N,"name")):(N=N.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),N=G.stylize(N,"string"))}return N+": "+q}function E(G,Z,Q){var ae=G.reduce(function(V,R){return R.indexOf(`
|
|
23
23
|
`)>=0,V+R.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ae>60?Q[0]+(Z===""?"":Z+`
|
|
24
24
|
`)+" "+G.join(`,
|
|
25
|
-
`)+" "+Q[1]:Q[0]+Z+" "+G.join(", ")+" "+Q[1]}e.types=d0();function T(G){return Array.isArray(G)}e.isArray=T;function y(G){return typeof G=="boolean"}e.isBoolean=y;function p(G){return G===null}e.isNull=p;function d(G){return G==null}e.isNullOrUndefined=d;function g(G){return typeof G=="number"}e.isNumber=g;function v(G){return typeof G=="string"}e.isString=v;function A(G){return typeof G=="symbol"}e.isSymbol=A;function P(G){return G===void 0}e.isUndefined=P;function I(G){return O(G)&&re(G)==="[object RegExp]"}e.isRegExp=I,e.types.isRegExp=I;function O(G){return typeof G=="object"&&G!==null}e.isObject=O;function j(G){return O(G)&&re(G)==="[object Date]"}e.isDate=j,e.types.isDate=j;function K(G){return O(G)&&(re(G)==="[object Error]"||G instanceof Error)}e.isError=K,e.types.isNativeError=K;function L(G){return typeof G=="function"}e.isFunction=L;function k(G){return G===null||typeof G=="boolean"||typeof G=="number"||typeof G=="string"||typeof G=="symbol"||typeof G>"u"}e.isPrimitive=k,e.isBuffer=p0();function re(G){return Object.prototype.toString.call(G)}function ee(G){return G<10?"0"+G.toString(10):G.toString(10)}var ue=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function le(){var G=new Date,Z=[ee(G.getHours()),ee(G.getMinutes()),ee(G.getSeconds())].join(":");return[G.getDate(),ue[G.getMonth()],Z].join(" ")}e.log=function(){console.log("%s - %s",le(),e.format.apply(e,arguments))},e.inherits=jt(),e._extend=function(G,Z){if(!Z||!O(Z))return G;for(var Q=Object.keys(Z),ae=Q.length;ae--;)G[Q[ae]]=Z[Q[ae]];return G};function de(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)}var fe=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(Z){if(typeof Z!="function")throw new TypeError('The "original" argument must be of type Function');if(fe&&Z[fe]){var Q=Z[fe];if(typeof Q!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Q,fe,{value:Q,enumerable:!1,writable:!1,configurable:!0}),Q}function Q(){for(var ae,V,R=new Promise(function($,B){ae=$,V=B}),N=[],q=0;q<arguments.length;q++)N.push(arguments[q]);N.push(function($,B){$?V($):ae(B)});try{Z.apply(this,N)}catch($){V($)}return R}return Object.setPrototypeOf(Q,Object.getPrototypeOf(Z)),fe&&Object.defineProperty(Q,fe,{value:Q,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Q,t(Z))},e.promisify.custom=fe;function be(G,Z){if(!G){var Q=new Error("Promise was rejected with a falsy value");Q.reason=G,G=Q}return Z(G)}function pe(G){if(typeof G!="function")throw new TypeError('The "original" argument must be of type Function');function Z(){for(var Q=[],ae=0;ae<arguments.length;ae++)Q.push(arguments[ae]);var V=Q.pop();if(typeof V!="function")throw new TypeError("The last argument must be of type Function");var R=this,N=function(){return V.apply(R,arguments)};G.apply(this,Q).then(function(q){ye.nextTick(N.bind(null,null,q))},function(q){ye.nextTick(be.bind(null,q,N))})}return Object.setPrototypeOf(Z,Object.getPrototypeOf(G)),Object.defineProperties(Z,t(G)),Z}e.callbackify=pe})(Vn)),Vn}var zi,el;function g0(){if(el)return zi;el=1;function e(m,x){var T=Object.keys(m);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(m);x&&(y=y.filter(function(p){return Object.getOwnPropertyDescriptor(m,p).enumerable})),T.push.apply(T,y)}return T}function t(m){for(var x=1;x<arguments.length;x++){var T=arguments[x]!=null?arguments[x]:{};x%2?e(Object(T),!0).forEach(function(y){r(m,y,T[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(T)):e(Object(T)).forEach(function(y){Object.defineProperty(m,y,Object.getOwnPropertyDescriptor(T,y))})}return m}function r(m,x,T){return x=a(x),x in m?Object.defineProperty(m,x,{value:T,enumerable:!0,configurable:!0,writable:!0}):m[x]=T,m}function n(m,x){if(!(m instanceof x))throw new TypeError("Cannot call a class as a function")}function o(m,x){for(var T=0;T<x.length;T++){var y=x[T];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,a(y.key),y)}}function i(m,x,T){return x&&o(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),m}function a(m){var x=u(m,"string");return typeof x=="symbol"?x:String(x)}function u(m,x){if(typeof m!="object"||m===null)return m;var T=m[Symbol.toPrimitive];if(T!==void 0){var y=T.call(m,x);if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(m)}var c=Vr(),l=c.Buffer,s=Qu(),f=s.inspect,h=f&&f.custom||"inspect";function E(m,x,T){l.prototype.copy.call(m,x,T)}return zi=(function(){function m(){n(this,m),this.head=null,this.tail=null,this.length=0}return i(m,[{key:"push",value:function(T){var y={data:T,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(T){var y={data:T,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var T=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,T}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(T){if(this.length===0)return"";for(var y=this.head,p=""+y.data;y=y.next;)p+=T+y.data;return p}},{key:"concat",value:function(T){if(this.length===0)return l.alloc(0);for(var y=l.allocUnsafe(T>>>0),p=this.head,d=0;p;)E(p.data,y,d),d+=p.data.length,p=p.next;return y}},{key:"consume",value:function(T,y){var p;return T<this.head.data.length?(p=this.head.data.slice(0,T),this.head.data=this.head.data.slice(T)):T===this.head.data.length?p=this.shift():p=y?this._getString(T):this._getBuffer(T),p}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(T){var y=this.head,p=1,d=y.data;for(T-=d.length;y=y.next;){var g=y.data,v=T>g.length?g.length:T;if(v===g.length?d+=g:d+=g.slice(0,T),T-=v,T===0){v===g.length?(++p,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=g.slice(v));break}++p}return this.length-=p,d}},{key:"_getBuffer",value:function(T){var y=l.allocUnsafe(T),p=this.head,d=1;for(p.data.copy(y),T-=p.data.length;p=p.next;){var g=p.data,v=T>g.length?g.length:T;if(g.copy(y,y.length-T,0,v),T-=v,T===0){v===g.length?(++d,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=g.slice(v));break}++d}return this.length-=d,y}},{key:h,value:function(T,y){return f(this,t(t({},y),{},{depth:0,customInspect:!1}))}}]),m})(),zi}var Xi,tl;function rl(){if(tl)return Xi;tl=1;function e(a,u){var c=this,l=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return l||s?(u?u(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ye.nextTick(o,this,a)):ye.nextTick(o,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(f){!u&&f?c._writableState?c._writableState.errorEmitted?ye.nextTick(r,c):(c._writableState.errorEmitted=!0,ye.nextTick(t,c,f)):ye.nextTick(t,c,f):u?(ye.nextTick(r,c),u(f)):ye.nextTick(r,c)}),this)}function t(a,u){o(a,u),r(a)}function r(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(a,u){a.emit("error",u)}function i(a,u){var c=a._readableState,l=a._writableState;c&&c.autoDestroy||l&&l.autoDestroy?a.destroy(u):a.emit("error",u)}return Xi={destroy:e,undestroy:n,errorOrDestroy:i},Xi}var Yi={},nl;function Yt(){if(nl)return Yi;nl=1;function e(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,u.__proto__=c}var t={};function r(u,c,l){l||(l=Error);function s(h,E,m){return typeof c=="string"?c:c(h,E,m)}var f=(function(h){e(E,h);function E(m,x,T){return h.call(this,s(m,x,T))||this}return E})(l);f.prototype.name=l.name,f.prototype.code=u,t[u]=f}function n(u,c){if(Array.isArray(u)){var l=u.length;return u=u.map(function(s){return String(s)}),l>2?"one of ".concat(c," ").concat(u.slice(0,l-1).join(", "),", or ")+u[l-1]:l===2?"one of ".concat(c," ").concat(u[0]," or ").concat(u[1]):"of ".concat(c," ").concat(u[0])}else return"of ".concat(c," ").concat(String(u))}function o(u,c,l){return u.substr(0,c.length)===c}function i(u,c,l){return(l===void 0||l>u.length)&&(l=u.length),u.substring(l-c.length,l)===c}function a(u,c,l){return typeof l!="number"&&(l=0),l+c.length>u.length?!1:u.indexOf(c,l)!==-1}return r("ERR_INVALID_OPT_VALUE",function(u,c){return'The value "'+c+'" is invalid for option "'+u+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(u,c,l){var s;typeof c=="string"&&o(c,"not ")?(s="must not be",c=c.replace(/^not /,"")):s="must be";var f;if(i(u," argument"))f="The ".concat(u," ").concat(s," ").concat(n(c,"type"));else{var h=a(u,".")?"property":"argument";f='The "'.concat(u,'" ').concat(h," ").concat(s," ").concat(n(c,"type"))}return f+=". Received type ".concat(typeof l),f},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(u){return"The "+u+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(u){return"Cannot call "+u+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(u){return"Unknown encoding: "+u},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Yi.codes=t,Yi}var Ji,il;function ol(){if(il)return Ji;il=1;var e=Yt().codes.ERR_INVALID_OPT_VALUE;function t(n,o,i){return n.highWaterMark!=null?n.highWaterMark:o?n[i]:null}function r(n,o,i,a){var u=t(o,a,i);if(u!=null){if(!(isFinite(u)&&Math.floor(u)===u)||u<0){var c=a?i:"highWaterMark";throw new e(c,u)}return Math.floor(u)}return n.objectMode?16:16*1024}return Ji={getHighWaterMark:r},Ji}var Zi,sl;function y0(){if(sl)return Zi;sl=1,Zi=e;function e(r,n){if(t("noDeprecation"))return r;var o=!1;function i(){if(!o){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),o=!0}return r.apply(this,arguments)}return i}function t(r){try{if(!St.localStorage)return!1}catch{return!1}var n=St.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return Zi}var Qi,al;function ul(){if(al)return Qi;al=1,Qi=I;function e(V){var R=this;this.next=null,this.entry=null,this.finish=function(){ae(R,V)}}var t;I.WritableState=A;var r={deprecate:y0()},n=qa(),o=Vr().Buffer,i=(typeof St<"u"?St:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(V){return o.from(V)}function u(V){return o.isBuffer(V)||V instanceof i}var c=rl(),l=ol(),s=l.getHighWaterMark,f=Yt().codes,h=f.ERR_INVALID_ARG_TYPE,E=f.ERR_METHOD_NOT_IMPLEMENTED,m=f.ERR_MULTIPLE_CALLBACK,x=f.ERR_STREAM_CANNOT_PIPE,T=f.ERR_STREAM_DESTROYED,y=f.ERR_STREAM_NULL_VALUES,p=f.ERR_STREAM_WRITE_AFTER_END,d=f.ERR_UNKNOWN_ENCODING,g=c.errorOrDestroy;jt()(I,n);function v(){}function A(V,R,N){t=t||Jt(),V=V||{},typeof N!="boolean"&&(N=R instanceof t),this.objectMode=!!V.objectMode,N&&(this.objectMode=this.objectMode||!!V.writableObjectMode),this.highWaterMark=s(this,V,"writableHighWaterMark",N),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var q=V.decodeStrings===!1;this.decodeStrings=!q,this.defaultEncoding=V.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function($){ue(R,$)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=V.emitClose!==!1,this.autoDestroy=!!V.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}A.prototype.getBuffer=function(){for(var R=this.bufferedRequest,N=[];R;)N.push(R),R=R.next;return N},(function(){try{Object.defineProperty(A.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var P;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(P=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(R){return P.call(this,R)?!0:this!==I?!1:R&&R._writableState instanceof A}})):P=function(R){return R instanceof this};function I(V){t=t||Jt();var R=this instanceof t;if(!R&&!P.call(I,this))return new I(V);this._writableState=new A(V,this,R),this.writable=!0,V&&(typeof V.write=="function"&&(this._write=V.write),typeof V.writev=="function"&&(this._writev=V.writev),typeof V.destroy=="function"&&(this._destroy=V.destroy),typeof V.final=="function"&&(this._final=V.final)),n.call(this)}I.prototype.pipe=function(){g(this,new x)};function O(V,R){var N=new p;g(V,N),ye.nextTick(R,N)}function j(V,R,N,q){var $;return N===null?$=new y:typeof N!="string"&&!R.objectMode&&($=new h("chunk",["string","Buffer"],N)),$?(g(V,$),ye.nextTick(q,$),!1):!0}I.prototype.write=function(V,R,N){var q=this._writableState,$=!1,B=!q.objectMode&&u(V);return B&&!o.isBuffer(V)&&(V=a(V)),typeof R=="function"&&(N=R,R=null),B?R="buffer":R||(R=q.defaultEncoding),typeof N!="function"&&(N=v),q.ending?O(this,N):(B||j(this,q,V,N))&&(q.pendingcb++,$=L(this,q,B,V,R,N)),$},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var V=this._writableState;V.corked&&(V.corked--,!V.writing&&!V.corked&&!V.bufferProcessing&&V.bufferedRequest&&fe(this,V))},I.prototype.setDefaultEncoding=function(R){if(typeof R=="string"&&(R=R.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((R+"").toLowerCase())>-1))throw new d(R);return this._writableState.defaultEncoding=R,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function K(V,R,N){return!V.objectMode&&V.decodeStrings!==!1&&typeof R=="string"&&(R=o.from(R,N)),R}Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(V,R,N,q,$,B){if(!N){var U=K(R,q,$);q!==U&&(N=!0,$="buffer",q=U)}var J=R.objectMode?1:q.length;R.length+=J;var oe=R.length<R.highWaterMark;if(oe||(R.needDrain=!0),R.writing||R.corked){var ge=R.lastBufferedRequest;R.lastBufferedRequest={chunk:q,encoding:$,isBuf:N,callback:B,next:null},ge?ge.next=R.lastBufferedRequest:R.bufferedRequest=R.lastBufferedRequest,R.bufferedRequestCount+=1}else k(V,R,!1,J,q,$,B);return oe}function k(V,R,N,q,$,B,U){R.writelen=q,R.writecb=U,R.writing=!0,R.sync=!0,R.destroyed?R.onwrite(new T("write")):N?V._writev($,R.onwrite):V._write($,B,R.onwrite),R.sync=!1}function re(V,R,N,q,$){--R.pendingcb,N?(ye.nextTick($,q),ye.nextTick(Z,V,R),V._writableState.errorEmitted=!0,g(V,q)):($(q),V._writableState.errorEmitted=!0,g(V,q),Z(V,R))}function ee(V){V.writing=!1,V.writecb=null,V.length-=V.writelen,V.writelen=0}function ue(V,R){var N=V._writableState,q=N.sync,$=N.writecb;if(typeof $!="function")throw new m;if(ee(N),R)re(V,N,q,R,$);else{var B=be(N)||V.destroyed;!B&&!N.corked&&!N.bufferProcessing&&N.bufferedRequest&&fe(V,N),q?ye.nextTick(le,V,N,B,$):le(V,N,B,$)}}function le(V,R,N,q){N||de(V,R),R.pendingcb--,q(),Z(V,R)}function de(V,R){R.length===0&&R.needDrain&&(R.needDrain=!1,V.emit("drain"))}function fe(V,R){R.bufferProcessing=!0;var N=R.bufferedRequest;if(V._writev&&N&&N.next){var q=R.bufferedRequestCount,$=new Array(q),B=R.corkedRequestsFree;B.entry=N;for(var U=0,J=!0;N;)$[U]=N,N.isBuf||(J=!1),N=N.next,U+=1;$.allBuffers=J,k(V,R,!0,R.length,$,"",B.finish),R.pendingcb++,R.lastBufferedRequest=null,B.next?(R.corkedRequestsFree=B.next,B.next=null):R.corkedRequestsFree=new e(R),R.bufferedRequestCount=0}else{for(;N;){var oe=N.chunk,ge=N.encoding,ce=N.callback,he=R.objectMode?1:oe.length;if(k(V,R,!1,he,oe,ge,ce),N=N.next,R.bufferedRequestCount--,R.writing)break}N===null&&(R.lastBufferedRequest=null)}R.bufferedRequest=N,R.bufferProcessing=!1}I.prototype._write=function(V,R,N){N(new E("_write()"))},I.prototype._writev=null,I.prototype.end=function(V,R,N){var q=this._writableState;return typeof V=="function"?(N=V,V=null,R=null):typeof R=="function"&&(N=R,R=null),V!=null&&this.write(V,R),q.corked&&(q.corked=1,this.uncork()),q.ending||Q(this,q,N),this},Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function be(V){return V.ending&&V.length===0&&V.bufferedRequest===null&&!V.finished&&!V.writing}function pe(V,R){V._final(function(N){R.pendingcb--,N&&g(V,N),R.prefinished=!0,V.emit("prefinish"),Z(V,R)})}function G(V,R){!R.prefinished&&!R.finalCalled&&(typeof V._final=="function"&&!R.destroyed?(R.pendingcb++,R.finalCalled=!0,ye.nextTick(pe,V,R)):(R.prefinished=!0,V.emit("prefinish")))}function Z(V,R){var N=be(R);if(N&&(G(V,R),R.pendingcb===0&&(R.finished=!0,V.emit("finish"),R.autoDestroy))){var q=V._readableState;(!q||q.autoDestroy&&q.endEmitted)&&V.destroy()}return N}function Q(V,R,N){R.ending=!0,Z(V,R),N&&(R.finished?ye.nextTick(N):V.once("finish",N)),R.ended=!0,V.writable=!1}function ae(V,R,N){var q=V.entry;for(V.entry=null;q;){var $=q.callback;R.pendingcb--,$(N),q=q.next}R.corkedRequestsFree.next=V}return Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(R){this._writableState&&(this._writableState.destroyed=R)}}),I.prototype.destroy=c.destroy,I.prototype._undestroy=c.undestroy,I.prototype._destroy=function(V,R){R(V)},Qi}var eo,ll;function Jt(){if(ll)return eo;ll=1;var e=Object.keys||function(l){var s=[];for(var f in l)s.push(f);return s};eo=a;var t=yl(),r=ul();jt()(a,t);for(var n=e(r.prototype),o=0;o<n.length;o++){var i=n[o];a.prototype[i]||(a.prototype[i]=r.prototype[i])}function a(l){if(!(this instanceof a))return new a(l);t.call(this,l),r.call(this,l),this.allowHalfOpen=!0,l&&(l.readable===!1&&(this.readable=!1),l.writable===!1&&(this.writable=!1),l.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",u)))}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function u(){this._writableState.ended||ye.nextTick(c,this)}function c(l){l.end()}return Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(s){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=s,this._writableState.destroyed=s)}}),eo}var to={},Kr={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var cl;function m0(){return cl||(cl=1,(function(e,t){var r=Vr(),n=r.Buffer;function o(a,u){for(var c in a)u[c]=a[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i);function i(a,u,c){return n(a,u,c)}i.prototype=Object.create(n.prototype),o(n,i),i.from=function(a,u,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,u,c)},i.alloc=function(a,u,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var l=n(a);return u!==void 0?typeof c=="string"?l.fill(u,c):l.fill(u):l.fill(0),l},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}})(Kr,Kr.exports)),Kr.exports}var fl;function ro(){if(fl)return to;fl=1;var e=m0().Buffer,t=e.isEncoding||function(y){switch(y=""+y,y&&y.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(y){if(!y)return"utf8";for(var p;;)switch(y){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return y;default:if(p)return;y=(""+y).toLowerCase(),p=!0}}function n(y){var p=r(y);if(typeof p!="string"&&(e.isEncoding===t||!t(y)))throw new Error("Unknown encoding: "+y);return p||y}to.StringDecoder=o;function o(y){this.encoding=n(y);var p;switch(this.encoding){case"utf16le":this.text=f,this.end=h,p=4;break;case"utf8":this.fillLast=c,p=4;break;case"base64":this.text=E,this.end=m,p=3;break;default:this.write=x,this.end=T;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(p)}o.prototype.write=function(y){if(y.length===0)return"";var p,d;if(this.lastNeed){if(p=this.fillLast(y),p===void 0)return"";d=this.lastNeed,this.lastNeed=0}else d=0;return d<y.length?p?p+this.text(y,d):this.text(y,d):p||""},o.prototype.end=s,o.prototype.text=l,o.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length};function i(y){return y<=127?0:y>>5===6?2:y>>4===14?3:y>>3===30?4:y>>6===2?-1:-2}function a(y,p,d){var g=p.length-1;if(g<d)return 0;var v=i(p[g]);return v>=0?(v>0&&(y.lastNeed=v-1),v):--g<d||v===-2?0:(v=i(p[g]),v>=0?(v>0&&(y.lastNeed=v-2),v):--g<d||v===-2?0:(v=i(p[g]),v>=0?(v>0&&(v===2?v=0:y.lastNeed=v-3),v):0))}function u(y,p,d){if((p[0]&192)!==128)return y.lastNeed=0,"�";if(y.lastNeed>1&&p.length>1){if((p[1]&192)!==128)return y.lastNeed=1,"�";if(y.lastNeed>2&&p.length>2&&(p[2]&192)!==128)return y.lastNeed=2,"�"}}function c(y){var p=this.lastTotal-this.lastNeed,d=u(this,y);if(d!==void 0)return d;if(this.lastNeed<=y.length)return y.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,p,0,y.length),this.lastNeed-=y.length}function l(y,p){var d=a(this,y,p);if(!this.lastNeed)return y.toString("utf8",p);this.lastTotal=d;var g=y.length-(d-this.lastNeed);return y.copy(this.lastChar,0,g),y.toString("utf8",p,g)}function s(y){var p=y&&y.length?this.write(y):"";return this.lastNeed?p+"�":p}function f(y,p){if((y.length-p)%2===0){var d=y.toString("utf16le",p);if(d){var g=d.charCodeAt(d.length-1);if(g>=55296&&g<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],d.slice(0,-1)}return d}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",p,y.length-1)}function h(y){var p=y&&y.length?this.write(y):"";if(this.lastNeed){var d=this.lastTotal-this.lastNeed;return p+this.lastChar.toString("utf16le",0,d)}return p}function E(y,p){var d=(y.length-p)%3;return d===0?y.toString("base64",p):(this.lastNeed=3-d,this.lastTotal=3,d===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",p,y.length-d))}function m(y){var p=y&&y.length?this.write(y):"";return this.lastNeed?p+this.lastChar.toString("base64",0,3-this.lastNeed):p}function x(y){return y.toString(this.encoding)}function T(y){return y&&y.length?this.write(y):""}return to}var no,hl;function io(){if(hl)return no;hl=1;var e=Yt().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var a=!1;return function(){if(!a){a=!0;for(var u=arguments.length,c=new Array(u),l=0;l<u;l++)c[l]=arguments[l];i.apply(this,c)}}}function r(){}function n(i){return i.setHeader&&typeof i.abort=="function"}function o(i,a,u){if(typeof a=="function")return o(i,null,a);a||(a={}),u=t(u||r);var c=a.readable||a.readable!==!1&&i.readable,l=a.writable||a.writable!==!1&&i.writable,s=function(){i.writable||h()},f=i._writableState&&i._writableState.finished,h=function(){l=!1,f=!0,c||u.call(i)},E=i._readableState&&i._readableState.endEmitted,m=function(){c=!1,E=!0,l||u.call(i)},x=function(d){u.call(i,d)},T=function(){var d;if(c&&!E)return(!i._readableState||!i._readableState.ended)&&(d=new e),u.call(i,d);if(l&&!f)return(!i._writableState||!i._writableState.ended)&&(d=new e),u.call(i,d)},y=function(){i.req.on("finish",h)};return n(i)?(i.on("complete",h),i.on("abort",T),i.req?y():i.on("request",y)):l&&!i._writableState&&(i.on("end",s),i.on("close",s)),i.on("end",m),i.on("finish",h),a.error!==!1&&i.on("error",x),i.on("close",T),function(){i.removeListener("complete",h),i.removeListener("abort",T),i.removeListener("request",y),i.req&&i.req.removeListener("finish",h),i.removeListener("end",s),i.removeListener("close",s),i.removeListener("finish",h),i.removeListener("end",m),i.removeListener("error",x),i.removeListener("close",T)}}return no=o,no}var oo,dl;function b0(){if(dl)return oo;dl=1;var e;function t(d,g,v){return g=r(g),g in d?Object.defineProperty(d,g,{value:v,enumerable:!0,configurable:!0,writable:!0}):d[g]=v,d}function r(d){var g=n(d,"string");return typeof g=="symbol"?g:String(g)}function n(d,g){if(typeof d!="object"||d===null)return d;var v=d[Symbol.toPrimitive];if(v!==void 0){var A=v.call(d,g);if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(d)}var o=io(),i=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),s=Symbol("handlePromise"),f=Symbol("stream");function h(d,g){return{value:d,done:g}}function E(d){var g=d[i];if(g!==null){var v=d[f].read();v!==null&&(d[l]=null,d[i]=null,d[a]=null,g(h(v,!1)))}}function m(d){ye.nextTick(E,d)}function x(d,g){return function(v,A){d.then(function(){if(g[c]){v(h(void 0,!0));return}g[s](v,A)},A)}}var T=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((e={get stream(){return this[f]},next:function(){var g=this,v=this[u];if(v!==null)return Promise.reject(v);if(this[c])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise(function(O,j){ye.nextTick(function(){g[u]?j(g[u]):O(h(void 0,!0))})});var A=this[l],P;if(A)P=new Promise(x(A,this));else{var I=this[f].read();if(I!==null)return Promise.resolve(h(I,!1));P=new Promise(this[s])}return this[l]=P,P}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var g=this;return new Promise(function(v,A){g[f].destroy(null,function(P){if(P){A(P);return}v(h(void 0,!0))})})}),e),T),p=function(g){var v,A=Object.create(y,(v={},t(v,f,{value:g,writable:!0}),t(v,i,{value:null,writable:!0}),t(v,a,{value:null,writable:!0}),t(v,u,{value:null,writable:!0}),t(v,c,{value:g._readableState.endEmitted,writable:!0}),t(v,s,{value:function(I,O){var j=A[f].read();j?(A[l]=null,A[i]=null,A[a]=null,I(h(j,!1))):(A[i]=I,A[a]=O)},writable:!0}),v));return A[l]=null,o(g,function(P){if(P&&P.code!=="ERR_STREAM_PREMATURE_CLOSE"){var I=A[a];I!==null&&(A[l]=null,A[i]=null,A[a]=null,I(P)),A[u]=P;return}var O=A[i];O!==null&&(A[l]=null,A[i]=null,A[a]=null,O(h(void 0,!0))),A[c]=!0}),g.on("readable",m.bind(null,A)),A};return oo=p,oo}var so,pl;function w0(){return pl||(pl=1,so=function(){throw new Error("Readable.from is not available in the browser")}),so}var ao,gl;function yl(){if(gl)return ao;gl=1,ao=O;var e;O.ReadableState=I,$n().EventEmitter;var t=function(U,J){return U.listeners(J).length},r=qa(),n=Vr().Buffer,o=(typeof St<"u"?St:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(B){return n.from(B)}function a(B){return n.isBuffer(B)||B instanceof o}var u=Qu(),c;u&&u.debuglog?c=u.debuglog("stream"):c=function(){};var l=g0(),s=rl(),f=ol(),h=f.getHighWaterMark,E=Yt().codes,m=E.ERR_INVALID_ARG_TYPE,x=E.ERR_STREAM_PUSH_AFTER_EOF,T=E.ERR_METHOD_NOT_IMPLEMENTED,y=E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,d,g;jt()(O,r);var v=s.errorOrDestroy,A=["error","close","destroy","pause","resume"];function P(B,U,J){if(typeof B.prependListener=="function")return B.prependListener(U,J);!B._events||!B._events[U]?B.on(U,J):Array.isArray(B._events[U])?B._events[U].unshift(J):B._events[U]=[J,B._events[U]]}function I(B,U,J){e=e||Jt(),B=B||{},typeof J!="boolean"&&(J=U instanceof e),this.objectMode=!!B.objectMode,J&&(this.objectMode=this.objectMode||!!B.readableObjectMode),this.highWaterMark=h(this,B,"readableHighWaterMark",J),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=B.emitClose!==!1,this.autoDestroy=!!B.autoDestroy,this.destroyed=!1,this.defaultEncoding=B.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,B.encoding&&(p||(p=ro().StringDecoder),this.decoder=new p(B.encoding),this.encoding=B.encoding)}function O(B){if(e=e||Jt(),!(this instanceof O))return new O(B);var U=this instanceof e;this._readableState=new I(B,this,U),this.readable=!0,B&&(typeof B.read=="function"&&(this._read=B.read),typeof B.destroy=="function"&&(this._destroy=B.destroy)),r.call(this)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(U){this._readableState&&(this._readableState.destroyed=U)}}),O.prototype.destroy=s.destroy,O.prototype._undestroy=s.undestroy,O.prototype._destroy=function(B,U){U(B)},O.prototype.push=function(B,U){var J=this._readableState,oe;return J.objectMode?oe=!0:typeof B=="string"&&(U=U||J.defaultEncoding,U!==J.encoding&&(B=n.from(B,U),U=""),oe=!0),j(this,B,U,!1,oe)},O.prototype.unshift=function(B){return j(this,B,null,!0,!1)};function j(B,U,J,oe,ge){c("readableAddChunk",U);var ce=B._readableState;if(U===null)ce.reading=!1,ue(B,ce);else{var he;if(ge||(he=L(ce,U)),he)v(B,he);else if(ce.objectMode||U&&U.length>0)if(typeof U!="string"&&!ce.objectMode&&Object.getPrototypeOf(U)!==n.prototype&&(U=i(U)),oe)ce.endEmitted?v(B,new y):K(B,ce,U,!0);else if(ce.ended)v(B,new x);else{if(ce.destroyed)return!1;ce.reading=!1,ce.decoder&&!J?(U=ce.decoder.write(U),ce.objectMode||U.length!==0?K(B,ce,U,!1):fe(B,ce)):K(B,ce,U,!1)}else oe||(ce.reading=!1,fe(B,ce))}return!ce.ended&&(ce.length<ce.highWaterMark||ce.length===0)}function K(B,U,J,oe){U.flowing&&U.length===0&&!U.sync?(U.awaitDrain=0,B.emit("data",J)):(U.length+=U.objectMode?1:J.length,oe?U.buffer.unshift(J):U.buffer.push(J),U.needReadable&&le(B)),fe(B,U)}function L(B,U){var J;return!a(U)&&typeof U!="string"&&U!==void 0&&!B.objectMode&&(J=new m("chunk",["string","Buffer","Uint8Array"],U)),J}O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(B){p||(p=ro().StringDecoder);var U=new p(B);this._readableState.decoder=U,this._readableState.encoding=this._readableState.decoder.encoding;for(var J=this._readableState.buffer.head,oe="";J!==null;)oe+=U.write(J.data),J=J.next;return this._readableState.buffer.clear(),oe!==""&&this._readableState.buffer.push(oe),this._readableState.length=oe.length,this};var k=1073741824;function re(B){return B>=k?B=k:(B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++),B}function ee(B,U){return B<=0||U.length===0&&U.ended?0:U.objectMode?1:B!==B?U.flowing&&U.length?U.buffer.head.data.length:U.length:(B>U.highWaterMark&&(U.highWaterMark=re(B)),B<=U.length?B:U.ended?U.length:(U.needReadable=!0,0))}O.prototype.read=function(B){c("read",B),B=parseInt(B,10);var U=this._readableState,J=B;if(B!==0&&(U.emittedReadable=!1),B===0&&U.needReadable&&((U.highWaterMark!==0?U.length>=U.highWaterMark:U.length>0)||U.ended))return c("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?N(this):le(this),null;if(B=ee(B,U),B===0&&U.ended)return U.length===0&&N(this),null;var oe=U.needReadable;c("need readable",oe),(U.length===0||U.length-B<U.highWaterMark)&&(oe=!0,c("length less than watermark",oe)),U.ended||U.reading?(oe=!1,c("reading or ended",oe)):oe&&(c("do read"),U.reading=!0,U.sync=!0,U.length===0&&(U.needReadable=!0),this._read(U.highWaterMark),U.sync=!1,U.reading||(B=ee(J,U)));var ge;return B>0?ge=R(B,U):ge=null,ge===null?(U.needReadable=U.length<=U.highWaterMark,B=0):(U.length-=B,U.awaitDrain=0),U.length===0&&(U.ended||(U.needReadable=!0),J!==B&&U.ended&&N(this)),ge!==null&&this.emit("data",ge),ge};function ue(B,U){if(c("onEofChunk"),!U.ended){if(U.decoder){var J=U.decoder.end();J&&J.length&&(U.buffer.push(J),U.length+=U.objectMode?1:J.length)}U.ended=!0,U.sync?le(B):(U.needReadable=!1,U.emittedReadable||(U.emittedReadable=!0,de(B)))}}function le(B){var U=B._readableState;c("emitReadable",U.needReadable,U.emittedReadable),U.needReadable=!1,U.emittedReadable||(c("emitReadable",U.flowing),U.emittedReadable=!0,ye.nextTick(de,B))}function de(B){var U=B._readableState;c("emitReadable_",U.destroyed,U.length,U.ended),!U.destroyed&&(U.length||U.ended)&&(B.emit("readable"),U.emittedReadable=!1),U.needReadable=!U.flowing&&!U.ended&&U.length<=U.highWaterMark,V(B)}function fe(B,U){U.readingMore||(U.readingMore=!0,ye.nextTick(be,B,U))}function be(B,U){for(;!U.reading&&!U.ended&&(U.length<U.highWaterMark||U.flowing&&U.length===0);){var J=U.length;if(c("maybeReadMore read 0"),B.read(0),J===U.length)break}U.readingMore=!1}O.prototype._read=function(B){v(this,new T("_read()"))},O.prototype.pipe=function(B,U){var J=this,oe=this._readableState;switch(oe.pipesCount){case 0:oe.pipes=B;break;case 1:oe.pipes=[oe.pipes,B];break;default:oe.pipes.push(B);break}oe.pipesCount+=1,c("pipe count=%d opts=%j",oe.pipesCount,U);var ge=(!U||U.end!==!1)&&B!==ye.stdout&&B!==ye.stderr,ce=ge?Oe:ut;oe.endEmitted?ye.nextTick(ce):J.once("end",ce),B.on("unpipe",he);function he(ft,Ve){c("onunpipe"),ft===J&&Ve&&Ve.hasUnpiped===!1&&(Ve.hasUnpiped=!0,Me())}function Oe(){c("onend"),B.end()}var te=pe(J);B.on("drain",te);var He=!1;function Me(){c("cleanup"),B.removeListener("close",Ye),B.removeListener("finish",Ge),B.removeListener("drain",te),B.removeListener("error",Ne),B.removeListener("unpipe",he),J.removeListener("end",Oe),J.removeListener("end",ut),J.removeListener("data",xe),He=!0,oe.awaitDrain&&(!B._writableState||B._writableState.needDrain)&&te()}J.on("data",xe);function xe(ft){c("ondata");var Ve=B.write(ft);c("dest.write",Ve),Ve===!1&&((oe.pipesCount===1&&oe.pipes===B||oe.pipesCount>1&&$(oe.pipes,B)!==-1)&&!He&&(c("false write response, pause",oe.awaitDrain),oe.awaitDrain++),J.pause())}function Ne(ft){c("onerror",ft),ut(),B.removeListener("error",Ne),t(B,"error")===0&&v(B,ft)}P(B,"error",Ne);function Ye(){B.removeListener("finish",Ge),ut()}B.once("close",Ye);function Ge(){c("onfinish"),B.removeListener("close",Ye),ut()}B.once("finish",Ge);function ut(){c("unpipe"),J.unpipe(B)}return B.emit("pipe",J),oe.flowing||(c("pipe resume"),J.resume()),B};function pe(B){return function(){var J=B._readableState;c("pipeOnDrain",J.awaitDrain),J.awaitDrain&&J.awaitDrain--,J.awaitDrain===0&&t(B,"data")&&(J.flowing=!0,V(B))}}O.prototype.unpipe=function(B){var U=this._readableState,J={hasUnpiped:!1};if(U.pipesCount===0)return this;if(U.pipesCount===1)return B&&B!==U.pipes?this:(B||(B=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,B&&B.emit("unpipe",this,J),this);if(!B){var oe=U.pipes,ge=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var ce=0;ce<ge;ce++)oe[ce].emit("unpipe",this,{hasUnpiped:!1});return this}var he=$(U.pipes,B);return he===-1?this:(U.pipes.splice(he,1),U.pipesCount-=1,U.pipesCount===1&&(U.pipes=U.pipes[0]),B.emit("unpipe",this,J),this)},O.prototype.on=function(B,U){var J=r.prototype.on.call(this,B,U),oe=this._readableState;return B==="data"?(oe.readableListening=this.listenerCount("readable")>0,oe.flowing!==!1&&this.resume()):B==="readable"&&!oe.endEmitted&&!oe.readableListening&&(oe.readableListening=oe.needReadable=!0,oe.flowing=!1,oe.emittedReadable=!1,c("on readable",oe.length,oe.reading),oe.length?le(this):oe.reading||ye.nextTick(Z,this)),J},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(B,U){var J=r.prototype.removeListener.call(this,B,U);return B==="readable"&&ye.nextTick(G,this),J},O.prototype.removeAllListeners=function(B){var U=r.prototype.removeAllListeners.apply(this,arguments);return(B==="readable"||B===void 0)&&ye.nextTick(G,this),U};function G(B){var U=B._readableState;U.readableListening=B.listenerCount("readable")>0,U.resumeScheduled&&!U.paused?U.flowing=!0:B.listenerCount("data")>0&&B.resume()}function Z(B){c("readable nexttick read 0"),B.read(0)}O.prototype.resume=function(){var B=this._readableState;return B.flowing||(c("resume"),B.flowing=!B.readableListening,Q(this,B)),B.paused=!1,this};function Q(B,U){U.resumeScheduled||(U.resumeScheduled=!0,ye.nextTick(ae,B,U))}function ae(B,U){c("resume",U.reading),U.reading||B.read(0),U.resumeScheduled=!1,B.emit("resume"),V(B),U.flowing&&!U.reading&&B.read(0)}O.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function V(B){var U=B._readableState;for(c("flow",U.flowing);U.flowing&&B.read()!==null;);}O.prototype.wrap=function(B){var U=this,J=this._readableState,oe=!1;B.on("end",function(){if(c("wrapped end"),J.decoder&&!J.ended){var he=J.decoder.end();he&&he.length&&U.push(he)}U.push(null)}),B.on("data",function(he){if(c("wrapped data"),J.decoder&&(he=J.decoder.write(he)),!(J.objectMode&&he==null)&&!(!J.objectMode&&(!he||!he.length))){var Oe=U.push(he);Oe||(oe=!0,B.pause())}});for(var ge in B)this[ge]===void 0&&typeof B[ge]=="function"&&(this[ge]=(function(Oe){return function(){return B[Oe].apply(B,arguments)}})(ge));for(var ce=0;ce<A.length;ce++)B.on(A[ce],this.emit.bind(this,A[ce]));return this._read=function(he){c("wrapped _read",he),oe&&(oe=!1,B.resume())},this},typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return d===void 0&&(d=b0()),d(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(U){this._readableState&&(this._readableState.flowing=U)}}),O._fromList=R,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function R(B,U){if(U.length===0)return null;var J;return U.objectMode?J=U.buffer.shift():!B||B>=U.length?(U.decoder?J=U.buffer.join(""):U.buffer.length===1?J=U.buffer.first():J=U.buffer.concat(U.length),U.buffer.clear()):J=U.buffer.consume(B,U.decoder),J}function N(B){var U=B._readableState;c("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,ye.nextTick(q,U,B))}function q(B,U){if(c("endReadableNT",B.endEmitted,B.length),!B.endEmitted&&B.length===0&&(B.endEmitted=!0,U.readable=!1,U.emit("end"),B.autoDestroy)){var J=U._writableState;(!J||J.autoDestroy&&J.finished)&&U.destroy()}}typeof Symbol=="function"&&(O.from=function(B,U){return g===void 0&&(g=w0()),g(O,B,U)});function $(B,U){for(var J=0,oe=B.length;J<oe;J++)if(B[J]===U)return J;return-1}return ao}var uo,ml;function bl(){if(ml)return uo;ml=1,uo=u;var e=Yt().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,i=Jt();jt()(u,i);function a(s,f){var h=this._transformState;h.transforming=!1;var E=h.writecb;if(E===null)return this.emit("error",new r);h.writechunk=null,h.writecb=null,f!=null&&this.push(f),E(s);var m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}function u(s){if(!(this instanceof u))return new u(s);i.call(this,s),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,s&&(typeof s.transform=="function"&&(this._transform=s.transform),typeof s.flush=="function"&&(this._flush=s.flush)),this.on("prefinish",c)}function c(){var s=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(f,h){l(s,f,h)}):l(this,null,null)}u.prototype.push=function(s,f){return this._transformState.needTransform=!1,i.prototype.push.call(this,s,f)},u.prototype._transform=function(s,f,h){h(new t("_transform()"))},u.prototype._write=function(s,f,h){var E=this._transformState;if(E.writecb=h,E.writechunk=s,E.writeencoding=f,!E.transforming){var m=this._readableState;(E.needTransform||m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}},u.prototype._read=function(s){var f=this._transformState;f.writechunk!==null&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},u.prototype._destroy=function(s,f){i.prototype._destroy.call(this,s,function(h){f(h)})};function l(s,f,h){if(f)return s.emit("error",f);if(h!=null&&s.push(h),s._writableState.length)throw new o;if(s._transformState.transforming)throw new n;return s.push(null)}return uo}var lo,wl;function v0(){if(wl)return lo;wl=1,lo=t;var e=bl();jt()(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,o){o(null,r)},lo}var co,vl;function E0(){if(vl)return co;vl=1;var e;function t(h){var E=!1;return function(){E||(E=!0,h.apply(void 0,arguments))}}var r=Yt().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function i(h){if(h)throw h}function a(h){return h.setHeader&&typeof h.abort=="function"}function u(h,E,m,x){x=t(x);var T=!1;h.on("close",function(){T=!0}),e===void 0&&(e=io()),e(h,{readable:E,writable:m},function(p){if(p)return x(p);T=!0,x()});var y=!1;return function(p){if(!T&&!y){if(y=!0,a(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();x(p||new o("pipe"))}}}function c(h){h()}function l(h,E){return h.pipe(E)}function s(h){return!h.length||typeof h[h.length-1]!="function"?i:h.pop()}function f(){for(var h=arguments.length,E=new Array(h),m=0;m<h;m++)E[m]=arguments[m];var x=s(E);if(Array.isArray(E[0])&&(E=E[0]),E.length<2)throw new n("streams");var T,y=E.map(function(p,d){var g=d<E.length-1,v=d>0;return u(p,g,v,function(A){T||(T=A),A&&y.forEach(c),!g&&(y.forEach(c),x(T))})});return E.reduce(l)}return co=f,co}var fo,El;function x0(){if(El)return fo;El=1,fo=r;var e=$n().EventEmitter,t=jt();t(r,e),r.Readable=yl(),r.Writable=ul(),r.Duplex=Jt(),r.Transform=bl(),r.PassThrough=v0(),r.finished=io(),r.pipeline=E0(),r.Stream=r;function r(){e.call(this)}return r.prototype.pipe=function(n,o){var i=this;function a(E){n.writable&&n.write(E)===!1&&i.pause&&i.pause()}i.on("data",a);function u(){i.readable&&i.resume&&i.resume()}n.on("drain",u),!n._isStdio&&(!o||o.end!==!1)&&(i.on("end",l),i.on("close",s));var c=!1;function l(){c||(c=!0,n.end())}function s(){c||(c=!0,typeof n.destroy=="function"&&n.destroy())}function f(E){if(h(),e.listenerCount(this,"error")===0)throw E}i.on("error",f),n.on("error",f);function h(){i.removeListener("data",a),n.removeListener("drain",u),i.removeListener("end",l),i.removeListener("close",s),i.removeListener("error",f),n.removeListener("error",f),i.removeListener("end",h),i.removeListener("close",h),n.removeListener("close",h)}return i.on("end",h),i.on("close",h),n.on("close",h),n.emit("pipe",i),n},fo}var xl;function A0(){return xl||(xl=1,(function(e){(function(t){t.parser=function(R,N){return new n(R,N)},t.SAXParser=n,t.SAXStream=s,t.createStream=l,t.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(R,N){if(!(this instanceof n))return new n(R,N);var q=this;i(q),q.q=q.c="",q.bufferCheckPosition=t.MAX_BUFFER_LENGTH,q.opt=N||{},q.opt.lowercase=q.opt.lowercase||q.opt.lowercasetags,q.looseCase=q.opt.lowercase?"toLowerCase":"toUpperCase",q.tags=[],q.closed=q.closedRoot=q.sawRoot=!1,q.tag=q.error=null,q.strict=!!R,q.noscript=!!(R||q.opt.noscript),q.state=O.BEGIN,q.strictEntities=q.opt.strictEntities,q.ENTITIES=q.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),q.attribList=[],q.opt.xmlns&&(q.ns=Object.create(x)),q.opt.unquotedAttributeValues===void 0&&(q.opt.unquotedAttributeValues=!R),q.trackPosition=q.opt.position!==!1,q.trackPosition&&(q.position=q.line=q.column=0),K(q,"onready")}Object.create||(Object.create=function(R){function N(){}N.prototype=R;var q=new N;return q}),Object.keys||(Object.keys=function(R){var N=[];for(var q in R)R.hasOwnProperty(q)&&N.push(q);return N});function o(R){for(var N=Math.max(t.MAX_BUFFER_LENGTH,10),q=0,$=0,B=r.length;$<B;$++){var U=R[r[$]].length;if(U>N)switch(r[$]){case"textNode":k(R);break;case"cdata":L(R,"oncdata",R.cdata),R.cdata="";break;case"script":L(R,"onscript",R.script),R.script="";break;default:ee(R,"Max buffer length exceeded: "+r[$])}q=Math.max(q,U)}var J=t.MAX_BUFFER_LENGTH-q;R.bufferCheckPosition=J+R.position}function i(R){for(var N=0,q=r.length;N<q;N++)R[r[N]]=""}function a(R){k(R),R.cdata!==""&&(L(R,"oncdata",R.cdata),R.cdata=""),R.script!==""&&(L(R,"onscript",R.script),R.script="")}n.prototype={end:function(){ue(this)},write:V,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var u;try{u=x0().Stream}catch{u=function(){}}u||(u=function(){});var c=t.EVENTS.filter(function(R){return R!=="error"&&R!=="end"});function l(R,N){return new s(R,N)}function s(R,N){if(!(this instanceof s))return new s(R,N);u.apply(this),this._parser=new n(R,N),this.writable=!0,this.readable=!0;var q=this;this._parser.onend=function(){q.emit("end")},this._parser.onerror=function($){q.emit("error",$),q._parser.error=null},this._decoder=null,c.forEach(function($){Object.defineProperty(q,"on"+$,{get:function(){return q._parser["on"+$]},set:function(B){if(!B)return q.removeAllListeners($),q._parser["on"+$]=B,B;q.on($,B)},enumerable:!0,configurable:!1})})}s.prototype=Object.create(u.prototype,{constructor:{value:s}}),s.prototype.write=function(R){if(typeof Ht=="function"&&typeof Ht.isBuffer=="function"&&Ht.isBuffer(R)){if(!this._decoder){var N=ro().StringDecoder;this._decoder=new N("utf8")}R=this._decoder.write(R)}return this._parser.write(R.toString()),this.emit("data",R),!0},s.prototype.end=function(R){return R&&R.length&&this.write(R),this._parser.end(),!0},s.prototype.on=function(R,N){var q=this;return!q._parser["on"+R]&&c.indexOf(R)!==-1&&(q._parser["on"+R]=function(){var $=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);$.splice(0,0,R),q.emit.apply(q,$)}),u.prototype.on.call(q,R,N)};var f="[CDATA[",h="DOCTYPE",E="http://www.w3.org/XML/1998/namespace",m="http://www.w3.org/2000/xmlns/",x={xml:E,xmlns:m},T=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,p=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function g(R){return R===" "||R===`
|
|
26
|
-
`||R==="\r"||R===" "}function v(R){return R==='"'||R==="'"}function A(R){return R===">"||g(R)}function
|
|
25
|
+
`)+" "+Q[1]:Q[0]+Z+" "+G.join(", ")+" "+Q[1]}e.types=f0();function T(G){return Array.isArray(G)}e.isArray=T;function y(G){return typeof G=="boolean"}e.isBoolean=y;function p(G){return G===null}e.isNull=p;function d(G){return G==null}e.isNullOrUndefined=d;function g(G){return typeof G=="number"}e.isNumber=g;function v(G){return typeof G=="string"}e.isString=v;function A(G){return typeof G=="symbol"}e.isSymbol=A;function I(G){return G===void 0}e.isUndefined=I;function P(G){return O(G)&&re(G)==="[object RegExp]"}e.isRegExp=P,e.types.isRegExp=P;function O(G){return typeof G=="object"&&G!==null}e.isObject=O;function j(G){return O(G)&&re(G)==="[object Date]"}e.isDate=j,e.types.isDate=j;function K(G){return O(G)&&(re(G)==="[object Error]"||G instanceof Error)}e.isError=K,e.types.isNativeError=K;function L(G){return typeof G=="function"}e.isFunction=L;function k(G){return G===null||typeof G=="boolean"||typeof G=="number"||typeof G=="string"||typeof G=="symbol"||typeof G>"u"}e.isPrimitive=k,e.isBuffer=h0();function re(G){return Object.prototype.toString.call(G)}function ee(G){return G<10?"0"+G.toString(10):G.toString(10)}var ue=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function le(){var G=new Date,Z=[ee(G.getHours()),ee(G.getMinutes()),ee(G.getSeconds())].join(":");return[G.getDate(),ue[G.getMonth()],Z].join(" ")}e.log=function(){console.log("%s - %s",le(),e.format.apply(e,arguments))},e.inherits=jt(),e._extend=function(G,Z){if(!Z||!O(Z))return G;for(var Q=Object.keys(Z),ae=Q.length;ae--;)G[Q[ae]]=Z[Q[ae]];return G};function de(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)}var fe=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(Z){if(typeof Z!="function")throw new TypeError('The "original" argument must be of type Function');if(fe&&Z[fe]){var Q=Z[fe];if(typeof Q!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Q,fe,{value:Q,enumerable:!1,writable:!1,configurable:!0}),Q}function Q(){for(var ae,V,R=new Promise(function($,B){ae=$,V=B}),N=[],q=0;q<arguments.length;q++)N.push(arguments[q]);N.push(function($,B){$?V($):ae(B)});try{Z.apply(this,N)}catch($){V($)}return R}return Object.setPrototypeOf(Q,Object.getPrototypeOf(Z)),fe&&Object.defineProperty(Q,fe,{value:Q,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Q,t(Z))},e.promisify.custom=fe;function be(G,Z){if(!G){var Q=new Error("Promise was rejected with a falsy value");Q.reason=G,G=Q}return Z(G)}function pe(G){if(typeof G!="function")throw new TypeError('The "original" argument must be of type Function');function Z(){for(var Q=[],ae=0;ae<arguments.length;ae++)Q.push(arguments[ae]);var V=Q.pop();if(typeof V!="function")throw new TypeError("The last argument must be of type Function");var R=this,N=function(){return V.apply(R,arguments)};G.apply(this,Q).then(function(q){ye.nextTick(N.bind(null,null,q))},function(q){ye.nextTick(be.bind(null,q,N))})}return Object.setPrototypeOf(Z,Object.getPrototypeOf(G)),Object.defineProperties(Z,t(G)),Z}e.callbackify=pe})(Wn)),Wn}var Xi,Qu;function d0(){if(Qu)return Xi;Qu=1;function e(m,E){var T=Object.keys(m);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(m);E&&(y=y.filter(function(p){return Object.getOwnPropertyDescriptor(m,p).enumerable})),T.push.apply(T,y)}return T}function t(m){for(var E=1;E<arguments.length;E++){var T=arguments[E]!=null?arguments[E]:{};E%2?e(Object(T),!0).forEach(function(y){r(m,y,T[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(T)):e(Object(T)).forEach(function(y){Object.defineProperty(m,y,Object.getOwnPropertyDescriptor(T,y))})}return m}function r(m,E,T){return E=a(E),E in m?Object.defineProperty(m,E,{value:T,enumerable:!0,configurable:!0,writable:!0}):m[E]=T,m}function n(m,E){if(!(m instanceof E))throw new TypeError("Cannot call a class as a function")}function o(m,E){for(var T=0;T<E.length;T++){var y=E[T];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,a(y.key),y)}}function i(m,E,T){return E&&o(m.prototype,E),Object.defineProperty(m,"prototype",{writable:!1}),m}function a(m){var E=u(m,"string");return typeof E=="symbol"?E:String(E)}function u(m,E){if(typeof m!="object"||m===null)return m;var T=m[Symbol.toPrimitive];if(T!==void 0){var y=T.call(m,E);if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(m)}var c=Vr(),l=c.Buffer,s=Zu(),f=s.inspect,h=f&&f.custom||"inspect";function x(m,E,T){l.prototype.copy.call(m,E,T)}return Xi=(function(){function m(){n(this,m),this.head=null,this.tail=null,this.length=0}return i(m,[{key:"push",value:function(T){var y={data:T,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(T){var y={data:T,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var T=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,T}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(T){if(this.length===0)return"";for(var y=this.head,p=""+y.data;y=y.next;)p+=T+y.data;return p}},{key:"concat",value:function(T){if(this.length===0)return l.alloc(0);for(var y=l.allocUnsafe(T>>>0),p=this.head,d=0;p;)x(p.data,y,d),d+=p.data.length,p=p.next;return y}},{key:"consume",value:function(T,y){var p;return T<this.head.data.length?(p=this.head.data.slice(0,T),this.head.data=this.head.data.slice(T)):T===this.head.data.length?p=this.shift():p=y?this._getString(T):this._getBuffer(T),p}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(T){var y=this.head,p=1,d=y.data;for(T-=d.length;y=y.next;){var g=y.data,v=T>g.length?g.length:T;if(v===g.length?d+=g:d+=g.slice(0,T),T-=v,T===0){v===g.length?(++p,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=g.slice(v));break}++p}return this.length-=p,d}},{key:"_getBuffer",value:function(T){var y=l.allocUnsafe(T),p=this.head,d=1;for(p.data.copy(y),T-=p.data.length;p=p.next;){var g=p.data,v=T>g.length?g.length:T;if(g.copy(y,y.length-T,0,v),T-=v,T===0){v===g.length?(++d,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=g.slice(v));break}++d}return this.length-=d,y}},{key:h,value:function(T,y){return f(this,t(t({},y),{},{depth:0,customInspect:!1}))}}]),m})(),Xi}var Yi,el;function tl(){if(el)return Yi;el=1;function e(a,u){var c=this,l=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return l||s?(u?u(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ye.nextTick(o,this,a)):ye.nextTick(o,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(f){!u&&f?c._writableState?c._writableState.errorEmitted?ye.nextTick(r,c):(c._writableState.errorEmitted=!0,ye.nextTick(t,c,f)):ye.nextTick(t,c,f):u?(ye.nextTick(r,c),u(f)):ye.nextTick(r,c)}),this)}function t(a,u){o(a,u),r(a)}function r(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(a,u){a.emit("error",u)}function i(a,u){var c=a._readableState,l=a._writableState;c&&c.autoDestroy||l&&l.autoDestroy?a.destroy(u):a.emit("error",u)}return Yi={destroy:e,undestroy:n,errorOrDestroy:i},Yi}var Ji={},rl;function Yt(){if(rl)return Ji;rl=1;function e(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,u.__proto__=c}var t={};function r(u,c,l){l||(l=Error);function s(h,x,m){return typeof c=="string"?c:c(h,x,m)}var f=(function(h){e(x,h);function x(m,E,T){return h.call(this,s(m,E,T))||this}return x})(l);f.prototype.name=l.name,f.prototype.code=u,t[u]=f}function n(u,c){if(Array.isArray(u)){var l=u.length;return u=u.map(function(s){return String(s)}),l>2?"one of ".concat(c," ").concat(u.slice(0,l-1).join(", "),", or ")+u[l-1]:l===2?"one of ".concat(c," ").concat(u[0]," or ").concat(u[1]):"of ".concat(c," ").concat(u[0])}else return"of ".concat(c," ").concat(String(u))}function o(u,c,l){return u.substr(0,c.length)===c}function i(u,c,l){return(l===void 0||l>u.length)&&(l=u.length),u.substring(l-c.length,l)===c}function a(u,c,l){return typeof l!="number"&&(l=0),l+c.length>u.length?!1:u.indexOf(c,l)!==-1}return r("ERR_INVALID_OPT_VALUE",function(u,c){return'The value "'+c+'" is invalid for option "'+u+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(u,c,l){var s;typeof c=="string"&&o(c,"not ")?(s="must not be",c=c.replace(/^not /,"")):s="must be";var f;if(i(u," argument"))f="The ".concat(u," ").concat(s," ").concat(n(c,"type"));else{var h=a(u,".")?"property":"argument";f='The "'.concat(u,'" ').concat(h," ").concat(s," ").concat(n(c,"type"))}return f+=". Received type ".concat(typeof l),f},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(u){return"The "+u+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(u){return"Cannot call "+u+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(u){return"Unknown encoding: "+u},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Ji.codes=t,Ji}var Zi,nl;function il(){if(nl)return Zi;nl=1;var e=Yt().codes.ERR_INVALID_OPT_VALUE;function t(n,o,i){return n.highWaterMark!=null?n.highWaterMark:o?n[i]:null}function r(n,o,i,a){var u=t(o,a,i);if(u!=null){if(!(isFinite(u)&&Math.floor(u)===u)||u<0){var c=a?i:"highWaterMark";throw new e(c,u)}return Math.floor(u)}return n.objectMode?16:16*1024}return Zi={getHighWaterMark:r},Zi}var Qi,ol;function p0(){if(ol)return Qi;ol=1,Qi=e;function e(r,n){if(t("noDeprecation"))return r;var o=!1;function i(){if(!o){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),o=!0}return r.apply(this,arguments)}return i}function t(r){try{if(!St.localStorage)return!1}catch{return!1}var n=St.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return Qi}var eo,sl;function al(){if(sl)return eo;sl=1,eo=P;function e(V){var R=this;this.next=null,this.entry=null,this.finish=function(){ae(R,V)}}var t;P.WritableState=A;var r={deprecate:p0()},n=$a(),o=Vr().Buffer,i=(typeof St<"u"?St:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(V){return o.from(V)}function u(V){return o.isBuffer(V)||V instanceof i}var c=tl(),l=il(),s=l.getHighWaterMark,f=Yt().codes,h=f.ERR_INVALID_ARG_TYPE,x=f.ERR_METHOD_NOT_IMPLEMENTED,m=f.ERR_MULTIPLE_CALLBACK,E=f.ERR_STREAM_CANNOT_PIPE,T=f.ERR_STREAM_DESTROYED,y=f.ERR_STREAM_NULL_VALUES,p=f.ERR_STREAM_WRITE_AFTER_END,d=f.ERR_UNKNOWN_ENCODING,g=c.errorOrDestroy;jt()(P,n);function v(){}function A(V,R,N){t=t||Jt(),V=V||{},typeof N!="boolean"&&(N=R instanceof t),this.objectMode=!!V.objectMode,N&&(this.objectMode=this.objectMode||!!V.writableObjectMode),this.highWaterMark=s(this,V,"writableHighWaterMark",N),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var q=V.decodeStrings===!1;this.decodeStrings=!q,this.defaultEncoding=V.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function($){ue(R,$)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=V.emitClose!==!1,this.autoDestroy=!!V.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}A.prototype.getBuffer=function(){for(var R=this.bufferedRequest,N=[];R;)N.push(R),R=R.next;return N},(function(){try{Object.defineProperty(A.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var I;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(I=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(R){return I.call(this,R)?!0:this!==P?!1:R&&R._writableState instanceof A}})):I=function(R){return R instanceof this};function P(V){t=t||Jt();var R=this instanceof t;if(!R&&!I.call(P,this))return new P(V);this._writableState=new A(V,this,R),this.writable=!0,V&&(typeof V.write=="function"&&(this._write=V.write),typeof V.writev=="function"&&(this._writev=V.writev),typeof V.destroy=="function"&&(this._destroy=V.destroy),typeof V.final=="function"&&(this._final=V.final)),n.call(this)}P.prototype.pipe=function(){g(this,new E)};function O(V,R){var N=new p;g(V,N),ye.nextTick(R,N)}function j(V,R,N,q){var $;return N===null?$=new y:typeof N!="string"&&!R.objectMode&&($=new h("chunk",["string","Buffer"],N)),$?(g(V,$),ye.nextTick(q,$),!1):!0}P.prototype.write=function(V,R,N){var q=this._writableState,$=!1,B=!q.objectMode&&u(V);return B&&!o.isBuffer(V)&&(V=a(V)),typeof R=="function"&&(N=R,R=null),B?R="buffer":R||(R=q.defaultEncoding),typeof N!="function"&&(N=v),q.ending?O(this,N):(B||j(this,q,V,N))&&(q.pendingcb++,$=L(this,q,B,V,R,N)),$},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var V=this._writableState;V.corked&&(V.corked--,!V.writing&&!V.corked&&!V.bufferProcessing&&V.bufferedRequest&&fe(this,V))},P.prototype.setDefaultEncoding=function(R){if(typeof R=="string"&&(R=R.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((R+"").toLowerCase())>-1))throw new d(R);return this._writableState.defaultEncoding=R,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function K(V,R,N){return!V.objectMode&&V.decodeStrings!==!1&&typeof R=="string"&&(R=o.from(R,N)),R}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(V,R,N,q,$,B){if(!N){var U=K(R,q,$);q!==U&&(N=!0,$="buffer",q=U)}var J=R.objectMode?1:q.length;R.length+=J;var oe=R.length<R.highWaterMark;if(oe||(R.needDrain=!0),R.writing||R.corked){var ge=R.lastBufferedRequest;R.lastBufferedRequest={chunk:q,encoding:$,isBuf:N,callback:B,next:null},ge?ge.next=R.lastBufferedRequest:R.bufferedRequest=R.lastBufferedRequest,R.bufferedRequestCount+=1}else k(V,R,!1,J,q,$,B);return oe}function k(V,R,N,q,$,B,U){R.writelen=q,R.writecb=U,R.writing=!0,R.sync=!0,R.destroyed?R.onwrite(new T("write")):N?V._writev($,R.onwrite):V._write($,B,R.onwrite),R.sync=!1}function re(V,R,N,q,$){--R.pendingcb,N?(ye.nextTick($,q),ye.nextTick(Z,V,R),V._writableState.errorEmitted=!0,g(V,q)):($(q),V._writableState.errorEmitted=!0,g(V,q),Z(V,R))}function ee(V){V.writing=!1,V.writecb=null,V.length-=V.writelen,V.writelen=0}function ue(V,R){var N=V._writableState,q=N.sync,$=N.writecb;if(typeof $!="function")throw new m;if(ee(N),R)re(V,N,q,R,$);else{var B=be(N)||V.destroyed;!B&&!N.corked&&!N.bufferProcessing&&N.bufferedRequest&&fe(V,N),q?ye.nextTick(le,V,N,B,$):le(V,N,B,$)}}function le(V,R,N,q){N||de(V,R),R.pendingcb--,q(),Z(V,R)}function de(V,R){R.length===0&&R.needDrain&&(R.needDrain=!1,V.emit("drain"))}function fe(V,R){R.bufferProcessing=!0;var N=R.bufferedRequest;if(V._writev&&N&&N.next){var q=R.bufferedRequestCount,$=new Array(q),B=R.corkedRequestsFree;B.entry=N;for(var U=0,J=!0;N;)$[U]=N,N.isBuf||(J=!1),N=N.next,U+=1;$.allBuffers=J,k(V,R,!0,R.length,$,"",B.finish),R.pendingcb++,R.lastBufferedRequest=null,B.next?(R.corkedRequestsFree=B.next,B.next=null):R.corkedRequestsFree=new e(R),R.bufferedRequestCount=0}else{for(;N;){var oe=N.chunk,ge=N.encoding,ce=N.callback,he=R.objectMode?1:oe.length;if(k(V,R,!1,he,oe,ge,ce),N=N.next,R.bufferedRequestCount--,R.writing)break}N===null&&(R.lastBufferedRequest=null)}R.bufferedRequest=N,R.bufferProcessing=!1}P.prototype._write=function(V,R,N){N(new x("_write()"))},P.prototype._writev=null,P.prototype.end=function(V,R,N){var q=this._writableState;return typeof V=="function"?(N=V,V=null,R=null):typeof R=="function"&&(N=R,R=null),V!=null&&this.write(V,R),q.corked&&(q.corked=1,this.uncork()),q.ending||Q(this,q,N),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function be(V){return V.ending&&V.length===0&&V.bufferedRequest===null&&!V.finished&&!V.writing}function pe(V,R){V._final(function(N){R.pendingcb--,N&&g(V,N),R.prefinished=!0,V.emit("prefinish"),Z(V,R)})}function G(V,R){!R.prefinished&&!R.finalCalled&&(typeof V._final=="function"&&!R.destroyed?(R.pendingcb++,R.finalCalled=!0,ye.nextTick(pe,V,R)):(R.prefinished=!0,V.emit("prefinish")))}function Z(V,R){var N=be(R);if(N&&(G(V,R),R.pendingcb===0&&(R.finished=!0,V.emit("finish"),R.autoDestroy))){var q=V._readableState;(!q||q.autoDestroy&&q.endEmitted)&&V.destroy()}return N}function Q(V,R,N){R.ending=!0,Z(V,R),N&&(R.finished?ye.nextTick(N):V.once("finish",N)),R.ended=!0,V.writable=!1}function ae(V,R,N){var q=V.entry;for(V.entry=null;q;){var $=q.callback;R.pendingcb--,$(N),q=q.next}R.corkedRequestsFree.next=V}return Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(R){this._writableState&&(this._writableState.destroyed=R)}}),P.prototype.destroy=c.destroy,P.prototype._undestroy=c.undestroy,P.prototype._destroy=function(V,R){R(V)},eo}var to,ul;function Jt(){if(ul)return to;ul=1;var e=Object.keys||function(l){var s=[];for(var f in l)s.push(f);return s};to=a;var t=gl(),r=al();jt()(a,t);for(var n=e(r.prototype),o=0;o<n.length;o++){var i=n[o];a.prototype[i]||(a.prototype[i]=r.prototype[i])}function a(l){if(!(this instanceof a))return new a(l);t.call(this,l),r.call(this,l),this.allowHalfOpen=!0,l&&(l.readable===!1&&(this.readable=!1),l.writable===!1&&(this.writable=!1),l.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",u)))}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function u(){this._writableState.ended||ye.nextTick(c,this)}function c(l){l.end()}return Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(s){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=s,this._writableState.destroyed=s)}}),to}var ro={},Kr={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var ll;function g0(){return ll||(ll=1,(function(e,t){var r=Vr(),n=r.Buffer;function o(a,u){for(var c in a)u[c]=a[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i);function i(a,u,c){return n(a,u,c)}i.prototype=Object.create(n.prototype),o(n,i),i.from=function(a,u,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,u,c)},i.alloc=function(a,u,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var l=n(a);return u!==void 0?typeof c=="string"?l.fill(u,c):l.fill(u):l.fill(0),l},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}})(Kr,Kr.exports)),Kr.exports}var cl;function no(){if(cl)return ro;cl=1;var e=g0().Buffer,t=e.isEncoding||function(y){switch(y=""+y,y&&y.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(y){if(!y)return"utf8";for(var p;;)switch(y){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return y;default:if(p)return;y=(""+y).toLowerCase(),p=!0}}function n(y){var p=r(y);if(typeof p!="string"&&(e.isEncoding===t||!t(y)))throw new Error("Unknown encoding: "+y);return p||y}ro.StringDecoder=o;function o(y){this.encoding=n(y);var p;switch(this.encoding){case"utf16le":this.text=f,this.end=h,p=4;break;case"utf8":this.fillLast=c,p=4;break;case"base64":this.text=x,this.end=m,p=3;break;default:this.write=E,this.end=T;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(p)}o.prototype.write=function(y){if(y.length===0)return"";var p,d;if(this.lastNeed){if(p=this.fillLast(y),p===void 0)return"";d=this.lastNeed,this.lastNeed=0}else d=0;return d<y.length?p?p+this.text(y,d):this.text(y,d):p||""},o.prototype.end=s,o.prototype.text=l,o.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length};function i(y){return y<=127?0:y>>5===6?2:y>>4===14?3:y>>3===30?4:y>>6===2?-1:-2}function a(y,p,d){var g=p.length-1;if(g<d)return 0;var v=i(p[g]);return v>=0?(v>0&&(y.lastNeed=v-1),v):--g<d||v===-2?0:(v=i(p[g]),v>=0?(v>0&&(y.lastNeed=v-2),v):--g<d||v===-2?0:(v=i(p[g]),v>=0?(v>0&&(v===2?v=0:y.lastNeed=v-3),v):0))}function u(y,p,d){if((p[0]&192)!==128)return y.lastNeed=0,"�";if(y.lastNeed>1&&p.length>1){if((p[1]&192)!==128)return y.lastNeed=1,"�";if(y.lastNeed>2&&p.length>2&&(p[2]&192)!==128)return y.lastNeed=2,"�"}}function c(y){var p=this.lastTotal-this.lastNeed,d=u(this,y);if(d!==void 0)return d;if(this.lastNeed<=y.length)return y.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,p,0,y.length),this.lastNeed-=y.length}function l(y,p){var d=a(this,y,p);if(!this.lastNeed)return y.toString("utf8",p);this.lastTotal=d;var g=y.length-(d-this.lastNeed);return y.copy(this.lastChar,0,g),y.toString("utf8",p,g)}function s(y){var p=y&&y.length?this.write(y):"";return this.lastNeed?p+"�":p}function f(y,p){if((y.length-p)%2===0){var d=y.toString("utf16le",p);if(d){var g=d.charCodeAt(d.length-1);if(g>=55296&&g<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],d.slice(0,-1)}return d}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",p,y.length-1)}function h(y){var p=y&&y.length?this.write(y):"";if(this.lastNeed){var d=this.lastTotal-this.lastNeed;return p+this.lastChar.toString("utf16le",0,d)}return p}function x(y,p){var d=(y.length-p)%3;return d===0?y.toString("base64",p):(this.lastNeed=3-d,this.lastTotal=3,d===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",p,y.length-d))}function m(y){var p=y&&y.length?this.write(y):"";return this.lastNeed?p+this.lastChar.toString("base64",0,3-this.lastNeed):p}function E(y){return y.toString(this.encoding)}function T(y){return y&&y.length?this.write(y):""}return ro}var io,fl;function oo(){if(fl)return io;fl=1;var e=Yt().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var a=!1;return function(){if(!a){a=!0;for(var u=arguments.length,c=new Array(u),l=0;l<u;l++)c[l]=arguments[l];i.apply(this,c)}}}function r(){}function n(i){return i.setHeader&&typeof i.abort=="function"}function o(i,a,u){if(typeof a=="function")return o(i,null,a);a||(a={}),u=t(u||r);var c=a.readable||a.readable!==!1&&i.readable,l=a.writable||a.writable!==!1&&i.writable,s=function(){i.writable||h()},f=i._writableState&&i._writableState.finished,h=function(){l=!1,f=!0,c||u.call(i)},x=i._readableState&&i._readableState.endEmitted,m=function(){c=!1,x=!0,l||u.call(i)},E=function(d){u.call(i,d)},T=function(){var d;if(c&&!x)return(!i._readableState||!i._readableState.ended)&&(d=new e),u.call(i,d);if(l&&!f)return(!i._writableState||!i._writableState.ended)&&(d=new e),u.call(i,d)},y=function(){i.req.on("finish",h)};return n(i)?(i.on("complete",h),i.on("abort",T),i.req?y():i.on("request",y)):l&&!i._writableState&&(i.on("end",s),i.on("close",s)),i.on("end",m),i.on("finish",h),a.error!==!1&&i.on("error",E),i.on("close",T),function(){i.removeListener("complete",h),i.removeListener("abort",T),i.removeListener("request",y),i.req&&i.req.removeListener("finish",h),i.removeListener("end",s),i.removeListener("close",s),i.removeListener("finish",h),i.removeListener("end",m),i.removeListener("error",E),i.removeListener("close",T)}}return io=o,io}var so,hl;function y0(){if(hl)return so;hl=1;var e;function t(d,g,v){return g=r(g),g in d?Object.defineProperty(d,g,{value:v,enumerable:!0,configurable:!0,writable:!0}):d[g]=v,d}function r(d){var g=n(d,"string");return typeof g=="symbol"?g:String(g)}function n(d,g){if(typeof d!="object"||d===null)return d;var v=d[Symbol.toPrimitive];if(v!==void 0){var A=v.call(d,g);if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(d)}var o=oo(),i=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),s=Symbol("handlePromise"),f=Symbol("stream");function h(d,g){return{value:d,done:g}}function x(d){var g=d[i];if(g!==null){var v=d[f].read();v!==null&&(d[l]=null,d[i]=null,d[a]=null,g(h(v,!1)))}}function m(d){ye.nextTick(x,d)}function E(d,g){return function(v,A){d.then(function(){if(g[c]){v(h(void 0,!0));return}g[s](v,A)},A)}}var T=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((e={get stream(){return this[f]},next:function(){var g=this,v=this[u];if(v!==null)return Promise.reject(v);if(this[c])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise(function(O,j){ye.nextTick(function(){g[u]?j(g[u]):O(h(void 0,!0))})});var A=this[l],I;if(A)I=new Promise(E(A,this));else{var P=this[f].read();if(P!==null)return Promise.resolve(h(P,!1));I=new Promise(this[s])}return this[l]=I,I}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var g=this;return new Promise(function(v,A){g[f].destroy(null,function(I){if(I){A(I);return}v(h(void 0,!0))})})}),e),T),p=function(g){var v,A=Object.create(y,(v={},t(v,f,{value:g,writable:!0}),t(v,i,{value:null,writable:!0}),t(v,a,{value:null,writable:!0}),t(v,u,{value:null,writable:!0}),t(v,c,{value:g._readableState.endEmitted,writable:!0}),t(v,s,{value:function(P,O){var j=A[f].read();j?(A[l]=null,A[i]=null,A[a]=null,P(h(j,!1))):(A[i]=P,A[a]=O)},writable:!0}),v));return A[l]=null,o(g,function(I){if(I&&I.code!=="ERR_STREAM_PREMATURE_CLOSE"){var P=A[a];P!==null&&(A[l]=null,A[i]=null,A[a]=null,P(I)),A[u]=I;return}var O=A[i];O!==null&&(A[l]=null,A[i]=null,A[a]=null,O(h(void 0,!0))),A[c]=!0}),g.on("readable",m.bind(null,A)),A};return so=p,so}var ao,dl;function m0(){return dl||(dl=1,ao=function(){throw new Error("Readable.from is not available in the browser")}),ao}var uo,pl;function gl(){if(pl)return uo;pl=1,uo=O;var e;O.ReadableState=P,qn().EventEmitter;var t=function(U,J){return U.listeners(J).length},r=$a(),n=Vr().Buffer,o=(typeof St<"u"?St:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(B){return n.from(B)}function a(B){return n.isBuffer(B)||B instanceof o}var u=Zu(),c;u&&u.debuglog?c=u.debuglog("stream"):c=function(){};var l=d0(),s=tl(),f=il(),h=f.getHighWaterMark,x=Yt().codes,m=x.ERR_INVALID_ARG_TYPE,E=x.ERR_STREAM_PUSH_AFTER_EOF,T=x.ERR_METHOD_NOT_IMPLEMENTED,y=x.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,d,g;jt()(O,r);var v=s.errorOrDestroy,A=["error","close","destroy","pause","resume"];function I(B,U,J){if(typeof B.prependListener=="function")return B.prependListener(U,J);!B._events||!B._events[U]?B.on(U,J):Array.isArray(B._events[U])?B._events[U].unshift(J):B._events[U]=[J,B._events[U]]}function P(B,U,J){e=e||Jt(),B=B||{},typeof J!="boolean"&&(J=U instanceof e),this.objectMode=!!B.objectMode,J&&(this.objectMode=this.objectMode||!!B.readableObjectMode),this.highWaterMark=h(this,B,"readableHighWaterMark",J),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=B.emitClose!==!1,this.autoDestroy=!!B.autoDestroy,this.destroyed=!1,this.defaultEncoding=B.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,B.encoding&&(p||(p=no().StringDecoder),this.decoder=new p(B.encoding),this.encoding=B.encoding)}function O(B){if(e=e||Jt(),!(this instanceof O))return new O(B);var U=this instanceof e;this._readableState=new P(B,this,U),this.readable=!0,B&&(typeof B.read=="function"&&(this._read=B.read),typeof B.destroy=="function"&&(this._destroy=B.destroy)),r.call(this)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(U){this._readableState&&(this._readableState.destroyed=U)}}),O.prototype.destroy=s.destroy,O.prototype._undestroy=s.undestroy,O.prototype._destroy=function(B,U){U(B)},O.prototype.push=function(B,U){var J=this._readableState,oe;return J.objectMode?oe=!0:typeof B=="string"&&(U=U||J.defaultEncoding,U!==J.encoding&&(B=n.from(B,U),U=""),oe=!0),j(this,B,U,!1,oe)},O.prototype.unshift=function(B){return j(this,B,null,!0,!1)};function j(B,U,J,oe,ge){c("readableAddChunk",U);var ce=B._readableState;if(U===null)ce.reading=!1,ue(B,ce);else{var he;if(ge||(he=L(ce,U)),he)v(B,he);else if(ce.objectMode||U&&U.length>0)if(typeof U!="string"&&!ce.objectMode&&Object.getPrototypeOf(U)!==n.prototype&&(U=i(U)),oe)ce.endEmitted?v(B,new y):K(B,ce,U,!0);else if(ce.ended)v(B,new E);else{if(ce.destroyed)return!1;ce.reading=!1,ce.decoder&&!J?(U=ce.decoder.write(U),ce.objectMode||U.length!==0?K(B,ce,U,!1):fe(B,ce)):K(B,ce,U,!1)}else oe||(ce.reading=!1,fe(B,ce))}return!ce.ended&&(ce.length<ce.highWaterMark||ce.length===0)}function K(B,U,J,oe){U.flowing&&U.length===0&&!U.sync?(U.awaitDrain=0,B.emit("data",J)):(U.length+=U.objectMode?1:J.length,oe?U.buffer.unshift(J):U.buffer.push(J),U.needReadable&&le(B)),fe(B,U)}function L(B,U){var J;return!a(U)&&typeof U!="string"&&U!==void 0&&!B.objectMode&&(J=new m("chunk",["string","Buffer","Uint8Array"],U)),J}O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(B){p||(p=no().StringDecoder);var U=new p(B);this._readableState.decoder=U,this._readableState.encoding=this._readableState.decoder.encoding;for(var J=this._readableState.buffer.head,oe="";J!==null;)oe+=U.write(J.data),J=J.next;return this._readableState.buffer.clear(),oe!==""&&this._readableState.buffer.push(oe),this._readableState.length=oe.length,this};var k=1073741824;function re(B){return B>=k?B=k:(B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++),B}function ee(B,U){return B<=0||U.length===0&&U.ended?0:U.objectMode?1:B!==B?U.flowing&&U.length?U.buffer.head.data.length:U.length:(B>U.highWaterMark&&(U.highWaterMark=re(B)),B<=U.length?B:U.ended?U.length:(U.needReadable=!0,0))}O.prototype.read=function(B){c("read",B),B=parseInt(B,10);var U=this._readableState,J=B;if(B!==0&&(U.emittedReadable=!1),B===0&&U.needReadable&&((U.highWaterMark!==0?U.length>=U.highWaterMark:U.length>0)||U.ended))return c("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?N(this):le(this),null;if(B=ee(B,U),B===0&&U.ended)return U.length===0&&N(this),null;var oe=U.needReadable;c("need readable",oe),(U.length===0||U.length-B<U.highWaterMark)&&(oe=!0,c("length less than watermark",oe)),U.ended||U.reading?(oe=!1,c("reading or ended",oe)):oe&&(c("do read"),U.reading=!0,U.sync=!0,U.length===0&&(U.needReadable=!0),this._read(U.highWaterMark),U.sync=!1,U.reading||(B=ee(J,U)));var ge;return B>0?ge=R(B,U):ge=null,ge===null?(U.needReadable=U.length<=U.highWaterMark,B=0):(U.length-=B,U.awaitDrain=0),U.length===0&&(U.ended||(U.needReadable=!0),J!==B&&U.ended&&N(this)),ge!==null&&this.emit("data",ge),ge};function ue(B,U){if(c("onEofChunk"),!U.ended){if(U.decoder){var J=U.decoder.end();J&&J.length&&(U.buffer.push(J),U.length+=U.objectMode?1:J.length)}U.ended=!0,U.sync?le(B):(U.needReadable=!1,U.emittedReadable||(U.emittedReadable=!0,de(B)))}}function le(B){var U=B._readableState;c("emitReadable",U.needReadable,U.emittedReadable),U.needReadable=!1,U.emittedReadable||(c("emitReadable",U.flowing),U.emittedReadable=!0,ye.nextTick(de,B))}function de(B){var U=B._readableState;c("emitReadable_",U.destroyed,U.length,U.ended),!U.destroyed&&(U.length||U.ended)&&(B.emit("readable"),U.emittedReadable=!1),U.needReadable=!U.flowing&&!U.ended&&U.length<=U.highWaterMark,V(B)}function fe(B,U){U.readingMore||(U.readingMore=!0,ye.nextTick(be,B,U))}function be(B,U){for(;!U.reading&&!U.ended&&(U.length<U.highWaterMark||U.flowing&&U.length===0);){var J=U.length;if(c("maybeReadMore read 0"),B.read(0),J===U.length)break}U.readingMore=!1}O.prototype._read=function(B){v(this,new T("_read()"))},O.prototype.pipe=function(B,U){var J=this,oe=this._readableState;switch(oe.pipesCount){case 0:oe.pipes=B;break;case 1:oe.pipes=[oe.pipes,B];break;default:oe.pipes.push(B);break}oe.pipesCount+=1,c("pipe count=%d opts=%j",oe.pipesCount,U);var ge=(!U||U.end!==!1)&&B!==ye.stdout&&B!==ye.stderr,ce=ge?Oe:ut;oe.endEmitted?ye.nextTick(ce):J.once("end",ce),B.on("unpipe",he);function he(ct,Ve){c("onunpipe"),ct===J&&Ve&&Ve.hasUnpiped===!1&&(Ve.hasUnpiped=!0,Me())}function Oe(){c("onend"),B.end()}var te=pe(J);B.on("drain",te);var He=!1;function Me(){c("cleanup"),B.removeListener("close",Ye),B.removeListener("finish",Ge),B.removeListener("drain",te),B.removeListener("error",Ne),B.removeListener("unpipe",he),J.removeListener("end",Oe),J.removeListener("end",ut),J.removeListener("data",xe),He=!0,oe.awaitDrain&&(!B._writableState||B._writableState.needDrain)&&te()}J.on("data",xe);function xe(ct){c("ondata");var Ve=B.write(ct);c("dest.write",Ve),Ve===!1&&((oe.pipesCount===1&&oe.pipes===B||oe.pipesCount>1&&$(oe.pipes,B)!==-1)&&!He&&(c("false write response, pause",oe.awaitDrain),oe.awaitDrain++),J.pause())}function Ne(ct){c("onerror",ct),ut(),B.removeListener("error",Ne),t(B,"error")===0&&v(B,ct)}I(B,"error",Ne);function Ye(){B.removeListener("finish",Ge),ut()}B.once("close",Ye);function Ge(){c("onfinish"),B.removeListener("close",Ye),ut()}B.once("finish",Ge);function ut(){c("unpipe"),J.unpipe(B)}return B.emit("pipe",J),oe.flowing||(c("pipe resume"),J.resume()),B};function pe(B){return function(){var J=B._readableState;c("pipeOnDrain",J.awaitDrain),J.awaitDrain&&J.awaitDrain--,J.awaitDrain===0&&t(B,"data")&&(J.flowing=!0,V(B))}}O.prototype.unpipe=function(B){var U=this._readableState,J={hasUnpiped:!1};if(U.pipesCount===0)return this;if(U.pipesCount===1)return B&&B!==U.pipes?this:(B||(B=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,B&&B.emit("unpipe",this,J),this);if(!B){var oe=U.pipes,ge=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var ce=0;ce<ge;ce++)oe[ce].emit("unpipe",this,{hasUnpiped:!1});return this}var he=$(U.pipes,B);return he===-1?this:(U.pipes.splice(he,1),U.pipesCount-=1,U.pipesCount===1&&(U.pipes=U.pipes[0]),B.emit("unpipe",this,J),this)},O.prototype.on=function(B,U){var J=r.prototype.on.call(this,B,U),oe=this._readableState;return B==="data"?(oe.readableListening=this.listenerCount("readable")>0,oe.flowing!==!1&&this.resume()):B==="readable"&&!oe.endEmitted&&!oe.readableListening&&(oe.readableListening=oe.needReadable=!0,oe.flowing=!1,oe.emittedReadable=!1,c("on readable",oe.length,oe.reading),oe.length?le(this):oe.reading||ye.nextTick(Z,this)),J},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(B,U){var J=r.prototype.removeListener.call(this,B,U);return B==="readable"&&ye.nextTick(G,this),J},O.prototype.removeAllListeners=function(B){var U=r.prototype.removeAllListeners.apply(this,arguments);return(B==="readable"||B===void 0)&&ye.nextTick(G,this),U};function G(B){var U=B._readableState;U.readableListening=B.listenerCount("readable")>0,U.resumeScheduled&&!U.paused?U.flowing=!0:B.listenerCount("data")>0&&B.resume()}function Z(B){c("readable nexttick read 0"),B.read(0)}O.prototype.resume=function(){var B=this._readableState;return B.flowing||(c("resume"),B.flowing=!B.readableListening,Q(this,B)),B.paused=!1,this};function Q(B,U){U.resumeScheduled||(U.resumeScheduled=!0,ye.nextTick(ae,B,U))}function ae(B,U){c("resume",U.reading),U.reading||B.read(0),U.resumeScheduled=!1,B.emit("resume"),V(B),U.flowing&&!U.reading&&B.read(0)}O.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function V(B){var U=B._readableState;for(c("flow",U.flowing);U.flowing&&B.read()!==null;);}O.prototype.wrap=function(B){var U=this,J=this._readableState,oe=!1;B.on("end",function(){if(c("wrapped end"),J.decoder&&!J.ended){var he=J.decoder.end();he&&he.length&&U.push(he)}U.push(null)}),B.on("data",function(he){if(c("wrapped data"),J.decoder&&(he=J.decoder.write(he)),!(J.objectMode&&he==null)&&!(!J.objectMode&&(!he||!he.length))){var Oe=U.push(he);Oe||(oe=!0,B.pause())}});for(var ge in B)this[ge]===void 0&&typeof B[ge]=="function"&&(this[ge]=(function(Oe){return function(){return B[Oe].apply(B,arguments)}})(ge));for(var ce=0;ce<A.length;ce++)B.on(A[ce],this.emit.bind(this,A[ce]));return this._read=function(he){c("wrapped _read",he),oe&&(oe=!1,B.resume())},this},typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return d===void 0&&(d=y0()),d(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(U){this._readableState&&(this._readableState.flowing=U)}}),O._fromList=R,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function R(B,U){if(U.length===0)return null;var J;return U.objectMode?J=U.buffer.shift():!B||B>=U.length?(U.decoder?J=U.buffer.join(""):U.buffer.length===1?J=U.buffer.first():J=U.buffer.concat(U.length),U.buffer.clear()):J=U.buffer.consume(B,U.decoder),J}function N(B){var U=B._readableState;c("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,ye.nextTick(q,U,B))}function q(B,U){if(c("endReadableNT",B.endEmitted,B.length),!B.endEmitted&&B.length===0&&(B.endEmitted=!0,U.readable=!1,U.emit("end"),B.autoDestroy)){var J=U._writableState;(!J||J.autoDestroy&&J.finished)&&U.destroy()}}typeof Symbol=="function"&&(O.from=function(B,U){return g===void 0&&(g=m0()),g(O,B,U)});function $(B,U){for(var J=0,oe=B.length;J<oe;J++)if(B[J]===U)return J;return-1}return uo}var lo,yl;function ml(){if(yl)return lo;yl=1,lo=u;var e=Yt().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,i=Jt();jt()(u,i);function a(s,f){var h=this._transformState;h.transforming=!1;var x=h.writecb;if(x===null)return this.emit("error",new r);h.writechunk=null,h.writecb=null,f!=null&&this.push(f),x(s);var m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}function u(s){if(!(this instanceof u))return new u(s);i.call(this,s),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,s&&(typeof s.transform=="function"&&(this._transform=s.transform),typeof s.flush=="function"&&(this._flush=s.flush)),this.on("prefinish",c)}function c(){var s=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(f,h){l(s,f,h)}):l(this,null,null)}u.prototype.push=function(s,f){return this._transformState.needTransform=!1,i.prototype.push.call(this,s,f)},u.prototype._transform=function(s,f,h){h(new t("_transform()"))},u.prototype._write=function(s,f,h){var x=this._transformState;if(x.writecb=h,x.writechunk=s,x.writeencoding=f,!x.transforming){var m=this._readableState;(x.needTransform||m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}},u.prototype._read=function(s){var f=this._transformState;f.writechunk!==null&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},u.prototype._destroy=function(s,f){i.prototype._destroy.call(this,s,function(h){f(h)})};function l(s,f,h){if(f)return s.emit("error",f);if(h!=null&&s.push(h),s._writableState.length)throw new o;if(s._transformState.transforming)throw new n;return s.push(null)}return lo}var co,bl;function b0(){if(bl)return co;bl=1,co=t;var e=ml();jt()(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,o){o(null,r)},co}var fo,wl;function w0(){if(wl)return fo;wl=1;var e;function t(h){var x=!1;return function(){x||(x=!0,h.apply(void 0,arguments))}}var r=Yt().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function i(h){if(h)throw h}function a(h){return h.setHeader&&typeof h.abort=="function"}function u(h,x,m,E){E=t(E);var T=!1;h.on("close",function(){T=!0}),e===void 0&&(e=oo()),e(h,{readable:x,writable:m},function(p){if(p)return E(p);T=!0,E()});var y=!1;return function(p){if(!T&&!y){if(y=!0,a(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();E(p||new o("pipe"))}}}function c(h){h()}function l(h,x){return h.pipe(x)}function s(h){return!h.length||typeof h[h.length-1]!="function"?i:h.pop()}function f(){for(var h=arguments.length,x=new Array(h),m=0;m<h;m++)x[m]=arguments[m];var E=s(x);if(Array.isArray(x[0])&&(x=x[0]),x.length<2)throw new n("streams");var T,y=x.map(function(p,d){var g=d<x.length-1,v=d>0;return u(p,g,v,function(A){T||(T=A),A&&y.forEach(c),!g&&(y.forEach(c),E(T))})});return x.reduce(l)}return fo=f,fo}var ho,vl;function v0(){if(vl)return ho;vl=1,ho=r;var e=qn().EventEmitter,t=jt();t(r,e),r.Readable=gl(),r.Writable=al(),r.Duplex=Jt(),r.Transform=ml(),r.PassThrough=b0(),r.finished=oo(),r.pipeline=w0(),r.Stream=r;function r(){e.call(this)}return r.prototype.pipe=function(n,o){var i=this;function a(x){n.writable&&n.write(x)===!1&&i.pause&&i.pause()}i.on("data",a);function u(){i.readable&&i.resume&&i.resume()}n.on("drain",u),!n._isStdio&&(!o||o.end!==!1)&&(i.on("end",l),i.on("close",s));var c=!1;function l(){c||(c=!0,n.end())}function s(){c||(c=!0,typeof n.destroy=="function"&&n.destroy())}function f(x){if(h(),e.listenerCount(this,"error")===0)throw x}i.on("error",f),n.on("error",f);function h(){i.removeListener("data",a),n.removeListener("drain",u),i.removeListener("end",l),i.removeListener("close",s),i.removeListener("error",f),n.removeListener("error",f),i.removeListener("end",h),i.removeListener("close",h),n.removeListener("close",h)}return i.on("end",h),i.on("close",h),n.on("close",h),n.emit("pipe",i),n},ho}var El;function E0(){return El||(El=1,(function(e){(function(t){t.parser=function(R,N){return new n(R,N)},t.SAXParser=n,t.SAXStream=s,t.createStream=l,t.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(R,N){if(!(this instanceof n))return new n(R,N);var q=this;i(q),q.q=q.c="",q.bufferCheckPosition=t.MAX_BUFFER_LENGTH,q.opt=N||{},q.opt.lowercase=q.opt.lowercase||q.opt.lowercasetags,q.looseCase=q.opt.lowercase?"toLowerCase":"toUpperCase",q.tags=[],q.closed=q.closedRoot=q.sawRoot=!1,q.tag=q.error=null,q.strict=!!R,q.noscript=!!(R||q.opt.noscript),q.state=O.BEGIN,q.strictEntities=q.opt.strictEntities,q.ENTITIES=q.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),q.attribList=[],q.opt.xmlns&&(q.ns=Object.create(E)),q.opt.unquotedAttributeValues===void 0&&(q.opt.unquotedAttributeValues=!R),q.trackPosition=q.opt.position!==!1,q.trackPosition&&(q.position=q.line=q.column=0),K(q,"onready")}Object.create||(Object.create=function(R){function N(){}N.prototype=R;var q=new N;return q}),Object.keys||(Object.keys=function(R){var N=[];for(var q in R)R.hasOwnProperty(q)&&N.push(q);return N});function o(R){for(var N=Math.max(t.MAX_BUFFER_LENGTH,10),q=0,$=0,B=r.length;$<B;$++){var U=R[r[$]].length;if(U>N)switch(r[$]){case"textNode":k(R);break;case"cdata":L(R,"oncdata",R.cdata),R.cdata="";break;case"script":L(R,"onscript",R.script),R.script="";break;default:ee(R,"Max buffer length exceeded: "+r[$])}q=Math.max(q,U)}var J=t.MAX_BUFFER_LENGTH-q;R.bufferCheckPosition=J+R.position}function i(R){for(var N=0,q=r.length;N<q;N++)R[r[N]]=""}function a(R){k(R),R.cdata!==""&&(L(R,"oncdata",R.cdata),R.cdata=""),R.script!==""&&(L(R,"onscript",R.script),R.script="")}n.prototype={end:function(){ue(this)},write:V,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var u;try{u=v0().Stream}catch{u=function(){}}u||(u=function(){});var c=t.EVENTS.filter(function(R){return R!=="error"&&R!=="end"});function l(R,N){return new s(R,N)}function s(R,N){if(!(this instanceof s))return new s(R,N);u.apply(this),this._parser=new n(R,N),this.writable=!0,this.readable=!0;var q=this;this._parser.onend=function(){q.emit("end")},this._parser.onerror=function($){q.emit("error",$),q._parser.error=null},this._decoder=null,c.forEach(function($){Object.defineProperty(q,"on"+$,{get:function(){return q._parser["on"+$]},set:function(B){if(!B)return q.removeAllListeners($),q._parser["on"+$]=B,B;q.on($,B)},enumerable:!0,configurable:!1})})}s.prototype=Object.create(u.prototype,{constructor:{value:s}}),s.prototype.write=function(R){if(typeof Ht=="function"&&typeof Ht.isBuffer=="function"&&Ht.isBuffer(R)){if(!this._decoder){var N=no().StringDecoder;this._decoder=new N("utf8")}R=this._decoder.write(R)}return this._parser.write(R.toString()),this.emit("data",R),!0},s.prototype.end=function(R){return R&&R.length&&this.write(R),this._parser.end(),!0},s.prototype.on=function(R,N){var q=this;return!q._parser["on"+R]&&c.indexOf(R)!==-1&&(q._parser["on"+R]=function(){var $=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);$.splice(0,0,R),q.emit.apply(q,$)}),u.prototype.on.call(q,R,N)};var f="[CDATA[",h="DOCTYPE",x="http://www.w3.org/XML/1998/namespace",m="http://www.w3.org/2000/xmlns/",E={xml:x,xmlns:m},T=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,p=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function g(R){return R===" "||R===`
|
|
26
|
+
`||R==="\r"||R===" "}function v(R){return R==='"'||R==="'"}function A(R){return R===">"||g(R)}function I(R,N){return R.test(N)}function P(R,N){return!I(R,N)}var O=0;t.STATE={BEGIN:O++,BEGIN_WHITESPACE:O++,TEXT:O++,TEXT_ENTITY:O++,OPEN_WAKA:O++,SGML_DECL:O++,SGML_DECL_QUOTED:O++,DOCTYPE:O++,DOCTYPE_QUOTED:O++,DOCTYPE_DTD:O++,DOCTYPE_DTD_QUOTED:O++,COMMENT_STARTING:O++,COMMENT:O++,COMMENT_ENDING:O++,COMMENT_ENDED:O++,CDATA:O++,CDATA_ENDING:O++,CDATA_ENDING_2:O++,PROC_INST:O++,PROC_INST_BODY:O++,PROC_INST_ENDING:O++,OPEN_TAG:O++,OPEN_TAG_SLASH:O++,ATTRIB:O++,ATTRIB_NAME:O++,ATTRIB_NAME_SAW_WHITE:O++,ATTRIB_VALUE:O++,ATTRIB_VALUE_QUOTED:O++,ATTRIB_VALUE_CLOSED:O++,ATTRIB_VALUE_UNQUOTED:O++,ATTRIB_VALUE_ENTITY_Q:O++,ATTRIB_VALUE_ENTITY_U:O++,CLOSE_TAG:O++,CLOSE_TAG_SAW_WHITE:O++,SCRIPT:O++,SCRIPT_ENDING:O++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(R){var N=t.ENTITIES[R],q=typeof N=="number"?String.fromCharCode(N):N;t.ENTITIES[R]=q});for(var j in t.STATE)t.STATE[t.STATE[j]]=j;O=t.STATE;function K(R,N,q){R[N]&&R[N](q)}function L(R,N,q){R.textNode&&k(R),K(R,N,q)}function k(R){R.textNode=re(R.opt,R.textNode),R.textNode&&K(R,"ontext",R.textNode),R.textNode=""}function re(R,N){return R.trim&&(N=N.trim()),R.normalize&&(N=N.replace(/\s+/g," ")),N}function ee(R,N){return k(R),R.trackPosition&&(N+=`
|
|
27
27
|
Line: `+R.line+`
|
|
28
28
|
Column: `+R.column+`
|
|
29
|
-
Char: `+R.c),N=new Error(N),R.error=N,K(R,"onerror",N),R}function ue(R){return R.sawRoot&&!R.closedRoot&&le(R,"Unclosed root tag"),R.state!==O.BEGIN&&R.state!==O.BEGIN_WHITESPACE&&R.state!==O.TEXT&&ee(R,"Unexpected end"),k(R),R.c="",R.closed=!0,K(R,"onend"),n.call(R,R.strict,R.opt),R}function le(R,N){if(typeof R!="object"||!(R instanceof n))throw new Error("bad call to strictFail");R.strict&&ee(R,N)}function de(R){R.strict||(R.tagName=R.tagName[R.looseCase]());var N=R.tags[R.tags.length-1]||R,q=R.tag={name:R.tagName,attributes:{}};R.opt.xmlns&&(q.ns=N.ns),R.attribList.length=0,L(R,"onopentagstart",q)}function fe(R,N){var q=R.indexOf(":"),$=q<0?["",R]:R.split(":"),B=$[0],U=$[1];return N&&R==="xmlns"&&(B="xmlns",U=""),{prefix:B,local:U}}function be(R){if(R.strict||(R.attribName=R.attribName[R.looseCase]()),R.attribList.indexOf(R.attribName)!==-1||R.tag.attributes.hasOwnProperty(R.attribName)){R.attribName=R.attribValue="";return}if(R.opt.xmlns){var N=fe(R.attribName,!0),q=N.prefix,$=N.local;if(q==="xmlns")if($==="xml"&&R.attribValue!==
|
|
29
|
+
Char: `+R.c),N=new Error(N),R.error=N,K(R,"onerror",N),R}function ue(R){return R.sawRoot&&!R.closedRoot&&le(R,"Unclosed root tag"),R.state!==O.BEGIN&&R.state!==O.BEGIN_WHITESPACE&&R.state!==O.TEXT&&ee(R,"Unexpected end"),k(R),R.c="",R.closed=!0,K(R,"onend"),n.call(R,R.strict,R.opt),R}function le(R,N){if(typeof R!="object"||!(R instanceof n))throw new Error("bad call to strictFail");R.strict&&ee(R,N)}function de(R){R.strict||(R.tagName=R.tagName[R.looseCase]());var N=R.tags[R.tags.length-1]||R,q=R.tag={name:R.tagName,attributes:{}};R.opt.xmlns&&(q.ns=N.ns),R.attribList.length=0,L(R,"onopentagstart",q)}function fe(R,N){var q=R.indexOf(":"),$=q<0?["",R]:R.split(":"),B=$[0],U=$[1];return N&&R==="xmlns"&&(B="xmlns",U=""),{prefix:B,local:U}}function be(R){if(R.strict||(R.attribName=R.attribName[R.looseCase]()),R.attribList.indexOf(R.attribName)!==-1||R.tag.attributes.hasOwnProperty(R.attribName)){R.attribName=R.attribValue="";return}if(R.opt.xmlns){var N=fe(R.attribName,!0),q=N.prefix,$=N.local;if(q==="xmlns")if($==="xml"&&R.attribValue!==x)le(R,"xml: prefix must be bound to "+x+`
|
|
30
30
|
Actual: `+R.attribValue);else if($==="xmlns"&&R.attribValue!==m)le(R,"xmlns: prefix must be bound to "+m+`
|
|
31
31
|
Actual: `+R.attribValue);else{var B=R.tag,U=R.tags[R.tags.length-1]||R;B.ns===U.ns&&(B.ns=Object.create(U.ns)),B.ns[$]=R.attribValue}R.attribList.push([R.attribName,R.attribValue])}else R.tag.attributes[R.attribName]=R.attribValue,L(R,"onattribute",{name:R.attribName,value:R.attribValue});R.attribName=R.attribValue=""}function pe(R,N){if(R.opt.xmlns){var q=R.tag,$=fe(R.tagName);q.prefix=$.prefix,q.local=$.local,q.uri=q.ns[$.prefix]||"",q.prefix&&!q.uri&&(le(R,"Unbound namespace prefix: "+JSON.stringify(R.tagName)),q.uri=$.prefix);var B=R.tags[R.tags.length-1]||R;q.ns&&B.ns!==q.ns&&Object.keys(q.ns).forEach(function(xe){L(R,"onopennamespace",{prefix:xe,uri:q.ns[xe]})});for(var U=0,J=R.attribList.length;U<J;U++){var oe=R.attribList[U],ge=oe[0],ce=oe[1],he=fe(ge,!0),Oe=he.prefix,te=he.local,He=Oe===""?"":q.ns[Oe]||"",Me={name:ge,value:ce,prefix:Oe,local:te,uri:He};Oe&&Oe!=="xmlns"&&!He&&(le(R,"Unbound namespace prefix: "+JSON.stringify(Oe)),Me.uri=Oe),R.tag.attributes[ge]=Me,L(R,"onattribute",Me)}R.attribList.length=0}R.tag.isSelfClosing=!!N,R.sawRoot=!0,R.tags.push(R.tag),L(R,"onopentag",R.tag),N||(!R.noscript&&R.tagName.toLowerCase()==="script"?R.state=O.SCRIPT:R.state=O.TEXT,R.tag=null,R.tagName=""),R.attribName=R.attribValue="",R.attribList.length=0}function G(R){if(!R.tagName){le(R,"Weird empty close tag."),R.textNode+="</>",R.state=O.TEXT;return}if(R.script){if(R.tagName!=="script"){R.script+="</"+R.tagName+">",R.tagName="",R.state=O.SCRIPT;return}L(R,"onscript",R.script),R.script=""}var N=R.tags.length,q=R.tagName;R.strict||(q=q[R.looseCase]());for(var $=q;N--;){var B=R.tags[N];if(B.name!==$)le(R,"Unexpected close tag");else break}if(N<0){le(R,"Unmatched closing tag: "+R.tagName),R.textNode+="</"+R.tagName+">",R.state=O.TEXT;return}R.tagName=q;for(var U=R.tags.length;U-- >N;){var J=R.tag=R.tags.pop();R.tagName=R.tag.name,L(R,"onclosetag",R.tagName);var oe={};for(var ge in J.ns)oe[ge]=J.ns[ge];var ce=R.tags[R.tags.length-1]||R;R.opt.xmlns&&J.ns!==ce.ns&&Object.keys(J.ns).forEach(function(he){var Oe=J.ns[he];L(R,"onclosenamespace",{prefix:he,uri:Oe})})}N===0&&(R.closedRoot=!0),R.tagName=R.attribValue=R.attribName="",R.attribList.length=0,R.state=O.TEXT}function Z(R){var N=R.entity,q=N.toLowerCase(),$,B="";return R.ENTITIES[N]?R.ENTITIES[N]:R.ENTITIES[q]?R.ENTITIES[q]:(N=q,N.charAt(0)==="#"&&(N.charAt(1)==="x"?(N=N.slice(2),$=parseInt(N,16),B=$.toString(16)):(N=N.slice(1),$=parseInt(N,10),B=$.toString(10))),N=N.replace(/^0+/,""),isNaN($)||B.toLowerCase()!==N?(le(R,"Invalid character entity"),"&"+R.entity+";"):String.fromCodePoint($))}function Q(R,N){N==="<"?(R.state=O.OPEN_WAKA,R.startTagPosition=R.position):g(N)||(le(R,"Non-whitespace before first tag."),R.textNode=N,R.state=O.TEXT)}function ae(R,N){var q="";return N<R.length&&(q=R.charAt(N)),q}function V(R){var N=this;if(this.error)throw this.error;if(N.closed)return ee(N,"Cannot write after close. Assign an onready handler.");if(R===null)return ue(N);typeof R=="object"&&(R=R.toString());for(var q=0,$="";$=ae(R,q++),N.c=$,!!$;)switch(N.trackPosition&&(N.position++,$===`
|
|
32
32
|
`?(N.line++,N.column=0):N.column++),N.state){case O.BEGIN:if(N.state=O.BEGIN_WHITESPACE,$==="\uFEFF")continue;Q(N,$);continue;case O.BEGIN_WHITESPACE:Q(N,$);continue;case O.TEXT:if(N.sawRoot&&!N.closedRoot){for(var B=q-1;$&&$!=="<"&&$!=="&";)$=ae(R,q++),$&&N.trackPosition&&(N.position++,$===`
|
|
33
|
-
`?(N.line++,N.column=0):N.column++);N.textNode+=R.substring(B,q-1)}$==="<"&&!(N.sawRoot&&N.closedRoot&&!N.strict)?(N.state=O.OPEN_WAKA,N.startTagPosition=N.position):(!g($)&&(!N.sawRoot||N.closedRoot)&&le(N,"Text data outside of root node."),$==="&"?N.state=O.TEXT_ENTITY:N.textNode+=$);continue;case O.SCRIPT:$==="<"?N.state=O.SCRIPT_ENDING:N.script+=$;continue;case O.SCRIPT_ENDING:$==="/"?N.state=O.CLOSE_TAG:(N.script+="<"+$,N.state=O.SCRIPT);continue;case O.OPEN_WAKA:if($==="!")N.state=O.SGML_DECL,N.sgmlDecl="";else if(!g($))if(P(T,$))N.state=O.OPEN_TAG,N.tagName=$;else if($==="/")N.state=O.CLOSE_TAG,N.tagName="";else if($==="?")N.state=O.PROC_INST,N.procInstName=N.procInstBody="";else{if(le(N,"Unencoded <"),N.startTagPosition+1<N.position){var U=N.position-N.startTagPosition;$=new Array(U).join(" ")+$}N.textNode+="<"+$,N.state=O.TEXT}continue;case O.SGML_DECL:if(N.sgmlDecl+$==="--"){N.state=O.COMMENT,N.comment="",N.sgmlDecl="";continue}N.doctype&&N.doctype!==!0&&N.sgmlDecl?(N.state=O.DOCTYPE_DTD,N.doctype+="<!"+N.sgmlDecl+$,N.sgmlDecl=""):(N.sgmlDecl+$).toUpperCase()===f?(L(N,"onopencdata"),N.state=O.CDATA,N.sgmlDecl="",N.cdata=""):(N.sgmlDecl+$).toUpperCase()===h?(N.state=O.DOCTYPE,(N.doctype||N.sawRoot)&&le(N,"Inappropriately located doctype declaration"),N.doctype="",N.sgmlDecl=""):$===">"?(L(N,"onsgmldeclaration",N.sgmlDecl),N.sgmlDecl="",N.state=O.TEXT):(v($)&&(N.state=O.SGML_DECL_QUOTED),N.sgmlDecl+=$);continue;case O.SGML_DECL_QUOTED:$===N.q&&(N.state=O.SGML_DECL,N.q=""),N.sgmlDecl+=$;continue;case O.DOCTYPE:$===">"?(N.state=O.TEXT,L(N,"ondoctype",N.doctype),N.doctype=!0):(N.doctype+=$,$==="["?N.state=O.DOCTYPE_DTD:v($)&&(N.state=O.DOCTYPE_QUOTED,N.q=$));continue;case O.DOCTYPE_QUOTED:N.doctype+=$,$===N.q&&(N.q="",N.state=O.DOCTYPE);continue;case O.DOCTYPE_DTD:$==="]"?(N.doctype+=$,N.state=O.DOCTYPE):$==="<"?(N.state=O.OPEN_WAKA,N.startTagPosition=N.position):v($)?(N.doctype+=$,N.state=O.DOCTYPE_DTD_QUOTED,N.q=$):N.doctype+=$;continue;case O.DOCTYPE_DTD_QUOTED:N.doctype+=$,$===N.q&&(N.state=O.DOCTYPE_DTD,N.q="");continue;case O.COMMENT:$==="-"?N.state=O.COMMENT_ENDING:N.comment+=$;continue;case O.COMMENT_ENDING:$==="-"?(N.state=O.COMMENT_ENDED,N.comment=re(N.opt,N.comment),N.comment&&L(N,"oncomment",N.comment),N.comment=""):(N.comment+="-"+$,N.state=O.COMMENT);continue;case O.COMMENT_ENDED:$!==">"?(le(N,"Malformed comment"),N.comment+="--"+$,N.state=O.COMMENT):N.doctype&&N.doctype!==!0?N.state=O.DOCTYPE_DTD:N.state=O.TEXT;continue;case O.CDATA:$==="]"?N.state=O.CDATA_ENDING:N.cdata+=$;continue;case O.CDATA_ENDING:$==="]"?N.state=O.CDATA_ENDING_2:(N.cdata+="]"+$,N.state=O.CDATA);continue;case O.CDATA_ENDING_2:$===">"?(N.cdata&&L(N,"oncdata",N.cdata),L(N,"onclosecdata"),N.cdata="",N.state=O.TEXT):$==="]"?N.cdata+="]":(N.cdata+="]]"+$,N.state=O.CDATA);continue;case O.PROC_INST:$==="?"?N.state=O.PROC_INST_ENDING:g($)?N.state=O.PROC_INST_BODY:N.procInstName+=$;continue;case O.PROC_INST_BODY:if(!N.procInstBody&&g($))continue;$==="?"?N.state=O.PROC_INST_ENDING:N.procInstBody+=$;continue;case O.PROC_INST_ENDING:$===">"?(L(N,"onprocessinginstruction",{name:N.procInstName,body:N.procInstBody}),N.procInstName=N.procInstBody="",N.state=O.TEXT):(N.procInstBody+="?"+$,N.state=O.PROC_INST_BODY);continue;case O.OPEN_TAG:P(y,$)?N.tagName+=$:(de(N),$===">"?pe(N):$==="/"?N.state=O.OPEN_TAG_SLASH:(g($)||le(N,"Invalid character in tag name"),N.state=O.ATTRIB));continue;case O.OPEN_TAG_SLASH:$===">"?(pe(N,!0),G(N)):(le(N,"Forward-slash in opening tag not followed by >"),N.state=O.ATTRIB);continue;case O.ATTRIB:if(g($))continue;$===">"?pe(N):$==="/"?N.state=O.OPEN_TAG_SLASH:P(T,$)?(N.attribName=$,N.attribValue="",N.state=O.ATTRIB_NAME):le(N,"Invalid attribute name");continue;case O.ATTRIB_NAME:$==="="?N.state=O.ATTRIB_VALUE:$===">"?(le(N,"Attribute without value"),N.attribValue=N.attribName,be(N),pe(N)):g($)?N.state=O.ATTRIB_NAME_SAW_WHITE:P(y,$)?N.attribName+=$:le(N,"Invalid attribute name");continue;case O.ATTRIB_NAME_SAW_WHITE:if($==="=")N.state=O.ATTRIB_VALUE;else{if(g($))continue;le(N,"Attribute without value"),N.tag.attributes[N.attribName]="",N.attribValue="",L(N,"onattribute",{name:N.attribName,value:""}),N.attribName="",$===">"?pe(N):P(T,$)?(N.attribName=$,N.state=O.ATTRIB_NAME):(le(N,"Invalid attribute name"),N.state=O.ATTRIB)}continue;case O.ATTRIB_VALUE:if(g($))continue;v($)?(N.q=$,N.state=O.ATTRIB_VALUE_QUOTED):(N.opt.unquotedAttributeValues||ee(N,"Unquoted attribute value"),N.state=O.ATTRIB_VALUE_UNQUOTED,N.attribValue=$);continue;case O.ATTRIB_VALUE_QUOTED:if($!==N.q){$==="&"?N.state=O.ATTRIB_VALUE_ENTITY_Q:N.attribValue+=$;continue}be(N),N.q="",N.state=O.ATTRIB_VALUE_CLOSED;continue;case O.ATTRIB_VALUE_CLOSED:g($)?N.state=O.ATTRIB:$===">"?pe(N):$==="/"?N.state=O.OPEN_TAG_SLASH:P(T,$)?(le(N,"No whitespace between attributes"),N.attribName=$,N.attribValue="",N.state=O.ATTRIB_NAME):le(N,"Invalid attribute name");continue;case O.ATTRIB_VALUE_UNQUOTED:if(!A($)){$==="&"?N.state=O.ATTRIB_VALUE_ENTITY_U:N.attribValue+=$;continue}be(N),$===">"?pe(N):N.state=O.ATTRIB;continue;case O.CLOSE_TAG:if(N.tagName)$===">"?G(N):P(y,$)?N.tagName+=$:N.script?(N.script+="</"+N.tagName,N.tagName="",N.state=O.SCRIPT):(g($)||le(N,"Invalid tagname in closing tag"),N.state=O.CLOSE_TAG_SAW_WHITE);else{if(g($))continue;I(T,$)?N.script?(N.script+="</"+$,N.state=O.SCRIPT):le(N,"Invalid tagname in closing tag."):N.tagName=$}continue;case O.CLOSE_TAG_SAW_WHITE:if(g($))continue;$===">"?G(N):le(N,"Invalid characters in closing tag");continue;case O.TEXT_ENTITY:case O.ATTRIB_VALUE_ENTITY_Q:case O.ATTRIB_VALUE_ENTITY_U:var J,oe;switch(N.state){case O.TEXT_ENTITY:J=O.TEXT,oe="textNode";break;case O.ATTRIB_VALUE_ENTITY_Q:J=O.ATTRIB_VALUE_QUOTED,oe="attribValue";break;case O.ATTRIB_VALUE_ENTITY_U:J=O.ATTRIB_VALUE_UNQUOTED,oe="attribValue";break}if($===";"){var ge=Z(N);N.opt.unparsedEntities&&!Object.values(t.XML_ENTITIES).includes(ge)?(N.entity="",N.state=J,N.write(ge)):(N[oe]+=ge,N.entity="",N.state=J)}else P(N.entity.length?d:p,$)?N.entity+=$:(le(N,"Invalid character in entity name"),N[oe]+="&"+N.entity+$,N.entity="",N.state=J);continue;default:throw new Error(N,"Unknown state: "+N.state)}return N.position>=N.bufferCheckPosition&&o(N),N}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||(function(){var R=String.fromCharCode,N=Math.floor,q=function(){var $=16384,B=[],U,J,oe=-1,ge=arguments.length;if(!ge)return"";for(var ce="";++oe<ge;){var he=Number(arguments[oe]);if(!isFinite(he)||he<0||he>1114111||N(he)!==he)throw RangeError("Invalid code point: "+he);he<=65535?B.push(he):(he-=65536,U=(he>>10)+55296,J=he%1024+56320,B.push(U,J)),(oe+1===ge||B.length>$)&&(ce+=R.apply(null,B),B.length=0)}return ce};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:q,configurable:!0,writable:!0}):String.fromCodePoint=q})()})(e)})(Dn)),Dn}var ho,Al;function po(){return Al||(Al=1,ho={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}),ho}var go,Tl;function yo(){if(Tl)return go;Tl=1;var e=po().isArray;return go={copyOptions:function(t){var r,n={};for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n},ensureFlagExists:function(t,r){(!(t in r)||typeof r[t]!="boolean")&&(r[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!e(t.alwaysArray))&&(t.alwaysArray=!1)},ensureKeyExists:function(t,r){(!(t+"Key"in r)||typeof r[t+"Key"]!="string")&&(r[t+"Key"]=r.compact?"_"+t:t)},checkFnExists:function(t,r){return t+"Fn"in r}},go}var mo,Sl;function _l(){if(Sl)return mo;Sl=1;var e=A0(),t=yo(),r=po().isArray,n,o;function i(y){return n=t.copyOptions(y),t.ensureFlagExists("ignoreDeclaration",n),t.ensureFlagExists("ignoreInstruction",n),t.ensureFlagExists("ignoreAttributes",n),t.ensureFlagExists("ignoreText",n),t.ensureFlagExists("ignoreComment",n),t.ensureFlagExists("ignoreCdata",n),t.ensureFlagExists("ignoreDoctype",n),t.ensureFlagExists("compact",n),t.ensureFlagExists("alwaysChildren",n),t.ensureFlagExists("addParent",n),t.ensureFlagExists("trim",n),t.ensureFlagExists("nativeType",n),t.ensureFlagExists("nativeTypeAttributes",n),t.ensureFlagExists("sanitize",n),t.ensureFlagExists("instructionHasAttributes",n),t.ensureFlagExists("captureSpacesBetweenElements",n),t.ensureAlwaysArrayExists(n),t.ensureKeyExists("declaration",n),t.ensureKeyExists("instruction",n),t.ensureKeyExists("attributes",n),t.ensureKeyExists("text",n),t.ensureKeyExists("comment",n),t.ensureKeyExists("cdata",n),t.ensureKeyExists("doctype",n),t.ensureKeyExists("type",n),t.ensureKeyExists("name",n),t.ensureKeyExists("elements",n),t.ensureKeyExists("parent",n),t.checkFnExists("doctype",n),t.checkFnExists("instruction",n),t.checkFnExists("cdata",n),t.checkFnExists("comment",n),t.checkFnExists("text",n),t.checkFnExists("instructionName",n),t.checkFnExists("elementName",n),t.checkFnExists("attributeName",n),t.checkFnExists("attributeValue",n),t.checkFnExists("attributes",n),n}function a(y){var p=Number(y);if(!isNaN(p))return p;var d=y.toLowerCase();return d==="true"?!0:d==="false"?!1:y}function u(y,p){var d;if(n.compact){if(!o[n[y+"Key"]]&&(r(n.alwaysArray)?n.alwaysArray.indexOf(n[y+"Key"])!==-1:n.alwaysArray)&&(o[n[y+"Key"]]=[]),o[n[y+"Key"]]&&!r(o[n[y+"Key"]])&&(o[n[y+"Key"]]=[o[n[y+"Key"]]]),y+"Fn"in n&&typeof p=="string"&&(p=n[y+"Fn"](p,o)),y==="instruction"&&("instructionFn"in n||"instructionNameFn"in n)){for(d in p)if(p.hasOwnProperty(d))if("instructionFn"in n)p[d]=n.instructionFn(p[d],d,o);else{var g=p[d];delete p[d],p[n.instructionNameFn(d,g,o)]=g}}r(o[n[y+"Key"]])?o[n[y+"Key"]].push(p):o[n[y+"Key"]]=p}else{o[n.elementsKey]||(o[n.elementsKey]=[]);var v={};if(v[n.typeKey]=y,y==="instruction"){for(d in p)if(p.hasOwnProperty(d))break;v[n.nameKey]="instructionNameFn"in n?n.instructionNameFn(d,p,o):d,n.instructionHasAttributes?(v[n.attributesKey]=p[d][n.attributesKey],"instructionFn"in n&&(v[n.attributesKey]=n.instructionFn(v[n.attributesKey],d,o))):("instructionFn"in n&&(p[d]=n.instructionFn(p[d],d,o)),v[n.instructionKey]=p[d])}else y+"Fn"in n&&(p=n[y+"Fn"](p,o)),v[n[y+"Key"]]=p;n.addParent&&(v[n.parentKey]=o),o[n.elementsKey].push(v)}}function c(y){if("attributesFn"in n&&y&&(y=n.attributesFn(y,o)),(n.trim||"attributeValueFn"in n||"attributeNameFn"in n||n.nativeTypeAttributes)&&y){var p;for(p in y)if(y.hasOwnProperty(p)&&(n.trim&&(y[p]=y[p].trim()),n.nativeTypeAttributes&&(y[p]=a(y[p])),"attributeValueFn"in n&&(y[p]=n.attributeValueFn(y[p],p,o)),"attributeNameFn"in n)){var d=y[p];delete y[p],y[n.attributeNameFn(p,y[p],o)]=d}}return y}function l(y){var p={};if(y.body&&(y.name.toLowerCase()==="xml"||n.instructionHasAttributes)){for(var d=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,g;(g=d.exec(y.body))!==null;)p[g[1]]=g[2]||g[3]||g[4];p=c(p)}if(y.name.toLowerCase()==="xml"){if(n.ignoreDeclaration)return;o[n.declarationKey]={},Object.keys(p).length&&(o[n.declarationKey][n.attributesKey]=p),n.addParent&&(o[n.declarationKey][n.parentKey]=o)}else{if(n.ignoreInstruction)return;n.trim&&(y.body=y.body.trim());var v={};n.instructionHasAttributes&&Object.keys(p).length?(v[y.name]={},v[y.name][n.attributesKey]=p):v[y.name]=y.body,u("instruction",v)}}function s(y,p){var d;if(typeof y=="object"&&(p=y.attributes,y=y.name),p=c(p),"elementNameFn"in n&&(y=n.elementNameFn(y,o)),n.compact){if(d={},!n.ignoreAttributes&&p&&Object.keys(p).length){d[n.attributesKey]={};var g;for(g in p)p.hasOwnProperty(g)&&(d[n.attributesKey][g]=p[g])}!(y in o)&&(r(n.alwaysArray)?n.alwaysArray.indexOf(y)!==-1:n.alwaysArray)&&(o[y]=[]),o[y]&&!r(o[y])&&(o[y]=[o[y]]),r(o[y])?o[y].push(d):o[y]=d}else o[n.elementsKey]||(o[n.elementsKey]=[]),d={},d[n.typeKey]="element",d[n.nameKey]=y,!n.ignoreAttributes&&p&&Object.keys(p).length&&(d[n.attributesKey]=p),n.alwaysChildren&&(d[n.elementsKey]=[]),o[n.elementsKey].push(d);d[n.parentKey]=o,o=d}function f(y){n.ignoreText||!y.trim()&&!n.captureSpacesBetweenElements||(n.trim&&(y=y.trim()),n.nativeType&&(y=a(y)),n.sanitize&&(y=y.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),u("text",y))}function h(y){n.ignoreComment||(n.trim&&(y=y.trim()),u("comment",y))}function E(y){var p=o[n.parentKey];n.addParent||delete o[n.parentKey],o=p}function m(y){n.ignoreCdata||(n.trim&&(y=y.trim()),u("cdata",y))}function x(y){n.ignoreDoctype||(y=y.replace(/^ /,""),n.trim&&(y=y.trim()),u("doctype",y))}function T(y){y.note=y}return mo=function(y,p){var d=e.parser(!0,{}),g={};if(o=g,n=i(p),d.opt={strictEntities:!0},d.onopentag=s,d.ontext=f,d.oncomment=h,d.onclosetag=E,d.onerror=T,d.oncdata=m,d.ondoctype=x,d.onprocessinginstruction=l,d.write(y).close(),g[n.elementsKey]){var v=g[n.elementsKey];delete g[n.elementsKey],g[n.elementsKey]=v,delete g.text}return g},mo}var bo,Ol;function T0(){if(Ol)return bo;Ol=1;var e=yo(),t=_l();function r(n){var o=e.copyOptions(n);return e.ensureSpacesExists(o),o}return bo=function(n,o){var i,a,u,c;return i=r(o),a=t(n,i),c="compact"in i&&i.compact?"_parent":"parent","addParent"in i&&i.addParent?u=JSON.stringify(a,function(l,s){return l===c?"_":s},i.spaces):u=JSON.stringify(a,null,i.spaces),u.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},bo}var wo,Nl;function Rl(){if(Nl)return wo;Nl=1;var e=yo(),t=po().isArray,r,n;function o(d){var g=e.copyOptions(d);return e.ensureFlagExists("ignoreDeclaration",g),e.ensureFlagExists("ignoreInstruction",g),e.ensureFlagExists("ignoreAttributes",g),e.ensureFlagExists("ignoreText",g),e.ensureFlagExists("ignoreComment",g),e.ensureFlagExists("ignoreCdata",g),e.ensureFlagExists("ignoreDoctype",g),e.ensureFlagExists("compact",g),e.ensureFlagExists("indentText",g),e.ensureFlagExists("indentCdata",g),e.ensureFlagExists("indentAttributes",g),e.ensureFlagExists("indentInstruction",g),e.ensureFlagExists("fullTagEmptyElement",g),e.ensureFlagExists("noQuotesForNativeAttributes",g),e.ensureSpacesExists(g),typeof g.spaces=="number"&&(g.spaces=Array(g.spaces+1).join(" ")),e.ensureKeyExists("declaration",g),e.ensureKeyExists("instruction",g),e.ensureKeyExists("attributes",g),e.ensureKeyExists("text",g),e.ensureKeyExists("comment",g),e.ensureKeyExists("cdata",g),e.ensureKeyExists("doctype",g),e.ensureKeyExists("type",g),e.ensureKeyExists("name",g),e.ensureKeyExists("elements",g),e.checkFnExists("doctype",g),e.checkFnExists("instruction",g),e.checkFnExists("cdata",g),e.checkFnExists("comment",g),e.checkFnExists("text",g),e.checkFnExists("instructionName",g),e.checkFnExists("elementName",g),e.checkFnExists("attributeName",g),e.checkFnExists("attributeValue",g),e.checkFnExists("attributes",g),e.checkFnExists("fullTagEmptyElement",g),g}function i(d,g,v){return(!v&&d.spaces?`
|
|
34
|
-
`:"")+Array(g+1).join(d.spaces)}function a(d,g,v){if(g.ignoreAttributes)return"";"attributesFn"in g&&(d=g.attributesFn(d,n,r));var A,P,
|
|
35
|
-
`+Array(v+1).join(g.spaces):""),A.push("</"+P+">")):A.push("/>"),A.join("")}function x(d,g,v,A){return d.reduce(function(P,I){var O=i(g,v,A&&!P);switch(I.type){case"element":return P+O+m(I,g,v);case"comment":return P+O+l(I[g.commentKey],g);case"doctype":return P+O+f(I[g.doctypeKey],g);case"cdata":return P+(g.indentCdata?O:"")+s(I[g.cdataKey],g);case"text":return P+(g.indentText?O:"")+h(I[g.textKey],g);case"instruction":var j={};return j[I[g.nameKey]]=I[g.attributesKey]?I:I[g.instructionKey],P+(g.indentInstruction?O:"")+c(j,g,v)}},"")}function T(d,g,v){var A;for(A in d)if(d.hasOwnProperty(A))switch(A){case g.parentKey:case g.attributesKey:break;case g.textKey:if(g.indentText||v)return!0;break;case g.cdataKey:if(g.indentCdata||v)return!0;break;case g.instructionKey:if(g.indentInstruction||v)return!0;break;case g.doctypeKey:case g.commentKey:return!0;default:return!0}return!1}function y(d,g,v,A,P){r=d,n=g;var I="elementNameFn"in v?v.elementNameFn(g,d):g;if(typeof d>"u"||d===null||d==="")return"fullTagEmptyElementFn"in v&&v.fullTagEmptyElementFn(g,d)||v.fullTagEmptyElement?"<"+I+"></"+I+">":"<"+I+"/>";var O=[];if(g){if(O.push("<"+I),typeof d!="object")return O.push(">"+h(d,v)+"</"+I+">"),O.join("");d[v.attributesKey]&&O.push(a(d[v.attributesKey],v,A));var j=T(d,v,!0)||d[v.attributesKey]&&d[v.attributesKey]["xml:space"]==="preserve";if(j||("fullTagEmptyElementFn"in v?j=v.fullTagEmptyElementFn(g,d):j=v.fullTagEmptyElement),j)O.push(">");else return O.push("/>"),O.join("")}return O.push(p(d,v,A+1,!1)),r=d,n=g,g&&O.push((P?i(v,A,!1):"")+"</"+I+">"),O.join("")}function p(d,g,v,A){var P,I,O,j=[];for(I in d)if(d.hasOwnProperty(I))for(O=t(d[I])?d[I]:[d[I]],P=0;P<O.length;++P){switch(I){case g.declarationKey:j.push(u(O[P],g,v));break;case g.instructionKey:j.push((g.indentInstruction?i(g,v,A):"")+c(O[P],g,v));break;case g.attributesKey:case g.parentKey:break;case g.textKey:j.push((g.indentText?i(g,v,A):"")+h(O[P],g));break;case g.cdataKey:j.push((g.indentCdata?i(g,v,A):"")+s(O[P],g));break;case g.doctypeKey:j.push(i(g,v,A)+f(O[P],g));break;case g.commentKey:j.push(i(g,v,A)+l(O[P],g));break;default:j.push(i(g,v,A)+y(O[P],I,g,v,T(O[P],g)))}A=A&&!j.length}return j.join("")}return wo=function(d,g){g=o(g);var v=[];return r=d,n="_root_",g.compact?v.push(p(d,g,0,!0)):(d[g.declarationKey]&&v.push(u(d[g.declarationKey],g,0)),d[g.elementsKey]&&d[g.elementsKey].length&&v.push(x(d[g.elementsKey],g,0,!v.length))),v.join("")},wo}var vo,Pl;function S0(){if(Pl)return vo;Pl=1;var e=Rl();return vo=function(t,r){t instanceof Ht&&(t=t.toString());var n=null;if(typeof t=="string")try{n=JSON.parse(t)}catch{throw new Error("The JSON structure is invalid")}else n=t;return e(n,r)},vo}var Eo,Il;function _0(){if(Il)return Eo;Il=1;var e=_l(),t=T0(),r=Rl(),n=S0();return Eo={xml2js:e,xml2json:t,js2xml:r,json2xml:n},Eo}var O0=_0(),N0=fn(O0);/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function R0(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function dr(e,t=""){if(!Number.isSafeInteger(e)||e<0){const r=t&&`"${t}" `;throw new Error(`${r}expected integer >0, got ${e}`)}}function pr(e,t,r=""){const n=R0(e),o=e?.length,i=t!==void 0;if(!n||i&&o!==t){const a=r&&`"${r}" `,u=i?` of length ${t}`:"",c=n?`length=${o}`:`type=${typeof e}`;throw new Error(a+"expected Uint8Array"+u+", got "+c)}return e}function Fl(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash must wrapped by utils.createHasher");dr(e.outputLen),dr(e.blockLen)}function zr(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function P0(e,t){pr(e,void 0,"digestInto() output");const r=t.outputLen;if(e.length<r)throw new Error('"digestInto() output" expected to be of length >='+r)}function gr(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Xr(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function I0(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Cl(e,t=""){return typeof e=="string"?I0(e):pr(e,void 0,t)}function F0(e,t){if(t!==void 0&&{}.toString.call(t)!=="[object Object]")throw new Error("options must be object or undefined");return Object.assign(e,t)}function C0(e,t={}){const r=(o,i)=>e(i).update(o).digest(),n=e(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.create=o=>e(o),Object.assign(r,t),Object.freeze(r)}const B0=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});class Bl{oHash;iHash;blockLen;outputLen;finished=!1;destroyed=!1;constructor(t,r){if(Fl(t),pr(r,void 0,"key"),this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const n=this.blockLen,o=new Uint8Array(n);o.set(r.length>n?t.create().update(r).digest():r);for(let i=0;i<o.length;i++)o[i]^=54;this.iHash.update(o),this.oHash=t.create();for(let i=0;i<o.length;i++)o[i]^=106;this.oHash.update(o),gr(o)}update(t){return zr(this),this.iHash.update(t),this}digestInto(t){zr(this),pr(t,this.outputLen,"output"),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||=Object.create(Object.getPrototypeOf(this),{});const{oHash:r,iHash:n,finished:o,destroyed:i,blockLen:a,outputLen:u}=this;return t=t,t.finished=o,t.destroyed=i,t.blockLen=a,t.outputLen=u,t.oHash=r._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Ll=(e,t,r)=>new Bl(e,t).update(r).digest();Ll.create=(e,t)=>new Bl(e,t);function L0(e,t,r,n){Fl(e);const o=F0({dkLen:32,asyncTick:10},n),{c:i,dkLen:a,asyncTick:u}=o;if(dr(i,"c"),dr(a,"dkLen"),dr(u,"asyncTick"),i<1)throw new Error("iterations (c) must be >= 1");const c=Cl(t,"password"),l=Cl(r,"salt"),s=new Uint8Array(a),f=Ll.create(e,c),h=f._cloneInto().update(l);return{c:i,dkLen:a,asyncTick:u,DK:s,PRF:f,PRFSalt:h}}function U0(e,t,r,n,o){return e.destroy(),t.destroy(),n&&n.destroy(),gr(o),r}function j0(e,t,r,n){const{c:o,dkLen:i,DK:a,PRF:u,PRFSalt:c}=L0(e,t,r,n);let l;const s=new Uint8Array(4),f=Xr(s),h=new Uint8Array(u.outputLen);for(let E=1,m=0;m<i;E++,m+=u.outputLen){const x=a.subarray(m,m+u.outputLen);f.setInt32(0,E,!1),(l=c._cloneInto(l)).update(s).digestInto(h),x.set(h.subarray(0,x.length));for(let T=1;T<o;T++){u._cloneInto(l).update(h).digestInto(h);for(let y=0;y<x.length;y++)x[y]^=h[y]}}return U0(u,c,a,l,h)}class k0{blockLen;outputLen;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(t,r,n,o){this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=o,this.buffer=new Uint8Array(t),this.view=Xr(this.buffer)}update(t){zr(this),pr(t);const{view:r,buffer:n,blockLen:o}=this,i=t.length;for(let a=0;a<i;){const u=Math.min(o-this.pos,i-a);if(u===o){const c=Xr(t);for(;o<=i-a;a+=o)this.process(c,a);continue}n.set(t.subarray(a,a+u),this.pos),this.pos+=u,a+=u,this.pos===o&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){zr(this),P0(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:o,isLE:i}=this;let{pos:a}=this;r[a++]=128,gr(this.buffer.subarray(a)),this.padOffset>o-a&&(this.process(n,0),a=0);for(let f=a;f<o;f++)r[f]=0;n.setBigUint64(o-8,BigInt(this.length*8),i),this.process(n,0);const u=Xr(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen must be aligned to 32bit");const l=c/4,s=this.get();if(l>s.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f<l;f++)u.setUint32(4*f,s[f],i)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||=new this.constructor,t.set(...this.get());const{blockLen:r,buffer:n,length:o,finished:i,destroyed:a,pos:u}=this;return t.destroyed=a,t.finished=i,t.length=o,t.pos=u,o%r&&t.buffer.set(n),t}clone(){return this._cloneInto()}}const ze=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Yr=BigInt(2**32-1),Ul=BigInt(32);function M0(e,t=!1){return t?{h:Number(e&Yr),l:Number(e>>Ul&Yr)}:{h:Number(e>>Ul&Yr)|0,l:Number(e&Yr)|0}}function D0(e,t=!1){const r=e.length;let n=new Uint32Array(r),o=new Uint32Array(r);for(let i=0;i<r;i++){const{h:a,l:u}=M0(e[i],t);[n[i],o[i]]=[a,u]}return[n,o]}const jl=(e,t,r)=>e>>>r,kl=(e,t,r)=>e<<32-r|t>>>r,Zt=(e,t,r)=>e>>>r|t<<32-r,Qt=(e,t,r)=>e<<32-r|t>>>r,Jr=(e,t,r)=>e<<64-r|t>>>r-32,Zr=(e,t,r)=>e>>>r-32|t<<64-r;function Et(e,t,r,n){const o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:o|0}}const $0=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),q0=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,H0=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),V0=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0,W0=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0),G0=(e,t,r,n,o,i)=>t+r+n+o+i+(e/2**32|0)|0,Ml=D0(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),K0=Ml[0],z0=Ml[1],_t=new Uint32Array(80),Ot=new Uint32Array(80);class X0 extends k0{constructor(t){super(128,t,16,!1)}get(){const{Ah:t,Al:r,Bh:n,Bl:o,Ch:i,Cl:a,Dh:u,Dl:c,Eh:l,El:s,Fh:f,Fl:h,Gh:E,Gl:m,Hh:x,Hl:T}=this;return[t,r,n,o,i,a,u,c,l,s,f,h,E,m,x,T]}set(t,r,n,o,i,a,u,c,l,s,f,h,E,m,x,T){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=o|0,this.Ch=i|0,this.Cl=a|0,this.Dh=u|0,this.Dl=c|0,this.Eh=l|0,this.El=s|0,this.Fh=f|0,this.Fl=h|0,this.Gh=E|0,this.Gl=m|0,this.Hh=x|0,this.Hl=T|0}process(t,r){for(let d=0;d<16;d++,r+=4)_t[d]=t.getUint32(r),Ot[d]=t.getUint32(r+=4);for(let d=16;d<80;d++){const g=_t[d-15]|0,v=Ot[d-15]|0,A=Zt(g,v,1)^Zt(g,v,8)^jl(g,v,7),P=Qt(g,v,1)^Qt(g,v,8)^kl(g,v,7),I=_t[d-2]|0,O=Ot[d-2]|0,j=Zt(I,O,19)^Jr(I,O,61)^jl(I,O,6),K=Qt(I,O,19)^Zr(I,O,61)^kl(I,O,6),L=H0(P,K,Ot[d-7],Ot[d-16]),k=V0(L,A,j,_t[d-7],_t[d-16]);_t[d]=k|0,Ot[d]=L|0}let{Ah:n,Al:o,Bh:i,Bl:a,Ch:u,Cl:c,Dh:l,Dl:s,Eh:f,El:h,Fh:E,Fl:m,Gh:x,Gl:T,Hh:y,Hl:p}=this;for(let d=0;d<80;d++){const g=Zt(f,h,14)^Zt(f,h,18)^Jr(f,h,41),v=Qt(f,h,14)^Qt(f,h,18)^Zr(f,h,41),A=f&E^~f&x,P=h&m^~h&T,I=W0(p,v,P,z0[d],Ot[d]),O=G0(I,y,g,A,K0[d],_t[d]),j=I|0,K=Zt(n,o,28)^Jr(n,o,34)^Jr(n,o,39),L=Qt(n,o,28)^Zr(n,o,34)^Zr(n,o,39),k=n&i^n&u^i&u,re=o&a^o&c^a&c;y=x|0,p=T|0,x=E|0,T=m|0,E=f|0,m=h|0,{h:f,l:h}=Et(l|0,s|0,O|0,j|0),l=u|0,s=c|0,u=i|0,c=a|0,i=n|0,a=o|0;const ee=$0(j,L,re);n=q0(ee,O,K,k),o=ee|0}({h:n,l:o}=Et(this.Ah|0,this.Al|0,n|0,o|0)),{h:i,l:a}=Et(this.Bh|0,this.Bl|0,i|0,a|0),{h:u,l:c}=Et(this.Ch|0,this.Cl|0,u|0,c|0),{h:l,l:s}=Et(this.Dh|0,this.Dl|0,l|0,s|0),{h:f,l:h}=Et(this.Eh|0,this.El|0,f|0,h|0),{h:E,l:m}=Et(this.Fh|0,this.Fl|0,E|0,m|0),{h:x,l:T}=Et(this.Gh|0,this.Gl|0,x|0,T|0),{h:y,l:p}=Et(this.Hh|0,this.Hl|0,y|0,p|0),this.set(n,o,i,a,u,c,l,s,f,h,E,m,x,T,y,p)}roundClean(){gr(_t,Ot)}destroy(){gr(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class Y0 extends X0{Ah=ze[0]|0;Al=ze[1]|0;Bh=ze[2]|0;Bl=ze[3]|0;Ch=ze[4]|0;Cl=ze[5]|0;Dh=ze[6]|0;Dl=ze[7]|0;Eh=ze[8]|0;El=ze[9]|0;Fh=ze[10]|0;Fl=ze[11]|0;Gh=ze[12]|0;Gl=ze[13]|0;Hh=ze[14]|0;Hl=ze[15]|0;constructor(){super(64)}}const J0=C0(()=>new Y0,B0(3)),Z0=(e,t,r,n)=>Ht.from(j0(J0,e,t,{c:r,dkLen:n}));class Q0{axiosClient;baseURI;signingKey;ALGORITHM="sha512";TTL=1200;HASH_LENGTH=32;ITERATION_COUNT=1e4;constructor({axiosClient:t,baseURI:r}){this.axiosClient=t,this.baseURI=r}async signUrl(t,r){const n=new URL(t);n.searchParams.set("OC-Credential",r),n.searchParams.set("OC-Date",new Date().toISOString()),n.searchParams.set("OC-Expires",this.TTL.toString()),n.searchParams.set("OC-Verb","GET");const o=await this.createHashedKey(n.toString());return n.searchParams.set("OC-Algo",`PBKDF2/${this.ITERATION_COUNT}-SHA512`),n.searchParams.set("OC-Signature",o),n.toString()}async getSignKey(){if(this.signingKey)return this.signingKey;const t=await this.axiosClient.get(Ee(this.baseURI,"ocs/v1.php/cloud/user/signing-key"),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),r=N0.xml2js(t.data,{compact:!0});return this.signingKey=r.ocs.data["signing-key"]._text,this.signingKey}async createHashedKey(t){const r=await this.getSignKey();return Z0(t,r,this.ITERATION_COUNT,this.HASH_LENGTH,this.ALGORITHM).toString("hex")}}const ey=(e,t)=>{const r=new URL(e);r.pathname=[...r.pathname.split("/"),"ocs","v1.php"].filter(Boolean).join("/");const n=r.href,o=Bg(n,t),i=new Q0({baseURI:e,axiosClient:t});return{getCapabilities:()=>o.getCapabilities(),signUrl:(a,u)=>i.signUrl(a,u)}},xt=(e,{fileId:t,path:r,name:n})=>{if(r!==void 0)return Ee(e.webDavPath,r);if(t!==void 0){if(kn(e))throw new Error("public spaces need a path provided");return Ee("spaces",t,n||"")}return e.webDavPath},ty=(e,t)=>({copyFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:c},{overwrite:l,...s}={}){const f=xt(r,{fileId:o,path:n}),h=xt(i,{fileId:u,path:a,name:c});return e.copy(f,h,{overwrite:l||!1,...s})}}),ry=(e,t,r)=>({async createFolder(n,{path:o,parentFolderId:i,folderName:a,fetchFolder:u=!0,...c}){const l=xt(n,{fileId:i,path:o,name:a});if(await e.mkcol(l),u)return t.getFileInfo(n,{path:o},c)}}),ny=(e,{axiosClient:t})=>({async getFileContents(r,{fileId:n,path:o},{responseType:i="text",noCache:a=!0,headers:u,...c}={}){try{const l=xt(r,{fileId:n,path:o}),s=await t.get(e.getFileUrl(l),{responseType:i,headers:{...a&&{"Cache-Control":"no-cache"},...u||{}},...c});return{response:s,body:s.data,headers:{ETag:s.headers.etag,"OC-ETag":s.headers["oc-etag"],"OC-FileId":s.headers["oc-fileid"]}}}catch(l){const{message:s,response:f}=l;throw new ra(s,f,f.status)}}}),iy=(e,t)=>({async getFileInfo(r,n,o){return(await e.listFiles(r,n,{depth:0,...o})).resource}}),oy=(e,t,{axiosClient:r,baseUrl:n})=>({async getFileUrl(o,i,{disposition:a="attachment",isUrlSigningEnabled:u=!1,signUrlTimeout:c=86400,version:l=null,doHeadRequest:s=!1,username:f="",...h}){const E=a==="inline";let{downloadURL:m}=i,x=!0;if(!m&&!E&&(m=l?e.getFileUrl(Ee("meta",i.fileId,"v",l)):e.getFileUrl(i.webDavPath),f&&s&&await r.head(m),u&&f?m=await ey(n,r).signUrl(m,f):x=!1),!x||E){const T=await t.getFileContents(o,i,{responseType:"blob",...h});m=URL.createObjectURL(T.body)}return m},revokeUrl:o=>{o&&o.startsWith("blob:")&&URL.revokeObjectURL(o)}}),sy=(e,t)=>({getPublicFileUrl(r,n){return e.getFileUrl(Ee("public-files",n))}}),ay=(e,t,r)=>({async listFiles(n,{path:o,fileId:i}={},{depth:a=1,davProperties:u,isTrash:c=!1,...l}={}){let s;if(kn(n)){s=await e.propfind(Ee(n.webDavPath,o),{depth:a,properties:u||Bt.PublicLink,...l}),s.forEach(m=>{m.filename=m.filename.split("/").slice(1).join("/")}),s.length===1&&(s[0].filename=Ee(n.id,o,{leadingSlash:!0})),s.forEach(m=>{m.filename=m.filename.split("/").slice(2).join("/")});const h=n.driveAlias.startsWith("ocm/")?"ocm":"public-link";if((!o||o==="/")&&a>0&&h==="ocm"&&s[0].props[se.PublicLinkItemType]==="file"&&(s=[{basename:n.fileId,type:"directory",filename:"",props:{}},...s]),!o){const[m,...x]=s;return{resource:Fg({...m,id:n.id,driveAlias:n.driveAlias,webDavPath:n.webDavPath,publicLinkType:h}),children:x.map(T=>zt(T,e.extraProps))}}const E=s.map(m=>zt(m,e.extraProps));return{resource:E[0],children:E.slice(1)}}const f=async()=>{const h=await t.getPathForFileId(i);return this.listFiles(n,{path:h},{depth:a,davProperties:u})};try{let h="";if(c?h=Mn(n.id):h=xt(n,{fileId:i,path:o}),s=await e.propfind(h,{depth:a,properties:u||Bt.Default,...l}),c)return{resource:zt(s[0],e.extraProps),children:s.slice(1).map(Pg)};const E=s.map(x=>zt(x,e.extraProps)),m=i===n.id;return i&&!m&&i!==E[0].fileId?f():{resource:E[0],children:E.slice(1)}}catch(h){if(h.statusCode===404&&i)return f();throw h}}}),uy=(e,t)=>({moveFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:c},{overwrite:l,...s}={}){const f=xt(r,{fileId:o,path:n}),h=xt(i,{fileId:u,path:a,name:c});return e.move(f,h,{overwrite:l||!1,...s})}}),ly=(e,t,r)=>({async putFileContents(n,{fileName:o,path:i,parentFolderId:a,content:u="",previousEntityTag:c="",overwrite:l,onUploadProgress:s=null,...f}){const h=xt(n,{fileId:a,name:o,path:i}),{result:E}=await e.put(h,u,{previousEntityTag:c,overwrite:l,onUploadProgress:s,...f});return t.getFileInfo(n,{fileId:E.headers.get("Oc-Fileid"),path:i})}}),cy=(e,t)=>({deleteFile(r,{path:n,...o}){return e.delete(Ee(r.webDavPath,n),o)}}),fy=(e,t)=>({restoreFile(r,{id:n},{path:o},{overwrite:i,...a}={}){if(kn(r))return;const u=Ee(r.webDavPath,o);return e.move(Ee(r.webDavTrashPath,n),u,{overwrite:i,...a})}}),hy=(e,t)=>({restoreFileVersion(r,{parentFolderId:n,name:o,path:i},a,u={}){const c=xt(r,{path:i,fileId:n,name:o}),l=Ee("meta",n,"v",a,{leadingSlash:!0}),s=Ee("files",c,{leadingSlash:!0});return e.copy(l,s,u)}}),dy=(e,t)=>({clearTrashBin(r,{id:n,...o}={}){let i=Mn(r.id);return n&&(i=Ee(i,n)),e.delete(i,o)}}),py=(e,t)=>({async search(r,{davProperties:n=Bt.Default,searchLimit:o,...i}){const a="/spaces/",{range:u,results:c}=await e.report(a,{pattern:r,limit:o,properties:n,...i});return{resources:c.map(l=>({...zt(l,e.extraProps),highlights:l.props[se.Highlights]||""})),totalResults:u?parseInt(u?.split("/")[1]):null}}}),gy=(e,t)=>({async getPathForFileId(r,n={}){return(await e.propfind(Ee("meta",r,{leadingSlash:!0}),{properties:[se.MetaPathForUser],...n}))[0].props[se.MetaPathForUser]}});/*! For license information please see index.js.LICENSE.txt */var yy={2:e=>{function t(o,i,a){o instanceof RegExp&&(o=r(o,a)),i instanceof RegExp&&(i=r(i,a));var u=n(o,i,a);return u&&{start:u[0],end:u[1],pre:a.slice(0,u[0]),body:a.slice(u[0]+o.length,u[1]),post:a.slice(u[1]+i.length)}}function r(o,i){var a=i.match(o);return a?a[0]:null}function n(o,i,a){var u,c,l,s,f,h=a.indexOf(o),E=a.indexOf(i,h+1),m=h;if(h>=0&&E>0){for(u=[],l=a.length;m>=0&&!f;)m==h?(u.push(m),h=a.indexOf(o,m+1)):u.length==1?f=[u.pop(),E]:((c=u.pop())<l&&(l=c,s=E),E=a.indexOf(i,m+1)),m=h<E&&h>=0?h:E;u.length&&(f=[l,s])}return f}e.exports=t,t.range=n},101:function(e,t,r){var n;e=r.nmd(e),(function(o){var i=(e&&e.exports,typeof wt=="object"&&wt);i.global!==i&&i.window;var a=function(f){this.message=f};(a.prototype=new Error).name="InvalidCharacterError";var u=function(f){throw new a(f)},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,s={encode:function(f){f=String(f),/[^\0-\xFF]/.test(f)&&u("The string to be encoded contains characters outside of the Latin1 range.");for(var h,E,m,x,T=f.length%3,y="",p=-1,d=f.length-T;++p<d;)h=f.charCodeAt(p)<<16,E=f.charCodeAt(++p)<<8,m=f.charCodeAt(++p),y+=c.charAt((x=h+E+m)>>18&63)+c.charAt(x>>12&63)+c.charAt(x>>6&63)+c.charAt(63&x);return T==2?(h=f.charCodeAt(p)<<8,E=f.charCodeAt(++p),y+=c.charAt((x=h+E)>>10)+c.charAt(x>>4&63)+c.charAt(x<<2&63)+"="):T==1&&(x=f.charCodeAt(p),y+=c.charAt(x>>2)+c.charAt(x<<4&63)+"=="),y},decode:function(f){var h=(f=String(f).replace(l,"")).length;h%4==0&&(h=(f=f.replace(/==?$/,"")).length),(h%4==1||/[^+a-zA-Z0-9/]/.test(f))&&u("Invalid character: the string to be decoded is not correctly encoded.");for(var E,m,x=0,T="",y=-1;++y<h;)m=c.indexOf(f.charAt(y)),E=x%4?64*E+m:m,x++%4&&(T+=String.fromCharCode(255&E>>(-2*x&6)));return T},version:"1.0.0"};(n=(function(){return s}).call(t,r,t,e))===void 0||(e.exports=n)})()},172:(e,t)=>{t.d=function(r){if(!r)return 0;for(var n=(r=r.toString()).length,o=r.length;o--;){var i=r.charCodeAt(o);56320<=i&&i<=57343&&o--,127<i&&i<=2047?n++:2047<i&&i<=65535&&(n+=2)}return n}},526:e=>{var t={utf8:{stringToBytes:function(r){return t.bin.stringToBytes(unescape(encodeURIComponent(r)))},bytesToString:function(r){return decodeURIComponent(escape(t.bin.bytesToString(r)))}},bin:{stringToBytes:function(r){for(var n=[],o=0;o<r.length;o++)n.push(255&r.charCodeAt(o));return n},bytesToString:function(r){for(var n=[],o=0;o<r.length;o++)n.push(String.fromCharCode(r[o]));return n.join("")}}};e.exports=t},298:e=>{var t,r;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(n,o){return n<<o|n>>>32-o},rotr:function(n,o){return n<<32-o|n>>>o},endian:function(n){if(n.constructor==Number)return 16711935&r.rotl(n,8)|4278255360&r.rotl(n,24);for(var o=0;o<n.length;o++)n[o]=r.endian(n[o]);return n},randomBytes:function(n){for(var o=[];n>0;n--)o.push(Math.floor(256*Math.random()));return o},bytesToWords:function(n){for(var o=[],i=0,a=0;i<n.length;i++,a+=8)o[a>>>5]|=n[i]<<24-a%32;return o},wordsToBytes:function(n){for(var o=[],i=0;i<32*n.length;i+=8)o.push(n[i>>>5]>>>24-i%32&255);return o},bytesToHex:function(n){for(var o=[],i=0;i<n.length;i++)o.push((n[i]>>>4).toString(16)),o.push((15&n[i]).toString(16));return o.join("")},hexToBytes:function(n){for(var o=[],i=0;i<n.length;i+=2)o.push(parseInt(n.substr(i,2),16));return o},bytesToBase64:function(n){for(var o=[],i=0;i<n.length;i+=3)for(var a=n[i]<<16|n[i+1]<<8|n[i+2],u=0;u<4;u++)8*i+6*u<=8*n.length?o.push(t.charAt(a>>>6*(3-u)&63)):o.push("=");return o.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var o=[],i=0,a=0;i<n.length;a=++i%4)a!=0&&o.push((t.indexOf(n.charAt(i-1))&Math.pow(2,-2*a+8)-1)<<2*a|t.indexOf(n.charAt(i))>>>6-2*a);return o}},e.exports=r},635:(e,t,r)=>{const n=r(31),o=r(338),i=r(221);e.exports={XMLParser:o,XMLValidator:n,XMLBuilder:i}},118:e=>{e.exports=function(t){return typeof t=="function"?t:Array.isArray(t)?r=>{for(const n of t)if(typeof n=="string"&&r===n||n instanceof RegExp&&n.test(r))return!0}:()=>!1}},705:(e,t)=>{const r=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n="["+r+"]["+r+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+n+"$");t.isExist=function(i){return i!==void 0},t.isEmptyObject=function(i){return Object.keys(i).length===0},t.merge=function(i,a,u){if(a){const c=Object.keys(a),l=c.length;for(let s=0;s<l;s++)i[c[s]]=u==="strict"?[a[c[s]]]:a[c[s]]}},t.getValue=function(i){return t.isExist(i)?i:""},t.isName=function(i){return o.exec(i)!=null},t.getAllMatches=function(i,a){const u=[];let c=a.exec(i);for(;c;){const l=[];l.startIndex=a.lastIndex-c[0].length;const s=c.length;for(let f=0;f<s;f++)l.push(c[f]);u.push(l),c=a.exec(i)}return u},t.nameRegexp=n},31:(e,t,r)=>{const n=r(705),o={allowBooleanAttributes:!1,unpairedTags:[]};function i(p){return p===" "||p===" "||p===`
|
|
36
|
-
`||p==="\r"}function a(p,d){const g=d;for(;d<p.length;d++)if(!(p[d]!="?"&&p[d]!=" ")){const v=p.substr(g,d-g);if(d>5&&v==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",T(p,d));if(p[d]=="?"&&p[d+1]==">"){d++;break}}return d}function u(p,d){if(p.length>d+5&&p[d+1]==="-"&&p[d+2]==="-"){for(d+=3;d<p.length;d++)if(p[d]==="-"&&p[d+1]==="-"&&p[d+2]===">"){d+=2;break}}else if(p.length>d+8&&p[d+1]==="D"&&p[d+2]==="O"&&p[d+3]==="C"&&p[d+4]==="T"&&p[d+5]==="Y"&&p[d+6]==="P"&&p[d+7]==="E"){let g=1;for(d+=8;d<p.length;d++)if(p[d]==="<")g++;else if(p[d]===">"&&(g--,g===0))break}else if(p.length>d+9&&p[d+1]==="["&&p[d+2]==="C"&&p[d+3]==="D"&&p[d+4]==="A"&&p[d+5]==="T"&&p[d+6]==="A"&&p[d+7]==="["){for(d+=8;d<p.length;d++)if(p[d]==="]"&&p[d+1]==="]"&&p[d+2]===">"){d+=2;break}}return d}t.validate=function(p,d){d=Object.assign({},o,d);const g=[];let v=!1,A=!1;p[0]==="\uFEFF"&&(p=p.substr(1));for(let
|
|
37
|
-
`&&p[
|
|
33
|
+
`?(N.line++,N.column=0):N.column++);N.textNode+=R.substring(B,q-1)}$==="<"&&!(N.sawRoot&&N.closedRoot&&!N.strict)?(N.state=O.OPEN_WAKA,N.startTagPosition=N.position):(!g($)&&(!N.sawRoot||N.closedRoot)&&le(N,"Text data outside of root node."),$==="&"?N.state=O.TEXT_ENTITY:N.textNode+=$);continue;case O.SCRIPT:$==="<"?N.state=O.SCRIPT_ENDING:N.script+=$;continue;case O.SCRIPT_ENDING:$==="/"?N.state=O.CLOSE_TAG:(N.script+="<"+$,N.state=O.SCRIPT);continue;case O.OPEN_WAKA:if($==="!")N.state=O.SGML_DECL,N.sgmlDecl="";else if(!g($))if(I(T,$))N.state=O.OPEN_TAG,N.tagName=$;else if($==="/")N.state=O.CLOSE_TAG,N.tagName="";else if($==="?")N.state=O.PROC_INST,N.procInstName=N.procInstBody="";else{if(le(N,"Unencoded <"),N.startTagPosition+1<N.position){var U=N.position-N.startTagPosition;$=new Array(U).join(" ")+$}N.textNode+="<"+$,N.state=O.TEXT}continue;case O.SGML_DECL:if(N.sgmlDecl+$==="--"){N.state=O.COMMENT,N.comment="",N.sgmlDecl="";continue}N.doctype&&N.doctype!==!0&&N.sgmlDecl?(N.state=O.DOCTYPE_DTD,N.doctype+="<!"+N.sgmlDecl+$,N.sgmlDecl=""):(N.sgmlDecl+$).toUpperCase()===f?(L(N,"onopencdata"),N.state=O.CDATA,N.sgmlDecl="",N.cdata=""):(N.sgmlDecl+$).toUpperCase()===h?(N.state=O.DOCTYPE,(N.doctype||N.sawRoot)&&le(N,"Inappropriately located doctype declaration"),N.doctype="",N.sgmlDecl=""):$===">"?(L(N,"onsgmldeclaration",N.sgmlDecl),N.sgmlDecl="",N.state=O.TEXT):(v($)&&(N.state=O.SGML_DECL_QUOTED),N.sgmlDecl+=$);continue;case O.SGML_DECL_QUOTED:$===N.q&&(N.state=O.SGML_DECL,N.q=""),N.sgmlDecl+=$;continue;case O.DOCTYPE:$===">"?(N.state=O.TEXT,L(N,"ondoctype",N.doctype),N.doctype=!0):(N.doctype+=$,$==="["?N.state=O.DOCTYPE_DTD:v($)&&(N.state=O.DOCTYPE_QUOTED,N.q=$));continue;case O.DOCTYPE_QUOTED:N.doctype+=$,$===N.q&&(N.q="",N.state=O.DOCTYPE);continue;case O.DOCTYPE_DTD:$==="]"?(N.doctype+=$,N.state=O.DOCTYPE):$==="<"?(N.state=O.OPEN_WAKA,N.startTagPosition=N.position):v($)?(N.doctype+=$,N.state=O.DOCTYPE_DTD_QUOTED,N.q=$):N.doctype+=$;continue;case O.DOCTYPE_DTD_QUOTED:N.doctype+=$,$===N.q&&(N.state=O.DOCTYPE_DTD,N.q="");continue;case O.COMMENT:$==="-"?N.state=O.COMMENT_ENDING:N.comment+=$;continue;case O.COMMENT_ENDING:$==="-"?(N.state=O.COMMENT_ENDED,N.comment=re(N.opt,N.comment),N.comment&&L(N,"oncomment",N.comment),N.comment=""):(N.comment+="-"+$,N.state=O.COMMENT);continue;case O.COMMENT_ENDED:$!==">"?(le(N,"Malformed comment"),N.comment+="--"+$,N.state=O.COMMENT):N.doctype&&N.doctype!==!0?N.state=O.DOCTYPE_DTD:N.state=O.TEXT;continue;case O.CDATA:$==="]"?N.state=O.CDATA_ENDING:N.cdata+=$;continue;case O.CDATA_ENDING:$==="]"?N.state=O.CDATA_ENDING_2:(N.cdata+="]"+$,N.state=O.CDATA);continue;case O.CDATA_ENDING_2:$===">"?(N.cdata&&L(N,"oncdata",N.cdata),L(N,"onclosecdata"),N.cdata="",N.state=O.TEXT):$==="]"?N.cdata+="]":(N.cdata+="]]"+$,N.state=O.CDATA);continue;case O.PROC_INST:$==="?"?N.state=O.PROC_INST_ENDING:g($)?N.state=O.PROC_INST_BODY:N.procInstName+=$;continue;case O.PROC_INST_BODY:if(!N.procInstBody&&g($))continue;$==="?"?N.state=O.PROC_INST_ENDING:N.procInstBody+=$;continue;case O.PROC_INST_ENDING:$===">"?(L(N,"onprocessinginstruction",{name:N.procInstName,body:N.procInstBody}),N.procInstName=N.procInstBody="",N.state=O.TEXT):(N.procInstBody+="?"+$,N.state=O.PROC_INST_BODY);continue;case O.OPEN_TAG:I(y,$)?N.tagName+=$:(de(N),$===">"?pe(N):$==="/"?N.state=O.OPEN_TAG_SLASH:(g($)||le(N,"Invalid character in tag name"),N.state=O.ATTRIB));continue;case O.OPEN_TAG_SLASH:$===">"?(pe(N,!0),G(N)):(le(N,"Forward-slash in opening tag not followed by >"),N.state=O.ATTRIB);continue;case O.ATTRIB:if(g($))continue;$===">"?pe(N):$==="/"?N.state=O.OPEN_TAG_SLASH:I(T,$)?(N.attribName=$,N.attribValue="",N.state=O.ATTRIB_NAME):le(N,"Invalid attribute name");continue;case O.ATTRIB_NAME:$==="="?N.state=O.ATTRIB_VALUE:$===">"?(le(N,"Attribute without value"),N.attribValue=N.attribName,be(N),pe(N)):g($)?N.state=O.ATTRIB_NAME_SAW_WHITE:I(y,$)?N.attribName+=$:le(N,"Invalid attribute name");continue;case O.ATTRIB_NAME_SAW_WHITE:if($==="=")N.state=O.ATTRIB_VALUE;else{if(g($))continue;le(N,"Attribute without value"),N.tag.attributes[N.attribName]="",N.attribValue="",L(N,"onattribute",{name:N.attribName,value:""}),N.attribName="",$===">"?pe(N):I(T,$)?(N.attribName=$,N.state=O.ATTRIB_NAME):(le(N,"Invalid attribute name"),N.state=O.ATTRIB)}continue;case O.ATTRIB_VALUE:if(g($))continue;v($)?(N.q=$,N.state=O.ATTRIB_VALUE_QUOTED):(N.opt.unquotedAttributeValues||ee(N,"Unquoted attribute value"),N.state=O.ATTRIB_VALUE_UNQUOTED,N.attribValue=$);continue;case O.ATTRIB_VALUE_QUOTED:if($!==N.q){$==="&"?N.state=O.ATTRIB_VALUE_ENTITY_Q:N.attribValue+=$;continue}be(N),N.q="",N.state=O.ATTRIB_VALUE_CLOSED;continue;case O.ATTRIB_VALUE_CLOSED:g($)?N.state=O.ATTRIB:$===">"?pe(N):$==="/"?N.state=O.OPEN_TAG_SLASH:I(T,$)?(le(N,"No whitespace between attributes"),N.attribName=$,N.attribValue="",N.state=O.ATTRIB_NAME):le(N,"Invalid attribute name");continue;case O.ATTRIB_VALUE_UNQUOTED:if(!A($)){$==="&"?N.state=O.ATTRIB_VALUE_ENTITY_U:N.attribValue+=$;continue}be(N),$===">"?pe(N):N.state=O.ATTRIB;continue;case O.CLOSE_TAG:if(N.tagName)$===">"?G(N):I(y,$)?N.tagName+=$:N.script?(N.script+="</"+N.tagName,N.tagName="",N.state=O.SCRIPT):(g($)||le(N,"Invalid tagname in closing tag"),N.state=O.CLOSE_TAG_SAW_WHITE);else{if(g($))continue;P(T,$)?N.script?(N.script+="</"+$,N.state=O.SCRIPT):le(N,"Invalid tagname in closing tag."):N.tagName=$}continue;case O.CLOSE_TAG_SAW_WHITE:if(g($))continue;$===">"?G(N):le(N,"Invalid characters in closing tag");continue;case O.TEXT_ENTITY:case O.ATTRIB_VALUE_ENTITY_Q:case O.ATTRIB_VALUE_ENTITY_U:var J,oe;switch(N.state){case O.TEXT_ENTITY:J=O.TEXT,oe="textNode";break;case O.ATTRIB_VALUE_ENTITY_Q:J=O.ATTRIB_VALUE_QUOTED,oe="attribValue";break;case O.ATTRIB_VALUE_ENTITY_U:J=O.ATTRIB_VALUE_UNQUOTED,oe="attribValue";break}if($===";"){var ge=Z(N);N.opt.unparsedEntities&&!Object.values(t.XML_ENTITIES).includes(ge)?(N.entity="",N.state=J,N.write(ge)):(N[oe]+=ge,N.entity="",N.state=J)}else I(N.entity.length?d:p,$)?N.entity+=$:(le(N,"Invalid character in entity name"),N[oe]+="&"+N.entity+$,N.entity="",N.state=J);continue;default:throw new Error(N,"Unknown state: "+N.state)}return N.position>=N.bufferCheckPosition&&o(N),N}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||(function(){var R=String.fromCharCode,N=Math.floor,q=function(){var $=16384,B=[],U,J,oe=-1,ge=arguments.length;if(!ge)return"";for(var ce="";++oe<ge;){var he=Number(arguments[oe]);if(!isFinite(he)||he<0||he>1114111||N(he)!==he)throw RangeError("Invalid code point: "+he);he<=65535?B.push(he):(he-=65536,U=(he>>10)+55296,J=he%1024+56320,B.push(U,J)),(oe+1===ge||B.length>$)&&(ce+=R.apply(null,B),B.length=0)}return ce};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:q,configurable:!0,writable:!0}):String.fromCodePoint=q})()})(e)})($n)),$n}var po,xl;function go(){return xl||(xl=1,po={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}),po}var yo,Al;function mo(){if(Al)return yo;Al=1;var e=go().isArray;return yo={copyOptions:function(t){var r,n={};for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n},ensureFlagExists:function(t,r){(!(t in r)||typeof r[t]!="boolean")&&(r[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!e(t.alwaysArray))&&(t.alwaysArray=!1)},ensureKeyExists:function(t,r){(!(t+"Key"in r)||typeof r[t+"Key"]!="string")&&(r[t+"Key"]=r.compact?"_"+t:t)},checkFnExists:function(t,r){return t+"Fn"in r}},yo}var bo,Tl;function Sl(){if(Tl)return bo;Tl=1;var e=E0(),t=mo(),r=go().isArray,n,o;function i(y){return n=t.copyOptions(y),t.ensureFlagExists("ignoreDeclaration",n),t.ensureFlagExists("ignoreInstruction",n),t.ensureFlagExists("ignoreAttributes",n),t.ensureFlagExists("ignoreText",n),t.ensureFlagExists("ignoreComment",n),t.ensureFlagExists("ignoreCdata",n),t.ensureFlagExists("ignoreDoctype",n),t.ensureFlagExists("compact",n),t.ensureFlagExists("alwaysChildren",n),t.ensureFlagExists("addParent",n),t.ensureFlagExists("trim",n),t.ensureFlagExists("nativeType",n),t.ensureFlagExists("nativeTypeAttributes",n),t.ensureFlagExists("sanitize",n),t.ensureFlagExists("instructionHasAttributes",n),t.ensureFlagExists("captureSpacesBetweenElements",n),t.ensureAlwaysArrayExists(n),t.ensureKeyExists("declaration",n),t.ensureKeyExists("instruction",n),t.ensureKeyExists("attributes",n),t.ensureKeyExists("text",n),t.ensureKeyExists("comment",n),t.ensureKeyExists("cdata",n),t.ensureKeyExists("doctype",n),t.ensureKeyExists("type",n),t.ensureKeyExists("name",n),t.ensureKeyExists("elements",n),t.ensureKeyExists("parent",n),t.checkFnExists("doctype",n),t.checkFnExists("instruction",n),t.checkFnExists("cdata",n),t.checkFnExists("comment",n),t.checkFnExists("text",n),t.checkFnExists("instructionName",n),t.checkFnExists("elementName",n),t.checkFnExists("attributeName",n),t.checkFnExists("attributeValue",n),t.checkFnExists("attributes",n),n}function a(y){var p=Number(y);if(!isNaN(p))return p;var d=y.toLowerCase();return d==="true"?!0:d==="false"?!1:y}function u(y,p){var d;if(n.compact){if(!o[n[y+"Key"]]&&(r(n.alwaysArray)?n.alwaysArray.indexOf(n[y+"Key"])!==-1:n.alwaysArray)&&(o[n[y+"Key"]]=[]),o[n[y+"Key"]]&&!r(o[n[y+"Key"]])&&(o[n[y+"Key"]]=[o[n[y+"Key"]]]),y+"Fn"in n&&typeof p=="string"&&(p=n[y+"Fn"](p,o)),y==="instruction"&&("instructionFn"in n||"instructionNameFn"in n)){for(d in p)if(p.hasOwnProperty(d))if("instructionFn"in n)p[d]=n.instructionFn(p[d],d,o);else{var g=p[d];delete p[d],p[n.instructionNameFn(d,g,o)]=g}}r(o[n[y+"Key"]])?o[n[y+"Key"]].push(p):o[n[y+"Key"]]=p}else{o[n.elementsKey]||(o[n.elementsKey]=[]);var v={};if(v[n.typeKey]=y,y==="instruction"){for(d in p)if(p.hasOwnProperty(d))break;v[n.nameKey]="instructionNameFn"in n?n.instructionNameFn(d,p,o):d,n.instructionHasAttributes?(v[n.attributesKey]=p[d][n.attributesKey],"instructionFn"in n&&(v[n.attributesKey]=n.instructionFn(v[n.attributesKey],d,o))):("instructionFn"in n&&(p[d]=n.instructionFn(p[d],d,o)),v[n.instructionKey]=p[d])}else y+"Fn"in n&&(p=n[y+"Fn"](p,o)),v[n[y+"Key"]]=p;n.addParent&&(v[n.parentKey]=o),o[n.elementsKey].push(v)}}function c(y){if("attributesFn"in n&&y&&(y=n.attributesFn(y,o)),(n.trim||"attributeValueFn"in n||"attributeNameFn"in n||n.nativeTypeAttributes)&&y){var p;for(p in y)if(y.hasOwnProperty(p)&&(n.trim&&(y[p]=y[p].trim()),n.nativeTypeAttributes&&(y[p]=a(y[p])),"attributeValueFn"in n&&(y[p]=n.attributeValueFn(y[p],p,o)),"attributeNameFn"in n)){var d=y[p];delete y[p],y[n.attributeNameFn(p,y[p],o)]=d}}return y}function l(y){var p={};if(y.body&&(y.name.toLowerCase()==="xml"||n.instructionHasAttributes)){for(var d=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,g;(g=d.exec(y.body))!==null;)p[g[1]]=g[2]||g[3]||g[4];p=c(p)}if(y.name.toLowerCase()==="xml"){if(n.ignoreDeclaration)return;o[n.declarationKey]={},Object.keys(p).length&&(o[n.declarationKey][n.attributesKey]=p),n.addParent&&(o[n.declarationKey][n.parentKey]=o)}else{if(n.ignoreInstruction)return;n.trim&&(y.body=y.body.trim());var v={};n.instructionHasAttributes&&Object.keys(p).length?(v[y.name]={},v[y.name][n.attributesKey]=p):v[y.name]=y.body,u("instruction",v)}}function s(y,p){var d;if(typeof y=="object"&&(p=y.attributes,y=y.name),p=c(p),"elementNameFn"in n&&(y=n.elementNameFn(y,o)),n.compact){if(d={},!n.ignoreAttributes&&p&&Object.keys(p).length){d[n.attributesKey]={};var g;for(g in p)p.hasOwnProperty(g)&&(d[n.attributesKey][g]=p[g])}!(y in o)&&(r(n.alwaysArray)?n.alwaysArray.indexOf(y)!==-1:n.alwaysArray)&&(o[y]=[]),o[y]&&!r(o[y])&&(o[y]=[o[y]]),r(o[y])?o[y].push(d):o[y]=d}else o[n.elementsKey]||(o[n.elementsKey]=[]),d={},d[n.typeKey]="element",d[n.nameKey]=y,!n.ignoreAttributes&&p&&Object.keys(p).length&&(d[n.attributesKey]=p),n.alwaysChildren&&(d[n.elementsKey]=[]),o[n.elementsKey].push(d);d[n.parentKey]=o,o=d}function f(y){n.ignoreText||!y.trim()&&!n.captureSpacesBetweenElements||(n.trim&&(y=y.trim()),n.nativeType&&(y=a(y)),n.sanitize&&(y=y.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),u("text",y))}function h(y){n.ignoreComment||(n.trim&&(y=y.trim()),u("comment",y))}function x(y){var p=o[n.parentKey];n.addParent||delete o[n.parentKey],o=p}function m(y){n.ignoreCdata||(n.trim&&(y=y.trim()),u("cdata",y))}function E(y){n.ignoreDoctype||(y=y.replace(/^ /,""),n.trim&&(y=y.trim()),u("doctype",y))}function T(y){y.note=y}return bo=function(y,p){var d=e.parser(!0,{}),g={};if(o=g,n=i(p),d.opt={strictEntities:!0},d.onopentag=s,d.ontext=f,d.oncomment=h,d.onclosetag=x,d.onerror=T,d.oncdata=m,d.ondoctype=E,d.onprocessinginstruction=l,d.write(y).close(),g[n.elementsKey]){var v=g[n.elementsKey];delete g[n.elementsKey],g[n.elementsKey]=v,delete g.text}return g},bo}var wo,_l;function x0(){if(_l)return wo;_l=1;var e=mo(),t=Sl();function r(n){var o=e.copyOptions(n);return e.ensureSpacesExists(o),o}return wo=function(n,o){var i,a,u,c;return i=r(o),a=t(n,i),c="compact"in i&&i.compact?"_parent":"parent","addParent"in i&&i.addParent?u=JSON.stringify(a,function(l,s){return l===c?"_":s},i.spaces):u=JSON.stringify(a,null,i.spaces),u.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},wo}var vo,Ol;function Nl(){if(Ol)return vo;Ol=1;var e=mo(),t=go().isArray,r,n;function o(d){var g=e.copyOptions(d);return e.ensureFlagExists("ignoreDeclaration",g),e.ensureFlagExists("ignoreInstruction",g),e.ensureFlagExists("ignoreAttributes",g),e.ensureFlagExists("ignoreText",g),e.ensureFlagExists("ignoreComment",g),e.ensureFlagExists("ignoreCdata",g),e.ensureFlagExists("ignoreDoctype",g),e.ensureFlagExists("compact",g),e.ensureFlagExists("indentText",g),e.ensureFlagExists("indentCdata",g),e.ensureFlagExists("indentAttributes",g),e.ensureFlagExists("indentInstruction",g),e.ensureFlagExists("fullTagEmptyElement",g),e.ensureFlagExists("noQuotesForNativeAttributes",g),e.ensureSpacesExists(g),typeof g.spaces=="number"&&(g.spaces=Array(g.spaces+1).join(" ")),e.ensureKeyExists("declaration",g),e.ensureKeyExists("instruction",g),e.ensureKeyExists("attributes",g),e.ensureKeyExists("text",g),e.ensureKeyExists("comment",g),e.ensureKeyExists("cdata",g),e.ensureKeyExists("doctype",g),e.ensureKeyExists("type",g),e.ensureKeyExists("name",g),e.ensureKeyExists("elements",g),e.checkFnExists("doctype",g),e.checkFnExists("instruction",g),e.checkFnExists("cdata",g),e.checkFnExists("comment",g),e.checkFnExists("text",g),e.checkFnExists("instructionName",g),e.checkFnExists("elementName",g),e.checkFnExists("attributeName",g),e.checkFnExists("attributeValue",g),e.checkFnExists("attributes",g),e.checkFnExists("fullTagEmptyElement",g),g}function i(d,g,v){return(!v&&d.spaces?`
|
|
34
|
+
`:"")+Array(g+1).join(d.spaces)}function a(d,g,v){if(g.ignoreAttributes)return"";"attributesFn"in g&&(d=g.attributesFn(d,n,r));var A,I,P,O,j=[];for(A in d)d.hasOwnProperty(A)&&d[A]!==null&&d[A]!==void 0&&(O=g.noQuotesForNativeAttributes&&typeof d[A]!="string"?"":'"',I=""+d[A],I=I.replace(/"/g,"""),P="attributeNameFn"in g?g.attributeNameFn(A,I,n,r):A,j.push(g.spaces&&g.indentAttributes?i(g,v+1,!1):" "),j.push(P+"="+O+("attributeValueFn"in g?g.attributeValueFn(I,A,n,r):I)+O));return d&&Object.keys(d).length&&g.spaces&&g.indentAttributes&&j.push(i(g,v,!1)),j.join("")}function u(d,g,v){return r=d,n="xml",g.ignoreDeclaration?"":"<?xml"+a(d[g.attributesKey],g,v)+"?>"}function c(d,g,v){if(g.ignoreInstruction)return"";var A;for(A in d)if(d.hasOwnProperty(A))break;var I="instructionNameFn"in g?g.instructionNameFn(A,d[A],n,r):A;if(typeof d[A]=="object")return r=d,n=I,"<?"+I+a(d[A][g.attributesKey],g,v)+"?>";var P=d[A]?d[A]:"";return"instructionFn"in g&&(P=g.instructionFn(P,A,n,r)),"<?"+I+(P?" "+P:"")+"?>"}function l(d,g){return g.ignoreComment?"":"<!--"+("commentFn"in g?g.commentFn(d,n,r):d)+"-->"}function s(d,g){return g.ignoreCdata?"":"<![CDATA["+("cdataFn"in g?g.cdataFn(d,n,r):d.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function f(d,g){return g.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in g?g.doctypeFn(d,n,r):d)+">"}function h(d,g){return g.ignoreText?"":(d=""+d,d=d.replace(/&/g,"&"),d=d.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in g?g.textFn(d,n,r):d)}function x(d,g){var v;if(d.elements&&d.elements.length)for(v=0;v<d.elements.length;++v)switch(d.elements[v][g.typeKey]){case"text":if(g.indentText)return!0;break;case"cdata":if(g.indentCdata)return!0;break;case"instruction":if(g.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function m(d,g,v){r=d,n=d.name;var A=[],I="elementNameFn"in g?g.elementNameFn(d.name,d):d.name;A.push("<"+I),d[g.attributesKey]&&A.push(a(d[g.attributesKey],g,v));var P=d[g.elementsKey]&&d[g.elementsKey].length||d[g.attributesKey]&&d[g.attributesKey]["xml:space"]==="preserve";return P||("fullTagEmptyElementFn"in g?P=g.fullTagEmptyElementFn(d.name,d):P=g.fullTagEmptyElement),P?(A.push(">"),d[g.elementsKey]&&d[g.elementsKey].length&&(A.push(E(d[g.elementsKey],g,v+1)),r=d,n=d.name),A.push(g.spaces&&x(d,g)?`
|
|
35
|
+
`+Array(v+1).join(g.spaces):""),A.push("</"+I+">")):A.push("/>"),A.join("")}function E(d,g,v,A){return d.reduce(function(I,P){var O=i(g,v,A&&!I);switch(P.type){case"element":return I+O+m(P,g,v);case"comment":return I+O+l(P[g.commentKey],g);case"doctype":return I+O+f(P[g.doctypeKey],g);case"cdata":return I+(g.indentCdata?O:"")+s(P[g.cdataKey],g);case"text":return I+(g.indentText?O:"")+h(P[g.textKey],g);case"instruction":var j={};return j[P[g.nameKey]]=P[g.attributesKey]?P:P[g.instructionKey],I+(g.indentInstruction?O:"")+c(j,g,v)}},"")}function T(d,g,v){var A;for(A in d)if(d.hasOwnProperty(A))switch(A){case g.parentKey:case g.attributesKey:break;case g.textKey:if(g.indentText||v)return!0;break;case g.cdataKey:if(g.indentCdata||v)return!0;break;case g.instructionKey:if(g.indentInstruction||v)return!0;break;case g.doctypeKey:case g.commentKey:return!0;default:return!0}return!1}function y(d,g,v,A,I){r=d,n=g;var P="elementNameFn"in v?v.elementNameFn(g,d):g;if(typeof d>"u"||d===null||d==="")return"fullTagEmptyElementFn"in v&&v.fullTagEmptyElementFn(g,d)||v.fullTagEmptyElement?"<"+P+"></"+P+">":"<"+P+"/>";var O=[];if(g){if(O.push("<"+P),typeof d!="object")return O.push(">"+h(d,v)+"</"+P+">"),O.join("");d[v.attributesKey]&&O.push(a(d[v.attributesKey],v,A));var j=T(d,v,!0)||d[v.attributesKey]&&d[v.attributesKey]["xml:space"]==="preserve";if(j||("fullTagEmptyElementFn"in v?j=v.fullTagEmptyElementFn(g,d):j=v.fullTagEmptyElement),j)O.push(">");else return O.push("/>"),O.join("")}return O.push(p(d,v,A+1,!1)),r=d,n=g,g&&O.push((I?i(v,A,!1):"")+"</"+P+">"),O.join("")}function p(d,g,v,A){var I,P,O,j=[];for(P in d)if(d.hasOwnProperty(P))for(O=t(d[P])?d[P]:[d[P]],I=0;I<O.length;++I){switch(P){case g.declarationKey:j.push(u(O[I],g,v));break;case g.instructionKey:j.push((g.indentInstruction?i(g,v,A):"")+c(O[I],g,v));break;case g.attributesKey:case g.parentKey:break;case g.textKey:j.push((g.indentText?i(g,v,A):"")+h(O[I],g));break;case g.cdataKey:j.push((g.indentCdata?i(g,v,A):"")+s(O[I],g));break;case g.doctypeKey:j.push(i(g,v,A)+f(O[I],g));break;case g.commentKey:j.push(i(g,v,A)+l(O[I],g));break;default:j.push(i(g,v,A)+y(O[I],P,g,v,T(O[I],g)))}A=A&&!j.length}return j.join("")}return vo=function(d,g){g=o(g);var v=[];return r=d,n="_root_",g.compact?v.push(p(d,g,0,!0)):(d[g.declarationKey]&&v.push(u(d[g.declarationKey],g,0)),d[g.elementsKey]&&d[g.elementsKey].length&&v.push(E(d[g.elementsKey],g,0,!v.length))),v.join("")},vo}var Eo,Rl;function A0(){if(Rl)return Eo;Rl=1;var e=Nl();return Eo=function(t,r){t instanceof Ht&&(t=t.toString());var n=null;if(typeof t=="string")try{n=JSON.parse(t)}catch{throw new Error("The JSON structure is invalid")}else n=t;return e(n,r)},Eo}var xo,Il;function T0(){if(Il)return xo;Il=1;var e=Sl(),t=x0(),r=Nl(),n=A0();return xo={xml2js:e,xml2json:t,js2xml:r,json2xml:n},xo}var S0=T0(),_0=fn(S0);/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function O0(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function dr(e,t=""){if(!Number.isSafeInteger(e)||e<0){const r=t&&`"${t}" `;throw new Error(`${r}expected integer >= 0, got ${e}`)}}function pr(e,t,r=""){const n=O0(e),o=e?.length,i=t!==void 0;if(!n||i&&o!==t){const a=r&&`"${r}" `,u=i?` of length ${t}`:"",c=n?`length=${o}`:`type=${typeof e}`;throw new Error(a+"expected Uint8Array"+u+", got "+c)}return e}function Pl(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash must wrapped by utils.createHasher");dr(e.outputLen),dr(e.blockLen)}function zr(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function N0(e,t){pr(e,void 0,"digestInto() output");const r=t.outputLen;if(e.length<r)throw new Error('"digestInto() output" expected to be of length >='+r)}function gr(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Xr(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function R0(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Fl(e,t=""){return typeof e=="string"?R0(e):pr(e,void 0,t)}function I0(e,t){if(t!==void 0&&{}.toString.call(t)!=="[object Object]")throw new Error("options must be object or undefined");return Object.assign(e,t)}function P0(e,t={}){const r=(o,i)=>e(i).update(o).digest(),n=e(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.create=o=>e(o),Object.assign(r,t),Object.freeze(r)}const F0=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});class Cl{oHash;iHash;blockLen;outputLen;finished=!1;destroyed=!1;constructor(t,r){if(Pl(t),pr(r,void 0,"key"),this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const n=this.blockLen,o=new Uint8Array(n);o.set(r.length>n?t.create().update(r).digest():r);for(let i=0;i<o.length;i++)o[i]^=54;this.iHash.update(o),this.oHash=t.create();for(let i=0;i<o.length;i++)o[i]^=106;this.oHash.update(o),gr(o)}update(t){return zr(this),this.iHash.update(t),this}digestInto(t){zr(this),pr(t,this.outputLen,"output"),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||=Object.create(Object.getPrototypeOf(this),{});const{oHash:r,iHash:n,finished:o,destroyed:i,blockLen:a,outputLen:u}=this;return t=t,t.finished=o,t.destroyed=i,t.blockLen=a,t.outputLen=u,t.oHash=r._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Bl=(e,t,r)=>new Cl(e,t).update(r).digest();Bl.create=(e,t)=>new Cl(e,t);function C0(e,t,r,n){Pl(e);const o=I0({dkLen:32,asyncTick:10},n),{c:i,dkLen:a,asyncTick:u}=o;if(dr(i,"c"),dr(a,"dkLen"),dr(u,"asyncTick"),i<1)throw new Error("iterations (c) must be >= 1");const c=Fl(t,"password"),l=Fl(r,"salt"),s=new Uint8Array(a),f=Bl.create(e,c),h=f._cloneInto().update(l);return{c:i,dkLen:a,asyncTick:u,DK:s,PRF:f,PRFSalt:h}}function B0(e,t,r,n,o){return e.destroy(),t.destroy(),n&&n.destroy(),gr(o),r}function L0(e,t,r,n){const{c:o,dkLen:i,DK:a,PRF:u,PRFSalt:c}=C0(e,t,r,n);let l;const s=new Uint8Array(4),f=Xr(s),h=new Uint8Array(u.outputLen);for(let x=1,m=0;m<i;x++,m+=u.outputLen){const E=a.subarray(m,m+u.outputLen);f.setInt32(0,x,!1),(l=c._cloneInto(l)).update(s).digestInto(h),E.set(h.subarray(0,E.length));for(let T=1;T<o;T++){u._cloneInto(l).update(h).digestInto(h);for(let y=0;y<E.length;y++)E[y]^=h[y]}}return B0(u,c,a,l,h)}class U0{blockLen;outputLen;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(t,r,n,o){this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=o,this.buffer=new Uint8Array(t),this.view=Xr(this.buffer)}update(t){zr(this),pr(t);const{view:r,buffer:n,blockLen:o}=this,i=t.length;for(let a=0;a<i;){const u=Math.min(o-this.pos,i-a);if(u===o){const c=Xr(t);for(;o<=i-a;a+=o)this.process(c,a);continue}n.set(t.subarray(a,a+u),this.pos),this.pos+=u,a+=u,this.pos===o&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){zr(this),N0(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:o,isLE:i}=this;let{pos:a}=this;r[a++]=128,gr(this.buffer.subarray(a)),this.padOffset>o-a&&(this.process(n,0),a=0);for(let f=a;f<o;f++)r[f]=0;n.setBigUint64(o-8,BigInt(this.length*8),i),this.process(n,0);const u=Xr(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen must be aligned to 32bit");const l=c/4,s=this.get();if(l>s.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f<l;f++)u.setUint32(4*f,s[f],i)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||=new this.constructor,t.set(...this.get());const{blockLen:r,buffer:n,length:o,finished:i,destroyed:a,pos:u}=this;return t.destroyed=a,t.finished=i,t.length=o,t.pos=u,o%r&&t.buffer.set(n),t}clone(){return this._cloneInto()}}const ze=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Yr=BigInt(2**32-1),Ll=BigInt(32);function j0(e,t=!1){return t?{h:Number(e&Yr),l:Number(e>>Ll&Yr)}:{h:Number(e>>Ll&Yr)|0,l:Number(e&Yr)|0}}function k0(e,t=!1){const r=e.length;let n=new Uint32Array(r),o=new Uint32Array(r);for(let i=0;i<r;i++){const{h:a,l:u}=j0(e[i],t);[n[i],o[i]]=[a,u]}return[n,o]}const Ul=(e,t,r)=>e>>>r,jl=(e,t,r)=>e<<32-r|t>>>r,Zt=(e,t,r)=>e>>>r|t<<32-r,Qt=(e,t,r)=>e<<32-r|t>>>r,Jr=(e,t,r)=>e<<64-r|t>>>r-32,Zr=(e,t,r)=>e>>>r-32|t<<64-r;function Et(e,t,r,n){const o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:o|0}}const M0=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),D0=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,$0=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),q0=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0,H0=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0),V0=(e,t,r,n,o,i)=>t+r+n+o+i+(e/2**32|0)|0,kl=k0(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),W0=kl[0],G0=kl[1],_t=new Uint32Array(80),Ot=new Uint32Array(80);class K0 extends U0{constructor(t){super(128,t,16,!1)}get(){const{Ah:t,Al:r,Bh:n,Bl:o,Ch:i,Cl:a,Dh:u,Dl:c,Eh:l,El:s,Fh:f,Fl:h,Gh:x,Gl:m,Hh:E,Hl:T}=this;return[t,r,n,o,i,a,u,c,l,s,f,h,x,m,E,T]}set(t,r,n,o,i,a,u,c,l,s,f,h,x,m,E,T){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=o|0,this.Ch=i|0,this.Cl=a|0,this.Dh=u|0,this.Dl=c|0,this.Eh=l|0,this.El=s|0,this.Fh=f|0,this.Fl=h|0,this.Gh=x|0,this.Gl=m|0,this.Hh=E|0,this.Hl=T|0}process(t,r){for(let d=0;d<16;d++,r+=4)_t[d]=t.getUint32(r),Ot[d]=t.getUint32(r+=4);for(let d=16;d<80;d++){const g=_t[d-15]|0,v=Ot[d-15]|0,A=Zt(g,v,1)^Zt(g,v,8)^Ul(g,v,7),I=Qt(g,v,1)^Qt(g,v,8)^jl(g,v,7),P=_t[d-2]|0,O=Ot[d-2]|0,j=Zt(P,O,19)^Jr(P,O,61)^Ul(P,O,6),K=Qt(P,O,19)^Zr(P,O,61)^jl(P,O,6),L=$0(I,K,Ot[d-7],Ot[d-16]),k=q0(L,A,j,_t[d-7],_t[d-16]);_t[d]=k|0,Ot[d]=L|0}let{Ah:n,Al:o,Bh:i,Bl:a,Ch:u,Cl:c,Dh:l,Dl:s,Eh:f,El:h,Fh:x,Fl:m,Gh:E,Gl:T,Hh:y,Hl:p}=this;for(let d=0;d<80;d++){const g=Zt(f,h,14)^Zt(f,h,18)^Jr(f,h,41),v=Qt(f,h,14)^Qt(f,h,18)^Zr(f,h,41),A=f&x^~f&E,I=h&m^~h&T,P=H0(p,v,I,G0[d],Ot[d]),O=V0(P,y,g,A,W0[d],_t[d]),j=P|0,K=Zt(n,o,28)^Jr(n,o,34)^Jr(n,o,39),L=Qt(n,o,28)^Zr(n,o,34)^Zr(n,o,39),k=n&i^n&u^i&u,re=o&a^o&c^a&c;y=E|0,p=T|0,E=x|0,T=m|0,x=f|0,m=h|0,{h:f,l:h}=Et(l|0,s|0,O|0,j|0),l=u|0,s=c|0,u=i|0,c=a|0,i=n|0,a=o|0;const ee=M0(j,L,re);n=D0(ee,O,K,k),o=ee|0}({h:n,l:o}=Et(this.Ah|0,this.Al|0,n|0,o|0)),{h:i,l:a}=Et(this.Bh|0,this.Bl|0,i|0,a|0),{h:u,l:c}=Et(this.Ch|0,this.Cl|0,u|0,c|0),{h:l,l:s}=Et(this.Dh|0,this.Dl|0,l|0,s|0),{h:f,l:h}=Et(this.Eh|0,this.El|0,f|0,h|0),{h:x,l:m}=Et(this.Fh|0,this.Fl|0,x|0,m|0),{h:E,l:T}=Et(this.Gh|0,this.Gl|0,E|0,T|0),{h:y,l:p}=Et(this.Hh|0,this.Hl|0,y|0,p|0),this.set(n,o,i,a,u,c,l,s,f,h,x,m,E,T,y,p)}roundClean(){gr(_t,Ot)}destroy(){gr(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class z0 extends K0{Ah=ze[0]|0;Al=ze[1]|0;Bh=ze[2]|0;Bl=ze[3]|0;Ch=ze[4]|0;Cl=ze[5]|0;Dh=ze[6]|0;Dl=ze[7]|0;Eh=ze[8]|0;El=ze[9]|0;Fh=ze[10]|0;Fl=ze[11]|0;Gh=ze[12]|0;Gl=ze[13]|0;Hh=ze[14]|0;Hl=ze[15]|0;constructor(){super(64)}}const X0=P0(()=>new z0,F0(3)),Y0=(e,t,r,n)=>Ht.from(L0(X0,e,t,{c:r,dkLen:n}));class J0{axiosClient;baseURI;signingKey;ALGORITHM="sha512";TTL=1200;HASH_LENGTH=32;ITERATION_COUNT=1e4;constructor({axiosClient:t,baseURI:r}){this.axiosClient=t,this.baseURI=r}async signUrl(t,r){const n=new URL(t);n.searchParams.set("OC-Credential",r),n.searchParams.set("OC-Date",new Date().toISOString()),n.searchParams.set("OC-Expires",this.TTL.toString()),n.searchParams.set("OC-Verb","GET");const o=await this.createHashedKey(n.toString());return n.searchParams.set("OC-Algo",`PBKDF2/${this.ITERATION_COUNT}-SHA512`),n.searchParams.set("OC-Signature",o),n.toString()}async getSignKey(){if(this.signingKey)return this.signingKey;const t=await this.axiosClient.get(Ee(this.baseURI,"ocs/v1.php/cloud/user/signing-key"),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),r=_0.xml2js(t.data,{compact:!0});return this.signingKey=r.ocs.data["signing-key"]._text,this.signingKey}async createHashedKey(t){const r=await this.getSignKey();return Y0(t,r,this.ITERATION_COUNT,this.HASH_LENGTH,this.ALGORITHM).toString("hex")}}const Z0=(e,t)=>{const r=new URL(e);r.pathname=[...r.pathname.split("/"),"ocs","v1.php"].filter(Boolean).join("/");const n=r.href,o=Fg(n,t),i=new J0({baseURI:e,axiosClient:t});return{getCapabilities:()=>o.getCapabilities(),signUrl:(a,u)=>i.signUrl(a,u)}},xt=(e,{fileId:t,path:r,name:n})=>{if(r!==void 0)return Ee(e.webDavPath,r);if(t!==void 0){if(Mn(e))throw new Error("public spaces need a path provided");return Ee("spaces",t,n||"")}return e.webDavPath},Q0=(e,t)=>({copyFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:c},{overwrite:l,...s}={}){const f=xt(r,{fileId:o,path:n}),h=xt(i,{fileId:u,path:a,name:c});return e.copy(f,h,{overwrite:l||!1,...s})}}),ey=(e,t,r)=>({async createFolder(n,{path:o,parentFolderId:i,folderName:a,fetchFolder:u=!0,...c}){const l=xt(n,{fileId:i,path:o,name:a});if(await e.mkcol(l),u)return t.getFileInfo(n,{path:o},c)}}),ty=(e,{axiosClient:t})=>({async getFileContents(r,{fileId:n,path:o},{responseType:i="text",noCache:a=!0,headers:u,...c}={}){try{const l=xt(r,{fileId:n,path:o}),s=await t.get(e.getFileUrl(l),{responseType:i,headers:{...a&&{"Cache-Control":"no-cache"},...u||{}},...c});return{response:s,body:s.data,headers:{ETag:s.headers.etag,"OC-ETag":s.headers["oc-etag"],"OC-FileId":s.headers["oc-fileid"]}}}catch(l){const{message:s,response:f}=l;throw new ta(s,f,f.status)}}}),ry=(e,t)=>({async getFileInfo(r,n,o){return(await e.listFiles(r,n,{depth:0,...o})).resource}}),ny=(e,t,{axiosClient:r,baseUrl:n})=>({async getFileUrl(o,i,{disposition:a="attachment",isUrlSigningEnabled:u=!1,signUrlTimeout:c=86400,version:l=null,doHeadRequest:s=!1,username:f="",...h}){const x=a==="inline";let{downloadURL:m}=i,E=!0;if(!m&&!x&&(m=l?e.getFileUrl(Ee("meta",i.fileId,"v",l)):e.getFileUrl(i.webDavPath),f&&s&&await r.head(m),u&&f?m=await Z0(n,r).signUrl(m,f):E=!1),!E||x){const T=await t.getFileContents(o,i,{responseType:"blob",...h});m=URL.createObjectURL(T.body)}return m},revokeUrl:o=>{o&&o.startsWith("blob:")&&URL.revokeObjectURL(o)}}),iy=(e,t)=>({getPublicFileUrl(r,n){return e.getFileUrl(Ee("public-files",n))}}),oy=(e,t,r)=>({async listFiles(n,{path:o,fileId:i}={},{depth:a=1,davProperties:u,isTrash:c=!1,...l}={}){let s;if(Mn(n)){s=await e.propfind(Ee(n.webDavPath,o),{depth:a,properties:u||Bt.PublicLink,...l}),s.forEach(m=>{m.filename=m.filename.split("/").slice(1).join("/")}),s.length===1&&(s[0].filename=Ee(n.id,o,{leadingSlash:!0})),s.forEach(m=>{m.filename=m.filename.split("/").slice(2).join("/")});const h=n.driveAlias.startsWith("ocm/")?"ocm":"public-link";if((!o||o==="/")&&a>0&&h==="ocm"&&s[0].props[se.PublicLinkItemType]==="file"&&(s=[{basename:n.fileId,type:"directory",filename:"",props:{}},...s]),!o){const[m,...E]=s;return{resource:Ig({...m,id:n.id,driveAlias:n.driveAlias,webDavPath:n.webDavPath,publicLinkType:h}),children:E.map(T=>zt(T,e.extraProps))}}const x=s.map(m=>zt(m,e.extraProps));return{resource:x[0],children:x.slice(1)}}const f=async()=>{const h=await t.getPathForFileId(i);return this.listFiles(n,{path:h},{depth:a,davProperties:u})};try{let h="";if(c?h=Dn(n.id):h=xt(n,{fileId:i,path:o}),s=await e.propfind(h,{depth:a,properties:u||Bt.Default,...l}),c)return{resource:zt(s[0],e.extraProps),children:s.slice(1).map(Ng)};const x=s.map(E=>zt(E,e.extraProps)),m=i===n.id;return i&&!m&&i!==x[0].fileId?f():{resource:x[0],children:x.slice(1)}}catch(h){if(h.statusCode===404&&i)return f();throw h}}}),sy=(e,t)=>({moveFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:c},{overwrite:l,...s}={}){const f=xt(r,{fileId:o,path:n}),h=xt(i,{fileId:u,path:a,name:c});return e.move(f,h,{overwrite:l||!1,...s})}}),ay=(e,t,r)=>({async putFileContents(n,{fileName:o,path:i,parentFolderId:a,content:u="",previousEntityTag:c="",overwrite:l,onUploadProgress:s=null,...f}){const h=xt(n,{fileId:a,name:o,path:i}),{result:x}=await e.put(h,u,{previousEntityTag:c,overwrite:l,onUploadProgress:s,...f});return t.getFileInfo(n,{fileId:x.headers.get("Oc-Fileid"),path:i})}}),uy=(e,t)=>({deleteFile(r,{path:n,...o}){return e.delete(Ee(r.webDavPath,n),o)}}),ly=(e,t)=>({restoreFile(r,{id:n},{path:o},{overwrite:i,...a}={}){if(Mn(r))return;const u=Ee(r.webDavPath,o);return e.move(Ee(r.webDavTrashPath,n),u,{overwrite:i,...a})}}),cy=(e,t)=>({restoreFileVersion(r,{parentFolderId:n,name:o,path:i},a,u={}){const c=xt(r,{path:i,fileId:n,name:o}),l=Ee("meta",n,"v",a,{leadingSlash:!0}),s=Ee("files",c,{leadingSlash:!0});return e.copy(l,s,u)}}),fy=(e,t)=>({clearTrashBin(r,{id:n,...o}={}){let i=Dn(r.id);return n&&(i=Ee(i,n)),e.delete(i,o)}}),hy=(e,t)=>({async search(r,{davProperties:n=Bt.Default,searchLimit:o,...i}){const a="/spaces/",{range:u,results:c}=await e.report(a,{pattern:r,limit:o,properties:n,...i});return{resources:c.map(l=>({...zt(l,e.extraProps),highlights:l.props[se.Highlights]||""})),totalResults:u?parseInt(u?.split("/")[1]):null}}}),dy=(e,t)=>({async getPathForFileId(r,n={}){return(await e.propfind(Ee("meta",r,{leadingSlash:!0}),{properties:[se.MetaPathForUser],...n}))[0].props[se.MetaPathForUser]}});/*! For license information please see index.js.LICENSE.txt */var py={2:e=>{function t(o,i,a){o instanceof RegExp&&(o=r(o,a)),i instanceof RegExp&&(i=r(i,a));var u=n(o,i,a);return u&&{start:u[0],end:u[1],pre:a.slice(0,u[0]),body:a.slice(u[0]+o.length,u[1]),post:a.slice(u[1]+i.length)}}function r(o,i){var a=i.match(o);return a?a[0]:null}function n(o,i,a){var u,c,l,s,f,h=a.indexOf(o),x=a.indexOf(i,h+1),m=h;if(h>=0&&x>0){for(u=[],l=a.length;m>=0&&!f;)m==h?(u.push(m),h=a.indexOf(o,m+1)):u.length==1?f=[u.pop(),x]:((c=u.pop())<l&&(l=c,s=x),x=a.indexOf(i,m+1)),m=h<x&&h>=0?h:x;u.length&&(f=[l,s])}return f}e.exports=t,t.range=n},101:function(e,t,r){var n;e=r.nmd(e),(function(o){var i=(e&&e.exports,typeof wt=="object"&&wt);i.global!==i&&i.window;var a=function(f){this.message=f};(a.prototype=new Error).name="InvalidCharacterError";var u=function(f){throw new a(f)},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,s={encode:function(f){f=String(f),/[^\0-\xFF]/.test(f)&&u("The string to be encoded contains characters outside of the Latin1 range.");for(var h,x,m,E,T=f.length%3,y="",p=-1,d=f.length-T;++p<d;)h=f.charCodeAt(p)<<16,x=f.charCodeAt(++p)<<8,m=f.charCodeAt(++p),y+=c.charAt((E=h+x+m)>>18&63)+c.charAt(E>>12&63)+c.charAt(E>>6&63)+c.charAt(63&E);return T==2?(h=f.charCodeAt(p)<<8,x=f.charCodeAt(++p),y+=c.charAt((E=h+x)>>10)+c.charAt(E>>4&63)+c.charAt(E<<2&63)+"="):T==1&&(E=f.charCodeAt(p),y+=c.charAt(E>>2)+c.charAt(E<<4&63)+"=="),y},decode:function(f){var h=(f=String(f).replace(l,"")).length;h%4==0&&(h=(f=f.replace(/==?$/,"")).length),(h%4==1||/[^+a-zA-Z0-9/]/.test(f))&&u("Invalid character: the string to be decoded is not correctly encoded.");for(var x,m,E=0,T="",y=-1;++y<h;)m=c.indexOf(f.charAt(y)),x=E%4?64*x+m:m,E++%4&&(T+=String.fromCharCode(255&x>>(-2*E&6)));return T},version:"1.0.0"};(n=(function(){return s}).call(t,r,t,e))===void 0||(e.exports=n)})()},172:(e,t)=>{t.d=function(r){if(!r)return 0;for(var n=(r=r.toString()).length,o=r.length;o--;){var i=r.charCodeAt(o);56320<=i&&i<=57343&&o--,127<i&&i<=2047?n++:2047<i&&i<=65535&&(n+=2)}return n}},526:e=>{var t={utf8:{stringToBytes:function(r){return t.bin.stringToBytes(unescape(encodeURIComponent(r)))},bytesToString:function(r){return decodeURIComponent(escape(t.bin.bytesToString(r)))}},bin:{stringToBytes:function(r){for(var n=[],o=0;o<r.length;o++)n.push(255&r.charCodeAt(o));return n},bytesToString:function(r){for(var n=[],o=0;o<r.length;o++)n.push(String.fromCharCode(r[o]));return n.join("")}}};e.exports=t},298:e=>{var t,r;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(n,o){return n<<o|n>>>32-o},rotr:function(n,o){return n<<32-o|n>>>o},endian:function(n){if(n.constructor==Number)return 16711935&r.rotl(n,8)|4278255360&r.rotl(n,24);for(var o=0;o<n.length;o++)n[o]=r.endian(n[o]);return n},randomBytes:function(n){for(var o=[];n>0;n--)o.push(Math.floor(256*Math.random()));return o},bytesToWords:function(n){for(var o=[],i=0,a=0;i<n.length;i++,a+=8)o[a>>>5]|=n[i]<<24-a%32;return o},wordsToBytes:function(n){for(var o=[],i=0;i<32*n.length;i+=8)o.push(n[i>>>5]>>>24-i%32&255);return o},bytesToHex:function(n){for(var o=[],i=0;i<n.length;i++)o.push((n[i]>>>4).toString(16)),o.push((15&n[i]).toString(16));return o.join("")},hexToBytes:function(n){for(var o=[],i=0;i<n.length;i+=2)o.push(parseInt(n.substr(i,2),16));return o},bytesToBase64:function(n){for(var o=[],i=0;i<n.length;i+=3)for(var a=n[i]<<16|n[i+1]<<8|n[i+2],u=0;u<4;u++)8*i+6*u<=8*n.length?o.push(t.charAt(a>>>6*(3-u)&63)):o.push("=");return o.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var o=[],i=0,a=0;i<n.length;a=++i%4)a!=0&&o.push((t.indexOf(n.charAt(i-1))&Math.pow(2,-2*a+8)-1)<<2*a|t.indexOf(n.charAt(i))>>>6-2*a);return o}},e.exports=r},635:(e,t,r)=>{const n=r(31),o=r(338),i=r(221);e.exports={XMLParser:o,XMLValidator:n,XMLBuilder:i}},118:e=>{e.exports=function(t){return typeof t=="function"?t:Array.isArray(t)?r=>{for(const n of t)if(typeof n=="string"&&r===n||n instanceof RegExp&&n.test(r))return!0}:()=>!1}},705:(e,t)=>{const r=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n="["+r+"]["+r+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+n+"$");t.isExist=function(i){return i!==void 0},t.isEmptyObject=function(i){return Object.keys(i).length===0},t.merge=function(i,a,u){if(a){const c=Object.keys(a),l=c.length;for(let s=0;s<l;s++)i[c[s]]=u==="strict"?[a[c[s]]]:a[c[s]]}},t.getValue=function(i){return t.isExist(i)?i:""},t.isName=function(i){return o.exec(i)!=null},t.getAllMatches=function(i,a){const u=[];let c=a.exec(i);for(;c;){const l=[];l.startIndex=a.lastIndex-c[0].length;const s=c.length;for(let f=0;f<s;f++)l.push(c[f]);u.push(l),c=a.exec(i)}return u},t.nameRegexp=n},31:(e,t,r)=>{const n=r(705),o={allowBooleanAttributes:!1,unpairedTags:[]};function i(p){return p===" "||p===" "||p===`
|
|
36
|
+
`||p==="\r"}function a(p,d){const g=d;for(;d<p.length;d++)if(!(p[d]!="?"&&p[d]!=" ")){const v=p.substr(g,d-g);if(d>5&&v==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",T(p,d));if(p[d]=="?"&&p[d+1]==">"){d++;break}}return d}function u(p,d){if(p.length>d+5&&p[d+1]==="-"&&p[d+2]==="-"){for(d+=3;d<p.length;d++)if(p[d]==="-"&&p[d+1]==="-"&&p[d+2]===">"){d+=2;break}}else if(p.length>d+8&&p[d+1]==="D"&&p[d+2]==="O"&&p[d+3]==="C"&&p[d+4]==="T"&&p[d+5]==="Y"&&p[d+6]==="P"&&p[d+7]==="E"){let g=1;for(d+=8;d<p.length;d++)if(p[d]==="<")g++;else if(p[d]===">"&&(g--,g===0))break}else if(p.length>d+9&&p[d+1]==="["&&p[d+2]==="C"&&p[d+3]==="D"&&p[d+4]==="A"&&p[d+5]==="T"&&p[d+6]==="A"&&p[d+7]==="["){for(d+=8;d<p.length;d++)if(p[d]==="]"&&p[d+1]==="]"&&p[d+2]===">"){d+=2;break}}return d}t.validate=function(p,d){d=Object.assign({},o,d);const g=[];let v=!1,A=!1;p[0]==="\uFEFF"&&(p=p.substr(1));for(let P=0;P<p.length;P++)if(p[P]==="<"&&p[P+1]==="?"){if(P+=2,P=a(p,P),P.err)return P}else{if(p[P]!=="<"){if(i(p[P]))continue;return m("InvalidChar","char '"+p[P]+"' is not expected.",T(p,P))}{let O=P;if(P++,p[P]==="!"){P=u(p,P);continue}{let j=!1;p[P]==="/"&&(j=!0,P++);let K="";for(;P<p.length&&p[P]!==">"&&p[P]!==" "&&p[P]!==" "&&p[P]!==`
|
|
37
|
+
`&&p[P]!=="\r";P++)K+=p[P];if(K=K.trim(),K[K.length-1]==="/"&&(K=K.substring(0,K.length-1),P--),I=K,!n.isName(I)){let re;return re=K.trim().length===0?"Invalid space after '<'.":"Tag '"+K+"' is an invalid name.",m("InvalidTag",re,T(p,P))}const L=s(p,P);if(L===!1)return m("InvalidAttr","Attributes for '"+K+"' have open quote.",T(p,P));let k=L.value;if(P=L.index,k[k.length-1]==="/"){const re=P-k.length;k=k.substring(0,k.length-1);const ee=h(k,d);if(ee!==!0)return m(ee.err.code,ee.err.msg,T(p,re+ee.err.line));v=!0}else if(j){if(!L.tagClosed)return m("InvalidTag","Closing tag '"+K+"' doesn't have proper closing.",T(p,P));if(k.trim().length>0)return m("InvalidTag","Closing tag '"+K+"' can't have attributes or invalid starting.",T(p,O));if(g.length===0)return m("InvalidTag","Closing tag '"+K+"' has not been opened.",T(p,O));{const re=g.pop();if(K!==re.tagName){let ee=T(p,re.tagStartPos);return m("InvalidTag","Expected closing tag '"+re.tagName+"' (opened in line "+ee.line+", col "+ee.col+") instead of closing tag '"+K+"'.",T(p,O))}g.length==0&&(A=!0)}}else{const re=h(k,d);if(re!==!0)return m(re.err.code,re.err.msg,T(p,P-k.length+re.err.line));if(A===!0)return m("InvalidXml","Multiple possible root nodes found.",T(p,P));d.unpairedTags.indexOf(K)!==-1||g.push({tagName:K,tagStartPos:O}),v=!0}for(P++;P<p.length;P++)if(p[P]==="<"){if(p[P+1]==="!"){P++,P=u(p,P);continue}if(p[P+1]!=="?")break;if(P=a(p,++P),P.err)return P}else if(p[P]==="&"){const re=x(p,P);if(re==-1)return m("InvalidChar","char '&' is not expected.",T(p,P));P=re}else if(A===!0&&!i(p[P]))return m("InvalidXml","Extra text at the end",T(p,P));p[P]==="<"&&P--}}}var I;return v?g.length==1?m("InvalidTag","Unclosed tag '"+g[0].tagName+"'.",T(p,g[0].tagStartPos)):!(g.length>0)||m("InvalidXml","Invalid '"+JSON.stringify(g.map((P=>P.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):m("InvalidXml","Start tag expected.",1)};const c='"',l="'";function s(p,d){let g="",v="",A=!1;for(;d<p.length;d++){if(p[d]===c||p[d]===l)v===""?v=p[d]:v!==p[d]||(v="");else if(p[d]===">"&&v===""){A=!0;break}g+=p[d]}return v===""&&{value:g,index:d,tagClosed:A}}const f=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function h(p,d){const g=n.getAllMatches(p,f),v={};for(let A=0;A<g.length;A++){if(g[A][1].length===0)return m("InvalidAttr","Attribute '"+g[A][2]+"' has no space in starting.",y(g[A]));if(g[A][3]!==void 0&&g[A][4]===void 0)return m("InvalidAttr","Attribute '"+g[A][2]+"' is without value.",y(g[A]));if(g[A][3]===void 0&&!d.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+g[A][2]+"' is not allowed.",y(g[A]));const I=g[A][2];if(!E(I))return m("InvalidAttr","Attribute '"+I+"' is an invalid name.",y(g[A]));if(v.hasOwnProperty(I))return m("InvalidAttr","Attribute '"+I+"' is repeated.",y(g[A]));v[I]=1}return!0}function x(p,d){if(p[++d]===";")return-1;if(p[d]==="#")return(function(v,A){let I=/\d/;for(v[A]==="x"&&(A++,I=/[\da-fA-F]/);A<v.length;A++){if(v[A]===";")return A;if(!v[A].match(I))break}return-1})(p,++d);let g=0;for(;d<p.length;d++,g++)if(!(p[d].match(/\w/)&&g<20)){if(p[d]===";")break;return-1}return d}function m(p,d,g){return{err:{code:p,msg:d,line:g.line||g,col:g.col}}}function E(p){return n.isName(p)}function T(p,d){const g=p.substring(0,d).split(/\r?\n/);return{line:g.length,col:g[g.length-1].length+1}}function y(p){return p.startIndex+p[1].length}},221:(e,t,r)=>{const n=r(87),o=r(118),i={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(s,f){return f},attributeValueProcessor:function(s,f){return f},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function a(s){this.options=Object.assign({},i,s),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=o(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=l),this.processTextOrObjNode=u,this.options.format?(this.indentate=c,this.tagEndChar=`>
|
|
38
38
|
`,this.newLine=`
|
|
39
|
-
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function u(s,f,h,
|
|
40
|
-
`),t(a,u,"",c)}},193:(e,t,r)=>{const n=r(705);function o(f,h){let
|
|
41
|
-
`);const P=new o("!xml");let I=P,O="",j="";for(let K=0;K<A.length;K++)if(A[K]==="<")if(A[K+1]==="/"){const L=p(A,">",K,"Closing Tag is not closed.");let k=A.substring(K+2,L).trim();if(this.options.removeNSPrefix){const ue=k.indexOf(":");ue!==-1&&(k=k.substr(ue+1))}this.options.transformTagName&&(k=this.options.transformTagName(k)),I&&(O=this.saveTextToParentTag(O,I,j));const re=j.substring(j.lastIndexOf(".")+1);if(k&&this.options.unpairedTags.indexOf(k)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${k}>`);let ee=0;re&&this.options.unpairedTags.indexOf(re)!==-1?(ee=j.lastIndexOf(".",j.lastIndexOf(".")-1),this.tagsNodeStack.pop()):ee=j.lastIndexOf("."),j=j.substring(0,ee),I=this.tagsNodeStack.pop(),O="",K=L}else if(A[K+1]==="?"){let L=d(A,K,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(O=this.saveTextToParentTag(O,I,j),!(this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags)){const k=new o(L.tagName);k.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent&&(k[":@"]=this.buildAttributesMap(L.tagExp,j,L.tagName)),this.addChild(I,k,j)}K=L.closeIndex+1}else if(A.substr(K+1,3)==="!--"){const L=p(A,"-->",K+4,"Comment is not closed.");if(this.options.commentPropName){const k=A.substring(K+4,L-2);O=this.saveTextToParentTag(O,I,j),I.add(this.options.commentPropName,[{[this.options.textNodeName]:k}])}K=L}else if(A.substr(K+1,2)==="!D"){const L=i(A,K);this.docTypeEntities=L.entities,K=L.i}else if(A.substr(K+1,2)==="!["){const L=p(A,"]]>",K,"CDATA is not closed.")-2,k=A.substring(K+9,L);O=this.saveTextToParentTag(O,I,j);let re=this.parseTextData(k,I.tagname,j,!0,!1,!0,!0);re==null&&(re=""),this.options.cdataPropName?I.add(this.options.cdataPropName,[{[this.options.textNodeName]:k}]):I.add(this.options.textNodeName,re),K=L+2}else{let L=d(A,K,this.options.removeNSPrefix),k=L.tagName;const re=L.rawTagName;let ee=L.tagExp,ue=L.attrExpPresent,le=L.closeIndex;this.options.transformTagName&&(k=this.options.transformTagName(k)),I&&O&&I.tagname!=="!xml"&&(O=this.saveTextToParentTag(O,I,j,!1));const de=I;if(de&&this.options.unpairedTags.indexOf(de.tagname)!==-1&&(I=this.tagsNodeStack.pop(),j=j.substring(0,j.lastIndexOf("."))),k!==P.tagname&&(j+=j?"."+k:k),this.isItStopNode(this.options.stopNodes,j,k)){let fe="";if(ee.length>0&&ee.lastIndexOf("/")===ee.length-1)k[k.length-1]==="/"?(k=k.substr(0,k.length-1),j=j.substr(0,j.length-1),ee=k):ee=ee.substr(0,ee.length-1),K=L.closeIndex;else if(this.options.unpairedTags.indexOf(k)!==-1)K=L.closeIndex;else{const pe=this.readStopNodeData(A,re,le+1);if(!pe)throw new Error(`Unexpected end of ${re}`);K=pe.i,fe=pe.tagContent}const be=new o(k);k!==ee&&ue&&(be[":@"]=this.buildAttributesMap(ee,j,k)),fe&&(fe=this.parseTextData(fe,k,j,!0,ue,!0,!0)),j=j.substr(0,j.lastIndexOf(".")),be.add(this.options.textNodeName,fe),this.addChild(I,be,j)}else{if(ee.length>0&&ee.lastIndexOf("/")===ee.length-1){k[k.length-1]==="/"?(k=k.substr(0,k.length-1),j=j.substr(0,j.length-1),ee=k):ee=ee.substr(0,ee.length-1),this.options.transformTagName&&(k=this.options.transformTagName(k));const fe=new o(k);k!==ee&&ue&&(fe[":@"]=this.buildAttributesMap(ee,j,k)),this.addChild(I,fe,j),j=j.substr(0,j.lastIndexOf("."))}else{const fe=new o(k);this.tagsNodeStack.push(I),k!==ee&&ue&&(fe[":@"]=this.buildAttributesMap(ee,j,k)),this.addChild(I,fe,j),I=fe}O="",K=le}}else O+=A[K];return P.child};function m(A,P,I){const O=this.options.updateTag(P.tagname,I,P[":@"]);O===!1||(typeof O=="string"&&(P.tagname=O),A.addChild(P))}const x=function(A){if(this.options.processEntities){for(let P in this.docTypeEntities){const I=this.docTypeEntities[P];A=A.replace(I.regx,I.val)}for(let P in this.lastEntities){const I=this.lastEntities[P];A=A.replace(I.regex,I.val)}if(this.options.htmlEntities)for(let P in this.htmlEntities){const I=this.htmlEntities[P];A=A.replace(I.regex,I.val)}A=A.replace(this.ampEntity.regex,this.ampEntity.val)}return A};function T(A,P,I,O){return A&&(O===void 0&&(O=Object.keys(P.child).length===0),(A=this.parseTextData(A,P.tagname,I,!1,!!P[":@"]&&Object.keys(P[":@"]).length!==0,O))!==void 0&&A!==""&&P.add(this.options.textNodeName,A),A=""),A}function y(A,P,I){const O="*."+I;for(const j in A){const K=A[j];if(O===K||P===K)return!0}return!1}function p(A,P,I,O){const j=A.indexOf(P,I);if(j===-1)throw new Error(O);return j+P.length-1}function d(A,P,I){const O=(function(ue,le){let de,fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",be="";for(let pe=le;pe<ue.length;pe++){let G=ue[pe];if(de)G===de&&(de="");else if(G==='"'||G==="'")de=G;else if(G===fe[0]){if(!fe[1])return{data:be,index:pe};if(ue[pe+1]===fe[1])return{data:be,index:pe}}else G===" "&&(G=" ");be+=G}})(A,P+1,arguments.length>3&&arguments[3]!==void 0?arguments[3]:">");if(!O)return;let j=O.data;const K=O.index,L=j.search(/\s/);let k=j,re=!0;L!==-1&&(k=j.substring(0,L),j=j.substring(L+1).trimStart());const ee=k;if(I){const ue=k.indexOf(":");ue!==-1&&(k=k.substr(ue+1),re=k!==O.data.substr(ue+1))}return{tagName:k,tagExp:j,closeIndex:K,attrExpPresent:re,rawTagName:ee}}function g(A,P,I){const O=I;let j=1;for(;I<A.length;I++)if(A[I]==="<")if(A[I+1]==="/"){const K=p(A,">",I,`${P} is not closed`);if(A.substring(I+2,K).trim()===P&&(j--,j===0))return{tagContent:A.substring(O,I),i:K};I=K}else if(A[I+1]==="?")I=p(A,"?>",I+1,"StopNode is not closed.");else if(A.substr(I+1,3)==="!--")I=p(A,"-->",I+3,"StopNode is not closed.");else if(A.substr(I+1,2)==="![")I=p(A,"]]>",I,"StopNode is not closed.")-2;else{const K=d(A,I,">");K&&((K&&K.tagName)===P&&K.tagExp[K.tagExp.length-1]!=="/"&&j++,I=K.closeIndex)}}function v(A,P,I){if(P&&typeof A=="string"){const O=A.trim();return O==="true"||O!=="false"&&a(A,I)}return n.isExist(A)?A:""}e.exports=class{constructor(A){this.options=A,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(P,I)=>String.fromCharCode(Number.parseInt(I,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(P,I)=>String.fromCharCode(Number.parseInt(I,16))}},this.addExternalEntities=c,this.parseXml=E,this.parseTextData=l,this.resolveNameSpace=s,this.buildAttributesMap=h,this.isItStopNode=y,this.replaceEntitiesValue=x,this.readStopNodeData=g,this.saveTextToParentTag=T,this.addChild=m,this.ignoreAttributesFn=u(this.options.ignoreAttributes)}}},338:(e,t,r)=>{const{buildOptions:n}=r(63),o=r(299),{prettify:i}=r(728),a=r(31);e.exports=class{constructor(u){this.externalEntities={},this.options=n(u)}parse(u,c){if(typeof u!="string"){if(!u.toString)throw new Error("XML data is accepted in String or Bytes[] form.");u=u.toString()}if(c){c===!0&&(c={});const f=a.validate(u,c);if(f!==!0)throw Error(`${f.err.msg}:${f.err.line}:${f.err.col}`)}const l=new o(this.options);l.addExternalEntities(this.externalEntities);const s=l.parseXml(u);return this.options.preserveOrder||s===void 0?s:i(s,this.options)}addEntity(u,c){if(c.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(u.indexOf("&")!==-1||u.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(c==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[u]=c}}},728:(e,t)=>{function r(a,u,c){let l;const s={};for(let f=0;f<a.length;f++){const h=a[f],E=n(h);let m="";if(m=c===void 0?E:c+"."+E,E===u.textNodeName)l===void 0?l=h[E]:l+=""+h[E];else{if(E===void 0)continue;if(h[E]){let x=r(h[E],u,m);const T=i(x,u);h[":@"]?o(x,h[":@"],m,u):Object.keys(x).length!==1||x[u.textNodeName]===void 0||u.alwaysCreateTextNode?Object.keys(x).length===0&&(u.alwaysCreateTextNode?x[u.textNodeName]="":x=""):x=x[u.textNodeName],s[E]!==void 0&&s.hasOwnProperty(E)?(Array.isArray(s[E])||(s[E]=[s[E]]),s[E].push(x)):u.isArray(E,m,T)?s[E]=[x]:s[E]=x}}}return typeof l=="string"?l.length>0&&(s[u.textNodeName]=l):l!==void 0&&(s[u.textNodeName]=l),s}function n(a){const u=Object.keys(a);for(let c=0;c<u.length;c++){const l=u[c];if(l!==":@")return l}}function o(a,u,c,l){if(u){const s=Object.keys(u),f=s.length;for(let h=0;h<f;h++){const E=s[h];l.isArray(E,c+"."+E,!0,!0)?a[E]=[u[E]]:a[E]=u[E]}}}function i(a,u){const{textNodeName:c}=u,l=Object.keys(a).length;return l===0||!(l!==1||!a[c]&&typeof a[c]!="boolean"&&a[c]!==0)}t.prettify=function(a,u){return r(a,u)}},365:e=>{e.exports=class{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,r){t==="__proto__"&&(t="#__proto__"),this.child.push({[t]:r})}addChild(t){t.tagname==="__proto__"&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child})}}},135:e=>{function t(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}e.exports=function(r){return r!=null&&(t(r)||(function(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&t(n.slice(0,0))})(r)||!!r._isBuffer)}},542:(e,t,r)=>{(function(){var n=r(298),o=r(526).utf8,i=r(135),a=r(526).bin,u=function(c,l){c.constructor==String?c=l&&l.encoding==="binary"?a.stringToBytes(c):o.stringToBytes(c):i(c)?c=Array.prototype.slice.call(c,0):Array.isArray(c)||c.constructor===Uint8Array||(c=c.toString());for(var s=n.bytesToWords(c),f=8*c.length,h=1732584193,E=-271733879,m=-1732584194,x=271733878,T=0;T<s.length;T++)s[T]=16711935&(s[T]<<8|s[T]>>>24)|4278255360&(s[T]<<24|s[T]>>>8);s[f>>>5]|=128<<f%32,s[14+(f+64>>>9<<4)]=f;var y=u._ff,p=u._gg,d=u._hh,g=u._ii;for(T=0;T<s.length;T+=16){var v=h,A=E,P=m,I=x;h=y(h,E,m,x,s[T+0],7,-680876936),x=y(x,h,E,m,s[T+1],12,-389564586),m=y(m,x,h,E,s[T+2],17,606105819),E=y(E,m,x,h,s[T+3],22,-1044525330),h=y(h,E,m,x,s[T+4],7,-176418897),x=y(x,h,E,m,s[T+5],12,1200080426),m=y(m,x,h,E,s[T+6],17,-1473231341),E=y(E,m,x,h,s[T+7],22,-45705983),h=y(h,E,m,x,s[T+8],7,1770035416),x=y(x,h,E,m,s[T+9],12,-1958414417),m=y(m,x,h,E,s[T+10],17,-42063),E=y(E,m,x,h,s[T+11],22,-1990404162),h=y(h,E,m,x,s[T+12],7,1804603682),x=y(x,h,E,m,s[T+13],12,-40341101),m=y(m,x,h,E,s[T+14],17,-1502002290),h=p(h,E=y(E,m,x,h,s[T+15],22,1236535329),m,x,s[T+1],5,-165796510),x=p(x,h,E,m,s[T+6],9,-1069501632),m=p(m,x,h,E,s[T+11],14,643717713),E=p(E,m,x,h,s[T+0],20,-373897302),h=p(h,E,m,x,s[T+5],5,-701558691),x=p(x,h,E,m,s[T+10],9,38016083),m=p(m,x,h,E,s[T+15],14,-660478335),E=p(E,m,x,h,s[T+4],20,-405537848),h=p(h,E,m,x,s[T+9],5,568446438),x=p(x,h,E,m,s[T+14],9,-1019803690),m=p(m,x,h,E,s[T+3],14,-187363961),E=p(E,m,x,h,s[T+8],20,1163531501),h=p(h,E,m,x,s[T+13],5,-1444681467),x=p(x,h,E,m,s[T+2],9,-51403784),m=p(m,x,h,E,s[T+7],14,1735328473),h=d(h,E=p(E,m,x,h,s[T+12],20,-1926607734),m,x,s[T+5],4,-378558),x=d(x,h,E,m,s[T+8],11,-2022574463),m=d(m,x,h,E,s[T+11],16,1839030562),E=d(E,m,x,h,s[T+14],23,-35309556),h=d(h,E,m,x,s[T+1],4,-1530992060),x=d(x,h,E,m,s[T+4],11,1272893353),m=d(m,x,h,E,s[T+7],16,-155497632),E=d(E,m,x,h,s[T+10],23,-1094730640),h=d(h,E,m,x,s[T+13],4,681279174),x=d(x,h,E,m,s[T+0],11,-358537222),m=d(m,x,h,E,s[T+3],16,-722521979),E=d(E,m,x,h,s[T+6],23,76029189),h=d(h,E,m,x,s[T+9],4,-640364487),x=d(x,h,E,m,s[T+12],11,-421815835),m=d(m,x,h,E,s[T+15],16,530742520),h=g(h,E=d(E,m,x,h,s[T+2],23,-995338651),m,x,s[T+0],6,-198630844),x=g(x,h,E,m,s[T+7],10,1126891415),m=g(m,x,h,E,s[T+14],15,-1416354905),E=g(E,m,x,h,s[T+5],21,-57434055),h=g(h,E,m,x,s[T+12],6,1700485571),x=g(x,h,E,m,s[T+3],10,-1894986606),m=g(m,x,h,E,s[T+10],15,-1051523),E=g(E,m,x,h,s[T+1],21,-2054922799),h=g(h,E,m,x,s[T+8],6,1873313359),x=g(x,h,E,m,s[T+15],10,-30611744),m=g(m,x,h,E,s[T+6],15,-1560198380),E=g(E,m,x,h,s[T+13],21,1309151649),h=g(h,E,m,x,s[T+4],6,-145523070),x=g(x,h,E,m,s[T+11],10,-1120210379),m=g(m,x,h,E,s[T+2],15,718787259),E=g(E,m,x,h,s[T+9],21,-343485551),h=h+v>>>0,E=E+A>>>0,m=m+P>>>0,x=x+I>>>0}return n.endian([h,E,m,x])};u._ff=function(c,l,s,f,h,E,m){var x=c+(l&s|~l&f)+(h>>>0)+m;return(x<<E|x>>>32-E)+l},u._gg=function(c,l,s,f,h,E,m){var x=c+(l&f|s&~f)+(h>>>0)+m;return(x<<E|x>>>32-E)+l},u._hh=function(c,l,s,f,h,E,m){var x=c+(l^s^f)+(h>>>0)+m;return(x<<E|x>>>32-E)+l},u._ii=function(c,l,s,f,h,E,m){var x=c+(s^(l|~f))+(h>>>0)+m;return(x<<E|x>>>32-E)+l},u._blocksize=16,u._digestsize=16,e.exports=function(c,l){if(c==null)throw new Error("Illegal argument "+c);var s=n.wordsToBytes(u(c,l));return l&&l.asBytes?s:l&&l.asString?a.bytesToString(s):n.bytesToHex(s)}})()},285:(e,t,r)=>{var n=r(2);e.exports=function(y){return y?(y.substr(0,2)==="{}"&&(y="\\{\\}"+y.substr(2)),T((function(p){return p.split("\\\\").join(o).split("\\{").join(i).split("\\}").join(a).split("\\,").join(u).split("\\.").join(c)})(y),!0).map(s)):[]};var o="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function l(y){return parseInt(y,10)==y?parseInt(y,10):y.charCodeAt(0)}function s(y){return y.split(o).join("\\").split(i).join("{").split(a).join("}").split(u).join(",").split(c).join(".")}function f(y){if(!y)return[""];var p=[],d=n("{","}",y);if(!d)return y.split(",");var g=d.pre,v=d.body,A=d.post,P=g.split(",");P[P.length-1]+="{"+v+"}";var I=f(A);return A.length&&(P[P.length-1]+=I.shift(),P.push.apply(P,I)),p.push.apply(p,P),p}function h(y){return"{"+y+"}"}function E(y){return/^-?0\d/.test(y)}function m(y,p){return y<=p}function x(y,p){return y>=p}function T(y,p){var d=[],g=n("{","}",y);if(!g)return[y];var v=g.pre,A=g.post.length?T(g.post,!1):[""];if(/\$$/.test(g.pre))for(var P=0;P<A.length;P++){var I=v+"{"+g.body+"}"+A[P];d.push(I)}else{var O,j,K=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(g.body),L=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(g.body),k=K||L,re=g.body.indexOf(",")>=0;if(!k&&!re)return g.post.match(/,.*\}/)?T(y=g.pre+"{"+g.body+a+g.post):[y];if(k)O=g.body.split(/\.\./);else if((O=f(g.body)).length===1&&(O=T(O[0],!1).map(h)).length===1)return A.map((function(V){return g.pre+O[0]+V}));if(k){var ee=l(O[0]),ue=l(O[1]),le=Math.max(O[0].length,O[1].length),de=O.length==3?Math.abs(l(O[2])):1,fe=m;ue<ee&&(de*=-1,fe=x);var be=O.some(E);j=[];for(var pe=ee;fe(pe,ue);pe+=de){var G;if(L)(G=String.fromCharCode(pe))==="\\"&&(G="");else if(G=String(pe),be){var Z=le-G.length;if(Z>0){var Q=new Array(Z+1).join("0");G=pe<0?"-"+Q+G.slice(1):Q+G}}j.push(G)}}else{j=[];for(var ae=0;ae<O.length;ae++)j.push.apply(j,T(O[ae],!1))}for(ae=0;ae<j.length;ae++)for(P=0;P<A.length;P++)I=v+j[ae]+A[P],(!p||k||I)&&d.push(I)}return d}},829:e=>{function t(l){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t(l)}function r(l){var s=typeof Map=="function"?new Map:void 0;return r=function(f){if(f===null||(h=f,Function.toString.call(h).indexOf("[native code]")===-1))return f;var h;if(typeof f!="function")throw new TypeError("Super expression must either be null or a function");if(s!==void 0){if(s.has(f))return s.get(f);s.set(f,E)}function E(){return n(f,arguments,i(this).constructor)}return E.prototype=Object.create(f.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),o(E,f)},r(l)}function n(l,s,f){return n=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}})()?Reflect.construct:function(h,E,m){var x=[null];x.push.apply(x,E);var T=new(Function.bind.apply(h,x));return m&&o(T,m.prototype),T},n.apply(null,arguments)}function o(l,s){return o=Object.setPrototypeOf||function(f,h){return f.__proto__=h,f},o(l,s)}function i(l){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},i(l)}var a=(function(l){function s(f){var h;return(function(E,m){if(!(E instanceof m))throw new TypeError("Cannot call a class as a function")})(this,s),(h=(function(E,m){return!m||t(m)!=="object"&&typeof m!="function"?(function(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x})(E):m})(this,i(s).call(this,f))).name="ObjectPrototypeMutationError",h}return(function(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),h&&o(f,h)})(s,l),s})(r(Error));function u(l,s){for(var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},h=s.split("."),E=h.length,m=function(y){var p=h[y];if(!l)return{v:void 0};if(p==="+"){if(Array.isArray(l))return{v:l.map((function(g,v){var A=h.slice(y+1);return A.length>0?u(g,A.join("."),f):f(l,v,h,y)}))};var d=h.slice(0,y).join(".");throw new Error("Object at wildcard (".concat(d,") is not an array"))}l=f(l,p,h,y)},x=0;x<E;x++){var T=m(x);if(t(T)==="object")return T.v}return l}function c(l,s){return l.length===s+1}e.exports={set:function(l,s,f){if(t(l)!="object"||l===null||s===void 0)return l;if(typeof s=="number")return l[s]=f,l[s];try{return u(l,s,(function(h,E,m,x){if(h===Reflect.getPrototypeOf({}))throw new a("Attempting to mutate Object.prototype");if(!h[E]){var T=Number.isInteger(Number(m[x+1])),y=m[x+1]==="+";h[E]=T||y?[]:{}}return c(m,x)&&(h[E]=f),h[E]}))}catch(h){if(h instanceof a)throw h;return l}},get:function(l,s){if(t(l)!="object"||l===null||s===void 0)return l;if(typeof s=="number")return l[s];try{return u(l,s,(function(f,h){return f[h]}))}catch{return l}},has:function(l,s){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(t(l)!="object"||l===null||s===void 0)return!1;if(typeof s=="number")return s in l;try{var h=!1;return u(l,s,(function(E,m,x,T){if(!c(x,T))return E&&E[m];h=f.own?E.hasOwnProperty(m):m in E})),h}catch{return!1}},hasOwn:function(l,s,f){return this.has(l,s,f||{own:!0})},isIn:function(l,s,f){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(t(l)!="object"||l===null||s===void 0)return!1;try{var E=!1,m=!1;return u(l,s,(function(x,T,y,p){return E=E||x===f||!!x&&x[T]===f,m=c(y,p)&&t(x)==="object"&&T in x,x&&x[T]})),h.validPath?E&&m:E}catch{return!1}},ObjectPrototypeMutationError:a}},47:(e,t,r)=>{var n=r(410),o=function(l){return typeof l=="string"};function i(l,s){for(var f=[],h=0;h<l.length;h++){var E=l[h];E&&E!=="."&&(E===".."?f.length&&f[f.length-1]!==".."?f.pop():s&&f.push(".."):f.push(E))}return f}var a=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,u={};function c(l){return a.exec(l).slice(1)}u.resolve=function(){for(var l="",s=!1,f=arguments.length-1;f>=-1&&!s;f--){var h=f>=0?arguments[f]:ye.cwd();if(!o(h))throw new TypeError("Arguments to path.resolve must be strings");h&&(l=h+"/"+l,s=h.charAt(0)==="/")}return(s?"/":"")+(l=i(l.split("/"),!s).join("/"))||"."},u.normalize=function(l){var s=u.isAbsolute(l),f=l.substr(-1)==="/";return(l=i(l.split("/"),!s).join("/"))||s||(l="."),l&&f&&(l+="/"),(s?"/":"")+l},u.isAbsolute=function(l){return l.charAt(0)==="/"},u.join=function(){for(var l="",s=0;s<arguments.length;s++){var f=arguments[s];if(!o(f))throw new TypeError("Arguments to path.join must be strings");f&&(l+=l?"/"+f:f)}return u.normalize(l)},u.relative=function(l,s){function f(p){for(var d=0;d<p.length&&p[d]==="";d++);for(var g=p.length-1;g>=0&&p[g]==="";g--);return d>g?[]:p.slice(d,g+1)}l=u.resolve(l).substr(1),s=u.resolve(s).substr(1);for(var h=f(l.split("/")),E=f(s.split("/")),m=Math.min(h.length,E.length),x=m,T=0;T<m;T++)if(h[T]!==E[T]){x=T;break}var y=[];for(T=x;T<h.length;T++)y.push("..");return(y=y.concat(E.slice(x))).join("/")},u._makeLong=function(l){return l},u.dirname=function(l){var s=c(l),f=s[0],h=s[1];return f||h?(h&&(h=h.substr(0,h.length-1)),f+h):"."},u.basename=function(l,s){var f=c(l)[2];return s&&f.substr(-1*s.length)===s&&(f=f.substr(0,f.length-s.length)),f},u.extname=function(l){return c(l)[3]},u.format=function(l){if(!n.isObject(l))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof l);var s=l.root||"";if(!o(s))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof l.root);return(l.dir?l.dir+u.sep:"")+(l.base||"")},u.parse=function(l){if(!o(l))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof l);var s=c(l);if(!s||s.length!==4)throw new TypeError("Invalid path '"+l+"'");return s[1]=s[1]||"",s[2]=s[2]||"",s[3]=s[3]||"",{root:s[0],dir:s[0]+s[1].slice(0,s[1].length-1),base:s[2],ext:s[3],name:s[2].slice(0,s[2].length-s[3].length)}},u.sep="/",u.delimiter=":",e.exports=u},647:(e,t)=>{var r=Object.prototype.hasOwnProperty;function n(i){try{return decodeURIComponent(i.replace(/\+/g," "))}catch{return null}}function o(i){try{return encodeURIComponent(i)}catch{return null}}t.stringify=function(i,a){a=a||"";var u,c,l=[];for(c in typeof a!="string"&&(a="?"),i)if(r.call(i,c)){if((u=i[c])||u!=null&&!isNaN(u)||(u=""),c=o(c),u=o(u),c===null||u===null)continue;l.push(c+"="+u)}return l.length?a+l.join("&"):""},t.parse=function(i){for(var a,u=/([^=?#&]+)=?([^&]*)/g,c={};a=u.exec(i);){var l=n(a[1]),s=n(a[2]);l===null||s===null||l in c||(c[l]=s)}return c}},670:e=>{e.exports=function(t,r){if(r=r.split(":")[0],!(t=+t))return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}},494:e=>{const t=/^[-+]?0x[a-fA-F0-9]+$/,r=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i=Object.assign({},n,i),!o||typeof o!="string")return o;let a=o.trim();if(i.skipLike!==void 0&&i.skipLike.test(a))return o;if(i.hex&&t.test(a))return Number.parseInt(a,16);{const c=r.exec(a);if(c){const l=c[1],s=c[2];let f=((u=c[3])&&u.indexOf(".")!==-1&&((u=u.replace(/0+$/,""))==="."?u="0":u[0]==="."?u="0"+u:u[u.length-1]==="."&&(u=u.substr(0,u.length-1))),u);const h=c[4]||c[6];if(!i.leadingZeros&&s.length>0&&l&&a[2]!=="."||!i.leadingZeros&&s.length>0&&!l&&a[1]!==".")return o;{const E=Number(a),m=""+E;return m.search(/[eE]/)!==-1||h?i.eNotation?E:o:a.indexOf(".")!==-1?m==="0"&&f===""||m===f||l&&m==="-"+f?E:o:s?f===m||l+f===m?E:o:a===m||a===l+m?E:o}}return o}var u}},737:(e,t,r)=>{var n=r(670),o=r(647),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,u=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,c=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,s=/^[a-zA-Z]:/;function f(p){return(p||"").toString().replace(i,"")}var h=[["#","hash"],["?","query"],function(p,d){return x(d.protocol)?p.replace(/\\/g,"/"):p},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],E={hash:1,query:1};function m(p){var d,g=(typeof window<"u"?window:typeof wt<"u"?wt:typeof self<"u"?self:{}).location||{},v={},A=typeof(p=p||g);if(p.protocol==="blob:")v=new y(unescape(p.pathname),{});else if(A==="string")for(d in v=new y(p,{}),E)delete v[d];else if(A==="object"){for(d in p)d in E||(v[d]=p[d]);v.slashes===void 0&&(v.slashes=u.test(p.href))}return v}function x(p){return p==="file:"||p==="ftp:"||p==="http:"||p==="https:"||p==="ws:"||p==="wss:"}function T(p,d){p=(p=f(p)).replace(a,""),d=d||{};var g,v=l.exec(p),A=v[1]?v[1].toLowerCase():"",P=!!v[2],I=!!v[3],O=0;return P?I?(g=v[2]+v[3]+v[4],O=v[2].length+v[3].length):(g=v[2]+v[4],O=v[2].length):I?(g=v[3]+v[4],O=v[3].length):g=v[4],A==="file:"?O>=2&&(g=g.slice(2)):x(A)?g=v[4]:A?P&&(g=g.slice(2)):O>=2&&x(d.protocol)&&(g=v[4]),{protocol:A,slashes:P||x(A),slashesCount:O,rest:g}}function y(p,d,g){if(p=(p=f(p)).replace(a,""),!(this instanceof y))return new y(p,d,g);var v,A,P,I,O,j,K=h.slice(),L=typeof d,k=this,re=0;for(L!=="object"&&L!=="string"&&(g=d,d=null),g&&typeof g!="function"&&(g=o.parse),v=!(A=T(p||"",d=m(d))).protocol&&!A.slashes,k.slashes=A.slashes||v&&d.slashes,k.protocol=A.protocol||d.protocol||"",p=A.rest,(A.protocol==="file:"&&(A.slashesCount!==2||s.test(p))||!A.slashes&&(A.protocol||A.slashesCount<2||!x(k.protocol)))&&(K[3]=[/(.*)/,"pathname"]);re<K.length;re++)typeof(I=K[re])!="function"?(P=I[0],j=I[1],P!=P?k[j]=p:typeof P=="string"?~(O=P==="@"?p.lastIndexOf(P):p.indexOf(P))&&(typeof I[2]=="number"?(k[j]=p.slice(0,O),p=p.slice(O+I[2])):(k[j]=p.slice(O),p=p.slice(0,O))):(O=P.exec(p))&&(k[j]=O[1],p=p.slice(0,O.index)),k[j]=k[j]||v&&I[3]&&d[j]||"",I[4]&&(k[j]=k[j].toLowerCase())):p=I(p,k);g&&(k.query=g(k.query)),v&&d.slashes&&k.pathname.charAt(0)!=="/"&&(k.pathname!==""||d.pathname!=="")&&(k.pathname=(function(ee,ue){if(ee==="")return ue;for(var le=(ue||"/").split("/").slice(0,-1).concat(ee.split("/")),de=le.length,fe=le[de-1],be=!1,pe=0;de--;)le[de]==="."?le.splice(de,1):le[de]===".."?(le.splice(de,1),pe++):pe&&(de===0&&(be=!0),le.splice(de,1),pe--);return be&&le.unshift(""),fe!=="."&&fe!==".."||le.push(""),le.join("/")})(k.pathname,d.pathname)),k.pathname.charAt(0)!=="/"&&x(k.protocol)&&(k.pathname="/"+k.pathname),n(k.port,k.protocol)||(k.host=k.hostname,k.port=""),k.username=k.password="",k.auth&&(~(O=k.auth.indexOf(":"))?(k.username=k.auth.slice(0,O),k.username=encodeURIComponent(decodeURIComponent(k.username)),k.password=k.auth.slice(O+1),k.password=encodeURIComponent(decodeURIComponent(k.password))):k.username=encodeURIComponent(decodeURIComponent(k.auth)),k.auth=k.password?k.username+":"+k.password:k.username),k.origin=k.protocol!=="file:"&&x(k.protocol)&&k.host?k.protocol+"//"+k.host:"null",k.href=k.toString()}y.prototype={set:function(p,d,g){var v=this;switch(p){case"query":typeof d=="string"&&d.length&&(d=(g||o.parse)(d)),v[p]=d;break;case"port":v[p]=d,n(d,v.protocol)?d&&(v.host=v.hostname+":"+d):(v.host=v.hostname,v[p]="");break;case"hostname":v[p]=d,v.port&&(d+=":"+v.port),v.host=d;break;case"host":v[p]=d,c.test(d)?(d=d.split(":"),v.port=d.pop(),v.hostname=d.join(":")):(v.hostname=d,v.port="");break;case"protocol":v.protocol=d.toLowerCase(),v.slashes=!g;break;case"pathname":case"hash":if(d){var A=p==="pathname"?"/":"#";v[p]=d.charAt(0)!==A?A+d:d}else v[p]=d;break;case"username":case"password":v[p]=encodeURIComponent(d);break;case"auth":var P=d.indexOf(":");~P?(v.username=d.slice(0,P),v.username=encodeURIComponent(decodeURIComponent(v.username)),v.password=d.slice(P+1),v.password=encodeURIComponent(decodeURIComponent(v.password))):v.username=encodeURIComponent(decodeURIComponent(d))}for(var I=0;I<h.length;I++){var O=h[I];O[4]&&(v[O[1]]=v[O[1]].toLowerCase())}return v.auth=v.password?v.username+":"+v.password:v.username,v.origin=v.protocol!=="file:"&&x(v.protocol)&&v.host?v.protocol+"//"+v.host:"null",v.href=v.toString(),v},toString:function(p){p&&typeof p=="function"||(p=o.stringify);var d,g=this,v=g.host,A=g.protocol;A&&A.charAt(A.length-1)!==":"&&(A+=":");var P=A+(g.protocol&&g.slashes||x(g.protocol)?"//":"");return g.username?(P+=g.username,g.password&&(P+=":"+g.password),P+="@"):g.password?(P+=":"+g.password,P+="@"):g.protocol!=="file:"&&x(g.protocol)&&!v&&g.pathname!=="/"&&(P+="@"),(v[v.length-1]===":"||c.test(g.hostname)&&!g.port)&&(v+=":"),P+=v+g.pathname,(d=typeof g.query=="object"?p(g.query):g.query)&&(P+=d.charAt(0)!=="?"?"?"+d:d),g.hash&&(P+=g.hash),P}},y.extractProtocol=T,y.location=m,y.trimLeft=f,y.qs=o,e.exports=y},410:()=>{},388:()=>{},805:()=>{},345:()=>{},800:()=>{}},Dl={};function Se(e){var t=Dl[e];if(t!==void 0)return t.exports;var r=Dl[e]={id:e,loaded:!1,exports:{}};return yy[e].call(r.exports,r,r.exports,Se),r.loaded=!0,r.exports}Se.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return Se.d(t,{a:t}),t},Se.d=(e,t)=>{for(var r in t)Se.o(t,r)&&!Se.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},Se.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Se.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var ot={};Se.d(ot,{hT:()=>Ze,O4:()=>At,Kd:()=>Sy,YK:()=>_y,UU:()=>Fm,Gu:()=>Jl,ky:()=>dc,h4:()=>vr,ch:()=>an,hq:()=>kt,i5:()=>pc});var my=Se(737),by=Se.n(my);function xo(e){if(!Ao(e))throw new Error("Parameter was not an error")}function Ao(e){return!!e&&typeof e=="object"&&(t=e,Object.prototype.toString.call(t)==="[object Error]")||e instanceof Error;var t}class Je extends Error{constructor(t,r){const n=[...arguments],{options:o,shortMessage:i}=(function(u){let c,l="";if(u.length===0)c={};else if(Ao(u[0]))c={cause:u[0]},l=u.slice(1).join(" ")||"";else if(u[0]&&typeof u[0]=="object")c=Object.assign({},u[0]),l=u.slice(1).join(" ")||"";else{if(typeof u[0]!="string")throw new Error("Invalid arguments passed to Layerr");c={},l=l=u.join(" ")||""}return{options:c,shortMessage:l}})(n);let a=i;if(o.cause&&(a=`${a}: ${o.cause.message}`),super(a),this.message=a,o.name&&typeof o.name=="string"?this.name=o.name:this.name="Layerr",o.cause&&Object.defineProperty(this,"_cause",{value:o.cause}),Object.defineProperty(this,"_info",{value:{}}),o.info&&typeof o.info=="object"&&Object.assign(this._info,o.info),Error.captureStackTrace){const u=o.constructorOpt||this.constructor;Error.captureStackTrace(this,u)}}static cause(t){return xo(t),t._cause&&Ao(t._cause)?t._cause:null}static fullStack(t){xo(t);const r=Je.cause(t);return r?`${t.stack}
|
|
42
|
-
caused by: ${Je.fullStack(r)}`:t.stack??""}static info(t){xo(t);const r={},n=Je.cause(t);return n&&Object.assign(r,Je.info(n)),t._info&&Object.assign(r,t._info),r}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}var wy=Se(47),Qr=Se.n(wy);const $l="__PATH_SEPARATOR_POSIX__",ql="__PATH_SEPARATOR_WINDOWS__";function Ce(e){try{const t=e.replace(/\//g,$l).replace(/\\\\/g,ql);return encodeURIComponent(t).split(ql).join("\\\\").split($l).join("/")}catch(t){throw new Je(t,"Failed encoding path")}}function Hl(e){return e.startsWith("/")?e:"/"+e}function yr(e){let t=e;return t[0]!=="/"&&(t="/"+t),/^.+\/$/.test(t)&&(t=t.substr(0,t.length-1)),t}function vy(e){let t=new(by())(e).pathname;return t.length<=0&&(t="/"),yr(t)}function Be(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(function(){return(function(n){var o=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var i=n.shift();n[0]=i+n[0]}n[0].match(/^file:\/\/\//)?n[0]=n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0]=n[0].replace(/^([^/:]+):\/*/,"$1://");for(var a=0;a<n.length;a++){var u=n[a];if(typeof u!="string")throw new TypeError("Url must be a string. Received "+u);u!==""&&(a>0&&(u=u.replace(/^[\/]+/,"")),u=a<n.length-1?u.replace(/[\/]+$/,""):u.replace(/[\/]+$/,"/"),o.push(u))}var c=o.join("/"),l=(c=c.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return l.shift()+(l.length>0?"?":"")+l.join("&")})(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))})(t.reduce(((n,o,i)=>((i===0||o!=="/"||o==="/"&&n[n.length-1]!=="/")&&n.push(o),n)),[]))}var Ey=Se(542),mr=Se.n(Ey);const xy="abcdef0123456789";function Vl(e,t){const r=e.url.replace("//",""),n=r.indexOf("/")==-1?"/":r.slice(r.indexOf("/")),o=e.method?e.method.toUpperCase():"GET",i=!!/(^|,)\s*auth\s*($|,)/.test(t.qop)&&"auth",a=`00000000${t.nc}`.slice(-8),u=(function(h,E,m,x,T,y,p){const d=p||mr()(`${E}:${m}:${x}`);return h&&h.toLowerCase()==="md5-sess"?mr()(`${d}:${T}:${y}`):d})(t.algorithm,t.username,t.realm,t.password,t.nonce,t.cnonce,t.ha1),c=mr()(`${o}:${n}`),l=i?mr()(`${u}:${t.nonce}:${a}:${t.cnonce}:${i}:${c}`):mr()(`${u}:${t.nonce}:${c}`),s={username:t.username,realm:t.realm,nonce:t.nonce,uri:n,qop:i,response:l,nc:a,cnonce:t.cnonce,algorithm:t.algorithm,opaque:t.opaque},f=[];for(const h in s)s[h]&&(h==="qop"||h==="nc"||h==="algorithm"?f.push(`${h}=${s[h]}`):f.push(`${h}="${s[h]}"`));return`Digest ${f.join(", ")}`}function Wl(e){return(e.headers&&e.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var Ay=Se(101),Gl=Se.n(Ay);function Kl(e){return Gl().decode(e)}function zl(e,t){var r;return`Basic ${r=`${e}:${t}`,Gl().encode(r)}`}const en=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:typeof window<"u"?window:globalThis,Ty=en.fetch.bind(en),Sy=en.Request,_y=en.Response;let Ze=(function(e){return e.Auto="auto",e.Digest="digest",e.None="none",e.Password="password",e.Token="token",e})({}),At=(function(e){return e.DataTypeNoLength="data-type-no-length",e.InvalidAuthType="invalid-auth-type",e.InvalidOutputFormat="invalid-output-format",e.LinkUnsupportedAuthType="link-unsupported-auth",e.InvalidUpdateRange="invalid-update-range",e.NotSupported="not-supported",e})({});function Xl(e,t,r,n,o){switch(e.authType){case Ze.Auto:t&&r&&(e.headers.Authorization=zl(t,r));break;case Ze.Digest:e.digest=(function(a,u,c){return{username:a,password:u,ha1:c,nc:0,algorithm:"md5",hasDigestAuth:!1}})(t,r,o);break;case Ze.None:break;case Ze.Password:e.headers.Authorization=zl(t,r);break;case Ze.Token:e.headers.Authorization=`${(i=n).token_type} ${i.access_token}`;break;default:throw new Je({info:{code:At.InvalidAuthType}},`Invalid auth type: ${e.authType}`)}var i}Se(345),Se(800);const Yl="@@HOTPATCHER",Oy=()=>{};function To(e){return{original:e,methods:[e],final:!1}}class Ny{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=Yl}get configuration(){return this._configuration}get getEmptyAction(){return this.configuration.getEmptyAction}set getEmptyAction(t){this.configuration.getEmptyAction=t}control(t){let r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!t||t.__type__!==Yl)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(t.configuration.registry).forEach((n=>{this.configuration.registry.hasOwnProperty(n)?r&&(this.configuration.registry[n]=Object.assign({},t.configuration.registry[n])):this.configuration.registry[n]=Object.assign({},t.configuration.registry[n])})),t._configuration=this.configuration,this}execute(t){const r=this.get(t)||Oy;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r(...o)}get(t){const r=this.configuration.registry[t];if(!r)switch(this.getEmptyAction){case"null":return null;case"throw":throw new Error(`Failed handling method request: No method provided for override: ${t}`);default:throw new Error(`Failed handling request which resulted in an empty method: Invalid empty-action specified: ${this.getEmptyAction}`)}return(function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if(o.length===0)throw new Error("Failed creating sequence: No functions provided");return function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];let l=u;const s=this;for(;o.length>0;)l=[o.shift().apply(s,l)];return l[0]}})(...r.methods)}isPatched(t){return!!this.configuration.registry[t]}patch(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{chain:o=!1}=n;if(this.configuration.registry[t]&&this.configuration.registry[t].final)throw new Error(`Failed patching '${t}': Method marked as being final`);if(typeof r!="function")throw new Error(`Failed patching '${t}': Provided method is not a function`);if(o)this.configuration.registry[t]?this.configuration.registry[t].methods.push(r):this.configuration.registry[t]=To(r);else if(this.isPatched(t)){const{original:i}=this.configuration.registry[t];this.configuration.registry[t]=Object.assign(To(r),{original:i})}else this.configuration.registry[t]=To(r);return this}patchInline(t,r){this.isPatched(t)||this.patch(t,r);for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return this.execute(t,...o)}plugin(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((i=>{this.patch(t,i,{chain:!0})})),this}restore(t){if(!this.isPatched(t))throw new Error(`Failed restoring method: No method present for key: ${t}`);if(typeof this.configuration.registry[t].original!="function")throw new Error(`Failed restoring method: Original method not found or of invalid type for key: ${t}`);return this.configuration.registry[t].methods=[this.configuration.registry[t].original],this}setFinal(t){if(!this.configuration.registry.hasOwnProperty(t))throw new Error(`Failed marking '${t}' as final: No method found for key`);return this.configuration.registry[t].final=!0,this}}let So=null;function Jl(){return So||(So=new Ny),So}function tn(e){return(function(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let r=t;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(t)===r})(e)?Object.assign({},e):Object.setPrototypeOf(Object.assign({},e),Object.getPrototypeOf(e))}function Zl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=null,o=[...t];for(;o.length>0;){const i=o.shift();n=n?Ql(n,i):tn(i)}return n}function Ql(e,t){const r=tn(e);return Object.keys(t).forEach((n=>{r.hasOwnProperty(n)?Array.isArray(t[n])?r[n]=Array.isArray(r[n])?[...r[n],...t[n]]:[...t[n]]:typeof t[n]=="object"&&t[n]?r[n]=typeof r[n]=="object"&&r[n]?Ql(r[n],t[n]):tn(t[n]):r[n]=t[n]:r[n]=t[n]})),r}function Ry(e){const t={};for(const r of e.keys())t[r]=e.get(r);return t}function _o(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length===0)return{};const n={};return t.reduce(((o,i)=>(Object.keys(i).forEach((a=>{const u=a.toLowerCase();n.hasOwnProperty(u)?o[n[u]]=i[a]:(n[u]=a,o[a]=i[a])})),o)),{})}Se(805);const Py=typeof ArrayBuffer=="function",{toString:Iy}=Object.prototype;function ec(e){return Py&&(e instanceof ArrayBuffer||Iy.call(e)==="[object ArrayBuffer]")}function tc(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Oo(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}function No(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const rc=Oo((function(e){const t=e._digest;return delete e._digest,t.hasDigestAuth&&(e=Zl(e,{headers:{Authorization:Vl(e,t)}})),No(rn(e),(function(r){let n=!1;return o=function(a){return n?a:r},(i=(function(){if(r.status==401)return t.hasDigestAuth=(function(a,u){if(!Wl(a))return!1;const c=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;for(;;){const l=a.headers&&a.headers.get("www-authenticate")||"",s=c.exec(l);if(!s)break;u[s[1]]=s[2]||s[3]}return u.nc+=1,u.cnonce=(function(){let l="";for(let s=0;s<32;++s)l=`${l}${xy[Math.floor(16*Math.random())]}`;return l})(),!0})(r,t),(function(){if(t.hasDigestAuth)return No(rn(e=Zl(e,{headers:{Authorization:Vl(e,t)}})),(function(a){return a.status==401?t.hasDigestAuth=!1:t.nc++,n=!0,a}))})();t.nc++})())&&i.then?i.then(o):o(i);var o,i}))})),Fy=Oo((function(e,t){return No(rn(e),(function(r){return r.ok?(t.authType=Ze.Password,r):r.status==401&&Wl(r)?(t.authType=Ze.Digest,Xl(t,t.username,t.password,void 0,void 0),e._digest=t.digest,rc(e)):r}))})),De=Oo((function(e,t){return t.authType===Ze.Auto?Fy(e,t):e._digest?rc(e):rn(e)}));function $e(e,t,r){const n=tn(e);return n.headers=_o(t.headers,n.headers||{},r.headers||{}),r.data!==void 0&&(n.data=r.data),r.signal&&(n.signal=r.signal),t.httpAgent&&(n.httpAgent=t.httpAgent),t.httpsAgent&&(n.httpsAgent=t.httpsAgent),t.digest&&(n._digest=t.digest),typeof t.withCredentials=="boolean"&&(n.withCredentials=t.withCredentials),n}function rn(e){const t=Jl();return t.patchInline("request",(r=>t.patchInline("fetch",Ty,r.url,(function(n){let o={};const i={method:n.method};if(n.headers&&(o=_o(o,n.headers)),n.data!==void 0){const[a,u]=(function(c){if(typeof c=="string")return[c,{}];if(tc(c))return[c,{}];if(ec(c))return[c,{}];if(c&&typeof c=="object")return[JSON.stringify(c),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+typeof c)})(n.data);i.body=a,o=_o(o,u)}return n.signal&&(i.signal=n.signal),n.withCredentials&&(i.credentials="include"),i.headers=o,i})(r))),e)}var Cy=Se(285);const nn=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},By={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},br=e=>e.replace(/[[\]\\-]/g,"\\$&"),nc=e=>e.join(""),Ly=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const n=[],o=[];let i=r+1,a=!1,u=!1,c=!1,l=!1,s=r,f="";e:for(;i<e.length;){const x=e.charAt(i);if(x!=="!"&&x!=="^"||i!==r+1){if(x==="]"&&a&&!c){s=i+1;break}if(a=!0,x!=="\\"||c){if(x==="["&&!c){for(const[T,[y,p,d]]of Object.entries(By))if(e.startsWith(T,i)){if(f)return["$.",!1,e.length-r,!0];i+=T.length,d?o.push(y):n.push(y),u=u||p;continue e}}c=!1,f?(x>f?n.push(br(f)+"-"+br(x)):x===f&&n.push(br(x)),f="",i++):e.startsWith("-]",i+1)?(n.push(br(x+"-")),i+=2):e.startsWith("-",i+1)?(f=x,i+=2):(n.push(br(x)),i++)}else c=!0,i++}else l=!0,i++}if(s<i)return["",!1,0,!1];if(!n.length&&!o.length)return["$.",!1,e.length-r,!0];if(o.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!l)return[(h=n[0].length===2?n[0].slice(-1):n[0],h.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,s-r,!1];var h;const E="["+(l?"^":"")+nc(n)+"]",m="["+(l?"":"^")+nc(o)+"]";return[n.length&&o.length?"("+E+"|"+m+")":n.length?E:m,u,s-r,!0]},wr=function(e){let{windowsPathsNoEscape:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},Uy=new Set(["!","?","+","*","@"]),ic=e=>Uy.has(e),Ro="(?!\\.)",jy=new Set(["[","."]),ky=new Set(["..","."]),My=new Set("().*{}+?[]^$\\!"),Po="[^/]",oc=Po+"*?",sc=Po+"+?";class Qe{type;#e;#i;#s=!1;#t=[];#r;#c;#o;#l=!1;#n;#f;#a=!1;constructor(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=t,t&&(this.#i=!0),this.#r=r,this.#e=this.#r?this.#r.#e:this,this.#n=this.#e===this?n:this.#e.#n,this.#o=this.#e===this?[]:this.#e.#o,t!=="!"||this.#e.#l||this.#o.push(this),this.#c=this.#r?this.#r.#t.length:0}get hasMagic(){if(this.#i!==void 0)return this.#i;for(const t of this.#t)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#i=!0;return this.#i}toString(){return this.#f!==void 0?this.#f:this.type?this.#f=this.type+"("+this.#t.map((t=>String(t))).join("|")+")":this.#f=this.#t.map((t=>String(t))).join("")}#h(){if(this!==this.#e)throw new Error("should only call on root");if(this.#l)return this;let t;for(this.toString(),this.#l=!0;t=this.#o.pop();){if(t.type!=="!")continue;let r=t,n=r.#r;for(;n;){for(let o=r.#c+1;!n.type&&o<n.#t.length;o++)for(const i of t.#t){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(n.#t[o])}r=n,n=r.#r}}return this}push(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(const o of r)if(o!==""){if(typeof o!="string"&&!(o instanceof Qe&&o.#r===this))throw new Error("invalid part: "+o);this.#t.push(o)}}toJSON(){const t=this.type===null?this.#t.slice().map((r=>typeof r=="string"?r:r.toJSON())):[this.type,...this.#t.map((r=>r.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#l&&this.#r?.type==="!")&&t.push({}),t}isStart(){if(this.#e===this)return!0;if(!this.#r?.isStart())return!1;if(this.#c===0)return!0;const t=this.#r;for(let r=0;r<this.#c;r++){const n=t.#t[r];if(!(n instanceof Qe&&n.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#r?.type==="!")return!0;if(!this.#r?.isEnd())return!1;if(!this.type)return this.#r?.isEnd();const t=this.#r?this.#r.#t.length:0;return this.#c===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Qe(this.type,t);for(const n of this.#t)r.copyIn(n);return r}static#u(t,r,n,o){let i=!1,a=!1,u=-1,c=!1;if(r.type===null){let E=n,m="";for(;E<t.length;){const x=t.charAt(E++);if(i||x==="\\")i=!i,m+=x;else if(a)E===u+1?x!=="^"&&x!=="!"||(c=!0):x!=="]"||E===u+2&&c||(a=!1),m+=x;else if(x!=="[")if(o.noext||!ic(x)||t.charAt(E)!=="(")m+=x;else{r.push(m),m="";const T=new Qe(x,r);E=Qe.#u(t,T,E,o),r.push(T)}else a=!0,u=E,c=!1,m+=x}return r.push(m),E}let l=n+1,s=new Qe(null,r);const f=[];let h="";for(;l<t.length;){const E=t.charAt(l++);if(i||E==="\\")i=!i,h+=E;else if(a)l===u+1?E!=="^"&&E!=="!"||(c=!0):E!=="]"||l===u+2&&c||(a=!1),h+=E;else if(E!=="[")if(ic(E)&&t.charAt(l)==="("){s.push(h),h="";const m=new Qe(E,s);s.push(m),l=Qe.#u(t,m,l,o)}else if(E!=="|"){if(E===")")return h===""&&r.#t.length===0&&(r.#a=!0),s.push(h),h="",r.push(...f,s),l;h+=E}else s.push(h),h="",f.push(s),s=new Qe(null,r);else a=!0,u=l,c=!1,h+=E}return r.type=null,r.#i=void 0,r.#t=[t.substring(n-1)],l}static fromGlob(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=new Qe(null,void 0,r);return Qe.#u(t,n,0,r),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();const t=this.toString(),[r,n,o,i]=this.toRegExpSource();if(!(o||this.#i||this.#n.nocase&&!this.#n.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const a=(this.#n.nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:t})}get options(){return this.#n}toRegExpSource(t){const r=t??!!this.#n.dot;if(this.#e===this&&this.#h(),!this.type){const c=this.isStart()&&this.isEnd(),l=this.#t.map((h=>{const[E,m,x,T]=typeof h=="string"?Qe.#p(h,this.#i,c):h.toRegExpSource(t);return this.#i=this.#i||x,this.#s=this.#s||T,E})).join("");let s="";if(this.isStart()&&typeof this.#t[0]=="string"&&(this.#t.length!==1||!ky.has(this.#t[0]))){const h=jy,E=r&&h.has(l.charAt(0))||l.startsWith("\\.")&&h.has(l.charAt(2))||l.startsWith("\\.\\.")&&h.has(l.charAt(4)),m=!r&&!t&&h.has(l.charAt(0));s=E?"(?!(?:^|/)\\.\\.?(?:$|/))":m?Ro:""}let f="";return this.isEnd()&&this.#e.#l&&this.#r?.type==="!"&&(f="(?:$|\\/)"),[s+l+f,wr(l),this.#i=!!this.#i,this.#s]}const n=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let i=this.#d(r);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){const c=this.toString();return this.#t=[c],this.type=null,this.#i=void 0,[c,wr(this.toString()),!1,!1]}let a=!n||t||r?"":this.#d(!0);a===i&&(a=""),a&&(i=`(?:${i})(?:${a})*?`);let u="";return u=this.type==="!"&&this.#a?(this.isStart()&&!r?Ro:"")+sc:o+i+(this.type==="!"?"))"+(!this.isStart()||r||t?"":Ro)+oc+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`),[u,wr(i),this.#i=!!this.#i,this.#s]}#d(t){return this.#t.map((r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[n,o,i,a]=r.toRegExpSource(t);return this.#s=this.#s||a,n})).filter((r=>!(this.isStart()&&this.isEnd()&&!r))).join("|")}static#p(t,r){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=!1,i="",a=!1;for(let u=0;u<t.length;u++){const c=t.charAt(u);if(o)o=!1,i+=(My.has(c)?"\\":"")+c;else if(c!=="\\"){if(c==="["){const[l,s,f,h]=Ly(t,u);if(f){i+=l,a=a||s,u+=f-1,r=r||h;continue}}c!=="*"?c!=="?"?i+=c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(i+=Po,r=!0):(i+=n&&t==="*"?sc:oc,r=!0)}else u===t.length-1?i+="\\\\":o=!0}return[i,wr(t),!!r,a]}}const Xe=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return nn(t),!(!r.nocomment&&t.charAt(0)==="#")&&new on(t,r).match(e)},Dy=/^\*+([^+@!?\*\[\(]*)$/,$y=e=>t=>!t.startsWith(".")&&t.endsWith(e),qy=e=>t=>t.endsWith(e),Hy=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Vy=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Wy=/^\*+\.\*+$/,Gy=e=>!e.startsWith(".")&&e.includes("."),Ky=e=>e!=="."&&e!==".."&&e.includes("."),zy=/^\.\*+$/,Xy=e=>e!=="."&&e!==".."&&e.startsWith("."),Yy=/^\*+$/,Jy=e=>e.length!==0&&!e.startsWith("."),Zy=e=>e.length!==0&&e!=="."&&e!=="..",Qy=/^\?+([^+@!?\*\[\(]*)?$/,em=e=>{let[t,r=""]=e;const n=ac([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},tm=e=>{let[t,r=""]=e;const n=uc([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},rm=e=>{let[t,r=""]=e;const n=uc([t]);return r?o=>n(o)&&o.endsWith(r):n},nm=e=>{let[t,r=""]=e;const n=ac([t]);return r?o=>n(o)&&o.endsWith(r):n},ac=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&!n.startsWith(".")},uc=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&n!=="."&&n!==".."},lc=typeof ye=="object"&&ye?typeof ye.env=="object"&&ye.env&&ye.env.__MINIMATCH_TESTING_PLATFORM__||ye.platform:"posix";Xe.sep=lc==="win32"?"\\":"/";const st=Symbol("globstar **");Xe.GLOBSTAR=st,Xe.filter=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r=>Xe(r,e,t)};const at=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.assign({},e,t)};Xe.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Xe;const t=Xe;return Object.assign((function(r,n){return t(r,n,at(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}),{Minimatch:class extends t.Minimatch{constructor(r){super(r,at(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}))}static defaults(r){return t.defaults(at(e,r)).Minimatch}},AST:class extends t.AST{constructor(r,n){super(r,n,at(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}static fromGlob(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.AST.fromGlob(r,at(e,n))}},unescape:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.unescape(r,at(e,n))},escape:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.escape(r,at(e,n))},filter:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.filter(r,at(e,n))},defaults:r=>t.defaults(at(e,r)),makeRe:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.makeRe(r,at(e,n))},braceExpand:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.braceExpand(r,at(e,n))},match:function(r,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.match(r,n,at(e,o))},sep:t.sep,GLOBSTAR:st})};const cc=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return nn(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Cy(e)};Xe.braceExpand=cc,Xe.makeRe=function(e){return new on(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},Xe.match=function(e,t){const r=new on(t,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{});return e=e.filter((n=>r.match(n))),r.options.nonull&&!e.length&&e.push(t),e};const fc=/[?*]|[+@!]\(.*?\)|\[|\]/;class on{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};nn(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||lc,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#")return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=function(){return console.error(...arguments)}),this.debug(this.pattern,this.globSet);const n=this.globSet.map((i=>this.slashSplit(i)));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let o=this.globParts.map(((i,a,u)=>{if(this.isWindows&&this.windowsNoMagicRoot){const c=!(i[0]!==""||i[1]!==""||i[2]!=="?"&&fc.test(i[2])||fc.test(i[3])),l=/^[a-z]:/i.test(i[0]);if(c)return[...i.slice(0,4),...i.slice(4).map((s=>this.parse(s)))];if(l)return[i[0],...i.slice(1).map((s=>this.parse(s)))]}return i.map((c=>this.parse(c)))}));if(this.debug(this.pattern,o),this.set=o.filter((i=>i.indexOf(!1)===-1)),this.isWindows)for(let i=0;i<this.set.length;i++){const a=this.set[i];a[0]===""&&a[1]===""&&this.globParts[i][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let o=0;o<t[n].length;o++)t[n][o]==="**"&&(t[n][o]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=r>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let o=n;for(;r[o+1]==="**";)o++;o!==n&&r.splice(n,o-n)}return r}))}levelOneOptimize(t){return t.map((r=>(r=r.reduce(((n,o)=>{const i=n[n.length-1];return o==="**"&&i==="**"?n:o===".."&&i&&i!==".."&&i!=="."&&i!=="**"?(n.pop(),n):(n.push(o),n)}),[])).length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let o=1;o<t.length-1;o++){const i=t[o];o===1&&i===""&&t[0]===""||i!=="."&&i!==""||(r=!0,t.splice(o,1),o--)}t[0]!=="."||t.length!==2||t[1]!=="."&&t[1]!==""||(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){const o=t[n-1];o&&o!=="."&&o!==".."&&o!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let o=-1;for(;(o=n.indexOf("**",o+1))!==-1;){let a=o;for(;n[a+1]==="**";)a++;a>o&&n.splice(o+1,a-o);let u=n[o+1];const c=n[o+2],l=n[o+3];if(u!==".."||!c||c==="."||c===".."||!l||l==="."||l==="..")continue;r=!0,n.splice(o,1);const s=n.slice(0);s[o]="**",t.push(s),o--}if(!this.preserveMultipleSlashes){for(let a=1;a<n.length-1;a++){const u=n[a];a===1&&u===""&&n[0]===""||u!=="."&&u!==""||(r=!0,n.splice(a,1),a--)}n[0]!=="."||n.length!==2||n[1]!=="."&&n[1]!==""||(r=!0,n.pop())}let i=0;for(;(i=n.indexOf("..",i+1))!==-1;){const a=n[i-1];if(a&&a!=="."&&a!==".."&&a!=="**"){r=!0;const u=i===1&&n[i+1]==="**"?["."]:[];n.splice(i-1,2,...u),n.length===0&&n.push(""),i-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){const o=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(o){t[r]=[],t[n]=o;break}}return t.filter((r=>r.length))}partsMatch(t,r){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=0,i=0,a=[],u="";for(;o<t.length&&i<r.length;)if(t[o]===r[i])a.push(u==="b"?r[i]:t[o]),o++,i++;else if(n&&t[o]==="**"&&r[i]===t[o+1])a.push(t[o]),o++;else if(n&&r[i]==="**"&&t[o]===r[i+1])a.push(r[i]),i++;else if(t[o]!=="*"||!r[i]||!this.options.dot&&r[i].startsWith(".")||r[i]==="**"){if(r[i]!=="*"||!t[o]||!this.options.dot&&t[o].startsWith(".")||t[o]==="**"||u==="a")return!1;u="b",a.push(r[i]),o++,i++}else{if(u==="b")return!1;u="a",a.push(t[o]),o++,i++}return t.length===r.length&&a}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,n=0;for(let o=0;o<t.length&&t.charAt(o)==="!";o++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const o=this.options;if(this.isWindows){const x=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),T=!x&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),y=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),p=T?3:x?0:void 0,d=!y&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3])?3:y?0:void 0;if(typeof p=="number"&&typeof d=="number"){const[g,v]=[t[p],r[d]];g.toLowerCase()===v.toLowerCase()&&(r[d]=g,d>p?r=r.slice(d):p>d&&(t=t.slice(p)))}}const{optimizationLevel:i=1}=this.options;i>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var a=0,u=0,c=t.length,l=r.length;a<c&&u<l;a++,u++){this.debug("matchOne loop");var s=r[u],f=t[a];if(this.debug(r,s,f),s===!1)return!1;if(s===st){this.debug("GLOBSTAR",[r,s,f]);var h=a,E=u+1;if(E===l){for(this.debug("** at the end");a<c;a++)if(t[a]==="."||t[a]===".."||!o.dot&&t[a].charAt(0)===".")return!1;return!0}for(;h<c;){var m=t[h];if(this.debug(`
|
|
43
|
-
globstar while`,t,h,r,
|
|
44
|
-
>>> no match, partial?`,t,h,r,E),h!==c))}let x;if(typeof s=="string"?(x=f===s,this.debug("string match",s,f,x)):(x=s.test(f),this.debug("pattern match",s,f,x)),!x)return!1}if(a===c&&u===l)return!0;if(a===c)return n;if(u===l)return a===c-1&&t[a]==="";throw new Error("wtf?")}braceExpand(){return cc(this.pattern,this.options)}parse(t){nn(t);const r=this.options;if(t==="**")return st;if(t==="")return"";let n,o=null;(n=t.match(Yy))?o=r.dot?Zy:Jy:(n=t.match(Dy))?o=(r.nocase?r.dot?Vy:Hy:r.dot?qy:$y)(n[1]):(n=t.match(Qy))?o=(r.nocase?r.dot?tm:em:r.dot?rm:nm)(n):(n=t.match(Wy))?o=r.dot?Ky:Gy:(n=t.match(zy))&&(o=Xy);const i=Qe.fromGlob(t,this.options).toMMPattern();return o&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:o}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,n=r.noglobstar?"[^/]*?":r.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",o=new Set(r.nocase?["i"]:[]);let i=t.map((c=>{const l=c.map((s=>{if(s instanceof RegExp)for(const f of s.flags.split(""))o.add(f);return typeof s=="string"?s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):s===st?st:s._src}));return l.forEach(((s,f)=>{const h=l[f+1],E=l[f-1];s===st&&E!==st&&(E===void 0?h!==void 0&&h!==st?l[f+1]="(?:\\/|"+n+"\\/)?"+h:l[f]=n:h===void 0?l[f-1]=E+"(?:\\/|"+n+")?":h!==st&&(l[f-1]=E+"(?:\\/|\\/"+n+"\\/)"+h,l[f+1]=st))})),l.filter((s=>s!==st)).join("/")})).join("|");const[a,u]=t.length>1?["(?:",")"]:["",""];i="^"+a+i+u+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...o].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.partial;if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const o=this.slashSplit(t);this.debug(this.pattern,"split",o);const i=this.set;this.debug(this.pattern,"set",i);let a=o[o.length-1];if(!a)for(let u=o.length-2;!a&&u>=0;u--)a=o[u];for(let u=0;u<i.length;u++){const c=i[u];let l=o;if(n.matchBase&&c.length===1&&(l=[a]),this.matchOne(l,c,r))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return Xe.defaults(t).Minimatch}}function Io(e){const t=new Error(`${arguments.length>1&&arguments[1]!==void 0?arguments[1]:""}Invalid response: ${e.status} ${e.statusText}`);return t.status=e.status,t.response=e,t}function qe(e,t){const{status:r}=t;if(r===401&&e.digest)return t;if(r>=400)throw Io(t);return t}function kt(e,t){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:t,headers:e.headers?Ry(e.headers):{},status:e.status,statusText:e.statusText}:t}Xe.AST=Qe,Xe.Minimatch=on,Xe.escape=function(e){let{windowsPathsNoEscape:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&")},Xe.unescape=wr;const im=(hc=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=$e({url:Be(e.remoteURL,Ce(t)),method:"COPY",headers:{Destination:Be(e.remoteURL,Ce(r)),Overwrite:n.overwrite===!1?"F":"T",Depth:n.shallow?"0":"infinity"}},e,n);return a=function(u){qe(e,u)},(i=De(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(hc.apply(this,e))}catch(r){return Promise.reject(r)}});var hc,Fo=Se(635),om=Se(829),Tt=Se.n(om),er=(function(e){return e.Array="array",e.Object="object",e.Original="original",e})(er||{});function sn(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:er.Original;const n=Tt().get(e,t);return r==="array"&&Array.isArray(n)===!1?[n]:r==="object"&&Array.isArray(n)?n[0]:n}function vr(e){return new Promise((t=>{t((function(r){const{multistatus:n}=r;if(n==="")return{multistatus:{response:[]}};if(!n)throw new Error("Invalid response: No root multistatus found");const o={multistatus:Array.isArray(n)?n[0]:n};return Tt().set(o,"multistatus.response",sn(o,"multistatus.response",er.Array)),Tt().set(o,"multistatus.response",Tt().get(o,"multistatus.response").map((i=>(function(a){const u=Object.assign({},a);return u.status?Tt().set(u,"status",sn(u,"status",er.Object)):(Tt().set(u,"propstat",sn(u,"propstat",er.Object)),Tt().set(u,"propstat.prop",sn(u,"propstat.prop",er.Object))),u})(i)))),o})(new Fo.XMLParser({allowBooleanAttributes:!0,attributeNamePrefix:"",textNodeName:"text",ignoreAttributes:!1,removeNSPrefix:!0,numberParseOptions:{hex:!0,leadingZeros:!1},attributeValueProcessor:(r,n,o)=>n==="true"||n==="false"?n==="true":n,tagValueProcessor(r,n,o){if(!o.endsWith("propstat.prop.displayname"))return n}}).parse(e)))}))}function an(e,t){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const{getlastmodified:n=null,getcontentlength:o="0",resourcetype:i=null,getcontenttype:a=null,getetag:u=null}=e,c=i&&typeof i=="object"&&i.collection!==void 0?"directory":"file",l={filename:t,basename:Qr().basename(t),lastmod:n,size:parseInt(o,10),type:c,etag:typeof u=="string"?u.replace(/"/g,""):null};return c==="file"&&(l.mime=a&&typeof a=="string"?a.split(";")[0]:""),r&&(e.displayname!==void 0&&(e.displayname=String(e.displayname)),l.props=e),l}function dc(e,t){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],n=null;try{e.multistatus.response[0].propstat&&(n=e.multistatus.response[0])}catch{}if(!n)throw new Error("Failed getting item stat: bad response");const{propstat:{prop:o,status:i}}=n,[a,u,c]=i.split(" ",3),l=parseInt(u,10);if(l>=400){const s=new Error(`Invalid response: ${l} ${c}`);throw s.status=l,s}return an(o,yr(t),r)}function pc(e){switch(String(e)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(e),10)}}function Co(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Bo=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{details:n=!1}=r,o=$e({url:Be(e.remoteURL,Ce(t)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,r);return Co(De(o,e),(function(i){return qe(e,i),Co(i.text(),(function(a){return Co(vr(a),(function(u){const c=dc(u,t,n);return kt(i,c,n)}))}))}))}));function gc(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const sm=yc((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=(function(i){if(!i||i==="/")return[];let a=i;const u=[];do u.push(a),a=Qr().dirname(a);while(a&&a!=="/");return u})(yr(t));n.sort(((i,a)=>i.length>a.length?1:a.length>i.length?-1:0));let o=!1;return(function(i,a,u){if(typeof i[bc]=="function"){let x=function(T){try{for(;!(c=f.next()).done;)if((T=a(c.value))&&T.then){if(!wc(T))return void T.then(x,s||(s=et.bind(null,l=new tr,2)));T=T.v}l?et(l,1,T):l=T}catch(y){et(l||(l=new tr),2,y)}};var c,l,s,f=i[bc]();if(x(),f.return){var h=function(T){try{c.done||f.return()}catch{}return T};if(l&&l.then)return l.then(h,(function(T){throw h(T)}));h()}return l}if(!("length"in i))throw new TypeError("Object is not iterable");for(var E=[],m=0;m<i.length;m++)E.push(i[m]);return(function(x,T,y){var p,d,g=-1;return(function v(A){try{for(;++g<x.length&&(!y||!y());)if((A=T(g))&&A.then){if(!wc(A))return void A.then(v,d||(d=et.bind(null,p=new tr,2)));A=A.v}p?et(p,1,A):p=A}catch(P){et(p||(p=new tr),2,P)}})(),p})(E,(function(x){return a(E[x])}),u)})(n,(function(i){return a=function(){return(function(c,l){try{var s=gc(Bo(e,i),(function(f){if(f.type!=="directory")throw new Error(`Path includes a file: ${t}`)}))}catch(f){return l(f)}return s&&s.then?s.then(void 0,l):s})(0,(function(c){const l=c;return(function(){if(l.status===404)return o=!0,mc(Lo(e,i,{...r,recursive:!1}));throw c})()}))},(u=(function(){if(o)return mc(Lo(e,i,{...r,recursive:!1}))})())&&u.then?u.then(a):a();var a,u}),(function(){return!1}))}));function yc(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}function am(){}function mc(e,t){return e&&e.then?e.then(am):Promise.resolve()}const bc=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function et(e,t,r){if(!e.s){if(r instanceof tr){if(!r.s)return void(r.o=et.bind(null,e,t));1&t&&(t=r.s),r=r.v}if(r&&r.then)return void r.then(et.bind(null,e,t),et.bind(null,e,2));e.s=t,e.v=r;const n=e.o;n&&n(e)}}const tr=(function(){function e(){}return e.prototype.then=function(t,r){const n=new e,o=this.s;if(o){const i=1&o?t:r;if(i){try{et(n,1,i(this.v))}catch(a){et(n,2,a)}return n}return this}return this.o=function(i){try{const a=i.v;1&i.s?et(n,1,t?t(a):a):r?et(n,1,r(a)):et(n,2,a)}catch(a){et(n,2,a)}},n},e})();function wc(e){return e instanceof tr&&1&e.s}const Lo=yc((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(r.recursive===!0)return sm(e,t,r);const n=$e({url:Be(e.remoteURL,(o=Ce(t),o.endsWith("/")?o:o+"/")),method:"MKCOL"},e,r);var o;return gc(De(n,e),(function(i){qe(e,i)}))}));var um=Se(388),vc=Se.n(um);const lm=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n={};if(typeof r.range=="object"&&typeof r.range.start=="number"){let u=`bytes=${r.range.start}-`;typeof r.range.end=="number"&&(u=`${u}${r.range.end}`),n.Range=u}const o=$e({url:Be(e.remoteURL,Ce(t)),method:"GET",headers:n},e,r);return a=function(u){if(qe(e,u),n.Range&&u.status!==206){const c=new Error(`Invalid response code for partial request: ${u.status}`);throw c.status=u.status,c}return r.callback&&setTimeout((()=>{r.callback(u)}),0),u.body},(i=De(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a})),cm=()=>{},fm=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t,r){r.url||(r.url=Be(e.remoteURL,Ce(t)));const n=$e(r,e,{});return i=function(a){return qe(e,a),a},(o=De(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i})),hm=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=$e({url:Be(e.remoteURL,Ce(t)),method:"DELETE"},e,r);return i=function(a){qe(e,a)},(o=De(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i})),dm=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function(n,o){try{var i=(a=Bo(e,t,r),u=function(){return!0},c?u?u(a):a:(a&&a.then||(a=Promise.resolve(a)),u?a.then(u):a))}catch(l){return o(l)}var a,u,c;return i&&i.then?i.then(void 0,o):i})(0,(function(n){if(n.status===404)return!1;throw n}))}));function Uo(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const pm=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=$e({url:Be(e.remoteURL,Ce(t),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:r.deep?"infinity":"1"}},e,r);return Uo(De(n,e),(function(o){return qe(e,o),Uo(o.text(),(function(i){if(!i)throw new Error("Failed parsing directory contents: Empty response");return Uo(vr(i),(function(a){const u=Hl(t);let c=(function(l,s,f){let h=arguments.length>3&&arguments[3]!==void 0&&arguments[3],E=arguments.length>4&&arguments[4]!==void 0&&arguments[4];const m=Qr().join(s,"/"),{multistatus:{response:x}}=l,T=x.map((y=>{const p=(function(g){try{return g.replace(/^https?:\/\/[^\/]+/,"")}catch(v){throw new Je(v,"Failed normalising HREF")}})(y.href),{propstat:{prop:d}}=y;return an(d,m==="/"?decodeURIComponent(yr(p)):yr(Qr().relative(decodeURIComponent(m),decodeURIComponent(p))),h)}));return E?T:T.filter((y=>y.basename&&(y.type==="file"||y.filename!==f.replace(/\/$/,""))))})(a,Hl(e.remoteBasePath||e.remotePath),u,r.details,r.includeSelf);return r.glob&&(c=(function(l,s){return l.filter((f=>Xe(f.filename,s,{matchBase:!0})))})(c,r.glob)),kt(o,c,r.details)}))}))}))}));function jo(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}const gm=jo((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=$e({url:Be(e.remoteURL,Ce(t)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[bm]},e,r);return un(De(n,e),(function(o){return qe(e,o),un(o.text(),(function(i){return kt(o,i,r.details)}))}))}));function un(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const ym=jo((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=$e({url:Be(e.remoteURL,Ce(t)),method:"GET"},e,r);return un(De(n,e),(function(o){let i;return qe(e,o),(function(a,u){var c=a();return c&&c.then?c.then(u):u()})((function(){return un(o.arrayBuffer(),(function(a){i=a}))}),(function(){return kt(o,i,r.details)}))}))})),mm=jo((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{format:n="binary"}=r;if(n!=="binary"&&n!=="text")throw new Je({info:{code:At.InvalidOutputFormat}},`Invalid output format: ${n}`);return n==="text"?gm(e,t,r):ym(e,t,r)})),bm=e=>e;function wm(e){return new Fo.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(Ec({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:e}}},"d"))}function Ec(e,t){const r={...e};for(const n in r)r.hasOwnProperty(n)&&(r[n]&&typeof r[n]=="object"&&n.indexOf(":")===-1?(r[`${t}:${n}`]=Ec(r[n],t),delete r[n]):/^@_/.test(n)===!1&&(r[`${t}:${n}`]=r[n],delete r[n]));return r}function ko(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function xc(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}const vm=xc((function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=$e({url:Be(e.remoteURL,Ce(t)),method:"UNLOCK",headers:{"Lock-Token":r}},e,n);return ko(De(o,e),(function(i){if(qe(e,i),i.status!==204&&i.status!==200)throw Io(i)}))})),Em=xc((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{refreshToken:n,timeout:o=xm}=r,i={Accept:"text/plain,application/xml",Timeout:o};n&&(i.If=n);const a=$e({url:Be(e.remoteURL,Ce(t)),method:"LOCK",headers:i,data:wm(e.contactHref)},e,r);return ko(De(a,e),(function(u){return qe(e,u),ko(u.text(),(function(c){const l=(h=c,new Fo.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(h)),s=Tt().get(l,"prop.lockdiscovery.activelock.locktoken.href"),f=Tt().get(l,"prop.lockdiscovery.activelock.timeout");var h;if(!s)throw Io(u,"No lock token received: ");return{token:s,serverTimeout:f}}))}))})),xm="Infinite, Second-4100000000";function Mo(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Am=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=t.path||"/",n=$e({url:Be(e.remoteURL,r),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,t);return Mo(De(n,e),(function(o){return qe(e,o),Mo(o.text(),(function(i){return Mo(vr(i),(function(a){const u=(function(c){try{const[l]=c.multistatus.response,{propstat:{prop:{"quota-used-bytes":s,"quota-available-bytes":f}}}=l;return s!==void 0&&f!==void 0?{used:parseInt(String(s),10),available:pc(f)}:null}catch{}return null})(a);return kt(o,u,t.details)}))}))}))}));function Do(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Tm=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{details:n=!1}=r,o=$e({url:Be(e.remoteURL,Ce(t)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":e.headers["Content-Type"]||"application/xml; charset=utf-8"}},e,r);return Do(De(o,e),(function(i){return qe(e,i),Do(i.text(),(function(a){return Do(vr(a),(function(u){const c=(function(l,s,f){const h={truncated:!1,results:[]};return h.truncated=l.multistatus.response.some((E=>(E.status||E.propstat?.status).split(" ",3)?.[1]==="507"&&E.href.replace(/\/$/,"").endsWith(Ce(s).replace(/\/$/,"")))),l.multistatus.response.forEach((E=>{if(E.propstat===void 0)return;const m=E.href.split("/").map(decodeURIComponent).join("/");h.results.push(an(E.propstat.prop,m,f))})),h})(u,t,n);return kt(i,c,n)}))}))}))})),Sm=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=$e({url:Be(e.remoteURL,Ce(t)),method:"MOVE",headers:{Destination:Be(e.remoteURL,Ce(r)),Overwrite:n.overwrite===!1?"F":"T"}},e,n);return a=function(u){qe(e,u)},(i=De(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a}));var _m=Se(172);const Om=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const{contentLength:o=!0,overwrite:i=!0}=n,a={"Content-Type":"application/octet-stream"};o===!1||(a["Content-Length"]=typeof o=="number"?`${o}`:`${(function(s){if(ec(s))return s.byteLength;if(tc(s))return s.length;if(typeof s=="string")return(0,_m.d)(s);throw new Je({info:{code:At.DataTypeNoLength}},"Cannot calculate data length: Invalid type")})(r)}`),i||(a["If-None-Match"]="*");const u=$e({url:Be(e.remoteURL,Ce(t)),method:"PUT",headers:a,data:r},e,n);return l=function(s){try{qe(e,s)}catch(f){const h=f;if(h.status!==412||i)throw h;return!1}return!0},(c=De(u,e))&&c.then||(c=Promise.resolve(c)),l?c.then(l):c;var c,l})),Ac=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=$e({url:Be(e.remoteURL,Ce(t)),method:"OPTIONS"},e,r);return i=function(a){try{qe(e,a)}catch(u){throw u}return{compliance:(a.headers.get("DAV")??"").split(",").map((u=>u.trim())),server:a.headers.get("Server")??""}},(o=De(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i}));function Er(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Nm=$o((function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>n||r<0)throw new Je({info:{code:At.InvalidUpdateRange}},`Invalid update range ${r} for partial update`);const a={"Content-Type":"application/octet-stream","Content-Length":""+(n-r+1),"Content-Range":`bytes ${r}-${n}/*`},u=$e({url:Be(e.remoteURL,Ce(t)),method:"PUT",headers:a,data:o},e,i);return Er(De(u,e),(function(c){qe(e,c)}))}));function Tc(e,t){var r=e();return r&&r.then?r.then(t):t(r)}const Rm=$o((function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>n||r<0)throw new Je({info:{code:At.InvalidUpdateRange}},`Invalid update range ${r} for partial update`);const a={"Content-Type":"application/x-sabredav-partialupdate","Content-Length":""+(n-r+1),"X-Update-Range":`bytes=${r}-${n}`},u=$e({url:Be(e.remoteURL,Ce(t)),method:"PATCH",headers:a,data:o},e,i);return Er(De(u,e),(function(c){qe(e,c)}))}));function $o(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}const Pm=$o((function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return Er(Ac(e,t,i),(function(a){let u=!1;return Tc((function(){if(a.compliance.includes("sabredav-partialupdate"))return Er(Rm(e,t,r,n,o,i),(function(c){return u=!0,c}))}),(function(c){let l=!1;return u?c:Tc((function(){if(a.server.includes("Apache")&&a.compliance.includes("<http://apache.org/dav/propset/fs/1>"))return Er(Nm(e,t,r,n,o,i),(function(s){return l=!0,s}))}),(function(s){if(l)return s;throw new Je({info:{code:At.NotSupported}},"Not supported")}))}))}))})),Im="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function Fm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{authType:r=null,remoteBasePath:n,contactHref:o=Im,ha1:i,headers:a={},httpAgent:u,httpsAgent:c,password:l,token:s,username:f,withCredentials:h}=t;let E=r;E||(E=f||l?Ze.Password:Ze.None);const m={authType:E,remoteBasePath:n,contactHref:o,ha1:i,headers:Object.assign({},a),httpAgent:u,httpsAgent:c,password:l,remotePath:vy(e),remoteURL:e,token:s,username:f,withCredentials:h};return Xl(m,f,l,s,i),{copyFile:(x,T,y)=>im(m,x,T,y),createDirectory:(x,T)=>Lo(m,x,T),createReadStream:(x,T)=>(function(y,p){let d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const g=new(vc()).PassThrough;return lm(y,p,d).then((v=>{v.pipe(g)})).catch((v=>{g.emit("error",v)})),g})(m,x,T),createWriteStream:(x,T,y)=>(function(p,d){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:cm;const A=new(vc()).PassThrough,P={};g.overwrite===!1&&(P["If-None-Match"]="*");const I=$e({url:Be(p.remoteURL,Ce(d)),method:"PUT",headers:P,data:A,maxRedirects:0},p,g);return De(I,p).then((O=>qe(p,O))).then((O=>{setTimeout((()=>{v(O)}),0)})).catch((O=>{A.emit("error",O)})),A})(m,x,T,y),customRequest:(x,T)=>fm(m,x,T),deleteFile:(x,T)=>hm(m,x,T),exists:(x,T)=>dm(m,x,T),getDirectoryContents:(x,T)=>pm(m,x,T),getFileContents:(x,T)=>mm(m,x,T),getFileDownloadLink:x=>(function(T,y){let p=Be(T.remoteURL,Ce(y));const d=/^https:/i.test(p)?"https":"http";switch(T.authType){case Ze.None:break;case Ze.Password:{const g=Kl(T.headers.Authorization.replace(/^Basic /i,"").trim());p=p.replace(/^https?:\/\//,`${d}://${g}@`);break}default:throw new Je({info:{code:At.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${T.authType}`)}return p})(m,x),getFileUploadLink:x=>(function(T,y){let p=`${Be(T.remoteURL,Ce(y))}?Content-Type=application/octet-stream`;const d=/^https:/i.test(p)?"https":"http";switch(T.authType){case Ze.None:break;case Ze.Password:{const g=Kl(T.headers.Authorization.replace(/^Basic /i,"").trim());p=p.replace(/^https?:\/\//,`${d}://${g}@`);break}default:throw new Je({info:{code:At.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${T.authType}`)}return p})(m,x),getHeaders:()=>Object.assign({},m.headers),getQuota:x=>Am(m,x),lock:(x,T)=>Em(m,x,T),moveFile:(x,T,y)=>Sm(m,x,T,y),putFileContents:(x,T,y)=>Om(m,x,T,y),partialUpdateFileContents:(x,T,y,p,d)=>Pm(m,x,T,y,p,d),getDAVCompliance:x=>Ac(m,x),search:(x,T)=>Tm(m,x,T),setHeaders:x=>{m.headers=Object.assign({},x)},stat:(x,T)=>Bo(m,x,T),unlock:(x,T,y)=>vm(m,x,T,y)}}ot.hT,ot.O4,ot.Kd,ot.YK;var Cm=ot.UU;ot.Gu,ot.ky;var Bm=ot.h4,Lm=ot.ch;ot.hq,ot.i5;const We=[];for(let e=0;e<256;++e)We.push((e+256).toString(16).slice(1));function Um(e,t=0){return(We[e[t+0]]+We[e[t+1]]+We[e[t+2]]+We[e[t+3]]+"-"+We[e[t+4]]+We[e[t+5]]+"-"+We[e[t+6]]+We[e[t+7]]+"-"+We[e[t+8]]+We[e[t+9]]+"-"+We[e[t+10]]+We[e[t+11]]+We[e[t+12]]+We[e[t+13]]+We[e[t+14]]+We[e[t+15]]).toLowerCase()}let qo;const jm=new Uint8Array(16);function km(){if(!qo){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");qo=crypto.getRandomValues.bind(crypto)}return qo(jm)}var Sc={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Mm(e,t,r){e=e||{};const n=e.random??e.rng?.()??km();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Um(n)}function Dm(e,t,r){return Sc.randomUUID&&!e?Sc.randomUUID():Mm(e)}var Ho={},Vo={},_c;function Wo(){return _c||(_c=1,(function(e){const t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r=t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",n="["+t+"]["+r+"]*",o=new RegExp("^"+n+"$"),i=function(u,c){const l=[];let s=c.exec(u);for(;s;){const f=[];f.startIndex=c.lastIndex-s[0].length;const h=s.length;for(let E=0;E<h;E++)f.push(s[E]);l.push(f),s=c.exec(u)}return l},a=function(u){const c=o.exec(u);return!(c===null||typeof c>"u")};e.isExist=function(u){return typeof u<"u"},e.isEmptyObject=function(u){return Object.keys(u).length===0},e.merge=function(u,c,l){if(c){const s=Object.keys(c),f=s.length;for(let h=0;h<f;h++)l==="strict"?u[s[h]]=[c[s[h]]]:u[s[h]]=c[s[h]]}},e.getValue=function(u){return e.isExist(u)?u:""},e.isName=a,e.getAllMatches=i,e.nameRegexp=n})(Vo)),Vo}var Oc;function Nc(){if(Oc)return Ho;Oc=1;const e=Wo(),t={allowBooleanAttributes:!1,unpairedTags:[]};Ho.validate=function(y,p){p=Object.assign({},t,p);const d=[];let g=!1,v=!1;y[0]==="\uFEFF"&&(y=y.substr(1));for(let A=0;A<y.length;A++)if(y[A]==="<"&&y[A+1]==="?"){if(A+=2,A=n(y,A),A.err)return A}else if(y[A]==="<"){let P=A;if(A++,y[A]==="!"){A=o(y,A);continue}else{let I=!1;y[A]==="/"&&(I=!0,A++);let O="";for(;A<y.length&&y[A]!==">"&&y[A]!==" "&&y[A]!==" "&&y[A]!==`
|
|
45
|
-
`&&y[A]!=="\r";A++)O+=y[A];if(O=O.trim(),O[O.length-1]==="/"&&(O=O.substring(0,O.length-1),A--),!m(O)){let L;return O.trim().length===0?L="Invalid space after '<'.":L="Tag '"+O+"' is an invalid name.",h("InvalidTag",L,
|
|
46
|
-
`||y==="\r"}function n(y,p){const d=p;for(;p<y.length;p++)if(y[p]=="?"||y[p]==" "){const g=y.substr(d,p-d);if(p>5&&g==="xml")return h("InvalidXml","XML declaration allowed only at the start of the document.",
|
|
47
|
-
`);const A=new t("!xml");let
|
|
48
|
-
`;function t(u,c){let l="";return c.format&&c.indentBy.length>0&&(l=e),r(u,c,"",l)}function r(u,c,l,s){let f="",h=!1;for(let
|
|
39
|
+
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function u(s,f,h,x){const m=this.j2x(s,h+1,x.concat(f));return s[this.options.textNodeName]!==void 0&&Object.keys(s).length===1?this.buildTextValNode(s[this.options.textNodeName],f,m.attrStr,h):this.buildObjectNode(m.val,f,m.attrStr,h)}function c(s){return this.options.indentBy.repeat(s)}function l(s){return!(!s.startsWith(this.options.attributeNamePrefix)||s===this.options.textNodeName)&&s.substr(this.attrPrefixLen)}a.prototype.build=function(s){return this.options.preserveOrder?n(s,this.options):(Array.isArray(s)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(s={[this.options.arrayNodeName]:s}),this.j2x(s,0,[]).val)},a.prototype.j2x=function(s,f,h){let x="",m="";const E=h.join(".");for(let T in s)if(Object.prototype.hasOwnProperty.call(s,T))if(s[T]===void 0)this.isAttribute(T)&&(m+="");else if(s[T]===null)this.isAttribute(T)?m+="":T[0]==="?"?m+=this.indentate(f)+"<"+T+"?"+this.tagEndChar:m+=this.indentate(f)+"<"+T+"/"+this.tagEndChar;else if(s[T]instanceof Date)m+=this.buildTextValNode(s[T],T,"",f);else if(typeof s[T]!="object"){const y=this.isAttribute(T);if(y&&!this.ignoreAttributesFn(y,E))x+=this.buildAttrPairStr(y,""+s[T]);else if(!y)if(T===this.options.textNodeName){let p=this.options.tagValueProcessor(T,""+s[T]);m+=this.replaceEntitiesValue(p)}else m+=this.buildTextValNode(s[T],T,"",f)}else if(Array.isArray(s[T])){const y=s[T].length;let p="",d="";for(let g=0;g<y;g++){const v=s[T][g];if(v!==void 0)if(v===null)T[0]==="?"?m+=this.indentate(f)+"<"+T+"?"+this.tagEndChar:m+=this.indentate(f)+"<"+T+"/"+this.tagEndChar;else if(typeof v=="object")if(this.options.oneListGroup){const A=this.j2x(v,f+1,h.concat(T));p+=A.val,this.options.attributesGroupName&&v.hasOwnProperty(this.options.attributesGroupName)&&(d+=A.attrStr)}else p+=this.processTextOrObjNode(v,T,f,h);else if(this.options.oneListGroup){let A=this.options.tagValueProcessor(T,v);A=this.replaceEntitiesValue(A),p+=A}else p+=this.buildTextValNode(v,T,"",f)}this.options.oneListGroup&&(p=this.buildObjectNode(p,T,d,f)),m+=p}else if(this.options.attributesGroupName&&T===this.options.attributesGroupName){const y=Object.keys(s[T]),p=y.length;for(let d=0;d<p;d++)x+=this.buildAttrPairStr(y[d],""+s[T][y[d]])}else m+=this.processTextOrObjNode(s[T],T,f,h);return{attrStr:x,val:m}},a.prototype.buildAttrPairStr=function(s,f){return f=this.options.attributeValueProcessor(s,""+f),f=this.replaceEntitiesValue(f),this.options.suppressBooleanAttributes&&f==="true"?" "+s:" "+s+'="'+f+'"'},a.prototype.buildObjectNode=function(s,f,h,x){if(s==="")return f[0]==="?"?this.indentate(x)+"<"+f+h+"?"+this.tagEndChar:this.indentate(x)+"<"+f+h+this.closeTag(f)+this.tagEndChar;{let m="</"+f+this.tagEndChar,E="";return f[0]==="?"&&(E="?",m=""),!h&&h!==""||s.indexOf("<")!==-1?this.options.commentPropName!==!1&&f===this.options.commentPropName&&E.length===0?this.indentate(x)+`<!--${s}-->`+this.newLine:this.indentate(x)+"<"+f+h+E+this.tagEndChar+s+this.indentate(x)+m:this.indentate(x)+"<"+f+h+E+">"+s+m}},a.prototype.closeTag=function(s){let f="";return this.options.unpairedTags.indexOf(s)!==-1?this.options.suppressUnpairedNode||(f="/"):f=this.options.suppressEmptyNode?"/":`></${s}`,f},a.prototype.buildTextValNode=function(s,f,h,x){if(this.options.cdataPropName!==!1&&f===this.options.cdataPropName)return this.indentate(x)+`<![CDATA[${s}]]>`+this.newLine;if(this.options.commentPropName!==!1&&f===this.options.commentPropName)return this.indentate(x)+`<!--${s}-->`+this.newLine;if(f[0]==="?")return this.indentate(x)+"<"+f+h+"?"+this.tagEndChar;{let m=this.options.tagValueProcessor(f,s);return m=this.replaceEntitiesValue(m),m===""?this.indentate(x)+"<"+f+h+this.closeTag(f)+this.tagEndChar:this.indentate(x)+"<"+f+h+">"+m+"</"+f+this.tagEndChar}},a.prototype.replaceEntitiesValue=function(s){if(s&&s.length>0&&this.options.processEntities)for(let f=0;f<this.options.entities.length;f++){const h=this.options.entities[f];s=s.replace(h.regex,h.val)}return s},e.exports=a},87:e=>{function t(a,u,c,l){let s="",f=!1;for(let h=0;h<a.length;h++){const x=a[h],m=r(x);if(m===void 0)continue;let E="";if(E=c.length===0?m:`${c}.${m}`,m===u.textNodeName){let d=x[m];o(E,u)||(d=u.tagValueProcessor(m,d),d=i(d,u)),f&&(s+=l),s+=d,f=!1;continue}if(m===u.cdataPropName){f&&(s+=l),s+=`<![CDATA[${x[m][0][u.textNodeName]}]]>`,f=!1;continue}if(m===u.commentPropName){s+=l+`<!--${x[m][0][u.textNodeName]}-->`,f=!0;continue}if(m[0]==="?"){const d=n(x[":@"],u),g=m==="?xml"?"":l;let v=x[m][0][u.textNodeName];v=v.length!==0?" "+v:"",s+=g+`<${m}${v}${d}?>`,f=!0;continue}let T=l;T!==""&&(T+=u.indentBy);const y=l+`<${m}${n(x[":@"],u)}`,p=t(x[m],u,E,T);u.unpairedTags.indexOf(m)!==-1?u.suppressUnpairedNode?s+=y+">":s+=y+"/>":p&&p.length!==0||!u.suppressEmptyNode?p&&p.endsWith(">")?s+=y+`>${p}${l}</${m}>`:(s+=y+">",p&&l!==""&&(p.includes("/>")||p.includes("</"))?s+=l+u.indentBy+p+l:s+=p,s+=`</${m}>`):s+=y+"/>",f=!0}return s}function r(a){const u=Object.keys(a);for(let c=0;c<u.length;c++){const l=u[c];if(a.hasOwnProperty(l)&&l!==":@")return l}}function n(a,u){let c="";if(a&&!u.ignoreAttributes)for(let l in a){if(!a.hasOwnProperty(l))continue;let s=u.attributeValueProcessor(l,a[l]);s=i(s,u),s===!0&&u.suppressBooleanAttributes?c+=` ${l.substr(u.attributeNamePrefix.length)}`:c+=` ${l.substr(u.attributeNamePrefix.length)}="${s}"`}return c}function o(a,u){let c=(a=a.substr(0,a.length-u.textNodeName.length-1)).substr(a.lastIndexOf(".")+1);for(let l in u.stopNodes)if(u.stopNodes[l]===a||u.stopNodes[l]==="*."+c)return!0;return!1}function i(a,u){if(a&&a.length>0&&u.processEntities)for(let c=0;c<u.entities.length;c++){const l=u.entities[c];a=a.replace(l.regex,l.val)}return a}e.exports=function(a,u){let c="";return u.format&&u.indentBy.length>0&&(c=`
|
|
40
|
+
`),t(a,u,"",c)}},193:(e,t,r)=>{const n=r(705);function o(f,h){let x="";for(;h<f.length&&f[h]!=="'"&&f[h]!=='"';h++)x+=f[h];if(x=x.trim(),x.indexOf(" ")!==-1)throw new Error("External entites are not supported");const m=f[h++];let E="";for(;h<f.length&&f[h]!==m;h++)E+=f[h];return[x,E,h]}function i(f,h){return f[h+1]==="!"&&f[h+2]==="-"&&f[h+3]==="-"}function a(f,h){return f[h+1]==="!"&&f[h+2]==="E"&&f[h+3]==="N"&&f[h+4]==="T"&&f[h+5]==="I"&&f[h+6]==="T"&&f[h+7]==="Y"}function u(f,h){return f[h+1]==="!"&&f[h+2]==="E"&&f[h+3]==="L"&&f[h+4]==="E"&&f[h+5]==="M"&&f[h+6]==="E"&&f[h+7]==="N"&&f[h+8]==="T"}function c(f,h){return f[h+1]==="!"&&f[h+2]==="A"&&f[h+3]==="T"&&f[h+4]==="T"&&f[h+5]==="L"&&f[h+6]==="I"&&f[h+7]==="S"&&f[h+8]==="T"}function l(f,h){return f[h+1]==="!"&&f[h+2]==="N"&&f[h+3]==="O"&&f[h+4]==="T"&&f[h+5]==="A"&&f[h+6]==="T"&&f[h+7]==="I"&&f[h+8]==="O"&&f[h+9]==="N"}function s(f){if(n.isName(f))return f;throw new Error(`Invalid entity name ${f}`)}e.exports=function(f,h){const x={};if(f[h+3]!=="O"||f[h+4]!=="C"||f[h+5]!=="T"||f[h+6]!=="Y"||f[h+7]!=="P"||f[h+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{h+=9;let m=1,E=!1,T=!1,y="";for(;h<f.length;h++)if(f[h]!=="<"||T)if(f[h]===">"){if(T?f[h-1]==="-"&&f[h-2]==="-"&&(T=!1,m--):m--,m===0)break}else f[h]==="["?E=!0:y+=f[h];else{if(E&&a(f,h)){let p,d;h+=7,[p,d,h]=o(f,h+1),d.indexOf("&")===-1&&(x[s(p)]={regx:RegExp(`&${p};`,"g"),val:d})}else if(E&&u(f,h))h+=8;else if(E&&c(f,h))h+=8;else if(E&&l(f,h))h+=9;else{if(!i)throw new Error("Invalid DOCTYPE");T=!0}m++,y=""}if(m!==0)throw new Error("Unclosed DOCTYPE")}return{entities:x,i:h}}},63:(e,t)=>{const r={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(n,o){return o},attributeValueProcessor:function(n,o){return o},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(n,o,i){return n}};t.buildOptions=function(n){return Object.assign({},r,n)},t.defaultOptions=r},299:(e,t,r)=>{const n=r(705),o=r(365),i=r(193),a=r(494),u=r(118);function c(A){const I=Object.keys(A);for(let P=0;P<I.length;P++){const O=I[P];this.lastEntities[O]={regex:new RegExp("&"+O+";","g"),val:A[O]}}}function l(A,I,P,O,j,K,L){if(A!==void 0&&(this.options.trimValues&&!O&&(A=A.trim()),A.length>0)){L||(A=this.replaceEntitiesValue(A));const k=this.options.tagValueProcessor(I,A,P,j,K);return k==null?A:typeof k!=typeof A||k!==A?k:this.options.trimValues||A.trim()===A?v(A,this.options.parseTagValue,this.options.numberParseOptions):A}}function s(A){if(this.options.removeNSPrefix){const I=A.split(":"),P=A.charAt(0)==="/"?"/":"";if(I[0]==="xmlns")return"";I.length===2&&(A=P+I[1])}return A}const f=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function h(A,I,P){if(this.options.ignoreAttributes!==!0&&typeof A=="string"){const O=n.getAllMatches(A,f),j=O.length,K={};for(let L=0;L<j;L++){const k=this.resolveNameSpace(O[L][1]);if(this.ignoreAttributesFn(k,I))continue;let re=O[L][4],ee=this.options.attributeNamePrefix+k;if(k.length)if(this.options.transformAttributeName&&(ee=this.options.transformAttributeName(ee)),ee==="__proto__"&&(ee="#__proto__"),re!==void 0){this.options.trimValues&&(re=re.trim()),re=this.replaceEntitiesValue(re);const ue=this.options.attributeValueProcessor(k,re,I);K[ee]=ue==null?re:typeof ue!=typeof re||ue!==re?ue:v(re,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(K[ee]=!0)}if(!Object.keys(K).length)return;if(this.options.attributesGroupName){const L={};return L[this.options.attributesGroupName]=K,L}return K}}const x=function(A){A=A.replace(/\r\n?/g,`
|
|
41
|
+
`);const I=new o("!xml");let P=I,O="",j="";for(let K=0;K<A.length;K++)if(A[K]==="<")if(A[K+1]==="/"){const L=p(A,">",K,"Closing Tag is not closed.");let k=A.substring(K+2,L).trim();if(this.options.removeNSPrefix){const ue=k.indexOf(":");ue!==-1&&(k=k.substr(ue+1))}this.options.transformTagName&&(k=this.options.transformTagName(k)),P&&(O=this.saveTextToParentTag(O,P,j));const re=j.substring(j.lastIndexOf(".")+1);if(k&&this.options.unpairedTags.indexOf(k)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${k}>`);let ee=0;re&&this.options.unpairedTags.indexOf(re)!==-1?(ee=j.lastIndexOf(".",j.lastIndexOf(".")-1),this.tagsNodeStack.pop()):ee=j.lastIndexOf("."),j=j.substring(0,ee),P=this.tagsNodeStack.pop(),O="",K=L}else if(A[K+1]==="?"){let L=d(A,K,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(O=this.saveTextToParentTag(O,P,j),!(this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags)){const k=new o(L.tagName);k.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent&&(k[":@"]=this.buildAttributesMap(L.tagExp,j,L.tagName)),this.addChild(P,k,j)}K=L.closeIndex+1}else if(A.substr(K+1,3)==="!--"){const L=p(A,"-->",K+4,"Comment is not closed.");if(this.options.commentPropName){const k=A.substring(K+4,L-2);O=this.saveTextToParentTag(O,P,j),P.add(this.options.commentPropName,[{[this.options.textNodeName]:k}])}K=L}else if(A.substr(K+1,2)==="!D"){const L=i(A,K);this.docTypeEntities=L.entities,K=L.i}else if(A.substr(K+1,2)==="!["){const L=p(A,"]]>",K,"CDATA is not closed.")-2,k=A.substring(K+9,L);O=this.saveTextToParentTag(O,P,j);let re=this.parseTextData(k,P.tagname,j,!0,!1,!0,!0);re==null&&(re=""),this.options.cdataPropName?P.add(this.options.cdataPropName,[{[this.options.textNodeName]:k}]):P.add(this.options.textNodeName,re),K=L+2}else{let L=d(A,K,this.options.removeNSPrefix),k=L.tagName;const re=L.rawTagName;let ee=L.tagExp,ue=L.attrExpPresent,le=L.closeIndex;this.options.transformTagName&&(k=this.options.transformTagName(k)),P&&O&&P.tagname!=="!xml"&&(O=this.saveTextToParentTag(O,P,j,!1));const de=P;if(de&&this.options.unpairedTags.indexOf(de.tagname)!==-1&&(P=this.tagsNodeStack.pop(),j=j.substring(0,j.lastIndexOf("."))),k!==I.tagname&&(j+=j?"."+k:k),this.isItStopNode(this.options.stopNodes,j,k)){let fe="";if(ee.length>0&&ee.lastIndexOf("/")===ee.length-1)k[k.length-1]==="/"?(k=k.substr(0,k.length-1),j=j.substr(0,j.length-1),ee=k):ee=ee.substr(0,ee.length-1),K=L.closeIndex;else if(this.options.unpairedTags.indexOf(k)!==-1)K=L.closeIndex;else{const pe=this.readStopNodeData(A,re,le+1);if(!pe)throw new Error(`Unexpected end of ${re}`);K=pe.i,fe=pe.tagContent}const be=new o(k);k!==ee&&ue&&(be[":@"]=this.buildAttributesMap(ee,j,k)),fe&&(fe=this.parseTextData(fe,k,j,!0,ue,!0,!0)),j=j.substr(0,j.lastIndexOf(".")),be.add(this.options.textNodeName,fe),this.addChild(P,be,j)}else{if(ee.length>0&&ee.lastIndexOf("/")===ee.length-1){k[k.length-1]==="/"?(k=k.substr(0,k.length-1),j=j.substr(0,j.length-1),ee=k):ee=ee.substr(0,ee.length-1),this.options.transformTagName&&(k=this.options.transformTagName(k));const fe=new o(k);k!==ee&&ue&&(fe[":@"]=this.buildAttributesMap(ee,j,k)),this.addChild(P,fe,j),j=j.substr(0,j.lastIndexOf("."))}else{const fe=new o(k);this.tagsNodeStack.push(P),k!==ee&&ue&&(fe[":@"]=this.buildAttributesMap(ee,j,k)),this.addChild(P,fe,j),P=fe}O="",K=le}}else O+=A[K];return I.child};function m(A,I,P){const O=this.options.updateTag(I.tagname,P,I[":@"]);O===!1||(typeof O=="string"&&(I.tagname=O),A.addChild(I))}const E=function(A){if(this.options.processEntities){for(let I in this.docTypeEntities){const P=this.docTypeEntities[I];A=A.replace(P.regx,P.val)}for(let I in this.lastEntities){const P=this.lastEntities[I];A=A.replace(P.regex,P.val)}if(this.options.htmlEntities)for(let I in this.htmlEntities){const P=this.htmlEntities[I];A=A.replace(P.regex,P.val)}A=A.replace(this.ampEntity.regex,this.ampEntity.val)}return A};function T(A,I,P,O){return A&&(O===void 0&&(O=Object.keys(I.child).length===0),(A=this.parseTextData(A,I.tagname,P,!1,!!I[":@"]&&Object.keys(I[":@"]).length!==0,O))!==void 0&&A!==""&&I.add(this.options.textNodeName,A),A=""),A}function y(A,I,P){const O="*."+P;for(const j in A){const K=A[j];if(O===K||I===K)return!0}return!1}function p(A,I,P,O){const j=A.indexOf(I,P);if(j===-1)throw new Error(O);return j+I.length-1}function d(A,I,P){const O=(function(ue,le){let de,fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",be="";for(let pe=le;pe<ue.length;pe++){let G=ue[pe];if(de)G===de&&(de="");else if(G==='"'||G==="'")de=G;else if(G===fe[0]){if(!fe[1])return{data:be,index:pe};if(ue[pe+1]===fe[1])return{data:be,index:pe}}else G===" "&&(G=" ");be+=G}})(A,I+1,arguments.length>3&&arguments[3]!==void 0?arguments[3]:">");if(!O)return;let j=O.data;const K=O.index,L=j.search(/\s/);let k=j,re=!0;L!==-1&&(k=j.substring(0,L),j=j.substring(L+1).trimStart());const ee=k;if(P){const ue=k.indexOf(":");ue!==-1&&(k=k.substr(ue+1),re=k!==O.data.substr(ue+1))}return{tagName:k,tagExp:j,closeIndex:K,attrExpPresent:re,rawTagName:ee}}function g(A,I,P){const O=P;let j=1;for(;P<A.length;P++)if(A[P]==="<")if(A[P+1]==="/"){const K=p(A,">",P,`${I} is not closed`);if(A.substring(P+2,K).trim()===I&&(j--,j===0))return{tagContent:A.substring(O,P),i:K};P=K}else if(A[P+1]==="?")P=p(A,"?>",P+1,"StopNode is not closed.");else if(A.substr(P+1,3)==="!--")P=p(A,"-->",P+3,"StopNode is not closed.");else if(A.substr(P+1,2)==="![")P=p(A,"]]>",P,"StopNode is not closed.")-2;else{const K=d(A,P,">");K&&((K&&K.tagName)===I&&K.tagExp[K.tagExp.length-1]!=="/"&&j++,P=K.closeIndex)}}function v(A,I,P){if(I&&typeof A=="string"){const O=A.trim();return O==="true"||O!=="false"&&a(A,P)}return n.isExist(A)?A:""}e.exports=class{constructor(A){this.options=A,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(I,P)=>String.fromCharCode(Number.parseInt(P,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(I,P)=>String.fromCharCode(Number.parseInt(P,16))}},this.addExternalEntities=c,this.parseXml=x,this.parseTextData=l,this.resolveNameSpace=s,this.buildAttributesMap=h,this.isItStopNode=y,this.replaceEntitiesValue=E,this.readStopNodeData=g,this.saveTextToParentTag=T,this.addChild=m,this.ignoreAttributesFn=u(this.options.ignoreAttributes)}}},338:(e,t,r)=>{const{buildOptions:n}=r(63),o=r(299),{prettify:i}=r(728),a=r(31);e.exports=class{constructor(u){this.externalEntities={},this.options=n(u)}parse(u,c){if(typeof u!="string"){if(!u.toString)throw new Error("XML data is accepted in String or Bytes[] form.");u=u.toString()}if(c){c===!0&&(c={});const f=a.validate(u,c);if(f!==!0)throw Error(`${f.err.msg}:${f.err.line}:${f.err.col}`)}const l=new o(this.options);l.addExternalEntities(this.externalEntities);const s=l.parseXml(u);return this.options.preserveOrder||s===void 0?s:i(s,this.options)}addEntity(u,c){if(c.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(u.indexOf("&")!==-1||u.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(c==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[u]=c}}},728:(e,t)=>{function r(a,u,c){let l;const s={};for(let f=0;f<a.length;f++){const h=a[f],x=n(h);let m="";if(m=c===void 0?x:c+"."+x,x===u.textNodeName)l===void 0?l=h[x]:l+=""+h[x];else{if(x===void 0)continue;if(h[x]){let E=r(h[x],u,m);const T=i(E,u);h[":@"]?o(E,h[":@"],m,u):Object.keys(E).length!==1||E[u.textNodeName]===void 0||u.alwaysCreateTextNode?Object.keys(E).length===0&&(u.alwaysCreateTextNode?E[u.textNodeName]="":E=""):E=E[u.textNodeName],s[x]!==void 0&&s.hasOwnProperty(x)?(Array.isArray(s[x])||(s[x]=[s[x]]),s[x].push(E)):u.isArray(x,m,T)?s[x]=[E]:s[x]=E}}}return typeof l=="string"?l.length>0&&(s[u.textNodeName]=l):l!==void 0&&(s[u.textNodeName]=l),s}function n(a){const u=Object.keys(a);for(let c=0;c<u.length;c++){const l=u[c];if(l!==":@")return l}}function o(a,u,c,l){if(u){const s=Object.keys(u),f=s.length;for(let h=0;h<f;h++){const x=s[h];l.isArray(x,c+"."+x,!0,!0)?a[x]=[u[x]]:a[x]=u[x]}}}function i(a,u){const{textNodeName:c}=u,l=Object.keys(a).length;return l===0||!(l!==1||!a[c]&&typeof a[c]!="boolean"&&a[c]!==0)}t.prettify=function(a,u){return r(a,u)}},365:e=>{e.exports=class{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,r){t==="__proto__"&&(t="#__proto__"),this.child.push({[t]:r})}addChild(t){t.tagname==="__proto__"&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child})}}},135:e=>{function t(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}e.exports=function(r){return r!=null&&(t(r)||(function(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&t(n.slice(0,0))})(r)||!!r._isBuffer)}},542:(e,t,r)=>{(function(){var n=r(298),o=r(526).utf8,i=r(135),a=r(526).bin,u=function(c,l){c.constructor==String?c=l&&l.encoding==="binary"?a.stringToBytes(c):o.stringToBytes(c):i(c)?c=Array.prototype.slice.call(c,0):Array.isArray(c)||c.constructor===Uint8Array||(c=c.toString());for(var s=n.bytesToWords(c),f=8*c.length,h=1732584193,x=-271733879,m=-1732584194,E=271733878,T=0;T<s.length;T++)s[T]=16711935&(s[T]<<8|s[T]>>>24)|4278255360&(s[T]<<24|s[T]>>>8);s[f>>>5]|=128<<f%32,s[14+(f+64>>>9<<4)]=f;var y=u._ff,p=u._gg,d=u._hh,g=u._ii;for(T=0;T<s.length;T+=16){var v=h,A=x,I=m,P=E;h=y(h,x,m,E,s[T+0],7,-680876936),E=y(E,h,x,m,s[T+1],12,-389564586),m=y(m,E,h,x,s[T+2],17,606105819),x=y(x,m,E,h,s[T+3],22,-1044525330),h=y(h,x,m,E,s[T+4],7,-176418897),E=y(E,h,x,m,s[T+5],12,1200080426),m=y(m,E,h,x,s[T+6],17,-1473231341),x=y(x,m,E,h,s[T+7],22,-45705983),h=y(h,x,m,E,s[T+8],7,1770035416),E=y(E,h,x,m,s[T+9],12,-1958414417),m=y(m,E,h,x,s[T+10],17,-42063),x=y(x,m,E,h,s[T+11],22,-1990404162),h=y(h,x,m,E,s[T+12],7,1804603682),E=y(E,h,x,m,s[T+13],12,-40341101),m=y(m,E,h,x,s[T+14],17,-1502002290),h=p(h,x=y(x,m,E,h,s[T+15],22,1236535329),m,E,s[T+1],5,-165796510),E=p(E,h,x,m,s[T+6],9,-1069501632),m=p(m,E,h,x,s[T+11],14,643717713),x=p(x,m,E,h,s[T+0],20,-373897302),h=p(h,x,m,E,s[T+5],5,-701558691),E=p(E,h,x,m,s[T+10],9,38016083),m=p(m,E,h,x,s[T+15],14,-660478335),x=p(x,m,E,h,s[T+4],20,-405537848),h=p(h,x,m,E,s[T+9],5,568446438),E=p(E,h,x,m,s[T+14],9,-1019803690),m=p(m,E,h,x,s[T+3],14,-187363961),x=p(x,m,E,h,s[T+8],20,1163531501),h=p(h,x,m,E,s[T+13],5,-1444681467),E=p(E,h,x,m,s[T+2],9,-51403784),m=p(m,E,h,x,s[T+7],14,1735328473),h=d(h,x=p(x,m,E,h,s[T+12],20,-1926607734),m,E,s[T+5],4,-378558),E=d(E,h,x,m,s[T+8],11,-2022574463),m=d(m,E,h,x,s[T+11],16,1839030562),x=d(x,m,E,h,s[T+14],23,-35309556),h=d(h,x,m,E,s[T+1],4,-1530992060),E=d(E,h,x,m,s[T+4],11,1272893353),m=d(m,E,h,x,s[T+7],16,-155497632),x=d(x,m,E,h,s[T+10],23,-1094730640),h=d(h,x,m,E,s[T+13],4,681279174),E=d(E,h,x,m,s[T+0],11,-358537222),m=d(m,E,h,x,s[T+3],16,-722521979),x=d(x,m,E,h,s[T+6],23,76029189),h=d(h,x,m,E,s[T+9],4,-640364487),E=d(E,h,x,m,s[T+12],11,-421815835),m=d(m,E,h,x,s[T+15],16,530742520),h=g(h,x=d(x,m,E,h,s[T+2],23,-995338651),m,E,s[T+0],6,-198630844),E=g(E,h,x,m,s[T+7],10,1126891415),m=g(m,E,h,x,s[T+14],15,-1416354905),x=g(x,m,E,h,s[T+5],21,-57434055),h=g(h,x,m,E,s[T+12],6,1700485571),E=g(E,h,x,m,s[T+3],10,-1894986606),m=g(m,E,h,x,s[T+10],15,-1051523),x=g(x,m,E,h,s[T+1],21,-2054922799),h=g(h,x,m,E,s[T+8],6,1873313359),E=g(E,h,x,m,s[T+15],10,-30611744),m=g(m,E,h,x,s[T+6],15,-1560198380),x=g(x,m,E,h,s[T+13],21,1309151649),h=g(h,x,m,E,s[T+4],6,-145523070),E=g(E,h,x,m,s[T+11],10,-1120210379),m=g(m,E,h,x,s[T+2],15,718787259),x=g(x,m,E,h,s[T+9],21,-343485551),h=h+v>>>0,x=x+A>>>0,m=m+I>>>0,E=E+P>>>0}return n.endian([h,x,m,E])};u._ff=function(c,l,s,f,h,x,m){var E=c+(l&s|~l&f)+(h>>>0)+m;return(E<<x|E>>>32-x)+l},u._gg=function(c,l,s,f,h,x,m){var E=c+(l&f|s&~f)+(h>>>0)+m;return(E<<x|E>>>32-x)+l},u._hh=function(c,l,s,f,h,x,m){var E=c+(l^s^f)+(h>>>0)+m;return(E<<x|E>>>32-x)+l},u._ii=function(c,l,s,f,h,x,m){var E=c+(s^(l|~f))+(h>>>0)+m;return(E<<x|E>>>32-x)+l},u._blocksize=16,u._digestsize=16,e.exports=function(c,l){if(c==null)throw new Error("Illegal argument "+c);var s=n.wordsToBytes(u(c,l));return l&&l.asBytes?s:l&&l.asString?a.bytesToString(s):n.bytesToHex(s)}})()},285:(e,t,r)=>{var n=r(2);e.exports=function(y){return y?(y.substr(0,2)==="{}"&&(y="\\{\\}"+y.substr(2)),T((function(p){return p.split("\\\\").join(o).split("\\{").join(i).split("\\}").join(a).split("\\,").join(u).split("\\.").join(c)})(y),!0).map(s)):[]};var o="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function l(y){return parseInt(y,10)==y?parseInt(y,10):y.charCodeAt(0)}function s(y){return y.split(o).join("\\").split(i).join("{").split(a).join("}").split(u).join(",").split(c).join(".")}function f(y){if(!y)return[""];var p=[],d=n("{","}",y);if(!d)return y.split(",");var g=d.pre,v=d.body,A=d.post,I=g.split(",");I[I.length-1]+="{"+v+"}";var P=f(A);return A.length&&(I[I.length-1]+=P.shift(),I.push.apply(I,P)),p.push.apply(p,I),p}function h(y){return"{"+y+"}"}function x(y){return/^-?0\d/.test(y)}function m(y,p){return y<=p}function E(y,p){return y>=p}function T(y,p){var d=[],g=n("{","}",y);if(!g)return[y];var v=g.pre,A=g.post.length?T(g.post,!1):[""];if(/\$$/.test(g.pre))for(var I=0;I<A.length;I++){var P=v+"{"+g.body+"}"+A[I];d.push(P)}else{var O,j,K=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(g.body),L=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(g.body),k=K||L,re=g.body.indexOf(",")>=0;if(!k&&!re)return g.post.match(/,.*\}/)?T(y=g.pre+"{"+g.body+a+g.post):[y];if(k)O=g.body.split(/\.\./);else if((O=f(g.body)).length===1&&(O=T(O[0],!1).map(h)).length===1)return A.map((function(V){return g.pre+O[0]+V}));if(k){var ee=l(O[0]),ue=l(O[1]),le=Math.max(O[0].length,O[1].length),de=O.length==3?Math.abs(l(O[2])):1,fe=m;ue<ee&&(de*=-1,fe=E);var be=O.some(x);j=[];for(var pe=ee;fe(pe,ue);pe+=de){var G;if(L)(G=String.fromCharCode(pe))==="\\"&&(G="");else if(G=String(pe),be){var Z=le-G.length;if(Z>0){var Q=new Array(Z+1).join("0");G=pe<0?"-"+Q+G.slice(1):Q+G}}j.push(G)}}else{j=[];for(var ae=0;ae<O.length;ae++)j.push.apply(j,T(O[ae],!1))}for(ae=0;ae<j.length;ae++)for(I=0;I<A.length;I++)P=v+j[ae]+A[I],(!p||k||P)&&d.push(P)}return d}},829:e=>{function t(l){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t(l)}function r(l){var s=typeof Map=="function"?new Map:void 0;return r=function(f){if(f===null||(h=f,Function.toString.call(h).indexOf("[native code]")===-1))return f;var h;if(typeof f!="function")throw new TypeError("Super expression must either be null or a function");if(s!==void 0){if(s.has(f))return s.get(f);s.set(f,x)}function x(){return n(f,arguments,i(this).constructor)}return x.prototype=Object.create(f.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),o(x,f)},r(l)}function n(l,s,f){return n=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}})()?Reflect.construct:function(h,x,m){var E=[null];E.push.apply(E,x);var T=new(Function.bind.apply(h,E));return m&&o(T,m.prototype),T},n.apply(null,arguments)}function o(l,s){return o=Object.setPrototypeOf||function(f,h){return f.__proto__=h,f},o(l,s)}function i(l){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},i(l)}var a=(function(l){function s(f){var h;return(function(x,m){if(!(x instanceof m))throw new TypeError("Cannot call a class as a function")})(this,s),(h=(function(x,m){return!m||t(m)!=="object"&&typeof m!="function"?(function(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E})(x):m})(this,i(s).call(this,f))).name="ObjectPrototypeMutationError",h}return(function(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),h&&o(f,h)})(s,l),s})(r(Error));function u(l,s){for(var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},h=s.split("."),x=h.length,m=function(y){var p=h[y];if(!l)return{v:void 0};if(p==="+"){if(Array.isArray(l))return{v:l.map((function(g,v){var A=h.slice(y+1);return A.length>0?u(g,A.join("."),f):f(l,v,h,y)}))};var d=h.slice(0,y).join(".");throw new Error("Object at wildcard (".concat(d,") is not an array"))}l=f(l,p,h,y)},E=0;E<x;E++){var T=m(E);if(t(T)==="object")return T.v}return l}function c(l,s){return l.length===s+1}e.exports={set:function(l,s,f){if(t(l)!="object"||l===null||s===void 0)return l;if(typeof s=="number")return l[s]=f,l[s];try{return u(l,s,(function(h,x,m,E){if(h===Reflect.getPrototypeOf({}))throw new a("Attempting to mutate Object.prototype");if(!h[x]){var T=Number.isInteger(Number(m[E+1])),y=m[E+1]==="+";h[x]=T||y?[]:{}}return c(m,E)&&(h[x]=f),h[x]}))}catch(h){if(h instanceof a)throw h;return l}},get:function(l,s){if(t(l)!="object"||l===null||s===void 0)return l;if(typeof s=="number")return l[s];try{return u(l,s,(function(f,h){return f[h]}))}catch{return l}},has:function(l,s){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(t(l)!="object"||l===null||s===void 0)return!1;if(typeof s=="number")return s in l;try{var h=!1;return u(l,s,(function(x,m,E,T){if(!c(E,T))return x&&x[m];h=f.own?x.hasOwnProperty(m):m in x})),h}catch{return!1}},hasOwn:function(l,s,f){return this.has(l,s,f||{own:!0})},isIn:function(l,s,f){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(t(l)!="object"||l===null||s===void 0)return!1;try{var x=!1,m=!1;return u(l,s,(function(E,T,y,p){return x=x||E===f||!!E&&E[T]===f,m=c(y,p)&&t(E)==="object"&&T in E,E&&E[T]})),h.validPath?x&&m:x}catch{return!1}},ObjectPrototypeMutationError:a}},47:(e,t,r)=>{var n=r(410),o=function(l){return typeof l=="string"};function i(l,s){for(var f=[],h=0;h<l.length;h++){var x=l[h];x&&x!=="."&&(x===".."?f.length&&f[f.length-1]!==".."?f.pop():s&&f.push(".."):f.push(x))}return f}var a=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,u={};function c(l){return a.exec(l).slice(1)}u.resolve=function(){for(var l="",s=!1,f=arguments.length-1;f>=-1&&!s;f--){var h=f>=0?arguments[f]:ye.cwd();if(!o(h))throw new TypeError("Arguments to path.resolve must be strings");h&&(l=h+"/"+l,s=h.charAt(0)==="/")}return(s?"/":"")+(l=i(l.split("/"),!s).join("/"))||"."},u.normalize=function(l){var s=u.isAbsolute(l),f=l.substr(-1)==="/";return(l=i(l.split("/"),!s).join("/"))||s||(l="."),l&&f&&(l+="/"),(s?"/":"")+l},u.isAbsolute=function(l){return l.charAt(0)==="/"},u.join=function(){for(var l="",s=0;s<arguments.length;s++){var f=arguments[s];if(!o(f))throw new TypeError("Arguments to path.join must be strings");f&&(l+=l?"/"+f:f)}return u.normalize(l)},u.relative=function(l,s){function f(p){for(var d=0;d<p.length&&p[d]==="";d++);for(var g=p.length-1;g>=0&&p[g]==="";g--);return d>g?[]:p.slice(d,g+1)}l=u.resolve(l).substr(1),s=u.resolve(s).substr(1);for(var h=f(l.split("/")),x=f(s.split("/")),m=Math.min(h.length,x.length),E=m,T=0;T<m;T++)if(h[T]!==x[T]){E=T;break}var y=[];for(T=E;T<h.length;T++)y.push("..");return(y=y.concat(x.slice(E))).join("/")},u._makeLong=function(l){return l},u.dirname=function(l){var s=c(l),f=s[0],h=s[1];return f||h?(h&&(h=h.substr(0,h.length-1)),f+h):"."},u.basename=function(l,s){var f=c(l)[2];return s&&f.substr(-1*s.length)===s&&(f=f.substr(0,f.length-s.length)),f},u.extname=function(l){return c(l)[3]},u.format=function(l){if(!n.isObject(l))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof l);var s=l.root||"";if(!o(s))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof l.root);return(l.dir?l.dir+u.sep:"")+(l.base||"")},u.parse=function(l){if(!o(l))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof l);var s=c(l);if(!s||s.length!==4)throw new TypeError("Invalid path '"+l+"'");return s[1]=s[1]||"",s[2]=s[2]||"",s[3]=s[3]||"",{root:s[0],dir:s[0]+s[1].slice(0,s[1].length-1),base:s[2],ext:s[3],name:s[2].slice(0,s[2].length-s[3].length)}},u.sep="/",u.delimiter=":",e.exports=u},647:(e,t)=>{var r=Object.prototype.hasOwnProperty;function n(i){try{return decodeURIComponent(i.replace(/\+/g," "))}catch{return null}}function o(i){try{return encodeURIComponent(i)}catch{return null}}t.stringify=function(i,a){a=a||"";var u,c,l=[];for(c in typeof a!="string"&&(a="?"),i)if(r.call(i,c)){if((u=i[c])||u!=null&&!isNaN(u)||(u=""),c=o(c),u=o(u),c===null||u===null)continue;l.push(c+"="+u)}return l.length?a+l.join("&"):""},t.parse=function(i){for(var a,u=/([^=?#&]+)=?([^&]*)/g,c={};a=u.exec(i);){var l=n(a[1]),s=n(a[2]);l===null||s===null||l in c||(c[l]=s)}return c}},670:e=>{e.exports=function(t,r){if(r=r.split(":")[0],!(t=+t))return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}},494:e=>{const t=/^[-+]?0x[a-fA-F0-9]+$/,r=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i=Object.assign({},n,i),!o||typeof o!="string")return o;let a=o.trim();if(i.skipLike!==void 0&&i.skipLike.test(a))return o;if(i.hex&&t.test(a))return Number.parseInt(a,16);{const c=r.exec(a);if(c){const l=c[1],s=c[2];let f=((u=c[3])&&u.indexOf(".")!==-1&&((u=u.replace(/0+$/,""))==="."?u="0":u[0]==="."?u="0"+u:u[u.length-1]==="."&&(u=u.substr(0,u.length-1))),u);const h=c[4]||c[6];if(!i.leadingZeros&&s.length>0&&l&&a[2]!=="."||!i.leadingZeros&&s.length>0&&!l&&a[1]!==".")return o;{const x=Number(a),m=""+x;return m.search(/[eE]/)!==-1||h?i.eNotation?x:o:a.indexOf(".")!==-1?m==="0"&&f===""||m===f||l&&m==="-"+f?x:o:s?f===m||l+f===m?x:o:a===m||a===l+m?x:o}}return o}var u}},737:(e,t,r)=>{var n=r(670),o=r(647),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,u=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,c=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,s=/^[a-zA-Z]:/;function f(p){return(p||"").toString().replace(i,"")}var h=[["#","hash"],["?","query"],function(p,d){return E(d.protocol)?p.replace(/\\/g,"/"):p},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],x={hash:1,query:1};function m(p){var d,g=(typeof window<"u"?window:typeof wt<"u"?wt:typeof self<"u"?self:{}).location||{},v={},A=typeof(p=p||g);if(p.protocol==="blob:")v=new y(unescape(p.pathname),{});else if(A==="string")for(d in v=new y(p,{}),x)delete v[d];else if(A==="object"){for(d in p)d in x||(v[d]=p[d]);v.slashes===void 0&&(v.slashes=u.test(p.href))}return v}function E(p){return p==="file:"||p==="ftp:"||p==="http:"||p==="https:"||p==="ws:"||p==="wss:"}function T(p,d){p=(p=f(p)).replace(a,""),d=d||{};var g,v=l.exec(p),A=v[1]?v[1].toLowerCase():"",I=!!v[2],P=!!v[3],O=0;return I?P?(g=v[2]+v[3]+v[4],O=v[2].length+v[3].length):(g=v[2]+v[4],O=v[2].length):P?(g=v[3]+v[4],O=v[3].length):g=v[4],A==="file:"?O>=2&&(g=g.slice(2)):E(A)?g=v[4]:A?I&&(g=g.slice(2)):O>=2&&E(d.protocol)&&(g=v[4]),{protocol:A,slashes:I||E(A),slashesCount:O,rest:g}}function y(p,d,g){if(p=(p=f(p)).replace(a,""),!(this instanceof y))return new y(p,d,g);var v,A,I,P,O,j,K=h.slice(),L=typeof d,k=this,re=0;for(L!=="object"&&L!=="string"&&(g=d,d=null),g&&typeof g!="function"&&(g=o.parse),v=!(A=T(p||"",d=m(d))).protocol&&!A.slashes,k.slashes=A.slashes||v&&d.slashes,k.protocol=A.protocol||d.protocol||"",p=A.rest,(A.protocol==="file:"&&(A.slashesCount!==2||s.test(p))||!A.slashes&&(A.protocol||A.slashesCount<2||!E(k.protocol)))&&(K[3]=[/(.*)/,"pathname"]);re<K.length;re++)typeof(P=K[re])!="function"?(I=P[0],j=P[1],I!=I?k[j]=p:typeof I=="string"?~(O=I==="@"?p.lastIndexOf(I):p.indexOf(I))&&(typeof P[2]=="number"?(k[j]=p.slice(0,O),p=p.slice(O+P[2])):(k[j]=p.slice(O),p=p.slice(0,O))):(O=I.exec(p))&&(k[j]=O[1],p=p.slice(0,O.index)),k[j]=k[j]||v&&P[3]&&d[j]||"",P[4]&&(k[j]=k[j].toLowerCase())):p=P(p,k);g&&(k.query=g(k.query)),v&&d.slashes&&k.pathname.charAt(0)!=="/"&&(k.pathname!==""||d.pathname!=="")&&(k.pathname=(function(ee,ue){if(ee==="")return ue;for(var le=(ue||"/").split("/").slice(0,-1).concat(ee.split("/")),de=le.length,fe=le[de-1],be=!1,pe=0;de--;)le[de]==="."?le.splice(de,1):le[de]===".."?(le.splice(de,1),pe++):pe&&(de===0&&(be=!0),le.splice(de,1),pe--);return be&&le.unshift(""),fe!=="."&&fe!==".."||le.push(""),le.join("/")})(k.pathname,d.pathname)),k.pathname.charAt(0)!=="/"&&E(k.protocol)&&(k.pathname="/"+k.pathname),n(k.port,k.protocol)||(k.host=k.hostname,k.port=""),k.username=k.password="",k.auth&&(~(O=k.auth.indexOf(":"))?(k.username=k.auth.slice(0,O),k.username=encodeURIComponent(decodeURIComponent(k.username)),k.password=k.auth.slice(O+1),k.password=encodeURIComponent(decodeURIComponent(k.password))):k.username=encodeURIComponent(decodeURIComponent(k.auth)),k.auth=k.password?k.username+":"+k.password:k.username),k.origin=k.protocol!=="file:"&&E(k.protocol)&&k.host?k.protocol+"//"+k.host:"null",k.href=k.toString()}y.prototype={set:function(p,d,g){var v=this;switch(p){case"query":typeof d=="string"&&d.length&&(d=(g||o.parse)(d)),v[p]=d;break;case"port":v[p]=d,n(d,v.protocol)?d&&(v.host=v.hostname+":"+d):(v.host=v.hostname,v[p]="");break;case"hostname":v[p]=d,v.port&&(d+=":"+v.port),v.host=d;break;case"host":v[p]=d,c.test(d)?(d=d.split(":"),v.port=d.pop(),v.hostname=d.join(":")):(v.hostname=d,v.port="");break;case"protocol":v.protocol=d.toLowerCase(),v.slashes=!g;break;case"pathname":case"hash":if(d){var A=p==="pathname"?"/":"#";v[p]=d.charAt(0)!==A?A+d:d}else v[p]=d;break;case"username":case"password":v[p]=encodeURIComponent(d);break;case"auth":var I=d.indexOf(":");~I?(v.username=d.slice(0,I),v.username=encodeURIComponent(decodeURIComponent(v.username)),v.password=d.slice(I+1),v.password=encodeURIComponent(decodeURIComponent(v.password))):v.username=encodeURIComponent(decodeURIComponent(d))}for(var P=0;P<h.length;P++){var O=h[P];O[4]&&(v[O[1]]=v[O[1]].toLowerCase())}return v.auth=v.password?v.username+":"+v.password:v.username,v.origin=v.protocol!=="file:"&&E(v.protocol)&&v.host?v.protocol+"//"+v.host:"null",v.href=v.toString(),v},toString:function(p){p&&typeof p=="function"||(p=o.stringify);var d,g=this,v=g.host,A=g.protocol;A&&A.charAt(A.length-1)!==":"&&(A+=":");var I=A+(g.protocol&&g.slashes||E(g.protocol)?"//":"");return g.username?(I+=g.username,g.password&&(I+=":"+g.password),I+="@"):g.password?(I+=":"+g.password,I+="@"):g.protocol!=="file:"&&E(g.protocol)&&!v&&g.pathname!=="/"&&(I+="@"),(v[v.length-1]===":"||c.test(g.hostname)&&!g.port)&&(v+=":"),I+=v+g.pathname,(d=typeof g.query=="object"?p(g.query):g.query)&&(I+=d.charAt(0)!=="?"?"?"+d:d),g.hash&&(I+=g.hash),I}},y.extractProtocol=T,y.location=m,y.trimLeft=f,y.qs=o,e.exports=y},410:()=>{},388:()=>{},805:()=>{},345:()=>{},800:()=>{}},Ml={};function Se(e){var t=Ml[e];if(t!==void 0)return t.exports;var r=Ml[e]={id:e,loaded:!1,exports:{}};return py[e].call(r.exports,r,r.exports,Se),r.loaded=!0,r.exports}Se.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return Se.d(t,{a:t}),t},Se.d=(e,t)=>{for(var r in t)Se.o(t,r)&&!Se.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},Se.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Se.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var ot={};Se.d(ot,{hT:()=>Ze,O4:()=>At,Kd:()=>Ay,YK:()=>Ty,UU:()=>Im,Gu:()=>Yl,ky:()=>hc,h4:()=>vr,ch:()=>an,hq:()=>kt,i5:()=>dc});var gy=Se(737),yy=Se.n(gy);function Ao(e){if(!To(e))throw new Error("Parameter was not an error")}function To(e){return!!e&&typeof e=="object"&&(t=e,Object.prototype.toString.call(t)==="[object Error]")||e instanceof Error;var t}class Je extends Error{constructor(t,r){const n=[...arguments],{options:o,shortMessage:i}=(function(u){let c,l="";if(u.length===0)c={};else if(To(u[0]))c={cause:u[0]},l=u.slice(1).join(" ")||"";else if(u[0]&&typeof u[0]=="object")c=Object.assign({},u[0]),l=u.slice(1).join(" ")||"";else{if(typeof u[0]!="string")throw new Error("Invalid arguments passed to Layerr");c={},l=l=u.join(" ")||""}return{options:c,shortMessage:l}})(n);let a=i;if(o.cause&&(a=`${a}: ${o.cause.message}`),super(a),this.message=a,o.name&&typeof o.name=="string"?this.name=o.name:this.name="Layerr",o.cause&&Object.defineProperty(this,"_cause",{value:o.cause}),Object.defineProperty(this,"_info",{value:{}}),o.info&&typeof o.info=="object"&&Object.assign(this._info,o.info),Error.captureStackTrace){const u=o.constructorOpt||this.constructor;Error.captureStackTrace(this,u)}}static cause(t){return Ao(t),t._cause&&To(t._cause)?t._cause:null}static fullStack(t){Ao(t);const r=Je.cause(t);return r?`${t.stack}
|
|
42
|
+
caused by: ${Je.fullStack(r)}`:t.stack??""}static info(t){Ao(t);const r={},n=Je.cause(t);return n&&Object.assign(r,Je.info(n)),t._info&&Object.assign(r,t._info),r}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}var my=Se(47),Qr=Se.n(my);const Dl="__PATH_SEPARATOR_POSIX__",$l="__PATH_SEPARATOR_WINDOWS__";function Ce(e){try{const t=e.replace(/\//g,Dl).replace(/\\\\/g,$l);return encodeURIComponent(t).split($l).join("\\\\").split(Dl).join("/")}catch(t){throw new Je(t,"Failed encoding path")}}function ql(e){return e.startsWith("/")?e:"/"+e}function yr(e){let t=e;return t[0]!=="/"&&(t="/"+t),/^.+\/$/.test(t)&&(t=t.substr(0,t.length-1)),t}function by(e){let t=new(yy())(e).pathname;return t.length<=0&&(t="/"),yr(t)}function Be(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(function(){return(function(n){var o=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var i=n.shift();n[0]=i+n[0]}n[0].match(/^file:\/\/\//)?n[0]=n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0]=n[0].replace(/^([^/:]+):\/*/,"$1://");for(var a=0;a<n.length;a++){var u=n[a];if(typeof u!="string")throw new TypeError("Url must be a string. Received "+u);u!==""&&(a>0&&(u=u.replace(/^[\/]+/,"")),u=a<n.length-1?u.replace(/[\/]+$/,""):u.replace(/[\/]+$/,"/"),o.push(u))}var c=o.join("/"),l=(c=c.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return l.shift()+(l.length>0?"?":"")+l.join("&")})(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))})(t.reduce(((n,o,i)=>((i===0||o!=="/"||o==="/"&&n[n.length-1]!=="/")&&n.push(o),n)),[]))}var wy=Se(542),mr=Se.n(wy);const vy="abcdef0123456789";function Hl(e,t){const r=e.url.replace("//",""),n=r.indexOf("/")==-1?"/":r.slice(r.indexOf("/")),o=e.method?e.method.toUpperCase():"GET",i=!!/(^|,)\s*auth\s*($|,)/.test(t.qop)&&"auth",a=`00000000${t.nc}`.slice(-8),u=(function(h,x,m,E,T,y,p){const d=p||mr()(`${x}:${m}:${E}`);return h&&h.toLowerCase()==="md5-sess"?mr()(`${d}:${T}:${y}`):d})(t.algorithm,t.username,t.realm,t.password,t.nonce,t.cnonce,t.ha1),c=mr()(`${o}:${n}`),l=i?mr()(`${u}:${t.nonce}:${a}:${t.cnonce}:${i}:${c}`):mr()(`${u}:${t.nonce}:${c}`),s={username:t.username,realm:t.realm,nonce:t.nonce,uri:n,qop:i,response:l,nc:a,cnonce:t.cnonce,algorithm:t.algorithm,opaque:t.opaque},f=[];for(const h in s)s[h]&&(h==="qop"||h==="nc"||h==="algorithm"?f.push(`${h}=${s[h]}`):f.push(`${h}="${s[h]}"`));return`Digest ${f.join(", ")}`}function Vl(e){return(e.headers&&e.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var Ey=Se(101),Wl=Se.n(Ey);function Gl(e){return Wl().decode(e)}function Kl(e,t){var r;return`Basic ${r=`${e}:${t}`,Wl().encode(r)}`}const en=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:typeof window<"u"?window:globalThis,xy=en.fetch.bind(en),Ay=en.Request,Ty=en.Response;let Ze=(function(e){return e.Auto="auto",e.Digest="digest",e.None="none",e.Password="password",e.Token="token",e})({}),At=(function(e){return e.DataTypeNoLength="data-type-no-length",e.InvalidAuthType="invalid-auth-type",e.InvalidOutputFormat="invalid-output-format",e.LinkUnsupportedAuthType="link-unsupported-auth",e.InvalidUpdateRange="invalid-update-range",e.NotSupported="not-supported",e})({});function zl(e,t,r,n,o){switch(e.authType){case Ze.Auto:t&&r&&(e.headers.Authorization=Kl(t,r));break;case Ze.Digest:e.digest=(function(a,u,c){return{username:a,password:u,ha1:c,nc:0,algorithm:"md5",hasDigestAuth:!1}})(t,r,o);break;case Ze.None:break;case Ze.Password:e.headers.Authorization=Kl(t,r);break;case Ze.Token:e.headers.Authorization=`${(i=n).token_type} ${i.access_token}`;break;default:throw new Je({info:{code:At.InvalidAuthType}},`Invalid auth type: ${e.authType}`)}var i}Se(345),Se(800);const Xl="@@HOTPATCHER",Sy=()=>{};function So(e){return{original:e,methods:[e],final:!1}}class _y{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=Xl}get configuration(){return this._configuration}get getEmptyAction(){return this.configuration.getEmptyAction}set getEmptyAction(t){this.configuration.getEmptyAction=t}control(t){let r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!t||t.__type__!==Xl)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(t.configuration.registry).forEach((n=>{this.configuration.registry.hasOwnProperty(n)?r&&(this.configuration.registry[n]=Object.assign({},t.configuration.registry[n])):this.configuration.registry[n]=Object.assign({},t.configuration.registry[n])})),t._configuration=this.configuration,this}execute(t){const r=this.get(t)||Sy;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r(...o)}get(t){const r=this.configuration.registry[t];if(!r)switch(this.getEmptyAction){case"null":return null;case"throw":throw new Error(`Failed handling method request: No method provided for override: ${t}`);default:throw new Error(`Failed handling request which resulted in an empty method: Invalid empty-action specified: ${this.getEmptyAction}`)}return(function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if(o.length===0)throw new Error("Failed creating sequence: No functions provided");return function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];let l=u;const s=this;for(;o.length>0;)l=[o.shift().apply(s,l)];return l[0]}})(...r.methods)}isPatched(t){return!!this.configuration.registry[t]}patch(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{chain:o=!1}=n;if(this.configuration.registry[t]&&this.configuration.registry[t].final)throw new Error(`Failed patching '${t}': Method marked as being final`);if(typeof r!="function")throw new Error(`Failed patching '${t}': Provided method is not a function`);if(o)this.configuration.registry[t]?this.configuration.registry[t].methods.push(r):this.configuration.registry[t]=So(r);else if(this.isPatched(t)){const{original:i}=this.configuration.registry[t];this.configuration.registry[t]=Object.assign(So(r),{original:i})}else this.configuration.registry[t]=So(r);return this}patchInline(t,r){this.isPatched(t)||this.patch(t,r);for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return this.execute(t,...o)}plugin(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((i=>{this.patch(t,i,{chain:!0})})),this}restore(t){if(!this.isPatched(t))throw new Error(`Failed restoring method: No method present for key: ${t}`);if(typeof this.configuration.registry[t].original!="function")throw new Error(`Failed restoring method: Original method not found or of invalid type for key: ${t}`);return this.configuration.registry[t].methods=[this.configuration.registry[t].original],this}setFinal(t){if(!this.configuration.registry.hasOwnProperty(t))throw new Error(`Failed marking '${t}' as final: No method found for key`);return this.configuration.registry[t].final=!0,this}}let _o=null;function Yl(){return _o||(_o=new _y),_o}function tn(e){return(function(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let r=t;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(t)===r})(e)?Object.assign({},e):Object.setPrototypeOf(Object.assign({},e),Object.getPrototypeOf(e))}function Jl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=null,o=[...t];for(;o.length>0;){const i=o.shift();n=n?Zl(n,i):tn(i)}return n}function Zl(e,t){const r=tn(e);return Object.keys(t).forEach((n=>{r.hasOwnProperty(n)?Array.isArray(t[n])?r[n]=Array.isArray(r[n])?[...r[n],...t[n]]:[...t[n]]:typeof t[n]=="object"&&t[n]?r[n]=typeof r[n]=="object"&&r[n]?Zl(r[n],t[n]):tn(t[n]):r[n]=t[n]:r[n]=t[n]})),r}function Oy(e){const t={};for(const r of e.keys())t[r]=e.get(r);return t}function Oo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length===0)return{};const n={};return t.reduce(((o,i)=>(Object.keys(i).forEach((a=>{const u=a.toLowerCase();n.hasOwnProperty(u)?o[n[u]]=i[a]:(n[u]=a,o[a]=i[a])})),o)),{})}Se(805);const Ny=typeof ArrayBuffer=="function",{toString:Ry}=Object.prototype;function Ql(e){return Ny&&(e instanceof ArrayBuffer||Ry.call(e)==="[object ArrayBuffer]")}function ec(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function No(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}function Ro(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const tc=No((function(e){const t=e._digest;return delete e._digest,t.hasDigestAuth&&(e=Jl(e,{headers:{Authorization:Hl(e,t)}})),Ro(rn(e),(function(r){let n=!1;return o=function(a){return n?a:r},(i=(function(){if(r.status==401)return t.hasDigestAuth=(function(a,u){if(!Vl(a))return!1;const c=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;for(;;){const l=a.headers&&a.headers.get("www-authenticate")||"",s=c.exec(l);if(!s)break;u[s[1]]=s[2]||s[3]}return u.nc+=1,u.cnonce=(function(){let l="";for(let s=0;s<32;++s)l=`${l}${vy[Math.floor(16*Math.random())]}`;return l})(),!0})(r,t),(function(){if(t.hasDigestAuth)return Ro(rn(e=Jl(e,{headers:{Authorization:Hl(e,t)}})),(function(a){return a.status==401?t.hasDigestAuth=!1:t.nc++,n=!0,a}))})();t.nc++})())&&i.then?i.then(o):o(i);var o,i}))})),Iy=No((function(e,t){return Ro(rn(e),(function(r){return r.ok?(t.authType=Ze.Password,r):r.status==401&&Vl(r)?(t.authType=Ze.Digest,zl(t,t.username,t.password,void 0,void 0),e._digest=t.digest,tc(e)):r}))})),De=No((function(e,t){return t.authType===Ze.Auto?Iy(e,t):e._digest?tc(e):rn(e)}));function $e(e,t,r){const n=tn(e);return n.headers=Oo(t.headers,n.headers||{},r.headers||{}),r.data!==void 0&&(n.data=r.data),r.signal&&(n.signal=r.signal),t.httpAgent&&(n.httpAgent=t.httpAgent),t.httpsAgent&&(n.httpsAgent=t.httpsAgent),t.digest&&(n._digest=t.digest),typeof t.withCredentials=="boolean"&&(n.withCredentials=t.withCredentials),n}function rn(e){const t=Yl();return t.patchInline("request",(r=>t.patchInline("fetch",xy,r.url,(function(n){let o={};const i={method:n.method};if(n.headers&&(o=Oo(o,n.headers)),n.data!==void 0){const[a,u]=(function(c){if(typeof c=="string")return[c,{}];if(ec(c))return[c,{}];if(Ql(c))return[c,{}];if(c&&typeof c=="object")return[JSON.stringify(c),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+typeof c)})(n.data);i.body=a,o=Oo(o,u)}return n.signal&&(i.signal=n.signal),n.withCredentials&&(i.credentials="include"),i.headers=o,i})(r))),e)}var Py=Se(285);const nn=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},Fy={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},br=e=>e.replace(/[[\]\\-]/g,"\\$&"),rc=e=>e.join(""),Cy=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const n=[],o=[];let i=r+1,a=!1,u=!1,c=!1,l=!1,s=r,f="";e:for(;i<e.length;){const E=e.charAt(i);if(E!=="!"&&E!=="^"||i!==r+1){if(E==="]"&&a&&!c){s=i+1;break}if(a=!0,E!=="\\"||c){if(E==="["&&!c){for(const[T,[y,p,d]]of Object.entries(Fy))if(e.startsWith(T,i)){if(f)return["$.",!1,e.length-r,!0];i+=T.length,d?o.push(y):n.push(y),u=u||p;continue e}}c=!1,f?(E>f?n.push(br(f)+"-"+br(E)):E===f&&n.push(br(E)),f="",i++):e.startsWith("-]",i+1)?(n.push(br(E+"-")),i+=2):e.startsWith("-",i+1)?(f=E,i+=2):(n.push(br(E)),i++)}else c=!0,i++}else l=!0,i++}if(s<i)return["",!1,0,!1];if(!n.length&&!o.length)return["$.",!1,e.length-r,!0];if(o.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!l)return[(h=n[0].length===2?n[0].slice(-1):n[0],h.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,s-r,!1];var h;const x="["+(l?"^":"")+rc(n)+"]",m="["+(l?"":"^")+rc(o)+"]";return[n.length&&o.length?"("+x+"|"+m+")":n.length?x:m,u,s-r,!0]},wr=function(e){let{windowsPathsNoEscape:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},By=new Set(["!","?","+","*","@"]),nc=e=>By.has(e),Io="(?!\\.)",Ly=new Set(["[","."]),Uy=new Set(["..","."]),jy=new Set("().*{}+?[]^$\\!"),Po="[^/]",ic=Po+"*?",oc=Po+"+?";class Qe{type;#e;#r;#s=!1;#t=[];#n;#c;#l;#h=!1;#u;#a;#f=!1;constructor(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=t,t&&(this.#r=!0),this.#n=r,this.#e=this.#n?this.#n.#e:this,this.#u=this.#e===this?n:this.#e.#u,this.#l=this.#e===this?[]:this.#e.#l,t!=="!"||this.#e.#h||this.#l.push(this),this.#c=this.#n?this.#n.#t.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(const t of this.#t)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#a!==void 0?this.#a:this.type?this.#a=this.type+"("+this.#t.map((t=>String(t))).join("|")+")":this.#a=this.#t.map((t=>String(t))).join("")}#i(){if(this!==this.#e)throw new Error("should only call on root");if(this.#h)return this;let t;for(this.toString(),this.#h=!0;t=this.#l.pop();){if(t.type!=="!")continue;let r=t,n=r.#n;for(;n;){for(let o=r.#c+1;!n.type&&o<n.#t.length;o++)for(const i of t.#t){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(n.#t[o])}r=n,n=r.#n}}return this}push(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(const o of r)if(o!==""){if(typeof o!="string"&&!(o instanceof Qe&&o.#n===this))throw new Error("invalid part: "+o);this.#t.push(o)}}toJSON(){const t=this.type===null?this.#t.slice().map((r=>typeof r=="string"?r:r.toJSON())):[this.type,...this.#t.map((r=>r.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#h&&this.#n?.type==="!")&&t.push({}),t}isStart(){if(this.#e===this)return!0;if(!this.#n?.isStart())return!1;if(this.#c===0)return!0;const t=this.#n;for(let r=0;r<this.#c;r++){const n=t.#t[r];if(!(n instanceof Qe&&n.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#n?.type==="!")return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();const t=this.#n?this.#n.#t.length:0;return this.#c===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Qe(this.type,t);for(const n of this.#t)r.copyIn(n);return r}static#d(t,r,n,o){let i=!1,a=!1,u=-1,c=!1;if(r.type===null){let x=n,m="";for(;x<t.length;){const E=t.charAt(x++);if(i||E==="\\")i=!i,m+=E;else if(a)x===u+1?E!=="^"&&E!=="!"||(c=!0):E!=="]"||x===u+2&&c||(a=!1),m+=E;else if(E!=="[")if(o.noext||!nc(E)||t.charAt(x)!=="(")m+=E;else{r.push(m),m="";const T=new Qe(E,r);x=Qe.#d(t,T,x,o),r.push(T)}else a=!0,u=x,c=!1,m+=E}return r.push(m),x}let l=n+1,s=new Qe(null,r);const f=[];let h="";for(;l<t.length;){const x=t.charAt(l++);if(i||x==="\\")i=!i,h+=x;else if(a)l===u+1?x!=="^"&&x!=="!"||(c=!0):x!=="]"||l===u+2&&c||(a=!1),h+=x;else if(x!=="[")if(nc(x)&&t.charAt(l)==="("){s.push(h),h="";const m=new Qe(x,s);s.push(m),l=Qe.#d(t,m,l,o)}else if(x!=="|"){if(x===")")return h===""&&r.#t.length===0&&(r.#f=!0),s.push(h),h="",r.push(...f,s),l;h+=x}else s.push(h),h="",f.push(s),s=new Qe(null,r);else a=!0,u=l,c=!1,h+=x}return r.type=null,r.#r=void 0,r.#t=[t.substring(n-1)],l}static fromGlob(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=new Qe(null,void 0,r);return Qe.#d(t,n,0,r),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();const t=this.toString(),[r,n,o,i]=this.toRegExpSource();if(!(o||this.#r||this.#u.nocase&&!this.#u.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const a=(this.#u.nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:t})}get options(){return this.#u}toRegExpSource(t){const r=t??!!this.#u.dot;if(this.#e===this&&this.#i(),!this.type){const c=this.isStart()&&this.isEnd(),l=this.#t.map((h=>{const[x,m,E,T]=typeof h=="string"?Qe.#p(h,this.#r,c):h.toRegExpSource(t);return this.#r=this.#r||E,this.#s=this.#s||T,x})).join("");let s="";if(this.isStart()&&typeof this.#t[0]=="string"&&(this.#t.length!==1||!Uy.has(this.#t[0]))){const h=Ly,x=r&&h.has(l.charAt(0))||l.startsWith("\\.")&&h.has(l.charAt(2))||l.startsWith("\\.\\.")&&h.has(l.charAt(4)),m=!r&&!t&&h.has(l.charAt(0));s=x?"(?!(?:^|/)\\.\\.?(?:$|/))":m?Io:""}let f="";return this.isEnd()&&this.#e.#h&&this.#n?.type==="!"&&(f="(?:$|\\/)"),[s+l+f,wr(l),this.#r=!!this.#r,this.#s]}const n=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let i=this.#o(r);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){const c=this.toString();return this.#t=[c],this.type=null,this.#r=void 0,[c,wr(this.toString()),!1,!1]}let a=!n||t||r?"":this.#o(!0);a===i&&(a=""),a&&(i=`(?:${i})(?:${a})*?`);let u="";return u=this.type==="!"&&this.#f?(this.isStart()&&!r?Io:"")+oc:o+i+(this.type==="!"?"))"+(!this.isStart()||r||t?"":Io)+ic+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`),[u,wr(i),this.#r=!!this.#r,this.#s]}#o(t){return this.#t.map((r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[n,o,i,a]=r.toRegExpSource(t);return this.#s=this.#s||a,n})).filter((r=>!(this.isStart()&&this.isEnd()&&!r))).join("|")}static#p(t,r){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=!1,i="",a=!1;for(let u=0;u<t.length;u++){const c=t.charAt(u);if(o)o=!1,i+=(jy.has(c)?"\\":"")+c;else if(c!=="\\"){if(c==="["){const[l,s,f,h]=Cy(t,u);if(f){i+=l,a=a||s,u+=f-1,r=r||h;continue}}c!=="*"?c!=="?"?i+=c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(i+=Po,r=!0):(i+=n&&t==="*"?oc:ic,r=!0)}else u===t.length-1?i+="\\\\":o=!0}return[i,wr(t),!!r,a]}}const Xe=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return nn(t),!(!r.nocomment&&t.charAt(0)==="#")&&new on(t,r).match(e)},ky=/^\*+([^+@!?\*\[\(]*)$/,My=e=>t=>!t.startsWith(".")&&t.endsWith(e),Dy=e=>t=>t.endsWith(e),$y=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),qy=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Hy=/^\*+\.\*+$/,Vy=e=>!e.startsWith(".")&&e.includes("."),Wy=e=>e!=="."&&e!==".."&&e.includes("."),Gy=/^\.\*+$/,Ky=e=>e!=="."&&e!==".."&&e.startsWith("."),zy=/^\*+$/,Xy=e=>e.length!==0&&!e.startsWith("."),Yy=e=>e.length!==0&&e!=="."&&e!=="..",Jy=/^\?+([^+@!?\*\[\(]*)?$/,Zy=e=>{let[t,r=""]=e;const n=sc([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},Qy=e=>{let[t,r=""]=e;const n=ac([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},em=e=>{let[t,r=""]=e;const n=ac([t]);return r?o=>n(o)&&o.endsWith(r):n},tm=e=>{let[t,r=""]=e;const n=sc([t]);return r?o=>n(o)&&o.endsWith(r):n},sc=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&!n.startsWith(".")},ac=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&n!=="."&&n!==".."},uc=typeof ye=="object"&&ye?typeof ye.env=="object"&&ye.env&&ye.env.__MINIMATCH_TESTING_PLATFORM__||ye.platform:"posix";Xe.sep=uc==="win32"?"\\":"/";const st=Symbol("globstar **");Xe.GLOBSTAR=st,Xe.filter=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r=>Xe(r,e,t)};const at=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.assign({},e,t)};Xe.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Xe;const t=Xe;return Object.assign((function(r,n){return t(r,n,at(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}),{Minimatch:class extends t.Minimatch{constructor(r){super(r,at(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}))}static defaults(r){return t.defaults(at(e,r)).Minimatch}},AST:class extends t.AST{constructor(r,n){super(r,n,at(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}static fromGlob(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.AST.fromGlob(r,at(e,n))}},unescape:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.unescape(r,at(e,n))},escape:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.escape(r,at(e,n))},filter:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.filter(r,at(e,n))},defaults:r=>t.defaults(at(e,r)),makeRe:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.makeRe(r,at(e,n))},braceExpand:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.braceExpand(r,at(e,n))},match:function(r,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.match(r,n,at(e,o))},sep:t.sep,GLOBSTAR:st})};const lc=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return nn(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Py(e)};Xe.braceExpand=lc,Xe.makeRe=function(e){return new on(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},Xe.match=function(e,t){const r=new on(t,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{});return e=e.filter((n=>r.match(n))),r.options.nonull&&!e.length&&e.push(t),e};const cc=/[?*]|[+@!]\(.*?\)|\[|\]/;class on{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};nn(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||uc,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#")return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=function(){return console.error(...arguments)}),this.debug(this.pattern,this.globSet);const n=this.globSet.map((i=>this.slashSplit(i)));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let o=this.globParts.map(((i,a,u)=>{if(this.isWindows&&this.windowsNoMagicRoot){const c=!(i[0]!==""||i[1]!==""||i[2]!=="?"&&cc.test(i[2])||cc.test(i[3])),l=/^[a-z]:/i.test(i[0]);if(c)return[...i.slice(0,4),...i.slice(4).map((s=>this.parse(s)))];if(l)return[i[0],...i.slice(1).map((s=>this.parse(s)))]}return i.map((c=>this.parse(c)))}));if(this.debug(this.pattern,o),this.set=o.filter((i=>i.indexOf(!1)===-1)),this.isWindows)for(let i=0;i<this.set.length;i++){const a=this.set[i];a[0]===""&&a[1]===""&&this.globParts[i][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let o=0;o<t[n].length;o++)t[n][o]==="**"&&(t[n][o]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=r>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let o=n;for(;r[o+1]==="**";)o++;o!==n&&r.splice(n,o-n)}return r}))}levelOneOptimize(t){return t.map((r=>(r=r.reduce(((n,o)=>{const i=n[n.length-1];return o==="**"&&i==="**"?n:o===".."&&i&&i!==".."&&i!=="."&&i!=="**"?(n.pop(),n):(n.push(o),n)}),[])).length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let o=1;o<t.length-1;o++){const i=t[o];o===1&&i===""&&t[0]===""||i!=="."&&i!==""||(r=!0,t.splice(o,1),o--)}t[0]!=="."||t.length!==2||t[1]!=="."&&t[1]!==""||(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){const o=t[n-1];o&&o!=="."&&o!==".."&&o!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let o=-1;for(;(o=n.indexOf("**",o+1))!==-1;){let a=o;for(;n[a+1]==="**";)a++;a>o&&n.splice(o+1,a-o);let u=n[o+1];const c=n[o+2],l=n[o+3];if(u!==".."||!c||c==="."||c===".."||!l||l==="."||l==="..")continue;r=!0,n.splice(o,1);const s=n.slice(0);s[o]="**",t.push(s),o--}if(!this.preserveMultipleSlashes){for(let a=1;a<n.length-1;a++){const u=n[a];a===1&&u===""&&n[0]===""||u!=="."&&u!==""||(r=!0,n.splice(a,1),a--)}n[0]!=="."||n.length!==2||n[1]!=="."&&n[1]!==""||(r=!0,n.pop())}let i=0;for(;(i=n.indexOf("..",i+1))!==-1;){const a=n[i-1];if(a&&a!=="."&&a!==".."&&a!=="**"){r=!0;const u=i===1&&n[i+1]==="**"?["."]:[];n.splice(i-1,2,...u),n.length===0&&n.push(""),i-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){const o=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(o){t[r]=[],t[n]=o;break}}return t.filter((r=>r.length))}partsMatch(t,r){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=0,i=0,a=[],u="";for(;o<t.length&&i<r.length;)if(t[o]===r[i])a.push(u==="b"?r[i]:t[o]),o++,i++;else if(n&&t[o]==="**"&&r[i]===t[o+1])a.push(t[o]),o++;else if(n&&r[i]==="**"&&t[o]===r[i+1])a.push(r[i]),i++;else if(t[o]!=="*"||!r[i]||!this.options.dot&&r[i].startsWith(".")||r[i]==="**"){if(r[i]!=="*"||!t[o]||!this.options.dot&&t[o].startsWith(".")||t[o]==="**"||u==="a")return!1;u="b",a.push(r[i]),o++,i++}else{if(u==="b")return!1;u="a",a.push(t[o]),o++,i++}return t.length===r.length&&a}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,n=0;for(let o=0;o<t.length&&t.charAt(o)==="!";o++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const o=this.options;if(this.isWindows){const E=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),T=!E&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),y=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),p=T?3:E?0:void 0,d=!y&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3])?3:y?0:void 0;if(typeof p=="number"&&typeof d=="number"){const[g,v]=[t[p],r[d]];g.toLowerCase()===v.toLowerCase()&&(r[d]=g,d>p?r=r.slice(d):p>d&&(t=t.slice(p)))}}const{optimizationLevel:i=1}=this.options;i>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var a=0,u=0,c=t.length,l=r.length;a<c&&u<l;a++,u++){this.debug("matchOne loop");var s=r[u],f=t[a];if(this.debug(r,s,f),s===!1)return!1;if(s===st){this.debug("GLOBSTAR",[r,s,f]);var h=a,x=u+1;if(x===l){for(this.debug("** at the end");a<c;a++)if(t[a]==="."||t[a]===".."||!o.dot&&t[a].charAt(0)===".")return!1;return!0}for(;h<c;){var m=t[h];if(this.debug(`
|
|
43
|
+
globstar while`,t,h,r,x,m),this.matchOne(t.slice(h),r.slice(x),n))return this.debug("globstar found match!",h,c,m),!0;if(m==="."||m===".."||!o.dot&&m.charAt(0)==="."){this.debug("dot detected!",t,h,r,x);break}this.debug("globstar swallow a segment, and continue"),h++}return!(!n||(this.debug(`
|
|
44
|
+
>>> no match, partial?`,t,h,r,x),h!==c))}let E;if(typeof s=="string"?(E=f===s,this.debug("string match",s,f,E)):(E=s.test(f),this.debug("pattern match",s,f,E)),!E)return!1}if(a===c&&u===l)return!0;if(a===c)return n;if(u===l)return a===c-1&&t[a]==="";throw new Error("wtf?")}braceExpand(){return lc(this.pattern,this.options)}parse(t){nn(t);const r=this.options;if(t==="**")return st;if(t==="")return"";let n,o=null;(n=t.match(zy))?o=r.dot?Yy:Xy:(n=t.match(ky))?o=(r.nocase?r.dot?qy:$y:r.dot?Dy:My)(n[1]):(n=t.match(Jy))?o=(r.nocase?r.dot?Qy:Zy:r.dot?em:tm)(n):(n=t.match(Hy))?o=r.dot?Wy:Vy:(n=t.match(Gy))&&(o=Ky);const i=Qe.fromGlob(t,this.options).toMMPattern();return o&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:o}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,n=r.noglobstar?"[^/]*?":r.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",o=new Set(r.nocase?["i"]:[]);let i=t.map((c=>{const l=c.map((s=>{if(s instanceof RegExp)for(const f of s.flags.split(""))o.add(f);return typeof s=="string"?s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):s===st?st:s._src}));return l.forEach(((s,f)=>{const h=l[f+1],x=l[f-1];s===st&&x!==st&&(x===void 0?h!==void 0&&h!==st?l[f+1]="(?:\\/|"+n+"\\/)?"+h:l[f]=n:h===void 0?l[f-1]=x+"(?:\\/|"+n+")?":h!==st&&(l[f-1]=x+"(?:\\/|\\/"+n+"\\/)"+h,l[f+1]=st))})),l.filter((s=>s!==st)).join("/")})).join("|");const[a,u]=t.length>1?["(?:",")"]:["",""];i="^"+a+i+u+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...o].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.partial;if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const o=this.slashSplit(t);this.debug(this.pattern,"split",o);const i=this.set;this.debug(this.pattern,"set",i);let a=o[o.length-1];if(!a)for(let u=o.length-2;!a&&u>=0;u--)a=o[u];for(let u=0;u<i.length;u++){const c=i[u];let l=o;if(n.matchBase&&c.length===1&&(l=[a]),this.matchOne(l,c,r))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return Xe.defaults(t).Minimatch}}function Fo(e){const t=new Error(`${arguments.length>1&&arguments[1]!==void 0?arguments[1]:""}Invalid response: ${e.status} ${e.statusText}`);return t.status=e.status,t.response=e,t}function qe(e,t){const{status:r}=t;if(r===401&&e.digest)return t;if(r>=400)throw Fo(t);return t}function kt(e,t){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:t,headers:e.headers?Oy(e.headers):{},status:e.status,statusText:e.statusText}:t}Xe.AST=Qe,Xe.Minimatch=on,Xe.escape=function(e){let{windowsPathsNoEscape:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&")},Xe.unescape=wr;const rm=(fc=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=$e({url:Be(e.remoteURL,Ce(t)),method:"COPY",headers:{Destination:Be(e.remoteURL,Ce(r)),Overwrite:n.overwrite===!1?"F":"T",Depth:n.shallow?"0":"infinity"}},e,n);return a=function(u){qe(e,u)},(i=De(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(fc.apply(this,e))}catch(r){return Promise.reject(r)}});var fc,Co=Se(635),nm=Se(829),Tt=Se.n(nm),er=(function(e){return e.Array="array",e.Object="object",e.Original="original",e})(er||{});function sn(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:er.Original;const n=Tt().get(e,t);return r==="array"&&Array.isArray(n)===!1?[n]:r==="object"&&Array.isArray(n)?n[0]:n}function vr(e){return new Promise((t=>{t((function(r){const{multistatus:n}=r;if(n==="")return{multistatus:{response:[]}};if(!n)throw new Error("Invalid response: No root multistatus found");const o={multistatus:Array.isArray(n)?n[0]:n};return Tt().set(o,"multistatus.response",sn(o,"multistatus.response",er.Array)),Tt().set(o,"multistatus.response",Tt().get(o,"multistatus.response").map((i=>(function(a){const u=Object.assign({},a);return u.status?Tt().set(u,"status",sn(u,"status",er.Object)):(Tt().set(u,"propstat",sn(u,"propstat",er.Object)),Tt().set(u,"propstat.prop",sn(u,"propstat.prop",er.Object))),u})(i)))),o})(new Co.XMLParser({allowBooleanAttributes:!0,attributeNamePrefix:"",textNodeName:"text",ignoreAttributes:!1,removeNSPrefix:!0,numberParseOptions:{hex:!0,leadingZeros:!1},attributeValueProcessor:(r,n,o)=>n==="true"||n==="false"?n==="true":n,tagValueProcessor(r,n,o){if(!o.endsWith("propstat.prop.displayname"))return n}}).parse(e)))}))}function an(e,t){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const{getlastmodified:n=null,getcontentlength:o="0",resourcetype:i=null,getcontenttype:a=null,getetag:u=null}=e,c=i&&typeof i=="object"&&i.collection!==void 0?"directory":"file",l={filename:t,basename:Qr().basename(t),lastmod:n,size:parseInt(o,10),type:c,etag:typeof u=="string"?u.replace(/"/g,""):null};return c==="file"&&(l.mime=a&&typeof a=="string"?a.split(";")[0]:""),r&&(e.displayname!==void 0&&(e.displayname=String(e.displayname)),l.props=e),l}function hc(e,t){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],n=null;try{e.multistatus.response[0].propstat&&(n=e.multistatus.response[0])}catch{}if(!n)throw new Error("Failed getting item stat: bad response");const{propstat:{prop:o,status:i}}=n,[a,u,c]=i.split(" ",3),l=parseInt(u,10);if(l>=400){const s=new Error(`Invalid response: ${l} ${c}`);throw s.status=l,s}return an(o,yr(t),r)}function dc(e){switch(String(e)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(e),10)}}function Bo(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Lo=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{details:n=!1}=r,o=$e({url:Be(e.remoteURL,Ce(t)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,r);return Bo(De(o,e),(function(i){return qe(e,i),Bo(i.text(),(function(a){return Bo(vr(a),(function(u){const c=hc(u,t,n);return kt(i,c,n)}))}))}))}));function pc(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const im=gc((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=(function(i){if(!i||i==="/")return[];let a=i;const u=[];do u.push(a),a=Qr().dirname(a);while(a&&a!=="/");return u})(yr(t));n.sort(((i,a)=>i.length>a.length?1:a.length>i.length?-1:0));let o=!1;return(function(i,a,u){if(typeof i[mc]=="function"){let E=function(T){try{for(;!(c=f.next()).done;)if((T=a(c.value))&&T.then){if(!bc(T))return void T.then(E,s||(s=et.bind(null,l=new tr,2)));T=T.v}l?et(l,1,T):l=T}catch(y){et(l||(l=new tr),2,y)}};var c,l,s,f=i[mc]();if(E(),f.return){var h=function(T){try{c.done||f.return()}catch{}return T};if(l&&l.then)return l.then(h,(function(T){throw h(T)}));h()}return l}if(!("length"in i))throw new TypeError("Object is not iterable");for(var x=[],m=0;m<i.length;m++)x.push(i[m]);return(function(E,T,y){var p,d,g=-1;return(function v(A){try{for(;++g<E.length&&(!y||!y());)if((A=T(g))&&A.then){if(!bc(A))return void A.then(v,d||(d=et.bind(null,p=new tr,2)));A=A.v}p?et(p,1,A):p=A}catch(I){et(p||(p=new tr),2,I)}})(),p})(x,(function(E){return a(x[E])}),u)})(n,(function(i){return a=function(){return(function(c,l){try{var s=pc(Lo(e,i),(function(f){if(f.type!=="directory")throw new Error(`Path includes a file: ${t}`)}))}catch(f){return l(f)}return s&&s.then?s.then(void 0,l):s})(0,(function(c){const l=c;return(function(){if(l.status===404)return o=!0,yc(Uo(e,i,{...r,recursive:!1}));throw c})()}))},(u=(function(){if(o)return yc(Uo(e,i,{...r,recursive:!1}))})())&&u.then?u.then(a):a();var a,u}),(function(){return!1}))}));function gc(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}function om(){}function yc(e,t){return e&&e.then?e.then(om):Promise.resolve()}const mc=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function et(e,t,r){if(!e.s){if(r instanceof tr){if(!r.s)return void(r.o=et.bind(null,e,t));1&t&&(t=r.s),r=r.v}if(r&&r.then)return void r.then(et.bind(null,e,t),et.bind(null,e,2));e.s=t,e.v=r;const n=e.o;n&&n(e)}}const tr=(function(){function e(){}return e.prototype.then=function(t,r){const n=new e,o=this.s;if(o){const i=1&o?t:r;if(i){try{et(n,1,i(this.v))}catch(a){et(n,2,a)}return n}return this}return this.o=function(i){try{const a=i.v;1&i.s?et(n,1,t?t(a):a):r?et(n,1,r(a)):et(n,2,a)}catch(a){et(n,2,a)}},n},e})();function bc(e){return e instanceof tr&&1&e.s}const Uo=gc((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(r.recursive===!0)return im(e,t,r);const n=$e({url:Be(e.remoteURL,(o=Ce(t),o.endsWith("/")?o:o+"/")),method:"MKCOL"},e,r);var o;return pc(De(n,e),(function(i){qe(e,i)}))}));var sm=Se(388),wc=Se.n(sm);const am=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n={};if(typeof r.range=="object"&&typeof r.range.start=="number"){let u=`bytes=${r.range.start}-`;typeof r.range.end=="number"&&(u=`${u}${r.range.end}`),n.Range=u}const o=$e({url:Be(e.remoteURL,Ce(t)),method:"GET",headers:n},e,r);return a=function(u){if(qe(e,u),n.Range&&u.status!==206){const c=new Error(`Invalid response code for partial request: ${u.status}`);throw c.status=u.status,c}return r.callback&&setTimeout((()=>{r.callback(u)}),0),u.body},(i=De(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a})),um=()=>{},lm=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t,r){r.url||(r.url=Be(e.remoteURL,Ce(t)));const n=$e(r,e,{});return i=function(a){return qe(e,a),a},(o=De(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i})),cm=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=$e({url:Be(e.remoteURL,Ce(t)),method:"DELETE"},e,r);return i=function(a){qe(e,a)},(o=De(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i})),fm=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function(n,o){try{var i=(a=Lo(e,t,r),u=function(){return!0},c?u?u(a):a:(a&&a.then||(a=Promise.resolve(a)),u?a.then(u):a))}catch(l){return o(l)}var a,u,c;return i&&i.then?i.then(void 0,o):i})(0,(function(n){if(n.status===404)return!1;throw n}))}));function jo(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const hm=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=$e({url:Be(e.remoteURL,Ce(t),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:r.deep?"infinity":"1"}},e,r);return jo(De(n,e),(function(o){return qe(e,o),jo(o.text(),(function(i){if(!i)throw new Error("Failed parsing directory contents: Empty response");return jo(vr(i),(function(a){const u=ql(t);let c=(function(l,s,f){let h=arguments.length>3&&arguments[3]!==void 0&&arguments[3],x=arguments.length>4&&arguments[4]!==void 0&&arguments[4];const m=Qr().join(s,"/"),{multistatus:{response:E}}=l,T=E.map((y=>{const p=(function(g){try{return g.replace(/^https?:\/\/[^\/]+/,"")}catch(v){throw new Je(v,"Failed normalising HREF")}})(y.href),{propstat:{prop:d}}=y;return an(d,m==="/"?decodeURIComponent(yr(p)):yr(Qr().relative(decodeURIComponent(m),decodeURIComponent(p))),h)}));return x?T:T.filter((y=>y.basename&&(y.type==="file"||y.filename!==f.replace(/\/$/,""))))})(a,ql(e.remoteBasePath||e.remotePath),u,r.details,r.includeSelf);return r.glob&&(c=(function(l,s){return l.filter((f=>Xe(f.filename,s,{matchBase:!0})))})(c,r.glob)),kt(o,c,r.details)}))}))}))}));function ko(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}const dm=ko((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=$e({url:Be(e.remoteURL,Ce(t)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[ym]},e,r);return un(De(n,e),(function(o){return qe(e,o),un(o.text(),(function(i){return kt(o,i,r.details)}))}))}));function un(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const pm=ko((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=$e({url:Be(e.remoteURL,Ce(t)),method:"GET"},e,r);return un(De(n,e),(function(o){let i;return qe(e,o),(function(a,u){var c=a();return c&&c.then?c.then(u):u()})((function(){return un(o.arrayBuffer(),(function(a){i=a}))}),(function(){return kt(o,i,r.details)}))}))})),gm=ko((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{format:n="binary"}=r;if(n!=="binary"&&n!=="text")throw new Je({info:{code:At.InvalidOutputFormat}},`Invalid output format: ${n}`);return n==="text"?dm(e,t,r):pm(e,t,r)})),ym=e=>e;function mm(e){return new Co.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(vc({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:e}}},"d"))}function vc(e,t){const r={...e};for(const n in r)r.hasOwnProperty(n)&&(r[n]&&typeof r[n]=="object"&&n.indexOf(":")===-1?(r[`${t}:${n}`]=vc(r[n],t),delete r[n]):/^@_/.test(n)===!1&&(r[`${t}:${n}`]=r[n],delete r[n]));return r}function Mo(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function Ec(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}const bm=Ec((function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=$e({url:Be(e.remoteURL,Ce(t)),method:"UNLOCK",headers:{"Lock-Token":r}},e,n);return Mo(De(o,e),(function(i){if(qe(e,i),i.status!==204&&i.status!==200)throw Fo(i)}))})),wm=Ec((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{refreshToken:n,timeout:o=vm}=r,i={Accept:"text/plain,application/xml",Timeout:o};n&&(i.If=n);const a=$e({url:Be(e.remoteURL,Ce(t)),method:"LOCK",headers:i,data:mm(e.contactHref)},e,r);return Mo(De(a,e),(function(u){return qe(e,u),Mo(u.text(),(function(c){const l=(h=c,new Co.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(h)),s=Tt().get(l,"prop.lockdiscovery.activelock.locktoken.href"),f=Tt().get(l,"prop.lockdiscovery.activelock.timeout");var h;if(!s)throw Fo(u,"No lock token received: ");return{token:s,serverTimeout:f}}))}))})),vm="Infinite, Second-4100000000";function Do(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Em=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=t.path||"/",n=$e({url:Be(e.remoteURL,r),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,t);return Do(De(n,e),(function(o){return qe(e,o),Do(o.text(),(function(i){return Do(vr(i),(function(a){const u=(function(c){try{const[l]=c.multistatus.response,{propstat:{prop:{"quota-used-bytes":s,"quota-available-bytes":f}}}=l;return s!==void 0&&f!==void 0?{used:parseInt(String(s),10),available:dc(f)}:null}catch{}return null})(a);return kt(o,u,t.details)}))}))}))}));function $o(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const xm=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{details:n=!1}=r,o=$e({url:Be(e.remoteURL,Ce(t)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":e.headers["Content-Type"]||"application/xml; charset=utf-8"}},e,r);return $o(De(o,e),(function(i){return qe(e,i),$o(i.text(),(function(a){return $o(vr(a),(function(u){const c=(function(l,s,f){const h={truncated:!1,results:[]};return h.truncated=l.multistatus.response.some((x=>(x.status||x.propstat?.status).split(" ",3)?.[1]==="507"&&x.href.replace(/\/$/,"").endsWith(Ce(s).replace(/\/$/,"")))),l.multistatus.response.forEach((x=>{if(x.propstat===void 0)return;const m=x.href.split("/").map(decodeURIComponent).join("/");h.results.push(an(x.propstat.prop,m,f))})),h})(u,t,n);return kt(i,c,n)}))}))}))})),Am=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=$e({url:Be(e.remoteURL,Ce(t)),method:"MOVE",headers:{Destination:Be(e.remoteURL,Ce(r)),Overwrite:n.overwrite===!1?"F":"T"}},e,n);return a=function(u){qe(e,u)},(i=De(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a}));var Tm=Se(172);const Sm=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const{contentLength:o=!0,overwrite:i=!0}=n,a={"Content-Type":"application/octet-stream"};o===!1||(a["Content-Length"]=typeof o=="number"?`${o}`:`${(function(s){if(Ql(s))return s.byteLength;if(ec(s))return s.length;if(typeof s=="string")return(0,Tm.d)(s);throw new Je({info:{code:At.DataTypeNoLength}},"Cannot calculate data length: Invalid type")})(r)}`),i||(a["If-None-Match"]="*");const u=$e({url:Be(e.remoteURL,Ce(t)),method:"PUT",headers:a,data:r},e,n);return l=function(s){try{qe(e,s)}catch(f){const h=f;if(h.status!==412||i)throw h;return!1}return!0},(c=De(u,e))&&c.then||(c=Promise.resolve(c)),l?c.then(l):c;var c,l})),xc=(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}})((function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=$e({url:Be(e.remoteURL,Ce(t)),method:"OPTIONS"},e,r);return i=function(a){try{qe(e,a)}catch(u){throw u}return{compliance:(a.headers.get("DAV")??"").split(",").map((u=>u.trim())),server:a.headers.get("Server")??""}},(o=De(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i}));function Er(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const _m=qo((function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>n||r<0)throw new Je({info:{code:At.InvalidUpdateRange}},`Invalid update range ${r} for partial update`);const a={"Content-Type":"application/octet-stream","Content-Length":""+(n-r+1),"Content-Range":`bytes ${r}-${n}/*`},u=$e({url:Be(e.remoteURL,Ce(t)),method:"PUT",headers:a,data:o},e,i);return Er(De(u,e),(function(c){qe(e,c)}))}));function Ac(e,t){var r=e();return r&&r.then?r.then(t):t(r)}const Om=qo((function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>n||r<0)throw new Je({info:{code:At.InvalidUpdateRange}},`Invalid update range ${r} for partial update`);const a={"Content-Type":"application/x-sabredav-partialupdate","Content-Length":""+(n-r+1),"X-Update-Range":`bytes=${r}-${n}`},u=$e({url:Be(e.remoteURL,Ce(t)),method:"PATCH",headers:a,data:o},e,i);return Er(De(u,e),(function(c){qe(e,c)}))}));function qo(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}const Nm=qo((function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return Er(xc(e,t,i),(function(a){let u=!1;return Ac((function(){if(a.compliance.includes("sabredav-partialupdate"))return Er(Om(e,t,r,n,o,i),(function(c){return u=!0,c}))}),(function(c){let l=!1;return u?c:Ac((function(){if(a.server.includes("Apache")&&a.compliance.includes("<http://apache.org/dav/propset/fs/1>"))return Er(_m(e,t,r,n,o,i),(function(s){return l=!0,s}))}),(function(s){if(l)return s;throw new Je({info:{code:At.NotSupported}},"Not supported")}))}))}))})),Rm="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function Im(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{authType:r=null,remoteBasePath:n,contactHref:o=Rm,ha1:i,headers:a={},httpAgent:u,httpsAgent:c,password:l,token:s,username:f,withCredentials:h}=t;let x=r;x||(x=f||l?Ze.Password:Ze.None);const m={authType:x,remoteBasePath:n,contactHref:o,ha1:i,headers:Object.assign({},a),httpAgent:u,httpsAgent:c,password:l,remotePath:by(e),remoteURL:e,token:s,username:f,withCredentials:h};return zl(m,f,l,s,i),{copyFile:(E,T,y)=>rm(m,E,T,y),createDirectory:(E,T)=>Uo(m,E,T),createReadStream:(E,T)=>(function(y,p){let d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const g=new(wc()).PassThrough;return am(y,p,d).then((v=>{v.pipe(g)})).catch((v=>{g.emit("error",v)})),g})(m,E,T),createWriteStream:(E,T,y)=>(function(p,d){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:um;const A=new(wc()).PassThrough,I={};g.overwrite===!1&&(I["If-None-Match"]="*");const P=$e({url:Be(p.remoteURL,Ce(d)),method:"PUT",headers:I,data:A,maxRedirects:0},p,g);return De(P,p).then((O=>qe(p,O))).then((O=>{setTimeout((()=>{v(O)}),0)})).catch((O=>{A.emit("error",O)})),A})(m,E,T,y),customRequest:(E,T)=>lm(m,E,T),deleteFile:(E,T)=>cm(m,E,T),exists:(E,T)=>fm(m,E,T),getDirectoryContents:(E,T)=>hm(m,E,T),getFileContents:(E,T)=>gm(m,E,T),getFileDownloadLink:E=>(function(T,y){let p=Be(T.remoteURL,Ce(y));const d=/^https:/i.test(p)?"https":"http";switch(T.authType){case Ze.None:break;case Ze.Password:{const g=Gl(T.headers.Authorization.replace(/^Basic /i,"").trim());p=p.replace(/^https?:\/\//,`${d}://${g}@`);break}default:throw new Je({info:{code:At.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${T.authType}`)}return p})(m,E),getFileUploadLink:E=>(function(T,y){let p=`${Be(T.remoteURL,Ce(y))}?Content-Type=application/octet-stream`;const d=/^https:/i.test(p)?"https":"http";switch(T.authType){case Ze.None:break;case Ze.Password:{const g=Gl(T.headers.Authorization.replace(/^Basic /i,"").trim());p=p.replace(/^https?:\/\//,`${d}://${g}@`);break}default:throw new Je({info:{code:At.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${T.authType}`)}return p})(m,E),getHeaders:()=>Object.assign({},m.headers),getQuota:E=>Em(m,E),lock:(E,T)=>wm(m,E,T),moveFile:(E,T,y)=>Am(m,E,T,y),putFileContents:(E,T,y)=>Sm(m,E,T,y),partialUpdateFileContents:(E,T,y,p,d)=>Nm(m,E,T,y,p,d),getDAVCompliance:E=>xc(m,E),search:(E,T)=>xm(m,E,T),setHeaders:E=>{m.headers=Object.assign({},E)},stat:(E,T)=>Lo(m,E,T),unlock:(E,T,y)=>bm(m,E,T,y)}}ot.hT,ot.O4,ot.Kd,ot.YK;var Pm=ot.UU;ot.Gu,ot.ky;var Fm=ot.h4,Cm=ot.ch;ot.hq,ot.i5;const We=[];for(let e=0;e<256;++e)We.push((e+256).toString(16).slice(1));function Bm(e,t=0){return(We[e[t+0]]+We[e[t+1]]+We[e[t+2]]+We[e[t+3]]+"-"+We[e[t+4]]+We[e[t+5]]+"-"+We[e[t+6]]+We[e[t+7]]+"-"+We[e[t+8]]+We[e[t+9]]+"-"+We[e[t+10]]+We[e[t+11]]+We[e[t+12]]+We[e[t+13]]+We[e[t+14]]+We[e[t+15]]).toLowerCase()}let Ho;const Lm=new Uint8Array(16);function Um(){if(!Ho){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ho=crypto.getRandomValues.bind(crypto)}return Ho(Lm)}var Tc={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function jm(e,t,r){e=e||{};const n=e.random??e.rng?.()??Um();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Bm(n)}function km(e,t,r){return Tc.randomUUID&&!e?Tc.randomUUID():jm(e)}var Vo={},Wo={},Sc;function Go(){return Sc||(Sc=1,(function(e){const t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r=t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",n="["+t+"]["+r+"]*",o=new RegExp("^"+n+"$"),i=function(u,c){const l=[];let s=c.exec(u);for(;s;){const f=[];f.startIndex=c.lastIndex-s[0].length;const h=s.length;for(let x=0;x<h;x++)f.push(s[x]);l.push(f),s=c.exec(u)}return l},a=function(u){const c=o.exec(u);return!(c===null||typeof c>"u")};e.isExist=function(u){return typeof u<"u"},e.isEmptyObject=function(u){return Object.keys(u).length===0},e.merge=function(u,c,l){if(c){const s=Object.keys(c),f=s.length;for(let h=0;h<f;h++)l==="strict"?u[s[h]]=[c[s[h]]]:u[s[h]]=c[s[h]]}},e.getValue=function(u){return e.isExist(u)?u:""},e.isName=a,e.getAllMatches=i,e.nameRegexp=n})(Wo)),Wo}var _c;function Oc(){if(_c)return Vo;_c=1;const e=Go(),t={allowBooleanAttributes:!1,unpairedTags:[]};Vo.validate=function(y,p){p=Object.assign({},t,p);const d=[];let g=!1,v=!1;y[0]==="\uFEFF"&&(y=y.substr(1));for(let A=0;A<y.length;A++)if(y[A]==="<"&&y[A+1]==="?"){if(A+=2,A=n(y,A),A.err)return A}else if(y[A]==="<"){let I=A;if(A++,y[A]==="!"){A=o(y,A);continue}else{let P=!1;y[A]==="/"&&(P=!0,A++);let O="";for(;A<y.length&&y[A]!==">"&&y[A]!==" "&&y[A]!==" "&&y[A]!==`
|
|
45
|
+
`&&y[A]!=="\r";A++)O+=y[A];if(O=O.trim(),O[O.length-1]==="/"&&(O=O.substring(0,O.length-1),A--),!m(O)){let L;return O.trim().length===0?L="Invalid space after '<'.":L="Tag '"+O+"' is an invalid name.",h("InvalidTag",L,E(y,A))}const j=u(y,A);if(j===!1)return h("InvalidAttr","Attributes for '"+O+"' have open quote.",E(y,A));let K=j.value;if(A=j.index,K[K.length-1]==="/"){const L=A-K.length;K=K.substring(0,K.length-1);const k=l(K,p);if(k===!0)g=!0;else return h(k.err.code,k.err.msg,E(y,L+k.err.line))}else if(P)if(j.tagClosed){if(K.trim().length>0)return h("InvalidTag","Closing tag '"+O+"' can't have attributes or invalid starting.",E(y,I));if(d.length===0)return h("InvalidTag","Closing tag '"+O+"' has not been opened.",E(y,I));{const L=d.pop();if(O!==L.tagName){let k=E(y,L.tagStartPos);return h("InvalidTag","Expected closing tag '"+L.tagName+"' (opened in line "+k.line+", col "+k.col+") instead of closing tag '"+O+"'.",E(y,I))}d.length==0&&(v=!0)}}else return h("InvalidTag","Closing tag '"+O+"' doesn't have proper closing.",E(y,A));else{const L=l(K,p);if(L!==!0)return h(L.err.code,L.err.msg,E(y,A-K.length+L.err.line));if(v===!0)return h("InvalidXml","Multiple possible root nodes found.",E(y,A));p.unpairedTags.indexOf(O)!==-1||d.push({tagName:O,tagStartPos:I}),g=!0}for(A++;A<y.length;A++)if(y[A]==="<")if(y[A+1]==="!"){A++,A=o(y,A);continue}else if(y[A+1]==="?"){if(A=n(y,++A),A.err)return A}else break;else if(y[A]==="&"){const L=f(y,A);if(L==-1)return h("InvalidChar","char '&' is not expected.",E(y,A));A=L}else if(v===!0&&!r(y[A]))return h("InvalidXml","Extra text at the end",E(y,A));y[A]==="<"&&A--}}else{if(r(y[A]))continue;return h("InvalidChar","char '"+y[A]+"' is not expected.",E(y,A))}if(g){if(d.length==1)return h("InvalidTag","Unclosed tag '"+d[0].tagName+"'.",E(y,d[0].tagStartPos));if(d.length>0)return h("InvalidXml","Invalid '"+JSON.stringify(d.map(A=>A.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return h("InvalidXml","Start tag expected.",1);return!0};function r(y){return y===" "||y===" "||y===`
|
|
46
|
+
`||y==="\r"}function n(y,p){const d=p;for(;p<y.length;p++)if(y[p]=="?"||y[p]==" "){const g=y.substr(d,p-d);if(p>5&&g==="xml")return h("InvalidXml","XML declaration allowed only at the start of the document.",E(y,p));if(y[p]=="?"&&y[p+1]==">"){p++;break}else continue}return p}function o(y,p){if(y.length>p+5&&y[p+1]==="-"&&y[p+2]==="-"){for(p+=3;p<y.length;p++)if(y[p]==="-"&&y[p+1]==="-"&&y[p+2]===">"){p+=2;break}}else if(y.length>p+8&&y[p+1]==="D"&&y[p+2]==="O"&&y[p+3]==="C"&&y[p+4]==="T"&&y[p+5]==="Y"&&y[p+6]==="P"&&y[p+7]==="E"){let d=1;for(p+=8;p<y.length;p++)if(y[p]==="<")d++;else if(y[p]===">"&&(d--,d===0))break}else if(y.length>p+9&&y[p+1]==="["&&y[p+2]==="C"&&y[p+3]==="D"&&y[p+4]==="A"&&y[p+5]==="T"&&y[p+6]==="A"&&y[p+7]==="["){for(p+=8;p<y.length;p++)if(y[p]==="]"&&y[p+1]==="]"&&y[p+2]===">"){p+=2;break}}return p}const i='"',a="'";function u(y,p){let d="",g="",v=!1;for(;p<y.length;p++){if(y[p]===i||y[p]===a)g===""?g=y[p]:g!==y[p]||(g="");else if(y[p]===">"&&g===""){v=!0;break}d+=y[p]}return g!==""?!1:{value:d,index:p,tagClosed:v}}const c=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function l(y,p){const d=e.getAllMatches(y,c),g={};for(let v=0;v<d.length;v++){if(d[v][1].length===0)return h("InvalidAttr","Attribute '"+d[v][2]+"' has no space in starting.",T(d[v]));if(d[v][3]!==void 0&&d[v][4]===void 0)return h("InvalidAttr","Attribute '"+d[v][2]+"' is without value.",T(d[v]));if(d[v][3]===void 0&&!p.allowBooleanAttributes)return h("InvalidAttr","boolean attribute '"+d[v][2]+"' is not allowed.",T(d[v]));const A=d[v][2];if(!x(A))return h("InvalidAttr","Attribute '"+A+"' is an invalid name.",T(d[v]));if(!g.hasOwnProperty(A))g[A]=1;else return h("InvalidAttr","Attribute '"+A+"' is repeated.",T(d[v]))}return!0}function s(y,p){let d=/\d/;for(y[p]==="x"&&(p++,d=/[\da-fA-F]/);p<y.length;p++){if(y[p]===";")return p;if(!y[p].match(d))break}return-1}function f(y,p){if(p++,y[p]===";")return-1;if(y[p]==="#")return p++,s(y,p);let d=0;for(;p<y.length;p++,d++)if(!(y[p].match(/\w/)&&d<20)){if(y[p]===";")break;return-1}return p}function h(y,p,d){return{err:{code:y,msg:p,line:d.line||d,col:d.col}}}function x(y){return e.isName(y)}function m(y){return e.isName(y)}function E(y,p){const d=y.substring(0,p).split(/\r?\n/);return{line:d.length,col:d[d.length-1].length+1}}function T(y){return y.startIndex+y[1].length}return Vo}var ln={},Nc;function Mm(){if(Nc)return ln;Nc=1;const e={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(r,n){return n},attributeValueProcessor:function(r,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(r,n,o){return r}},t=function(r){return Object.assign({},e,r)};return ln.buildOptions=t,ln.defaultOptions=e,ln}var Ko,Rc;function Dm(){if(Rc)return Ko;Rc=1;class e{constructor(r){this.tagname=r,this.child=[],this[":@"]={}}add(r,n){r==="__proto__"&&(r="#__proto__"),this.child.push({[r]:n})}addChild(r){r.tagname==="__proto__"&&(r.tagname="#__proto__"),r[":@"]&&Object.keys(r[":@"]).length>0?this.child.push({[r.tagname]:r.child,":@":r[":@"]}):this.child.push({[r.tagname]:r.child})}}return Ko=e,Ko}var zo,Ic;function $m(){if(Ic)return zo;Ic=1;const e=Go();function t(l,s){const f={};if(l[s+3]==="O"&&l[s+4]==="C"&&l[s+5]==="T"&&l[s+6]==="Y"&&l[s+7]==="P"&&l[s+8]==="E"){s=s+9;let h=1,x=!1,m=!1,E="";for(;s<l.length;s++)if(l[s]==="<"&&!m){if(x&&o(l,s)){s+=7;let T,y;[T,y,s]=r(l,s+1),y.indexOf("&")===-1&&(f[c(T)]={regx:RegExp(`&${T};`,"g"),val:y})}else if(x&&i(l,s))s+=8;else if(x&&a(l,s))s+=8;else if(x&&u(l,s))s+=9;else if(n)m=!0;else throw new Error("Invalid DOCTYPE");h++,E=""}else if(l[s]===">"){if(m?l[s-1]==="-"&&l[s-2]==="-"&&(m=!1,h--):h--,h===0)break}else l[s]==="["?x=!0:E+=l[s];if(h!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:f,i:s}}function r(l,s){let f="";for(;s<l.length&&l[s]!=="'"&&l[s]!=='"';s++)f+=l[s];if(f=f.trim(),f.indexOf(" ")!==-1)throw new Error("External entites are not supported");const h=l[s++];let x="";for(;s<l.length&&l[s]!==h;s++)x+=l[s];return[f,x,s]}function n(l,s){return l[s+1]==="!"&&l[s+2]==="-"&&l[s+3]==="-"}function o(l,s){return l[s+1]==="!"&&l[s+2]==="E"&&l[s+3]==="N"&&l[s+4]==="T"&&l[s+5]==="I"&&l[s+6]==="T"&&l[s+7]==="Y"}function i(l,s){return l[s+1]==="!"&&l[s+2]==="E"&&l[s+3]==="L"&&l[s+4]==="E"&&l[s+5]==="M"&&l[s+6]==="E"&&l[s+7]==="N"&&l[s+8]==="T"}function a(l,s){return l[s+1]==="!"&&l[s+2]==="A"&&l[s+3]==="T"&&l[s+4]==="T"&&l[s+5]==="L"&&l[s+6]==="I"&&l[s+7]==="S"&&l[s+8]==="T"}function u(l,s){return l[s+1]==="!"&&l[s+2]==="N"&&l[s+3]==="O"&&l[s+4]==="T"&&l[s+5]==="A"&&l[s+6]==="T"&&l[s+7]==="I"&&l[s+8]==="O"&&l[s+9]==="N"}function c(l){if(e.isName(l))return l;throw new Error(`Invalid entity name ${l}`)}return zo=t,zo}var Xo,Pc;function qm(){if(Pc)return Xo;Pc=1;const e=/^[-+]?0x[a-fA-F0-9]+$/,t=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,r={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function n(a,u={}){if(u=Object.assign({},r,u),!a||typeof a!="string")return a;let c=a.trim();if(u.skipLike!==void 0&&u.skipLike.test(c))return a;if(a==="0")return 0;if(u.hex&&e.test(c))return i(c,16);if(c.search(/[eE]/)!==-1){const l=c.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(l){if(u.leadingZeros)c=(l[1]||"")+l[3];else if(!(l[2]==="0"&&l[3][0]==="."))return a;return u.eNotation?Number(c):a}else return a}else{const l=t.exec(c);if(l){const s=l[1],f=l[2];let h=o(l[3]);if(!u.leadingZeros&&f.length>0&&s&&c[2]!==".")return a;if(!u.leadingZeros&&f.length>0&&!s&&c[1]!==".")return a;if(u.leadingZeros&&f===a)return 0;{const x=Number(c),m=""+x;return m.search(/[eE]/)!==-1?u.eNotation?x:a:c.indexOf(".")!==-1?m==="0"&&h===""||m===h||s&&m==="-"+h?x:a:f?h===m||s+h===m?x:a:c===m||c===s+m?x:a}}else return a}}function o(a){return a&&a.indexOf(".")!==-1&&(a=a.replace(/0+$/,""),a==="."?a="0":a[0]==="."?a="0"+a:a[a.length-1]==="."&&(a=a.substr(0,a.length-1))),a}function i(a,u){if(parseInt)return parseInt(a,u);if(Number.parseInt)return Number.parseInt(a,u);if(window&&window.parseInt)return window.parseInt(a,u);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}return Xo=n,Xo}var Yo,Fc;function Cc(){if(Fc)return Yo;Fc=1;function e(t){return typeof t=="function"?t:Array.isArray(t)?r=>{for(const n of t)if(typeof n=="string"&&r===n||n instanceof RegExp&&n.test(r))return!0}:()=>!1}return Yo=e,Yo}var Jo,Bc;function Hm(){if(Bc)return Jo;Bc=1;const e=Go(),t=Dm(),r=$m(),n=qm(),o=Cc();class i{constructor(A){this.options=A,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(I,P)=>String.fromCharCode(Number.parseInt(P,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(I,P)=>String.fromCharCode(Number.parseInt(P,16))}},this.addExternalEntities=a,this.parseXml=f,this.parseTextData=u,this.resolveNameSpace=c,this.buildAttributesMap=s,this.isItStopNode=E,this.replaceEntitiesValue=x,this.readStopNodeData=d,this.saveTextToParentTag=m,this.addChild=h,this.ignoreAttributesFn=o(this.options.ignoreAttributes)}}function a(v){const A=Object.keys(v);for(let I=0;I<A.length;I++){const P=A[I];this.lastEntities[P]={regex:new RegExp("&"+P+";","g"),val:v[P]}}}function u(v,A,I,P,O,j,K){if(v!==void 0&&(this.options.trimValues&&!P&&(v=v.trim()),v.length>0)){K||(v=this.replaceEntitiesValue(v));const L=this.options.tagValueProcessor(A,v,I,O,j);return L==null?v:typeof L!=typeof v||L!==v?L:this.options.trimValues?g(v,this.options.parseTagValue,this.options.numberParseOptions):v.trim()===v?g(v,this.options.parseTagValue,this.options.numberParseOptions):v}}function c(v){if(this.options.removeNSPrefix){const A=v.split(":"),I=v.charAt(0)==="/"?"/":"";if(A[0]==="xmlns")return"";A.length===2&&(v=I+A[1])}return v}const l=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function s(v,A,I){if(this.options.ignoreAttributes!==!0&&typeof v=="string"){const P=e.getAllMatches(v,l),O=P.length,j={};for(let K=0;K<O;K++){const L=this.resolveNameSpace(P[K][1]);if(this.ignoreAttributesFn(L,A))continue;let k=P[K][4],re=this.options.attributeNamePrefix+L;if(L.length)if(this.options.transformAttributeName&&(re=this.options.transformAttributeName(re)),re==="__proto__"&&(re="#__proto__"),k!==void 0){this.options.trimValues&&(k=k.trim()),k=this.replaceEntitiesValue(k);const ee=this.options.attributeValueProcessor(L,k,A);ee==null?j[re]=k:typeof ee!=typeof k||ee!==k?j[re]=ee:j[re]=g(k,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(j[re]=!0)}if(!Object.keys(j).length)return;if(this.options.attributesGroupName){const K={};return K[this.options.attributesGroupName]=j,K}return j}}const f=function(v){v=v.replace(/\r\n?/g,`
|
|
47
|
+
`);const A=new t("!xml");let I=A,P="",O="";for(let j=0;j<v.length;j++)if(v[j]==="<")if(v[j+1]==="/"){const L=y(v,">",j,"Closing Tag is not closed.");let k=v.substring(j+2,L).trim();if(this.options.removeNSPrefix){const ue=k.indexOf(":");ue!==-1&&(k=k.substr(ue+1))}this.options.transformTagName&&(k=this.options.transformTagName(k)),I&&(P=this.saveTextToParentTag(P,I,O));const re=O.substring(O.lastIndexOf(".")+1);if(k&&this.options.unpairedTags.indexOf(k)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${k}>`);let ee=0;re&&this.options.unpairedTags.indexOf(re)!==-1?(ee=O.lastIndexOf(".",O.lastIndexOf(".")-1),this.tagsNodeStack.pop()):ee=O.lastIndexOf("."),O=O.substring(0,ee),I=this.tagsNodeStack.pop(),P="",j=L}else if(v[j+1]==="?"){let L=p(v,j,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(P=this.saveTextToParentTag(P,I,O),!(this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags)){const k=new t(L.tagName);k.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent&&(k[":@"]=this.buildAttributesMap(L.tagExp,O,L.tagName)),this.addChild(I,k,O)}j=L.closeIndex+1}else if(v.substr(j+1,3)==="!--"){const L=y(v,"-->",j+4,"Comment is not closed.");if(this.options.commentPropName){const k=v.substring(j+4,L-2);P=this.saveTextToParentTag(P,I,O),I.add(this.options.commentPropName,[{[this.options.textNodeName]:k}])}j=L}else if(v.substr(j+1,2)==="!D"){const L=r(v,j);this.docTypeEntities=L.entities,j=L.i}else if(v.substr(j+1,2)==="!["){const L=y(v,"]]>",j,"CDATA is not closed.")-2,k=v.substring(j+9,L);P=this.saveTextToParentTag(P,I,O);let re=this.parseTextData(k,I.tagname,O,!0,!1,!0,!0);re==null&&(re=""),this.options.cdataPropName?I.add(this.options.cdataPropName,[{[this.options.textNodeName]:k}]):I.add(this.options.textNodeName,re),j=L+2}else{let L=p(v,j,this.options.removeNSPrefix),k=L.tagName;const re=L.rawTagName;let ee=L.tagExp,ue=L.attrExpPresent,le=L.closeIndex;this.options.transformTagName&&(k=this.options.transformTagName(k)),I&&P&&I.tagname!=="!xml"&&(P=this.saveTextToParentTag(P,I,O,!1));const de=I;if(de&&this.options.unpairedTags.indexOf(de.tagname)!==-1&&(I=this.tagsNodeStack.pop(),O=O.substring(0,O.lastIndexOf("."))),k!==A.tagname&&(O+=O?"."+k:k),this.isItStopNode(this.options.stopNodes,O,k)){let fe="";if(ee.length>0&&ee.lastIndexOf("/")===ee.length-1)k[k.length-1]==="/"?(k=k.substr(0,k.length-1),O=O.substr(0,O.length-1),ee=k):ee=ee.substr(0,ee.length-1),j=L.closeIndex;else if(this.options.unpairedTags.indexOf(k)!==-1)j=L.closeIndex;else{const pe=this.readStopNodeData(v,re,le+1);if(!pe)throw new Error(`Unexpected end of ${re}`);j=pe.i,fe=pe.tagContent}const be=new t(k);k!==ee&&ue&&(be[":@"]=this.buildAttributesMap(ee,O,k)),fe&&(fe=this.parseTextData(fe,k,O,!0,ue,!0,!0)),O=O.substr(0,O.lastIndexOf(".")),be.add(this.options.textNodeName,fe),this.addChild(I,be,O)}else{if(ee.length>0&&ee.lastIndexOf("/")===ee.length-1){k[k.length-1]==="/"?(k=k.substr(0,k.length-1),O=O.substr(0,O.length-1),ee=k):ee=ee.substr(0,ee.length-1),this.options.transformTagName&&(k=this.options.transformTagName(k));const fe=new t(k);k!==ee&&ue&&(fe[":@"]=this.buildAttributesMap(ee,O,k)),this.addChild(I,fe,O),O=O.substr(0,O.lastIndexOf("."))}else{const fe=new t(k);this.tagsNodeStack.push(I),k!==ee&&ue&&(fe[":@"]=this.buildAttributesMap(ee,O,k)),this.addChild(I,fe,O),I=fe}P="",j=le}}else P+=v[j];return A.child};function h(v,A,I){const P=this.options.updateTag(A.tagname,I,A[":@"]);P===!1||(typeof P=="string"&&(A.tagname=P),v.addChild(A))}const x=function(v){if(this.options.processEntities){for(let A in this.docTypeEntities){const I=this.docTypeEntities[A];v=v.replace(I.regx,I.val)}for(let A in this.lastEntities){const I=this.lastEntities[A];v=v.replace(I.regex,I.val)}if(this.options.htmlEntities)for(let A in this.htmlEntities){const I=this.htmlEntities[A];v=v.replace(I.regex,I.val)}v=v.replace(this.ampEntity.regex,this.ampEntity.val)}return v};function m(v,A,I,P){return v&&(P===void 0&&(P=A.child.length===0),v=this.parseTextData(v,A.tagname,I,!1,A[":@"]?Object.keys(A[":@"]).length!==0:!1,P),v!==void 0&&v!==""&&A.add(this.options.textNodeName,v),v=""),v}function E(v,A,I){const P="*."+I;for(const O in v){const j=v[O];if(P===j||A===j)return!0}return!1}function T(v,A,I=">"){let P,O="";for(let j=A;j<v.length;j++){let K=v[j];if(P)K===P&&(P="");else if(K==='"'||K==="'")P=K;else if(K===I[0])if(I[1]){if(v[j+1]===I[1])return{data:O,index:j}}else return{data:O,index:j};else K===" "&&(K=" ");O+=K}}function y(v,A,I,P){const O=v.indexOf(A,I);if(O===-1)throw new Error(P);return O+A.length-1}function p(v,A,I,P=">"){const O=T(v,A+1,P);if(!O)return;let j=O.data;const K=O.index,L=j.search(/\s/);let k=j,re=!0;L!==-1&&(k=j.substring(0,L),j=j.substring(L+1).trimStart());const ee=k;if(I){const ue=k.indexOf(":");ue!==-1&&(k=k.substr(ue+1),re=k!==O.data.substr(ue+1))}return{tagName:k,tagExp:j,closeIndex:K,attrExpPresent:re,rawTagName:ee}}function d(v,A,I){const P=I;let O=1;for(;I<v.length;I++)if(v[I]==="<")if(v[I+1]==="/"){const j=y(v,">",I,`${A} is not closed`);if(v.substring(I+2,j).trim()===A&&(O--,O===0))return{tagContent:v.substring(P,I),i:j};I=j}else if(v[I+1]==="?")I=y(v,"?>",I+1,"StopNode is not closed.");else if(v.substr(I+1,3)==="!--")I=y(v,"-->",I+3,"StopNode is not closed.");else if(v.substr(I+1,2)==="![")I=y(v,"]]>",I,"StopNode is not closed.")-2;else{const j=p(v,I,">");j&&((j&&j.tagName)===A&&j.tagExp[j.tagExp.length-1]!=="/"&&O++,I=j.closeIndex)}}function g(v,A,I){if(A&&typeof v=="string"){const P=v.trim();return P==="true"?!0:P==="false"?!1:n(v,I)}else return e.isExist(v)?v:""}return Jo=i,Jo}var Zo={},Lc;function Vm(){if(Lc)return Zo;Lc=1;function e(i,a){return t(i,a)}function t(i,a,u){let c;const l={};for(let s=0;s<i.length;s++){const f=i[s],h=r(f);let x="";if(u===void 0?x=h:x=u+"."+h,h===a.textNodeName)c===void 0?c=f[h]:c+=""+f[h];else{if(h===void 0)continue;if(f[h]){let m=t(f[h],a,x);const E=o(m,a);f[":@"]?n(m,f[":@"],x,a):Object.keys(m).length===1&&m[a.textNodeName]!==void 0&&!a.alwaysCreateTextNode?m=m[a.textNodeName]:Object.keys(m).length===0&&(a.alwaysCreateTextNode?m[a.textNodeName]="":m=""),l[h]!==void 0&&l.hasOwnProperty(h)?(Array.isArray(l[h])||(l[h]=[l[h]]),l[h].push(m)):a.isArray(h,x,E)?l[h]=[m]:l[h]=m}}}return typeof c=="string"?c.length>0&&(l[a.textNodeName]=c):c!==void 0&&(l[a.textNodeName]=c),l}function r(i){const a=Object.keys(i);for(let u=0;u<a.length;u++){const c=a[u];if(c!==":@")return c}}function n(i,a,u,c){if(a){const l=Object.keys(a),s=l.length;for(let f=0;f<s;f++){const h=l[f];c.isArray(h,u+"."+h,!0,!0)?i[h]=[a[h]]:i[h]=a[h]}}}function o(i,a){const{textNodeName:u}=a,c=Object.keys(i).length;return!!(c===0||c===1&&(i[u]||typeof i[u]=="boolean"||i[u]===0))}return Zo.prettify=e,Zo}var Qo,Uc;function Wm(){if(Uc)return Qo;Uc=1;const{buildOptions:e}=Mm(),t=Hm(),{prettify:r}=Vm(),n=Oc();class o{constructor(a){this.externalEntities={},this.options=e(a)}parse(a,u){if(typeof a!="string")if(a.toString)a=a.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(u){u===!0&&(u={});const s=n.validate(a,u);if(s!==!0)throw Error(`${s.err.msg}:${s.err.line}:${s.err.col}`)}const c=new t(this.options);c.addExternalEntities(this.externalEntities);const l=c.parseXml(a);return this.options.preserveOrder||l===void 0?l:r(l,this.options)}addEntity(a,u){if(u.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(a.indexOf("&")!==-1||a.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(u==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[a]=u}}return Qo=o,Qo}var es,jc;function Gm(){if(jc)return es;jc=1;const e=`
|
|
48
|
+
`;function t(u,c){let l="";return c.format&&c.indentBy.length>0&&(l=e),r(u,c,"",l)}function r(u,c,l,s){let f="",h=!1;for(let x=0;x<u.length;x++){const m=u[x],E=n(m);if(E===void 0)continue;let T="";if(l.length===0?T=E:T=`${l}.${E}`,E===c.textNodeName){let v=m[E];i(T,c)||(v=c.tagValueProcessor(E,v),v=a(v,c)),h&&(f+=s),f+=v,h=!1;continue}else if(E===c.cdataPropName){h&&(f+=s),f+=`<![CDATA[${m[E][0][c.textNodeName]}]]>`,h=!1;continue}else if(E===c.commentPropName){f+=s+`<!--${m[E][0][c.textNodeName]}-->`,h=!0;continue}else if(E[0]==="?"){const v=o(m[":@"],c),A=E==="?xml"?"":s;let I=m[E][0][c.textNodeName];I=I.length!==0?" "+I:"",f+=A+`<${E}${I}${v}?>`,h=!0;continue}let y=s;y!==""&&(y+=c.indentBy);const p=o(m[":@"],c),d=s+`<${E}${p}`,g=r(m[E],c,T,y);c.unpairedTags.indexOf(E)!==-1?c.suppressUnpairedNode?f+=d+">":f+=d+"/>":(!g||g.length===0)&&c.suppressEmptyNode?f+=d+"/>":g&&g.endsWith(">")?f+=d+`>${g}${s}</${E}>`:(f+=d+">",g&&s!==""&&(g.includes("/>")||g.includes("</"))?f+=s+c.indentBy+g+s:f+=g,f+=`</${E}>`),h=!0}return f}function n(u){const c=Object.keys(u);for(let l=0;l<c.length;l++){const s=c[l];if(u.hasOwnProperty(s)&&s!==":@")return s}}function o(u,c){let l="";if(u&&!c.ignoreAttributes)for(let s in u){if(!u.hasOwnProperty(s))continue;let f=c.attributeValueProcessor(s,u[s]);f=a(f,c),f===!0&&c.suppressBooleanAttributes?l+=` ${s.substr(c.attributeNamePrefix.length)}`:l+=` ${s.substr(c.attributeNamePrefix.length)}="${f}"`}return l}function i(u,c){u=u.substr(0,u.length-c.textNodeName.length-1);let l=u.substr(u.lastIndexOf(".")+1);for(let s in c.stopNodes)if(c.stopNodes[s]===u||c.stopNodes[s]==="*."+l)return!0;return!1}function a(u,c){if(u&&u.length>0&&c.processEntities)for(let l=0;l<c.entities.length;l++){const s=c.entities[l];u=u.replace(s.regex,s.val)}return u}return es=t,es}var ts,kc;function Km(){if(kc)return ts;kc=1;const e=Gm(),t=Cc(),r={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(u,c){return c},attributeValueProcessor:function(u,c){return c},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function n(u){this.options=Object.assign({},r,u),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=t(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=a),this.processTextOrObjNode=o,this.options.format?(this.indentate=i,this.tagEndChar=`>
|
|
49
49
|
`,this.newLine=`
|
|
50
|
-
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}n.prototype.build=function(u){return this.options.preserveOrder?e(u,this.options):(Array.isArray(u)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(u={[this.options.arrayNodeName]:u}),this.j2x(u,0,[]).val)},n.prototype.j2x=function(u,c,l){let s="",f="";const h=l.join(".");for(let E in u)if(Object.prototype.hasOwnProperty.call(u,E))if(typeof u[E]>"u")this.isAttribute(E)&&(f+="");else if(u[E]===null)this.isAttribute(E)||E===this.options.cdataPropName?f+="":E[0]==="?"?f+=this.indentate(c)+"<"+E+"?"+this.tagEndChar:f+=this.indentate(c)+"<"+E+"/"+this.tagEndChar;else if(u[E]instanceof Date)f+=this.buildTextValNode(u[E],E,"",c);else if(typeof u[E]!="object"){const m=this.isAttribute(E);if(m&&!this.ignoreAttributesFn(m,h))s+=this.buildAttrPairStr(m,""+u[E]);else if(!m)if(E===this.options.textNodeName){let x=this.options.tagValueProcessor(E,""+u[E]);f+=this.replaceEntitiesValue(x)}else f+=this.buildTextValNode(u[E],E,"",c)}else if(Array.isArray(u[E])){const m=u[E].length;let x="",T="";for(let y=0;y<m;y++){const p=u[E][y];if(!(typeof p>"u"))if(p===null)E[0]==="?"?f+=this.indentate(c)+"<"+E+"?"+this.tagEndChar:f+=this.indentate(c)+"<"+E+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){const d=this.j2x(p,c+1,l.concat(E));x+=d.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(T+=d.attrStr)}else x+=this.processTextOrObjNode(p,E,c,l);else if(this.options.oneListGroup){let d=this.options.tagValueProcessor(E,p);d=this.replaceEntitiesValue(d),x+=d}else x+=this.buildTextValNode(p,E,"",c)}this.options.oneListGroup&&(x=this.buildObjectNode(x,E,T,c)),f+=x}else if(this.options.attributesGroupName&&E===this.options.attributesGroupName){const m=Object.keys(u[E]),x=m.length;for(let T=0;T<x;T++)s+=this.buildAttrPairStr(m[T],""+u[E][m[T]])}else f+=this.processTextOrObjNode(u[E],E,c,l);return{attrStr:s,val:f}},n.prototype.buildAttrPairStr=function(u,c){return c=this.options.attributeValueProcessor(u,""+c),c=this.replaceEntitiesValue(c),this.options.suppressBooleanAttributes&&c==="true"?" "+u:" "+u+'="'+c+'"'};function o(u,c,l,s){const f=this.j2x(u,l+1,s.concat(c));return u[this.options.textNodeName]!==void 0&&Object.keys(u).length===1?this.buildTextValNode(u[this.options.textNodeName],c,f.attrStr,l):this.buildObjectNode(f.val,c,f.attrStr,l)}n.prototype.buildObjectNode=function(u,c,l,s){if(u==="")return c[0]==="?"?this.indentate(s)+"<"+c+l+"?"+this.tagEndChar:this.indentate(s)+"<"+c+l+this.closeTag(c)+this.tagEndChar;{let f="</"+c+this.tagEndChar,h="";return c[0]==="?"&&(h="?",f=""),(l||l==="")&&u.indexOf("<")===-1?this.indentate(s)+"<"+c+l+h+">"+u+f:this.options.commentPropName!==!1&&c===this.options.commentPropName&&h.length===0?this.indentate(s)+`<!--${u}-->`+this.newLine:this.indentate(s)+"<"+c+l+h+this.tagEndChar+u+this.indentate(s)+f}},n.prototype.closeTag=function(u){let c="";return this.options.unpairedTags.indexOf(u)!==-1?this.options.suppressUnpairedNode||(c="/"):this.options.suppressEmptyNode?c="/":c=`></${u}`,c},n.prototype.buildTextValNode=function(u,c,l,s){if(this.options.cdataPropName!==!1&&c===this.options.cdataPropName)return this.indentate(s)+`<![CDATA[${u}]]>`+this.newLine;if(this.options.commentPropName!==!1&&c===this.options.commentPropName)return this.indentate(s)+`<!--${u}-->`+this.newLine;if(c[0]==="?")return this.indentate(s)+"<"+c+l+"?"+this.tagEndChar;{let f=this.options.tagValueProcessor(c,u);return f=this.replaceEntitiesValue(f),f===""?this.indentate(s)+"<"+c+l+this.closeTag(c)+this.tagEndChar:this.indentate(s)+"<"+c+l+">"+f+"</"+c+this.tagEndChar}},n.prototype.replaceEntitiesValue=function(u){if(u&&u.length>0&&this.options.processEntities)for(let c=0;c<this.options.entities.length;c++){const l=this.options.entities[c];u=u.replace(l.regex,l.val)}return u};function i(u){return this.options.indentBy.repeat(u)}function a(u){return u.startsWith(this.options.attributeNamePrefix)&&u!==this.options.textNodeName?u.substr(this.attrPrefixLen):!1}return es=n,es}var ts,Dc;function Ym(){if(Dc)return ts;Dc=1;const e=Nc(),t=Km(),r=Xm();return ts={XMLParser:t,XMLValidator:e,XMLBuilder:r},ts}var rs=Ym();const ns=(e,t)=>Object.fromEntries(Object.entries(e).map(([r,n])=>t.includes(r)?[r,n||""]:[Bt.DavNamespace.includes(r)?`d:${r}`:`oc:${r}`,n||""])),$c=(e=[],{pattern:t,filterRules:r,limit:n=0,extraProps:o=[]})=>{let i="d:propfind";t&&(i="oc:search-files"),r&&(i="oc:filter-files");const a=e.reduce((s,f)=>Object.assign(s,{[f]:null}),{}),u=ns(a,o),c={[i]:{"d:prop":u,"@@xmlns:d":"DAV:","@@xmlns:oc":"http://owncloud.org/ns",...t&&{"oc:search":{"oc:pattern":t,"oc:limit":n}},...r&&{"oc:filter-rules":ns(r,[])}}};return new rs.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(c)},Jm=e=>{const t={"d:propertyupdate":{"d:set":{"d:prop":ns(e,[])},"@@xmlns:d":"DAV:","@@xmlns:oc":"http://owncloud.org/ns"}};return new rs.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(t)},Zm=e=>{const t={},r=e.get("tus-version");return r?(t.version=r.split(","),e.get("tus-extension")&&(t.extension=e.get("tus-extension").split(",")),e.get("tus-resumable")&&(t.resumable=e.get("tus-resumable")),e.get("tus-max-size")&&(t.maxSize=parseInt(e.get("tus-max-size"),10)),t):null},Qm=async e=>{const t=n=>{const o=decodeURIComponent(n);return n?.startsWith("/remote.php/dav/")?Ee(o.replace("/remote.php/dav/",""),{leadingSlash:!0,trailingSlash:!1}):o};return(await Bm(e)).multistatus.response.map(({href:n,propstat:o})=>{const i={...Lm(o.prop,t(n),!0),processing:o.status==="HTTP/1.1 425 TOO EARLY"};return i.props.name&&(i.props.name=i.props.name.toString()),i})},eb=e=>{const t=new rs.XMLParser,r={message:"Unknown error",errorCode:void 0};try{const n=t.parse(e);if(!n["d:error"])return r;if(n["d:error"]["s:message"]){const o=n["d:error"]["s:message"];typeof o=="string"&&(r.message=o)}if(n["d:error"]["s:errorcode"]){const o=n["d:error"]["s:errorcode"];typeof o=="string"&&(r.errorCode=o)}}catch{return r}return r};class tb{client;davPath;headers;extraProps;constructor({baseUrl:t,headers:r}){this.davPath=Ee(t,"remote.php/dav"),this.client=Cm(this.davPath,{}),this.headers=r,this.extraProps=[]}mkcol(t,r={}){return this.request(t,{method:vt.mkcol,...r})}async propfind(t,{depth:r=1,properties:n=[],headers:o={},...i}={}){const a={...o,Depth:r.toString()},{body:u,result:c}=await this.request(t,{method:vt.propfind,data:$c(n,{extraProps:this.extraProps}),headers:a,...i});return u?.length&&(u[0].tusSupport=Zm(c.headers)),u}async report(t,{pattern:r="",filterRules:n=null,limit:o=30,properties:i,...a}={}){const{body:u,result:c}=await this.request(t,{method:vt.report,data:$c(i,{pattern:r,filterRules:n,limit:o,extraProps:this.extraProps}),...a});return{results:u,range:c.headers.get("content-range")}}copy(t,r,{overwrite:n=!1,headers:o={},...i}={}){const a=Ee(this.davPath,Ur(r));return this.request(t,{method:vt.copy,headers:{...o,Destination:a,overwrite:n?"T":"F"},...i})}move(t,r,{overwrite:n=!1,headers:o={},...i}={}){const a=Ee(this.davPath,Ur(r));return this.request(t,{method:vt.move,headers:{...o,Destination:a,overwrite:n?"T":"F"},...i})}put(t,r,{headers:n={},onUploadProgress:o,previousEntityTag:i,overwrite:a,...u}={}){const c={...n};return i?c["If-Match"]=i:a||(c["If-None-Match"]="*"),this.request(t,{method:vt.put,data:r,headers:c,onUploadProgress:o,...u})}delete(t,r={}){return this.request(t,{method:vt.delete,...r})}propPatch(t,r,n={}){const o=Jm(r);return this.request(t,{method:vt.proppatch,data:o,...n})}getFileUrl(t){return Ee(this.davPath,Ur(t))}buildHeaders(t={}){return{"Content-Type":"application/xml; charset=utf-8","X-Requested-With":"XMLHttpRequest","X-Request-ID":Dm(),...this.headers&&{...this.headers()},...t}}async request(t,r){const n=Ee(this.davPath,Ur(t),{leadingSlash:!0}),o={...r,url:n,headers:this.buildHeaders(r.headers||{})};try{const i=await this.client.customRequest("",o);let a;if(i.status===207){const u=await i.text();a=await Qm(u)}return{body:a,status:i.status,result:i}}catch(i){const{response:a}=i,u=await a.text(),c=eb(u);throw new qh(c.message,c.errorCode,a,a.status)}}}const rb=(e,t)=>({async listFileVersions(r,n={}){const[o,...i]=await e.propfind(Ee("meta",r,"v",{leadingSlash:!0}),n);return i.map(a=>zt(a,e.extraProps))}}),nb=(e,t)=>({setFavorite(r,{path:n},o,i={}){const a={[se.IsFavorite]:o?"true":"false"};return e.propPatch(Ee(r.webDavPath,n),a,i)}}),ib=(e,t)=>({listFavoriteFiles({davProperties:r=Bt.Default,username:n="",...o}={}){return e.report(Ee("files",n),{properties:r,filterRules:{favorite:1},...o})}}),ob=(e,t)=>{const r=ke.create();t&&r.interceptors.request.use(k=>(Object.assign(k.headers,t()),k));const n={axiosClient:r,baseUrl:e},o=new tb({baseUrl:e,headers:t}),i=k=>{o.extraProps.push(k)},a=gy(o),{getPathForFileId:u}=a,c=ay(o,a),{listFiles:l}=c,s=iy(c),{getFileInfo:f}=s,{createFolder:h}=ry(o,s),E=ny(o,n),{getFileContents:m}=E,{putFileContents:x}=ly(o,s),{getFileUrl:T,revokeUrl:y}=oy(o,E,n),{getPublicFileUrl:p}=sy(o),{copyFiles:d}=ty(o),{moveFiles:g}=uy(o),{deleteFile:v}=cy(o),{restoreFile:A}=fy(o),{listFileVersions:P}=rb(o),{restoreFileVersion:I}=hy(o),{clearTrashBin:O}=dy(o),{search:j}=py(o),{listFavoriteFiles:K}=ib(o),{setFavorite:L}=nb(o);return{copyFiles:d,createFolder:h,deleteFile:v,restoreFile:A,restoreFileVersion:I,getFileContents:m,getFileInfo:f,getFileUrl:T,getPublicFileUrl:p,getPathForFileId:u,listFiles:l,listFileVersions:P,moveFiles:g,putFileContents:x,revokeUrl:y,clearTrashBin:O,search:j,listFavoriteFiles:K,setFavorite:L,registerExtraProp:i}};var qc=(e=>(e[e.COPY=0]="COPY",e[e.MOVE=1]="MOVE",e))(qc||{});let xr;self.onmessage=async e=>{const{topic:t,data:r}=JSON.parse(e.data);if(t==="tokenUpdate"&&xr){xr.Authorization?.toString().startsWith("Bearer")&&(xr.Authorization=r.accessToken);return}const{baseUrl:n,headers:o,transferData:i}=r;xr=o;const a=ob(n,()=>xr),u=[],c=[],l=new Jc({concurrency:4}),s=E=>a.copyFiles(E.sourceSpace,E.resource,E.targetSpace,{path:E.path},{overwrite:E.overwrite}),f=E=>a.moveFiles(E.sourceSpace,E.resource,E.targetSpace,{path:E.path},{overwrite:E.overwrite}),h=i.map(E=>l.add(async()=>{const m=E.resource;try{E.transferType===qc.COPY?(await s(E),m.id=void 0,m.fileId=void 0):await f(E),m.path=Tr.join(E.targetFolder.path,m.name),m.webDavPath=Tr.join(E.targetFolder.webDavPath,m.name),u.push(m)}catch(x){console.error(x),c.push({resourceName:m.name,message:x.message,statusCode:x.statusCode,xReqId:x.response.headers?.get("x-request-id")})}}));await Promise.allSettled(h),postMessage(JSON.stringify({successful:u,failed:c}))}})();
|
|
50
|
+
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}n.prototype.build=function(u){return this.options.preserveOrder?e(u,this.options):(Array.isArray(u)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(u={[this.options.arrayNodeName]:u}),this.j2x(u,0,[]).val)},n.prototype.j2x=function(u,c,l){let s="",f="";const h=l.join(".");for(let x in u)if(Object.prototype.hasOwnProperty.call(u,x))if(typeof u[x]>"u")this.isAttribute(x)&&(f+="");else if(u[x]===null)this.isAttribute(x)||x===this.options.cdataPropName?f+="":x[0]==="?"?f+=this.indentate(c)+"<"+x+"?"+this.tagEndChar:f+=this.indentate(c)+"<"+x+"/"+this.tagEndChar;else if(u[x]instanceof Date)f+=this.buildTextValNode(u[x],x,"",c);else if(typeof u[x]!="object"){const m=this.isAttribute(x);if(m&&!this.ignoreAttributesFn(m,h))s+=this.buildAttrPairStr(m,""+u[x]);else if(!m)if(x===this.options.textNodeName){let E=this.options.tagValueProcessor(x,""+u[x]);f+=this.replaceEntitiesValue(E)}else f+=this.buildTextValNode(u[x],x,"",c)}else if(Array.isArray(u[x])){const m=u[x].length;let E="",T="";for(let y=0;y<m;y++){const p=u[x][y];if(!(typeof p>"u"))if(p===null)x[0]==="?"?f+=this.indentate(c)+"<"+x+"?"+this.tagEndChar:f+=this.indentate(c)+"<"+x+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){const d=this.j2x(p,c+1,l.concat(x));E+=d.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(T+=d.attrStr)}else E+=this.processTextOrObjNode(p,x,c,l);else if(this.options.oneListGroup){let d=this.options.tagValueProcessor(x,p);d=this.replaceEntitiesValue(d),E+=d}else E+=this.buildTextValNode(p,x,"",c)}this.options.oneListGroup&&(E=this.buildObjectNode(E,x,T,c)),f+=E}else if(this.options.attributesGroupName&&x===this.options.attributesGroupName){const m=Object.keys(u[x]),E=m.length;for(let T=0;T<E;T++)s+=this.buildAttrPairStr(m[T],""+u[x][m[T]])}else f+=this.processTextOrObjNode(u[x],x,c,l);return{attrStr:s,val:f}},n.prototype.buildAttrPairStr=function(u,c){return c=this.options.attributeValueProcessor(u,""+c),c=this.replaceEntitiesValue(c),this.options.suppressBooleanAttributes&&c==="true"?" "+u:" "+u+'="'+c+'"'};function o(u,c,l,s){const f=this.j2x(u,l+1,s.concat(c));return u[this.options.textNodeName]!==void 0&&Object.keys(u).length===1?this.buildTextValNode(u[this.options.textNodeName],c,f.attrStr,l):this.buildObjectNode(f.val,c,f.attrStr,l)}n.prototype.buildObjectNode=function(u,c,l,s){if(u==="")return c[0]==="?"?this.indentate(s)+"<"+c+l+"?"+this.tagEndChar:this.indentate(s)+"<"+c+l+this.closeTag(c)+this.tagEndChar;{let f="</"+c+this.tagEndChar,h="";return c[0]==="?"&&(h="?",f=""),(l||l==="")&&u.indexOf("<")===-1?this.indentate(s)+"<"+c+l+h+">"+u+f:this.options.commentPropName!==!1&&c===this.options.commentPropName&&h.length===0?this.indentate(s)+`<!--${u}-->`+this.newLine:this.indentate(s)+"<"+c+l+h+this.tagEndChar+u+this.indentate(s)+f}},n.prototype.closeTag=function(u){let c="";return this.options.unpairedTags.indexOf(u)!==-1?this.options.suppressUnpairedNode||(c="/"):this.options.suppressEmptyNode?c="/":c=`></${u}`,c},n.prototype.buildTextValNode=function(u,c,l,s){if(this.options.cdataPropName!==!1&&c===this.options.cdataPropName)return this.indentate(s)+`<![CDATA[${u}]]>`+this.newLine;if(this.options.commentPropName!==!1&&c===this.options.commentPropName)return this.indentate(s)+`<!--${u}-->`+this.newLine;if(c[0]==="?")return this.indentate(s)+"<"+c+l+"?"+this.tagEndChar;{let f=this.options.tagValueProcessor(c,u);return f=this.replaceEntitiesValue(f),f===""?this.indentate(s)+"<"+c+l+this.closeTag(c)+this.tagEndChar:this.indentate(s)+"<"+c+l+">"+f+"</"+c+this.tagEndChar}},n.prototype.replaceEntitiesValue=function(u){if(u&&u.length>0&&this.options.processEntities)for(let c=0;c<this.options.entities.length;c++){const l=this.options.entities[c];u=u.replace(l.regex,l.val)}return u};function i(u){return this.options.indentBy.repeat(u)}function a(u){return u.startsWith(this.options.attributeNamePrefix)&&u!==this.options.textNodeName?u.substr(this.attrPrefixLen):!1}return ts=n,ts}var rs,Mc;function zm(){if(Mc)return rs;Mc=1;const e=Oc(),t=Wm(),r=Km();return rs={XMLParser:t,XMLValidator:e,XMLBuilder:r},rs}var ns=zm();const is=(e,t)=>Object.fromEntries(Object.entries(e).map(([r,n])=>t.includes(r)?[r,n||""]:[Bt.DavNamespace.includes(r)?`d:${r}`:`oc:${r}`,n||""])),Dc=(e=[],{pattern:t,filterRules:r,limit:n=0,extraProps:o=[]})=>{let i="d:propfind";t&&(i="oc:search-files"),r&&(i="oc:filter-files");const a=e.reduce((s,f)=>Object.assign(s,{[f]:null}),{}),u=is(a,o),c={[i]:{"d:prop":u,"@@xmlns:d":"DAV:","@@xmlns:oc":"http://owncloud.org/ns",...t&&{"oc:search":{"oc:pattern":t,"oc:limit":n}},...r&&{"oc:filter-rules":is(r,[])}}};return new ns.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(c)},Xm=e=>{const t={"d:propertyupdate":{"d:set":{"d:prop":is(e,[])},"@@xmlns:d":"DAV:","@@xmlns:oc":"http://owncloud.org/ns"}};return new ns.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(t)},Ym=e=>{const t={},r=e.get("tus-version");return r?(t.version=r.split(","),e.get("tus-extension")&&(t.extension=e.get("tus-extension").split(",")),e.get("tus-resumable")&&(t.resumable=e.get("tus-resumable")),e.get("tus-max-size")&&(t.maxSize=parseInt(e.get("tus-max-size"),10)),t):null},Jm=async e=>{const t=n=>{const o=decodeURIComponent(n);return n?.startsWith("/remote.php/dav/")?Ee(o.replace("/remote.php/dav/",""),{leadingSlash:!0,trailingSlash:!1}):o};return(await Fm(e)).multistatus.response.map(({href:n,propstat:o})=>{const i={...Cm(o.prop,t(n),!0),processing:o.status==="HTTP/1.1 425 TOO EARLY"};return i.props.name&&(i.props.name=i.props.name.toString()),i})},Zm=e=>{const t=new ns.XMLParser,r={message:"Unknown error",errorCode:void 0};try{const n=t.parse(e);if(!n["d:error"])return r;if(n["d:error"]["s:message"]){const o=n["d:error"]["s:message"];typeof o=="string"&&(r.message=o)}if(n["d:error"]["s:errorcode"]){const o=n["d:error"]["s:errorcode"];typeof o=="string"&&(r.errorCode=o)}}catch{return r}return r};class Qm{client;davPath;headers;extraProps;constructor({baseUrl:t,headers:r}){this.davPath=Ee(t,"remote.php/dav"),this.client=Pm(this.davPath,{}),this.headers=r,this.extraProps=[]}mkcol(t,r={}){return this.request(t,{method:vt.mkcol,...r})}async propfind(t,{depth:r=1,properties:n=[],headers:o={},...i}={}){const a={...o,Depth:r.toString()},{body:u,result:c}=await this.request(t,{method:vt.propfind,data:Dc(n,{extraProps:this.extraProps}),headers:a,...i});return u?.length&&(u[0].tusSupport=Ym(c.headers)),u}async report(t,{pattern:r="",filterRules:n=null,limit:o=30,properties:i,...a}={}){const{body:u,result:c}=await this.request(t,{method:vt.report,data:Dc(i,{pattern:r,filterRules:n,limit:o,extraProps:this.extraProps}),...a});return{results:u,range:c.headers.get("content-range")}}copy(t,r,{overwrite:n=!1,headers:o={},...i}={}){const a=Ee(this.davPath,Ur(r));return this.request(t,{method:vt.copy,headers:{...o,Destination:a,overwrite:n?"T":"F"},...i})}move(t,r,{overwrite:n=!1,headers:o={},...i}={}){const a=Ee(this.davPath,Ur(r));return this.request(t,{method:vt.move,headers:{...o,Destination:a,overwrite:n?"T":"F"},...i})}put(t,r,{headers:n={},onUploadProgress:o,previousEntityTag:i,overwrite:a,...u}={}){const c={...n};return i?c["If-Match"]=i:a||(c["If-None-Match"]="*"),this.request(t,{method:vt.put,data:r,headers:c,onUploadProgress:o,...u})}delete(t,r={}){return this.request(t,{method:vt.delete,...r})}propPatch(t,r,n={}){const o=Xm(r);return this.request(t,{method:vt.proppatch,data:o,...n})}getFileUrl(t){return Ee(this.davPath,Ur(t))}buildHeaders(t={}){return{"Content-Type":"application/xml; charset=utf-8","X-Requested-With":"XMLHttpRequest","X-Request-ID":km(),...this.headers&&{...this.headers()},...t}}async request(t,r){const n=Ee(this.davPath,Ur(t),{leadingSlash:!0}),o={...r,url:n,headers:this.buildHeaders(r.headers||{})};try{const i=await this.client.customRequest("",o);let a;if(i.status===207){const u=await i.text();a=await Jm(u)}return{body:a,status:i.status,result:i}}catch(i){const{response:a}=i,u=await a.text(),c=Zm(u);throw new Dh(c.message,c.errorCode,a,a.status)}}}const eb=(e,t)=>({async listFileVersions(r,n={}){const[o,...i]=await e.propfind(Ee("meta",r,"v",{leadingSlash:!0}),n);return i.map(a=>zt(a,e.extraProps))}}),tb=(e,t)=>({setFavorite(r,{path:n},o,i={}){const a={[se.IsFavorite]:o?"true":"false"};return e.propPatch(Ee(r.webDavPath,n),a,i)}}),rb=(e,t)=>({listFavoriteFiles({davProperties:r=Bt.Default,username:n="",...o}={}){return e.report(Ee("files",n),{properties:r,filterRules:{favorite:1},...o})}}),nb=(e,t)=>{const r=ke.create();t&&r.interceptors.request.use(k=>(Object.assign(k.headers,t()),k));const n={axiosClient:r,baseUrl:e},o=new Qm({baseUrl:e,headers:t}),i=k=>{o.extraProps.push(k)},a=dy(o),{getPathForFileId:u}=a,c=oy(o,a),{listFiles:l}=c,s=ry(c),{getFileInfo:f}=s,{createFolder:h}=ey(o,s),x=ty(o,n),{getFileContents:m}=x,{putFileContents:E}=ay(o,s),{getFileUrl:T,revokeUrl:y}=ny(o,x,n),{getPublicFileUrl:p}=iy(o),{copyFiles:d}=Q0(o),{moveFiles:g}=sy(o),{deleteFile:v}=uy(o),{restoreFile:A}=ly(o),{listFileVersions:I}=eb(o),{restoreFileVersion:P}=cy(o),{clearTrashBin:O}=fy(o),{search:j}=hy(o),{listFavoriteFiles:K}=rb(o),{setFavorite:L}=tb(o);return{copyFiles:d,createFolder:h,deleteFile:v,restoreFile:A,restoreFileVersion:P,getFileContents:m,getFileInfo:f,getFileUrl:T,getPublicFileUrl:p,getPathForFileId:u,listFiles:l,listFileVersions:I,moveFiles:g,putFileContents:E,revokeUrl:y,clearTrashBin:O,search:j,listFavoriteFiles:K,setFavorite:L,registerExtraProp:i}};var $c=(e=>(e[e.COPY=0]="COPY",e[e.MOVE=1]="MOVE",e))($c||{});let xr;self.onmessage=async e=>{const{topic:t,data:r}=JSON.parse(e.data);if(t==="tokenUpdate"&&xr){xr.Authorization?.toString().startsWith("Bearer")&&(xr.Authorization=r.accessToken);return}const{baseUrl:n,headers:o,transferData:i}=r;xr=o;const a=nb(n,()=>xr),u=[],c=[],l=new Xc({concurrency:4}),s=x=>a.copyFiles(x.sourceSpace,x.resource,x.targetSpace,{path:x.path},{overwrite:x.overwrite}),f=x=>a.moveFiles(x.sourceSpace,x.resource,x.targetSpace,{path:x.path},{overwrite:x.overwrite}),h=i.map(x=>l.add(async()=>{const m=x.resource;try{x.transferType===$c.COPY?(await s(x),m.id=void 0,m.fileId=void 0):await f(x),m.path=Tr.join(x.targetFolder.path,m.name),m.webDavPath=Tr.join(x.targetFolder.webDavPath,m.name),u.push(m)}catch(E){console.error(E),c.push({resourceName:m.name,message:E.message,statusCode:E.statusCode,xReqId:E.response.headers?.get("x-request-id")})}}));await Promise.allSettled(h),postMessage(JSON.stringify({successful:u,failed:c}))}})();
|