@gen-epix/ui-client-casedb 4.0.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/LICENSE +287 -0
- package/README.md +101 -0
- package/dist/@types/mui.d.ts +12 -0
- package/dist/@types/ui-casedb.d.ts +3 -0
- package/dist/@types/vite-env.d.ts +3 -0
- package/dist/_chunks/AddCasesToEventDialog.js +246 -0
- package/dist/_chunks/AddCasesToEventDialog.js.map +1 -0
- package/dist/_chunks/CaseContentForm.js +43 -0
- package/dist/_chunks/CaseContentForm.js.map +1 -0
- package/dist/_chunks/CaseDbDownloadUtil.js +2307 -0
- package/dist/_chunks/CaseDbDownloadUtil.js.map +1 -0
- package/dist/_chunks/CaseInfoDialog.js +509 -0
- package/dist/_chunks/CaseInfoDialog.js.map +1 -0
- package/dist/_chunks/CaseSetInfoDialog.js +479 -0
- package/dist/_chunks/CaseSetInfoDialog.js.map +1 -0
- package/dist/_chunks/CaseTypeInfoDialog.js +470 -0
- package/dist/_chunks/CaseTypeInfoDialog.js.map +1 -0
- package/dist/_chunks/CasesAlreadyInCaseSetWarning.js +123 -0
- package/dist/_chunks/CasesAlreadyInCaseSetWarning.js.map +1 -0
- package/dist/_chunks/CollectionIcon.js +18 -0
- package/dist/_chunks/CollectionIcon.js.map +1 -0
- package/dist/_chunks/CompletCaseTypeLoader.js +53 -0
- package/dist/_chunks/CompletCaseTypeLoader.js.map +1 -0
- package/dist/_chunks/CreateEventDialogSuccessNotificationMessage.js +18 -0
- package/dist/_chunks/CreateEventDialogSuccessNotificationMessage.js.map +1 -0
- package/dist/_chunks/CustomTabPanel.js +21 -0
- package/dist/_chunks/CustomTabPanel.js.map +1 -0
- package/dist/_chunks/Dashboard.js +2582 -0
- package/dist/_chunks/Dashboard.js.map +1 -0
- package/dist/_chunks/DashboardStoreLoader.js +67 -0
- package/dist/_chunks/DashboardStoreLoader.js.map +1 -0
- package/dist/_chunks/DataCollectionAccessInfo.js +66 -0
- package/dist/_chunks/DataCollectionAccessInfo.js.map +1 -0
- package/dist/_chunks/EpiCurveUtil.js +378 -0
- package/dist/_chunks/EpiCurveUtil.js.map +1 -0
- package/dist/_chunks/EpiCurveWidget.js +570 -0
- package/dist/_chunks/EpiCurveWidget.js.map +1 -0
- package/dist/_chunks/FilterUtil.js +1537 -0
- package/dist/_chunks/FilterUtil.js.map +1 -0
- package/dist/_chunks/FindSimilarCasesDialog.js +439 -0
- package/dist/_chunks/FindSimilarCasesDialog.js.map +1 -0
- package/dist/_chunks/FindSimilarCasesUtil.js +100 -0
- package/dist/_chunks/FindSimilarCasesUtil.js.map +1 -0
- package/dist/_chunks/HomePageTrends.js +276 -0
- package/dist/_chunks/HomePageTrends.js.map +1 -0
- package/dist/_chunks/LegendaItem.js +325 -0
- package/dist/_chunks/LegendaItem.js.map +1 -0
- package/dist/_chunks/LineListWidget.js +702 -0
- package/dist/_chunks/LineListWidget.js.map +1 -0
- package/dist/_chunks/PanelSeparator.js +1676 -0
- package/dist/_chunks/PanelSeparator.js.map +1 -0
- package/dist/_chunks/Upload.js +1506 -0
- package/dist/_chunks/Upload.js.map +1 -0
- package/dist/_chunks/UploadUtil.js +1976 -0
- package/dist/_chunks/UploadUtil.js.map +1 -0
- package/dist/_chunks/UserRightsDialog.js +152 -0
- package/dist/_chunks/UserRightsDialog.js.map +1 -0
- package/dist/_chunks/_MapCache.js +274 -0
- package/dist/_chunks/_MapCache.js.map +1 -0
- package/dist/_chunks/_Set.js +9 -0
- package/dist/_chunks/_Set.js.map +1 -0
- package/dist/_chunks/_arrayIncludesWith.js +42 -0
- package/dist/_chunks/_arrayIncludesWith.js.map +1 -0
- package/dist/_chunks/_baseClone.js +262 -0
- package/dist/_chunks/_baseClone.js.map +1 -0
- package/dist/_chunks/_baseFlatten.js +26 -0
- package/dist/_chunks/_baseFlatten.js.map +1 -0
- package/dist/_chunks/_baseGet.js +246 -0
- package/dist/_chunks/_baseGet.js.map +1 -0
- package/dist/_chunks/_baseIteratee.js +246 -0
- package/dist/_chunks/_baseIteratee.js.map +1 -0
- package/dist/_chunks/_cacheHas.js +29 -0
- package/dist/_chunks/_cacheHas.js.map +1 -0
- package/dist/_chunks/_defineProperty.js +15 -0
- package/dist/_chunks/_defineProperty.js.map +1 -0
- package/dist/_chunks/_setToArray.js +15 -0
- package/dist/_chunks/_setToArray.js.map +1 -0
- package/dist/_chunks/_setToString.js +64 -0
- package/dist/_chunks/_setToString.js.map +1 -0
- package/dist/_chunks/chunk-KS7C4IRE.js +1327 -0
- package/dist/_chunks/chunk-KS7C4IRE.js.map +1 -0
- package/dist/_chunks/cloneDeep.js +119 -0
- package/dist/_chunks/cloneDeep.js.map +1 -0
- package/dist/_chunks/dashboardStore.js +743 -0
- package/dist/_chunks/dashboardStore.js.map +1 -0
- package/dist/_chunks/eachYearOfInterval.js +104 -0
- package/dist/_chunks/eachYearOfInterval.js.map +1 -0
- package/dist/_chunks/esm.js +46335 -0
- package/dist/_chunks/esm.js.map +1 -0
- package/dist/_chunks/format.js +504 -0
- package/dist/_chunks/format.js.map +1 -0
- package/dist/_chunks/hasIn.js +34 -0
- package/dist/_chunks/hasIn.js.map +1 -0
- package/dist/_chunks/index.esm.js +1342 -0
- package/dist/_chunks/index.esm.js.map +1 -0
- package/dist/_chunks/index.module.js +72 -0
- package/dist/_chunks/index.module.js.map +1 -0
- package/dist/_chunks/intersection.js +58 -0
- package/dist/_chunks/intersection.js.map +1 -0
- package/dist/_chunks/isArguments.js +27 -0
- package/dist/_chunks/isArguments.js.map +1 -0
- package/dist/_chunks/isArray.js +9 -0
- package/dist/_chunks/isArray.js.map +1 -0
- package/dist/_chunks/isArrayLike.js +30 -0
- package/dist/_chunks/isArrayLike.js.map +1 -0
- package/dist/_chunks/isObjectLike.js +18 -0
- package/dist/_chunks/isObjectLike.js.map +1 -0
- package/dist/_chunks/isValid.js +14 -0
- package/dist/_chunks/isValid.js.map +1 -0
- package/dist/_chunks/last.js +13 -0
- package/dist/_chunks/last.js.map +1 -0
- package/dist/_chunks/noop.js +10 -0
- package/dist/_chunks/noop.js.map +1 -0
- package/dist/_chunks/omit.js +81 -0
- package/dist/_chunks/omit.js.map +1 -0
- package/dist/_chunks/parseISO.js +117 -0
- package/dist/_chunks/parseISO.js.map +1 -0
- package/dist/_chunks/protectedTokens.js +630 -0
- package/dist/_chunks/protectedTokens.js.map +1 -0
- package/dist/_chunks/react.js +11 -0
- package/dist/_chunks/react.js.map +1 -0
- package/dist/_chunks/round.js +64 -0
- package/dist/_chunks/round.js.map +1 -0
- package/dist/_chunks/shallow.js +31 -0
- package/dist/_chunks/shallow.js.map +1 -0
- package/dist/_chunks/sync.js +3796 -0
- package/dist/_chunks/sync.js.map +1 -0
- package/dist/_chunks/toDate.js +18 -0
- package/dist/_chunks/toDate.js.map +1 -0
- package/dist/_chunks/toString.js +31 -0
- package/dist/_chunks/toString.js.map +1 -0
- package/dist/_chunks/useUnit.js +30 -0
- package/dist/_chunks/useUnit.js.map +1 -0
- package/dist/_chunks/userProfileStoreContext.js +7 -0
- package/dist/_chunks/userProfileStoreContext.js.map +1 -0
- package/dist/_chunks/vanilla.js +20 -0
- package/dist/_chunks/vanilla.js.map +1 -0
- package/dist/_chunks/yup.js +73 -0
- package/dist/_chunks/yup.js.map +1 -0
- package/dist/classes/errors/UploadError.d.ts +5 -0
- package/dist/classes/errors/index.d.ts +1 -0
- package/dist/classes/errors/index.js +11 -0
- package/dist/classes/errors/index.js.map +1 -0
- package/dist/classes/filters/SelectionFilter.d.ts +11 -0
- package/dist/classes/filters/TreeFilter.d.ts +11 -0
- package/dist/classes/services/DataService/DataService.d.ts +13 -0
- package/dist/classes/services/DataService/index.d.ts +1 -0
- package/dist/classes/services/DataService/index.js +83 -0
- package/dist/classes/services/DataService/index.js.map +1 -0
- package/dist/classes/services/EventBusService/EventBusService.d.ts +49 -0
- package/dist/classes/services/EventBusService/index.d.ts +1 -0
- package/dist/classes/services/EventBusService/index.js +16 -0
- package/dist/classes/services/EventBusService/index.js.map +1 -0
- package/dist/classes/services/LineListService/LineListCaseSetMembersService/LineListCaseSetMembersService.d.ts +9 -0
- package/dist/classes/services/LineListService/LineListCaseSetMembersService/index.d.ts +1 -0
- package/dist/classes/services/LineListService/LineListCaseSetMembersService/index.js +27 -0
- package/dist/classes/services/LineListService/LineListCaseSetMembersService/index.js.map +1 -0
- package/dist/classes/services/LineListService/LineListIsOwnCaseService/LineListIsOwnCaseService.d.ts +9 -0
- package/dist/classes/services/LineListService/LineListIsOwnCaseService/index.d.ts +1 -0
- package/dist/classes/services/LineListService/LineListIsOwnCaseService/index.js +30 -0
- package/dist/classes/services/LineListService/LineListIsOwnCaseService/index.js.map +1 -0
- package/dist/classes/services/LineListService/LineListServiceAbstract/LineListServiceAbstract.d.ts +11 -0
- package/dist/classes/services/LineListService/LineListServiceAbstract/index.d.ts +1 -0
- package/dist/classes/services/LineListService/LineListServiceAbstract/index.js +55 -0
- package/dist/classes/services/LineListService/LineListServiceAbstract/index.js.map +1 -0
- package/dist/components/app/CaseDbApp/CaseDbApp.d.ts +1 -0
- package/dist/components/app/CaseDbApp/index.d.ts +1 -0
- package/dist/components/app/CaseDbApp/index.js +14 -0
- package/dist/components/app/CaseDbApp/index.js.map +1 -0
- package/dist/components/form/fields/ArrangementEditor/ArrangementEditor.d.ts +17 -0
- package/dist/components/form/fields/ArrangementEditor/index.d.ts +1 -0
- package/dist/components/form/fields/ArrangementEditor/index.js +130 -0
- package/dist/components/form/fields/ArrangementEditor/index.js.map +1 -0
- package/dist/components/ui/AddCasesToEventDialog/AddCasesToEventDialog.d.ts +10 -0
- package/dist/components/ui/AddCasesToEventDialog/AddCasesToEventDialogSuccessNotificationMessage.d.ts +6 -0
- package/dist/components/ui/AddCasesToEventDialog/index.d.ts +1 -0
- package/dist/components/ui/AddCasesToEventDialog/index.js +2 -0
- package/dist/components/ui/CaseContentForm/CaseContentForm.d.ts +10 -0
- package/dist/components/ui/CaseContentForm/index.d.ts +1 -0
- package/dist/components/ui/CaseContentForm/index.js +2 -0
- package/dist/components/ui/CaseContentFormDialog/CaseContentFormDialog.d.ts +9 -0
- package/dist/components/ui/CaseContentFormDialog/index.d.ts +1 -0
- package/dist/components/ui/CaseContentFormDialog/index.js +57 -0
- package/dist/components/ui/CaseContentFormDialog/index.js.map +1 -0
- package/dist/components/ui/CaseInfoDialog/CaseCaseSetInfo.d.ts +6 -0
- package/dist/components/ui/CaseInfoDialog/CaseContent.d.ts +6 -0
- package/dist/components/ui/CaseInfoDialog/CaseInfoDialog.d.ts +15 -0
- package/dist/components/ui/CaseInfoDialog/CaseInfoForm.d.ts +10 -0
- package/dist/components/ui/CaseInfoDialog/CaseSharingForm.d.ts +9 -0
- package/dist/components/ui/CaseInfoDialog/CaseSharingInfo.d.ts +3 -0
- package/dist/components/ui/CaseInfoDialog/ReadOnlyCaseContent.d.ts +6 -0
- package/dist/components/ui/CaseInfoDialog/index.d.ts +1 -0
- package/dist/components/ui/CaseInfoDialog/index.js +2 -0
- package/dist/components/ui/CaseSetInfoDialog/CaseSetContent.d.ts +6 -0
- package/dist/components/ui/CaseSetInfoDialog/CaseSetDescription.d.ts +6 -0
- package/dist/components/ui/CaseSetInfoDialog/CaseSetForm.d.ts +8 -0
- package/dist/components/ui/CaseSetInfoDialog/CaseSetInfoDialog.d.ts +10 -0
- package/dist/components/ui/CaseSetInfoDialog/CaseSetSharingForm.d.ts +10 -0
- package/dist/components/ui/CaseSetInfoDialog/CaseSetSharingInfo.d.ts +3 -0
- package/dist/components/ui/CaseSetInfoDialog/index.d.ts +1 -0
- package/dist/components/ui/CaseSetInfoDialog/index.js +2 -0
- package/dist/components/ui/CaseSummary/CaseSummary.d.ts +5 -0
- package/dist/components/ui/CaseSummary/index.d.ts +1 -0
- package/dist/components/ui/CaseSummary/index.js +92 -0
- package/dist/components/ui/CaseSummary/index.js.map +1 -0
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoAccessRights.d.ts +5 -0
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoColAccessRights.d.ts +4 -0
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoData.d.ts +5 -0
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialog.d.ts +7 -0
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialogContent.d.ts +3 -0
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialogWithLoader.d.ts +8 -0
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoRegions.d.ts +5 -0
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoTrees.d.ts +5 -0
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoValues.d.ts +5 -0
- package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoVariableDetails.d.ts +6 -0
- package/dist/components/ui/CaseTypeInfoDialog/index.d.ts +10 -0
- package/dist/components/ui/CaseTypeInfoDialog/index.js +2 -0
- package/dist/components/ui/CasesAlreadyInCaseSetWarning/CasesAlreadyInCaseSetWarning.d.ts +5 -0
- package/dist/components/ui/CasesAlreadyInCaseSetWarning/CasesAlreadyInCaseSetWarningCaseSetLink.d.ts +5 -0
- package/dist/components/ui/CasesAlreadyInCaseSetWarning/index.d.ts +1 -0
- package/dist/components/ui/CasesAlreadyInCaseSetWarning/index.js +2 -0
- package/dist/components/ui/CompletCaseTypeLoader/CompletCaseTypeLoader.d.ts +7 -0
- package/dist/components/ui/CompletCaseTypeLoader/index.d.ts +1 -0
- package/dist/components/ui/CompletCaseTypeLoader/index.js +2 -0
- package/dist/components/ui/CompletCaseTypeLoader/withEpiCompleteCaseTypeLoader.d.ts +4 -0
- package/dist/components/ui/ContextMenu/ContextMenu.d.ts +20 -0
- package/dist/components/ui/ContextMenu/index.d.ts +1 -0
- package/dist/components/ui/ContextMenu/index.js +96 -0
- package/dist/components/ui/ContextMenu/index.js.map +1 -0
- package/dist/components/ui/CreateEventDialog/CreateEventDialog.d.ts +10 -0
- package/dist/components/ui/CreateEventDialog/CreateEventDialogSuccessNotificationMessage.d.ts +6 -0
- package/dist/components/ui/CreateEventDialog/index.d.ts +1 -0
- package/dist/components/ui/CreateEventDialog/index.js +278 -0
- package/dist/components/ui/CreateEventDialog/index.js.map +1 -0
- package/dist/components/ui/CustomTabPanel/CustomTabPanel.d.ts +6 -0
- package/dist/components/ui/CustomTabPanel/index.d.ts +1 -0
- package/dist/components/ui/CustomTabPanel/index.js +2 -0
- package/dist/components/ui/Dashboard/Dashboard.d.ts +1 -0
- package/dist/components/ui/Dashboard/DashboardContent.d.ts +6 -0
- package/dist/components/ui/Dashboard/DashboardDownloadSidebarItem.d.ts +6 -0
- package/dist/components/ui/Dashboard/DashboardGeneralSettingsForm.d.ts +1 -0
- package/dist/components/ui/Dashboard/DashboardLayoutRenderer.d.ts +9 -0
- package/dist/components/ui/Dashboard/DashboardLayoutSettingsForm.d.ts +4 -0
- package/dist/components/ui/Dashboard/DashboardSearch.d.ts +1 -0
- package/dist/components/ui/Dashboard/DashboardSearchSettings.d.ts +10 -0
- package/dist/components/ui/Dashboard/DashboardSettingsSidebarItem.d.ts +8 -0
- package/dist/components/ui/Dashboard/DashboardWidget.d.ts +12 -0
- package/dist/components/ui/Dashboard/DashboardWidgetPlaceHolder.d.ts +1 -0
- package/dist/components/ui/Dashboard/DashboardWidgetSettingsForm.d.ts +4 -0
- package/dist/components/ui/Dashboard/DashboardZoneContext.d.ts +1 -0
- package/dist/components/ui/Dashboard/context/DashboardContext.d.ts +12 -0
- package/dist/components/ui/Dashboard/context/DashboardContextProvider.d.ts +6 -0
- package/dist/components/ui/Dashboard/index.d.ts +2 -0
- package/dist/components/ui/Dashboard/index.js +2 -0
- package/dist/components/ui/DashboardEditCases/DashboardEditCases.d.ts +6 -0
- package/dist/components/ui/DashboardEditCases/index.d.ts +1 -0
- package/dist/components/ui/DashboardEditCases/index.js +70 -0
- package/dist/components/ui/DashboardEditCases/index.js.map +1 -0
- package/dist/components/ui/DashboardStoreLoader/DashboardStoreLoader.d.ts +7 -0
- package/dist/components/ui/DashboardStoreLoader/DashboardStoreLoaderContent.d.ts +8 -0
- package/dist/components/ui/DashboardStoreLoader/index.d.ts +2 -0
- package/dist/components/ui/DashboardStoreLoader/index.js +2 -0
- package/dist/components/ui/DashboardStoreLoader/withEpiDashboardStore.d.ts +4 -0
- package/dist/components/ui/DataCollectionAccessInfo/DataCollectionAccessInfo.d.ts +1 -0
- package/dist/components/ui/DataCollectionAccessInfo/index.d.ts +1 -0
- package/dist/components/ui/DataCollectionAccessInfo/index.js +2 -0
- package/dist/components/ui/EpiCurveWidget/EpiCurveBarChart.d.ts +21 -0
- package/dist/components/ui/EpiCurveWidget/EpiCurveStackedAreaChart.d.ts +22 -0
- package/dist/components/ui/EpiCurveWidget/EpiCurveWidget.d.ts +2 -0
- package/dist/components/ui/EpiCurveWidget/index.d.ts +1 -0
- package/dist/components/ui/EpiCurveWidget/index.js +2 -0
- package/dist/components/ui/FileSelector/FileSelector.d.ts +7 -0
- package/dist/components/ui/FileSelector/index.d.ts +1 -0
- package/dist/components/ui/FileSelector/index.js +206 -0
- package/dist/components/ui/FileSelector/index.js.map +1 -0
- package/dist/components/ui/FindSimilarCasesDialog/FindSimilarCasesDialog.d.ts +11 -0
- package/dist/components/ui/FindSimilarCasesDialog/FindSimilarCasesDialogDateRangeChart.d.ts +11 -0
- package/dist/components/ui/FindSimilarCasesDialog/index.d.ts +1 -0
- package/dist/components/ui/FindSimilarCasesDialog/index.js +2 -0
- package/dist/components/ui/Grouping/Grouping.d.ts +1 -0
- package/dist/components/ui/Grouping/index.d.ts +1 -0
- package/dist/components/ui/Grouping/index.js +102 -0
- package/dist/components/ui/Grouping/index.js.map +1 -0
- package/dist/components/ui/HistogramWidget/HistogramWidget.d.ts +1 -0
- package/dist/components/ui/HistogramWidget/index.d.ts +1 -0
- package/dist/components/ui/HistogramWidget/index.js +333 -0
- package/dist/components/ui/HistogramWidget/index.js.map +1 -0
- package/dist/components/ui/HomePageTrends/HomePageTrendCard.d.ts +9 -0
- package/dist/components/ui/HomePageTrends/HomePageTrends.d.ts +4 -0
- package/dist/components/ui/HomePageTrends/index.d.ts +1 -0
- package/dist/components/ui/HomePageTrends/index.js +2 -0
- package/dist/components/ui/LegendaItem/LegendaItem.d.ts +10 -0
- package/dist/components/ui/LegendaItem/index.d.ts +1 -0
- package/dist/components/ui/LegendaItem/index.js +2 -0
- package/dist/components/ui/LineListWidget/LineListWidget.d.ts +1 -0
- package/dist/components/ui/LineListWidget/LineListWidgetIsInEventCell.d.ts +6 -0
- package/dist/components/ui/LineListWidget/LineListWidgetIsOwnCaseCell.d.ts +6 -0
- package/dist/components/ui/LineListWidget/LineListWidgetPrimaryMenu.d.ts +5 -0
- package/dist/components/ui/LineListWidget/LineListWidgetSecondaryMenu.d.ts +1 -0
- package/dist/components/ui/LineListWidget/LineListWidgetTitle.d.ts +1 -0
- package/dist/components/ui/LineListWidget/index.d.ts +1 -0
- package/dist/components/ui/LineListWidget/index.js +2 -0
- package/dist/components/ui/LineListWidget/useEpiLineListWidgetEmitDownloadOptions.d.ts +1 -0
- package/dist/components/ui/MapWidget/MapWidget.d.ts +1 -0
- package/dist/components/ui/MapWidget/index.d.ts +1 -0
- package/dist/components/ui/MapWidget/index.js +302 -0
- package/dist/components/ui/MapWidget/index.js.map +1 -0
- package/dist/components/ui/PanelSeparator/PanelSeparatorHorizontal.d.ts +2 -0
- package/dist/components/ui/PanelSeparator/PanelSeparatorVertical.d.ts +2 -0
- package/dist/components/ui/PanelSeparator/index.d.ts +2 -0
- package/dist/components/ui/PanelSeparator/index.js +2 -0
- package/dist/components/ui/RemoveCasesFromEventDialog/RemoveCasesFromEventDialog.d.ts +10 -0
- package/dist/components/ui/RemoveCasesFromEventDialog/index.d.ts +1 -0
- package/dist/components/ui/RemoveCasesFromEventDialog/index.js +111 -0
- package/dist/components/ui/RemoveCasesFromEventDialog/index.js.map +1 -0
- package/dist/components/ui/RemoveFindSimilarCasesResultDialog/RemoveFindSimilarCasesResultDialog.d.ts +9 -0
- package/dist/components/ui/SequenceDownloadDialog/SequenceDownloadDialog.d.ts +10 -0
- package/dist/components/ui/SequenceDownloadDialog/index.d.ts +1 -0
- package/dist/components/ui/SequenceDownloadDialog/index.js +89 -0
- package/dist/components/ui/SequenceDownloadDialog/index.js.map +1 -0
- package/dist/components/ui/TreeDescription/TreeDescription.d.ts +5 -0
- package/dist/components/ui/TreeDescription/index.d.ts +1 -0
- package/dist/components/ui/TreeDescription/index.js +40 -0
- package/dist/components/ui/TreeDescription/index.js.map +1 -0
- package/dist/components/ui/TreeWidget/TreeWidget.d.ts +1 -0
- package/dist/components/ui/TreeWidget/index.d.ts +1 -0
- package/dist/components/ui/TreeWidget/index.js +404 -0
- package/dist/components/ui/TreeWidget/index.js.map +1 -0
- package/dist/components/ui/Upload/Upload.d.ts +1 -0
- package/dist/components/ui/Upload/UploadCaseResultTable.d.ts +18 -0
- package/dist/components/ui/Upload/UploadCreateCases.d.ts +1 -0
- package/dist/components/ui/Upload/UploadEditColumnValuesDialog.d.ts +12 -0
- package/dist/components/ui/Upload/UploadMapColumns.d.ts +1 -0
- package/dist/components/ui/Upload/UploadMapSequences.d.ts +1 -0
- package/dist/components/ui/Upload/UploadNavigation.d.ts +10 -0
- package/dist/components/ui/Upload/UploadPreview.d.ts +4 -0
- package/dist/components/ui/Upload/UploadPreviewNavigation.d.ts +5 -0
- package/dist/components/ui/Upload/UploadSelectFile.d.ts +1 -0
- package/dist/components/ui/Upload/UploadSelectSequenceFiles.d.ts +1 -0
- package/dist/components/ui/Upload/index.d.ts +1 -0
- package/dist/components/ui/Upload/index.js +2 -0
- package/dist/components/ui/UserRightsDialog/UserRightsDialog.d.ts +9 -0
- package/dist/components/ui/UserRightsDialog/UserRightsDialogCaseAccessPolicy.d.ts +5 -0
- package/dist/components/ui/UserRightsDialog/index.d.ts +1 -0
- package/dist/components/ui/UserRightsDialog/index.js +2 -0
- package/dist/components/ui/UsersEffectiveRightsDetailsDialog/UsersEffectiveRightsDetailsDialog.d.ts +13 -0
- package/dist/components/ui/UsersEffectiveRightsDetailsDialog/index.d.ts +1 -0
- package/dist/components/ui/UsersEffectiveRightsDetailsDialog/index.js +373 -0
- package/dist/components/ui/UsersEffectiveRightsDetailsDialog/index.js.map +1 -0
- package/dist/components/ui/Warning/Warning.d.ts +4 -0
- package/dist/components/ui/Warning/index.d.ts +1 -0
- package/dist/components/ui/Warning/index.js +29 -0
- package/dist/components/ui/Warning/index.js.map +1 -0
- package/dist/components/ui/WidgetHeaderIconButton/WidgetHeaderIconButton.d.ts +5 -0
- package/dist/components/ui/WidgetHeaderIconButton/index.d.ts +1 -0
- package/dist/components/ui/WidgetHeaderIconButton/index.js +24 -0
- package/dist/components/ui/WidgetHeaderIconButton/index.js.map +1 -0
- package/dist/components/ui/WidgetMenu/WidgetMenu.d.ts +6 -0
- package/dist/components/ui/WidgetMenu/index.d.ts +1 -0
- package/dist/components/ui/WidgetMenu/index.js +26 -0
- package/dist/components/ui/WidgetMenu/index.js.map +1 -0
- package/dist/components/ui/WidgetUnavailable/WidgetUnavailable.d.ts +6 -0
- package/dist/components/ui/WidgetUnavailable/index.d.ts +1 -0
- package/dist/components/ui/WidgetUnavailable/index.js +18 -0
- package/dist/components/ui/WidgetUnavailable/index.js.map +1 -0
- package/dist/constants/dashboard.d.ts +9 -0
- package/dist/constants/dashboard.js +14 -0
- package/dist/constants/dashboard.js.map +1 -0
- package/dist/constants/query.d.ts +62 -0
- package/dist/constants/query.js +163 -0
- package/dist/constants/query.js.map +1 -0
- package/dist/context/caseAbac/CaseAbacContext.d.ts +14 -0
- package/dist/context/caseAbac/CaseAbacContextProvider.d.ts +6 -0
- package/dist/context/caseAbac/index.d.ts +3 -0
- package/dist/context/caseAbac/useCaseAbacContext.d.ts +2 -0
- package/dist/context/caseTypeAbac/CaseTypeAbacContext.d.ts +14 -0
- package/dist/context/caseTypeAbac/CaseTypeAbacContextProvider.d.ts +6 -0
- package/dist/context/caseTypeAbac/index.d.ts +3 -0
- package/dist/context/caseTypeAbac/useCaseTypeAbacContext.d.ts +2 -0
- package/dist/dataHooks/useAssemblyProtocolsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useAssemblyProtocolsQuery/index.js +21 -0
- package/dist/dataHooks/useAssemblyProtocolsQuery/index.js.map +1 -0
- package/dist/dataHooks/useAssemblyProtocolsQuery/useAssemblyProtocolsQuery.d.ts +6 -0
- package/dist/dataHooks/useCaseRightsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseRightsQuery/index.js +17 -0
- package/dist/dataHooks/useCaseRightsQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseRightsQuery/useCaseRightsQuery.d.ts +3 -0
- package/dist/dataHooks/useCaseSetCategoriesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseSetCategoriesQuery/index.js +22 -0
- package/dist/dataHooks/useCaseSetCategoriesQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseSetCategoriesQuery/useCaseSetCategoriesQuery.d.ts +6 -0
- package/dist/dataHooks/useCaseSetRightsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseSetRightsQuery/index.js +13 -0
- package/dist/dataHooks/useCaseSetRightsQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseSetRightsQuery/useCaseSetRightsQuery.d.ts +3 -0
- package/dist/dataHooks/useCaseSetStatsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseSetStatsQuery/index.js +19 -0
- package/dist/dataHooks/useCaseSetStatsQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseSetStatsQuery/useCaseSetStatsQuery.d.ts +5 -0
- package/dist/dataHooks/useCaseSetStatusesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseSetStatusesQuery/index.js +22 -0
- package/dist/dataHooks/useCaseSetStatusesQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseSetStatusesQuery/useCaseSetStatusesQuery.d.ts +6 -0
- package/dist/dataHooks/useCaseSetsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseSetsQuery/index.js +22 -0
- package/dist/dataHooks/useCaseSetsQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseSetsQuery/useCaseSetsQuery.d.ts +6 -0
- package/dist/dataHooks/useCaseTypeSetCategoriesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseTypeSetCategoriesQuery/index.js +22 -0
- package/dist/dataHooks/useCaseTypeSetCategoriesQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseTypeSetCategoriesQuery/useCaseTypeSetCategoriesQuery.d.ts +6 -0
- package/dist/dataHooks/useCaseTypeSetCategoryPurposeQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseTypeSetCategoryPurposeQuery/index.js +21 -0
- package/dist/dataHooks/useCaseTypeSetCategoryPurposeQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseTypeSetCategoryPurposeQuery/useCaseTypeSetCategoryPurposeQuery.d.ts +4 -0
- package/dist/dataHooks/useCaseTypeSetMembersQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseTypeSetMembersQuery/index.js +13 -0
- package/dist/dataHooks/useCaseTypeSetMembersQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseTypeSetMembersQuery/useCaseTypeSetMembersQuery.d.ts +3 -0
- package/dist/dataHooks/useCaseTypeSetsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseTypeSetsQuery/index.js +25 -0
- package/dist/dataHooks/useCaseTypeSetsQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseTypeSetsQuery/useCaseTypeSetsQuery.d.ts +7 -0
- package/dist/dataHooks/useCaseTypeStatsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseTypeStatsQuery/index.js +13 -0
- package/dist/dataHooks/useCaseTypeStatsQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseTypeStatsQuery/useCaseTypeStatsQuery.d.ts +3 -0
- package/dist/dataHooks/useCaseTypesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useCaseTypesQuery/index.js +24 -0
- package/dist/dataHooks/useCaseTypesQuery/index.js.map +1 -0
- package/dist/dataHooks/useCaseTypesQuery/useCaseTypesQuery.d.ts +9 -0
- package/dist/dataHooks/useColSetMembersQuery/index.d.ts +1 -0
- package/dist/dataHooks/useColSetMembersQuery/index.js +13 -0
- package/dist/dataHooks/useColSetMembersQuery/index.js.map +1 -0
- package/dist/dataHooks/useColSetMembersQuery/useColSetMembersQuery.d.ts +3 -0
- package/dist/dataHooks/useColSetsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useColSetsQuery/index.js +21 -0
- package/dist/dataHooks/useColSetsQuery/index.js.map +1 -0
- package/dist/dataHooks/useColSetsQuery/useColSetsQuery.d.ts +6 -0
- package/dist/dataHooks/useColTypesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useColTypesQuery/index.js +51 -0
- package/dist/dataHooks/useColTypesQuery/index.js.map +1 -0
- package/dist/dataHooks/useColTypesQuery/useColTypesQuery.d.ts +4 -0
- package/dist/dataHooks/useColsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useColsQuery/index.js +27 -0
- package/dist/dataHooks/useColsQuery/index.js.map +1 -0
- package/dist/dataHooks/useColsQuery/useColsQuery.d.ts +7 -0
- package/dist/dataHooks/useConceptQuery/index.d.ts +1 -0
- package/dist/dataHooks/useConceptQuery/index.js +26 -0
- package/dist/dataHooks/useConceptQuery/index.js.map +1 -0
- package/dist/dataHooks/useConceptQuery/useConceptQuery.d.ts +7 -0
- package/dist/dataHooks/useConceptRelationTypeQuery/index.d.ts +1 -0
- package/dist/dataHooks/useConceptRelationTypeQuery/index.js +15 -0
- package/dist/dataHooks/useConceptRelationTypeQuery/index.js.map +1 -0
- package/dist/dataHooks/useConceptRelationTypeQuery/useConceptRelationTypeQuery.d.ts +4 -0
- package/dist/dataHooks/useConceptSetTypeQuery/index.d.ts +1 -0
- package/dist/dataHooks/useConceptSetTypeQuery/index.js +22 -0
- package/dist/dataHooks/useConceptSetTypeQuery/index.js.map +1 -0
- package/dist/dataHooks/useConceptSetTypeQuery/useConceptSetTypeQuery.d.ts +4 -0
- package/dist/dataHooks/useConceptSetsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useConceptSetsQuery/index.js +21 -0
- package/dist/dataHooks/useConceptSetsQuery/index.js.map +1 -0
- package/dist/dataHooks/useConceptSetsQuery/useConceptSetsQuery.d.ts +6 -0
- package/dist/dataHooks/useDataCollectionSetMembersQuery/index.d.ts +1 -0
- package/dist/dataHooks/useDataCollectionSetMembersQuery/index.js +13 -0
- package/dist/dataHooks/useDataCollectionSetMembersQuery/index.js.map +1 -0
- package/dist/dataHooks/useDataCollectionSetMembersQuery/useDataCollectionSetMembersQuery.d.ts +3 -0
- package/dist/dataHooks/useDataCollectionsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useDataCollectionsQuery/index.js +22 -0
- package/dist/dataHooks/useDataCollectionsQuery/index.js.map +1 -0
- package/dist/dataHooks/useDataCollectionsQuery/useDataCollectionsQuery.d.ts +6 -0
- package/dist/dataHooks/useDimTypesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useDimTypesQuery/index.js +26 -0
- package/dist/dataHooks/useDimTypesQuery/index.js.map +1 -0
- package/dist/dataHooks/useDimTypesQuery/useDimTypesQuery.d.ts +4 -0
- package/dist/dataHooks/useDimsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useDimsQuery/index.js +26 -0
- package/dist/dataHooks/useDimsQuery/index.js.map +1 -0
- package/dist/dataHooks/useDimsQuery/useDimsQuery.d.ts +7 -0
- package/dist/dataHooks/useDiseasesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useDiseasesQuery/index.js +21 -0
- package/dist/dataHooks/useDiseasesQuery/index.js.map +1 -0
- package/dist/dataHooks/useDiseasesQuery/useDiseasesQuery.d.ts +6 -0
- package/dist/dataHooks/useEtiologicalAgentsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useEtiologicalAgentsQuery/index.js +21 -0
- package/dist/dataHooks/useEtiologicalAgentsQuery/index.js.map +1 -0
- package/dist/dataHooks/useEtiologicalAgentsQuery/useEtiologicalAgentsQuery.d.ts +6 -0
- package/dist/dataHooks/useGeneticDistanceProtocolsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useGeneticDistanceProtocolsQuery/index.js +18 -0
- package/dist/dataHooks/useGeneticDistanceProtocolsQuery/index.js.map +1 -0
- package/dist/dataHooks/useGeneticDistanceProtocolsQuery/useGeneticDistanceProtocolsQuery.d.ts +5 -0
- package/dist/dataHooks/useOrganizationAccessCasePoliciesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useOrganizationAccessCasePoliciesQuery/index.js +14 -0
- package/dist/dataHooks/useOrganizationAccessCasePoliciesQuery/index.js.map +1 -0
- package/dist/dataHooks/useOrganizationAccessCasePoliciesQuery/useOrganizationAccessCasePoliciesQuery.d.ts +3 -0
- package/dist/dataHooks/useOrganizationShareCasePoliciesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useOrganizationShareCasePoliciesQuery/index.js +14 -0
- package/dist/dataHooks/useOrganizationShareCasePoliciesQuery/index.js.map +1 -0
- package/dist/dataHooks/useOrganizationShareCasePoliciesQuery/useOrganizationShareCasePoliciesQuery.d.ts +3 -0
- package/dist/dataHooks/useRefColsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useRefColsQuery/index.js +22 -0
- package/dist/dataHooks/useRefColsQuery/index.js.map +1 -0
- package/dist/dataHooks/useRefColsQuery/useRefColsQuery.d.ts +6 -0
- package/dist/dataHooks/useRefColsValidationRulesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useRefColsValidationRulesQuery/index.js +13 -0
- package/dist/dataHooks/useRefColsValidationRulesQuery/index.js.map +1 -0
- package/dist/dataHooks/useRefColsValidationRulesQuery/useRefColsValidationRulesQuery.d.ts +3 -0
- package/dist/dataHooks/useRefDimsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useRefDimsQuery/index.js +22 -0
- package/dist/dataHooks/useRefDimsQuery/index.js.map +1 -0
- package/dist/dataHooks/useRefDimsQuery/useRefDimsQuery.d.ts +6 -0
- package/dist/dataHooks/useRegionQuery/index.d.ts +1 -0
- package/dist/dataHooks/useRegionQuery/index.js +25 -0
- package/dist/dataHooks/useRegionQuery/index.js.map +1 -0
- package/dist/dataHooks/useRegionQuery/useRegionQuery.d.ts +7 -0
- package/dist/dataHooks/useRegionRelationTypeQuery/index.d.ts +1 -0
- package/dist/dataHooks/useRegionRelationTypeQuery/index.js +20 -0
- package/dist/dataHooks/useRegionRelationTypeQuery/index.js.map +1 -0
- package/dist/dataHooks/useRegionRelationTypeQuery/useRegionRelationTypeQuery.d.ts +4 -0
- package/dist/dataHooks/useRegionSetsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useRegionSetsQuery/index.js +21 -0
- package/dist/dataHooks/useRegionSetsQuery/index.js.map +1 -0
- package/dist/dataHooks/useRegionSetsQuery/useRegionSetsQuery.d.ts +6 -0
- package/dist/dataHooks/useSequencingProtocolsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useSequencingProtocolsQuery/index.js +21 -0
- package/dist/dataHooks/useSequencingProtocolsQuery/index.js.map +1 -0
- package/dist/dataHooks/useSequencingProtocolsQuery/useSequencingProtocolsQuery.d.ts +6 -0
- package/dist/dataHooks/useTreeAlgorithmCodesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useTreeAlgorithmCodesQuery/index.js +42 -0
- package/dist/dataHooks/useTreeAlgorithmCodesQuery/index.js.map +1 -0
- package/dist/dataHooks/useTreeAlgorithmCodesQuery/useTreeAlgorithmCodesQuery.d.ts +4 -0
- package/dist/dataHooks/useUnitQuery/index.d.ts +1 -0
- package/dist/dataHooks/useUnitQuery/index.js +2 -0
- package/dist/dataHooks/useUnitQuery/useUnit.d.ts +4 -0
- package/dist/dataHooks/useUserAccessCasePoliciesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useUserAccessCasePoliciesQuery/index.js +14 -0
- package/dist/dataHooks/useUserAccessCasePoliciesQuery/index.js.map +1 -0
- package/dist/dataHooks/useUserAccessCasePoliciesQuery/useUserAccessCasePoliciesQuery.d.ts +3 -0
- package/dist/dataHooks/useUserEffectiveRightsQuery/index.d.ts +1 -0
- package/dist/dataHooks/useUserEffectiveRightsQuery/index.js +83 -0
- package/dist/dataHooks/useUserEffectiveRightsQuery/index.js.map +1 -0
- package/dist/dataHooks/useUserEffectiveRightsQuery/useUserEffectiveRightsQuery.d.ts +16 -0
- package/dist/dataHooks/useUserShareCasePoliciesQuery/index.d.ts +1 -0
- package/dist/dataHooks/useUserShareCasePoliciesQuery/index.js +14 -0
- package/dist/dataHooks/useUserShareCasePoliciesQuery/index.js.map +1 -0
- package/dist/dataHooks/useUserShareCasePoliciesQuery/useUserShareCasePoliciesQuery.d.ts +3 -0
- package/dist/hooks/useOrganizationCasePolicyNameFactory/index.d.ts +1 -0
- package/dist/hooks/useOrganizationCasePolicyNameFactory/index.js +25 -0
- package/dist/hooks/useOrganizationCasePolicyNameFactory/index.js.map +1 -0
- package/dist/hooks/useOrganizationCasePolicyNameFactory/useOrganizationCasePolicyNameFactory.d.ts +3 -0
- package/dist/hooks/useUserCasePolicyNameFactory/index.d.ts +1 -0
- package/dist/hooks/useUserCasePolicyNameFactory/index.js +28 -0
- package/dist/hooks/useUserCasePolicyNameFactory/index.js.map +1 -0
- package/dist/hooks/useUserCasePolicyNameFactory/useUserCasePolicyNameFactory.d.ts +3 -0
- package/dist/locale/en.json +676 -0
- package/dist/locale/nl.json +676 -0
- package/dist/models/caseAccess.d.ts +15 -0
- package/dist/models/caseAccess.js +0 -0
- package/dist/models/caseDb.d.ts +96 -0
- package/dist/models/caseDb.js +8 -0
- package/dist/models/caseDb.js.map +1 -0
- package/dist/models/config.d.ts +70 -0
- package/dist/models/config.js +0 -0
- package/dist/models/dashboard.d.ts +91 -0
- package/dist/models/dashboard.js +10 -0
- package/dist/models/dashboard.js.map +1 -0
- package/dist/models/stratification.d.ts +40 -0
- package/dist/models/stratification.js +12 -0
- package/dist/models/stratification.js.map +1 -0
- package/dist/models/theme.d.ts +17 -0
- package/dist/models/theme.js +0 -0
- package/dist/models/upload.d.ts +51 -0
- package/dist/models/upload.js +8 -0
- package/dist/models/upload.js.map +1 -0
- package/dist/pages/CaseDbUsersAdminPage/CaseDbUsersAdminPage.d.ts +1 -0
- package/dist/pages/CaseDbUsersAdminPage/index.d.ts +1 -0
- package/dist/pages/CaseDbUsersAdminPage/index.js +67 -0
- package/dist/pages/CaseDbUsersAdminPage/index.js.map +1 -0
- package/dist/pages/CaseSetCategoryAdminPage/CaseSetCategoryAdminPage.d.ts +1 -0
- package/dist/pages/CaseSetCategoryAdminPage/index.d.ts +1 -0
- package/dist/pages/CaseSetCategoryAdminPage/index.js +69 -0
- package/dist/pages/CaseSetCategoryAdminPage/index.js.map +1 -0
- package/dist/pages/CaseSetStatusAdminPage/CaseSetStatusAdminPage.d.ts +1 -0
- package/dist/pages/CaseSetStatusAdminPage/index.d.ts +1 -0
- package/dist/pages/CaseSetStatusAdminPage/index.js +69 -0
- package/dist/pages/CaseSetStatusAdminPage/index.js.map +1 -0
- package/dist/pages/CaseTypeSetCategoriesAdminPage/CaseTypeSetCategoriesAdminPage.d.ts +1 -0
- package/dist/pages/CaseTypeSetCategoriesAdminPage/index.d.ts +1 -0
- package/dist/pages/CaseTypeSetCategoriesAdminPage/index.js +92 -0
- package/dist/pages/CaseTypeSetCategoriesAdminPage/index.js.map +1 -0
- package/dist/pages/CaseTypeSetsAdminPage/CaseTypeSetsAdminPage.d.ts +1 -0
- package/dist/pages/CaseTypeSetsAdminPage/index.d.ts +1 -0
- package/dist/pages/CaseTypeSetsAdminPage/index.js +148 -0
- package/dist/pages/CaseTypeSetsAdminPage/index.js.map +1 -0
- package/dist/pages/CaseTypesAdminPage/CaseTypesAdminPage.d.ts +1 -0
- package/dist/pages/CaseTypesAdminPage/index.d.ts +1 -0
- package/dist/pages/CaseTypesAdminPage/index.js +288 -0
- package/dist/pages/CaseTypesAdminPage/index.js.map +1 -0
- package/dist/pages/CasesDetailPage/CasesDetailPage.d.ts +1 -0
- package/dist/pages/CasesDetailPage/index.d.ts +1 -0
- package/dist/pages/CasesDetailPage/index.js +41 -0
- package/dist/pages/CasesDetailPage/index.js.map +1 -0
- package/dist/pages/CasesPage/CasesPage.d.ts +1 -0
- package/dist/pages/CasesPage/index.d.ts +1 -0
- package/dist/pages/CasesPage/index.js +229 -0
- package/dist/pages/CasesPage/index.js.map +1 -0
- package/dist/pages/ColSetsAdminPage/ColSetsAdminPage.d.ts +1 -0
- package/dist/pages/ColSetsAdminPage/index.d.ts +1 -0
- package/dist/pages/ColSetsAdminPage/index.js +109 -0
- package/dist/pages/ColSetsAdminPage/index.js.map +1 -0
- package/dist/pages/ColsAdminPage/ColsAdminPage.d.ts +1 -0
- package/dist/pages/ColsAdminPage/index.d.ts +1 -0
- package/dist/pages/ColsAdminPage/index.js +315 -0
- package/dist/pages/ColsAdminPage/index.js.map +1 -0
- package/dist/pages/ConceptRelationsAdminPage/ConceptRelationsAdminPage.d.ts +1 -0
- package/dist/pages/ConceptRelationsAdminPage/index.d.ts +1 -0
- package/dist/pages/ConceptRelationsAdminPage/index.js +103 -0
- package/dist/pages/ConceptRelationsAdminPage/index.js.map +1 -0
- package/dist/pages/ConceptSetsAdminPage/ConceptSetsAdminPage.d.ts +1 -0
- package/dist/pages/ConceptSetsAdminPage/index.d.ts +1 -0
- package/dist/pages/ConceptSetsAdminPage/index.js +112 -0
- package/dist/pages/ConceptSetsAdminPage/index.js.map +1 -0
- package/dist/pages/ConceptsAdminPage/ConceptsAdminPage.d.ts +1 -0
- package/dist/pages/ConceptsAdminPage/index.d.ts +1 -0
- package/dist/pages/ConceptsAdminPage/index.js +94 -0
- package/dist/pages/ConceptsAdminPage/index.js.map +1 -0
- package/dist/pages/DataCollectionSetsAdminPage/DataCollectionSetsAdminPage.d.ts +1 -0
- package/dist/pages/DataCollectionSetsAdminPage/index.d.ts +1 -0
- package/dist/pages/DataCollectionSetsAdminPage/index.js +99 -0
- package/dist/pages/DataCollectionSetsAdminPage/index.js.map +1 -0
- package/dist/pages/DataCollectionVisualizationPage/DataCollectionVisualizationPage.d.ts +1 -0
- package/dist/pages/DataCollectionVisualizationPage/index.d.ts +1 -0
- package/dist/pages/DataCollectionVisualizationPage/index.js +494 -0
- package/dist/pages/DataCollectionVisualizationPage/index.js.map +1 -0
- package/dist/pages/DataCollectionsAdminPage/DataCollectionsAdminPage.d.ts +1 -0
- package/dist/pages/DataCollectionsAdminPage/index.d.ts +1 -0
- package/dist/pages/DataCollectionsAdminPage/index.js +54 -0
- package/dist/pages/DataCollectionsAdminPage/index.js.map +1 -0
- package/dist/pages/DimsAdminPage/DimsAdminPage.d.ts +1 -0
- package/dist/pages/DimsAdminPage/index.d.ts +1 -0
- package/dist/pages/DimsAdminPage/index.js +146 -0
- package/dist/pages/DimsAdminPage/index.js.map +1 -0
- package/dist/pages/DiseasesAdminPage/DiseasesAdminPage.d.ts +1 -0
- package/dist/pages/DiseasesAdminPage/index.d.ts +1 -0
- package/dist/pages/DiseasesAdminPage/index.js +57 -0
- package/dist/pages/DiseasesAdminPage/index.js.map +1 -0
- package/dist/pages/EtiologicalAgentsAdminPage/EtiologicalAgentsAdminPage.d.ts +1 -0
- package/dist/pages/EtiologicalAgentsAdminPage/index.d.ts +1 -0
- package/dist/pages/EtiologicalAgentsAdminPage/index.js +54 -0
- package/dist/pages/EtiologicalAgentsAdminPage/index.js.map +1 -0
- package/dist/pages/EtiologiesAdminPage/EtiologiesAdminPage.d.ts +1 -0
- package/dist/pages/EtiologiesAdminPage/index.d.ts +1 -0
- package/dist/pages/EtiologiesAdminPage/index.js +76 -0
- package/dist/pages/EtiologiesAdminPage/index.js.map +1 -0
- package/dist/pages/EventsDetailPage/EventsDetailPage.d.ts +1 -0
- package/dist/pages/EventsDetailPage/index.d.ts +1 -0
- package/dist/pages/EventsDetailPage/index.js +56 -0
- package/dist/pages/EventsDetailPage/index.js.map +1 -0
- package/dist/pages/EventsPage/EventsPage.d.ts +1 -0
- package/dist/pages/EventsPage/index.d.ts +1 -0
- package/dist/pages/EventsPage/index.js +221 -0
- package/dist/pages/EventsPage/index.js.map +1 -0
- package/dist/pages/HomePage/HomePage.d.ts +1 -0
- package/dist/pages/HomePage/index.d.ts +1 -0
- package/dist/pages/HomePage/index.js +35 -0
- package/dist/pages/HomePage/index.js.map +1 -0
- package/dist/pages/OrganizationAccessCasePoliciesAdminPage/OrganizationAccessCasePoliciesAdminPage.d.ts +1 -0
- package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.d.ts +1 -0
- package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js +216 -0
- package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js.map +1 -0
- package/dist/pages/OrganizationShareCasePoliciesAdminPage/OrganizationShareCasePoliciesAdminPage.d.ts +1 -0
- package/dist/pages/OrganizationShareCasePoliciesAdminPage/index.d.ts +1 -0
- package/dist/pages/OrganizationShareCasePoliciesAdminPage/index.js +170 -0
- package/dist/pages/OrganizationShareCasePoliciesAdminPage/index.js.map +1 -0
- package/dist/pages/RefColsAdminPage/RefColsAdminPage.d.ts +1 -0
- package/dist/pages/RefColsAdminPage/index.d.ts +1 -0
- package/dist/pages/RefColsAdminPage/index.js +302 -0
- package/dist/pages/RefColsAdminPage/index.js.map +1 -0
- package/dist/pages/RefDimsAdminPage/RefDimsAdminPage.d.ts +1 -0
- package/dist/pages/RefDimsAdminPage/index.d.ts +1 -0
- package/dist/pages/RefDimsAdminPage/index.js +110 -0
- package/dist/pages/RefDimsAdminPage/index.js.map +1 -0
- package/dist/pages/RegionRelationsAdminPage/RegionRelationsAdminPage.d.ts +1 -0
- package/dist/pages/RegionRelationsAdminPage/index.d.ts +1 -0
- package/dist/pages/RegionRelationsAdminPage/index.js +102 -0
- package/dist/pages/RegionRelationsAdminPage/index.js.map +1 -0
- package/dist/pages/RegionSetShapesAdminPage/RegionSetShapesAdminPage.d.ts +1 -0
- package/dist/pages/RegionSetShapesAdminPage/index.d.ts +1 -0
- package/dist/pages/RegionSetShapesAdminPage/index.js +73 -0
- package/dist/pages/RegionSetShapesAdminPage/index.js.map +1 -0
- package/dist/pages/RegionSetsAdminPage/RegionSetsAdminPage.d.ts +1 -0
- package/dist/pages/RegionSetsAdminPage/index.d.ts +1 -0
- package/dist/pages/RegionSetsAdminPage/index.js +101 -0
- package/dist/pages/RegionSetsAdminPage/index.js.map +1 -0
- package/dist/pages/RegionsAdminPage/RegionsAdminPage.d.ts +1 -0
- package/dist/pages/RegionsAdminPage/index.d.ts +1 -0
- package/dist/pages/RegionsAdminPage/index.js +99 -0
- package/dist/pages/RegionsAdminPage/index.js.map +1 -0
- package/dist/pages/TrendsPage/TrendsPage.d.ts +1 -0
- package/dist/pages/TrendsPage/index.d.ts +1 -0
- package/dist/pages/TrendsPage/index.js +17 -0
- package/dist/pages/TrendsPage/index.js.map +1 -0
- package/dist/pages/UploadPage/UploadPage.d.ts +1 -0
- package/dist/pages/UploadPage/index.d.ts +1 -0
- package/dist/pages/UploadPage/index.js +31 -0
- package/dist/pages/UploadPage/index.js.map +1 -0
- package/dist/pages/UserAccessCasePoliciesAdminPage/UserAccessCasePoliciesAdminPage.d.ts +1 -0
- package/dist/pages/UserAccessCasePoliciesAdminPage/index.d.ts +1 -0
- package/dist/pages/UserAccessCasePoliciesAdminPage/index.js +206 -0
- package/dist/pages/UserAccessCasePoliciesAdminPage/index.js.map +1 -0
- package/dist/pages/UserEffectiveRightsAdminPage/UserEffectiveRightsAdminPage.d.ts +1 -0
- package/dist/pages/UserEffectiveRightsAdminPage/index.d.ts +1 -0
- package/dist/pages/UserEffectiveRightsAdminPage/index.js +246 -0
- package/dist/pages/UserEffectiveRightsAdminPage/index.js.map +1 -0
- package/dist/pages/UserEffectiveRightsTesterAdminPage/UserEffectiveRightsTesterAdminPage.d.ts +1 -0
- package/dist/pages/UserEffectiveRightsTesterAdminPage/index.d.ts +1 -0
- package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js +195 -0
- package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js.map +1 -0
- package/dist/pages/UserShareCasePoliciesAdminPage/UserShareCasePoliciesAdminPage.d.ts +1 -0
- package/dist/pages/UserShareCasePoliciesAdminPage/index.d.ts +1 -0
- package/dist/pages/UserShareCasePoliciesAdminPage/index.js +169 -0
- package/dist/pages/UserShareCasePoliciesAdminPage/index.js.map +1 -0
- package/dist/routes/adminRoutes.d.ts +6 -0
- package/dist/routes/index.d.ts +2 -0
- package/dist/routes/index.js +1110 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/routes.d.ts +6 -0
- package/dist/setup/setup.d.ts +1 -0
- package/dist/setup/setup.js +28 -0
- package/dist/setup/setup.js.map +1 -0
- package/dist/stores/dashboardStore/dashboardStore.d.ts +80 -0
- package/dist/stores/dashboardStore/dashboardStoreContext.d.ts +3 -0
- package/dist/stores/dashboardStore/index.d.ts +2 -0
- package/dist/stores/dashboardStore/index.js +2 -0
- package/dist/stores/uploadStore/index.d.ts +2 -0
- package/dist/stores/uploadStore/index.js +185 -0
- package/dist/stores/uploadStore/index.js.map +1 -0
- package/dist/stores/uploadStore/uploadStore.d.ts +80 -0
- package/dist/stores/uploadStore/uploadStoreContext.d.ts +3 -0
- package/dist/stores/userProfileStore/index.d.ts +1 -0
- package/dist/stores/userProfileStore/index.js +81 -0
- package/dist/stores/userProfileStore/index.js.map +1 -0
- package/dist/stores/userProfileStore/userProfileStore.d.ts +38 -0
- package/dist/stores/userProfileStore/userProfileStoreContext.d.ts +3 -0
- package/dist/theme/demoTheme/demoTheme.d.ts +3 -0
- package/dist/theme/demoTheme/index.d.ts +1 -0
- package/dist/theme/demoTheme/index.js +20 -0
- package/dist/theme/demoTheme/index.js.map +1 -0
- package/dist/utils/AbacUtil/AbacUtil.d.ts +7 -0
- package/dist/utils/AbacUtil/index.d.ts +1 -0
- package/dist/utils/AbacUtil/index.js +31 -0
- package/dist/utils/AbacUtil/index.js.map +1 -0
- package/dist/utils/CaseDbDataUtil/CaseDbDataUtil.d.ts +31 -0
- package/dist/utils/CaseDbDataUtil/index.d.ts +1 -0
- package/dist/utils/CaseDbDataUtil/index.js +43 -0
- package/dist/utils/CaseDbDataUtil/index.js.map +1 -0
- package/dist/utils/CaseDbDownloadUtil/CaseDbDownloadUtil.d.ts +17 -0
- package/dist/utils/CaseDbDownloadUtil/index.d.ts +1 -0
- package/dist/utils/CaseDbDownloadUtil/index.js +2 -0
- package/dist/utils/CaseDbStandardConfigUtil/CaseDbStandardConfigUtil.d.ts +7 -0
- package/dist/utils/CaseDbStandardConfigUtil/index.d.ts +1 -0
- package/dist/utils/CaseDbStandardConfigUtil/index.js +4778 -0
- package/dist/utils/CaseDbStandardConfigUtil/index.js.map +1 -0
- package/dist/utils/CaseDbTableUtil/CaseDbTableUtil.d.ts +6 -0
- package/dist/utils/CaseDbTableUtil/index.d.ts +1 -0
- package/dist/utils/CaseDbTableUtil/index.js +41 -0
- package/dist/utils/CaseDbTableUtil/index.js.map +1 -0
- package/dist/utils/CaseSelectionUtil/CaseSelectionUtil.d.ts +8 -0
- package/dist/utils/CaseSelectionUtil/index.d.ts +1 -0
- package/dist/utils/CaseSelectionUtil/index.js +29 -0
- package/dist/utils/CaseSelectionUtil/index.js.map +1 -0
- package/dist/utils/CaseSetUtil/CaseSetUtil.d.ts +4 -0
- package/dist/utils/CaseSetUtil/index.d.ts +1 -0
- package/dist/utils/CaseSetUtil/index.js +13 -0
- package/dist/utils/CaseSetUtil/index.js.map +1 -0
- package/dist/utils/CaseTypeFormUtil/CaseTypeFormUtil.d.ts +20 -0
- package/dist/utils/CaseTypeFormUtil/index.d.ts +1 -0
- package/dist/utils/CaseTypeFormUtil/index.js +199 -0
- package/dist/utils/CaseTypeFormUtil/index.js.map +1 -0
- package/dist/utils/CaseTypeUtil/CaseTypeUtil.d.ts +39 -0
- package/dist/utils/CaseTypeUtil/index.d.ts +1 -0
- package/dist/utils/CaseTypeUtil/index.js +135 -0
- package/dist/utils/CaseTypeUtil/index.js.map +1 -0
- package/dist/utils/CaseUtil/CaseUtil.d.ts +18 -0
- package/dist/utils/CaseUtil/index.d.ts +1 -0
- package/dist/utils/CaseUtil/index.js +138 -0
- package/dist/utils/CaseUtil/index.js.map +1 -0
- package/dist/utils/DashboardUtil/DashboardUtil.d.ts +29 -0
- package/dist/utils/DashboardUtil/index.d.ts +1 -0
- package/dist/utils/DashboardUtil/index.js +152 -0
- package/dist/utils/DashboardUtil/index.js.map +1 -0
- package/dist/utils/DataSetUtil/DataSetUtil.d.ts +17 -0
- package/dist/utils/DataSetUtil/index.d.ts +1 -0
- package/dist/utils/DataSetUtil/index.js +43 -0
- package/dist/utils/DataSetUtil/index.js.map +1 -0
- package/dist/utils/EffectiveRightsUtil/EffectiveRightsUtil.d.ts +29 -0
- package/dist/utils/EffectiveRightsUtil/index.d.ts +1 -0
- package/dist/utils/EffectiveRightsUtil/index.js +118 -0
- package/dist/utils/EffectiveRightsUtil/index.js.map +1 -0
- package/dist/utils/EpiCurveUtil/EpiCurveUtil.d.ts +96 -0
- package/dist/utils/EpiCurveUtil/index.d.ts +1 -0
- package/dist/utils/EpiCurveUtil/index.js +2 -0
- package/dist/utils/FileUtil/FileUtil.d.ts +5 -0
- package/dist/utils/FileUtil/index.d.ts +1 -0
- package/dist/utils/FileUtil/index.js +15 -0
- package/dist/utils/FileUtil/index.js.map +1 -0
- package/dist/utils/FilterUtil/FilterUtil.d.ts +11 -0
- package/dist/utils/FilterUtil/index.d.ts +1 -0
- package/dist/utils/FilterUtil/index.js +2 -0
- package/dist/utils/FindSimilarCasesUtil/FindSimilarCasesUtil.d.ts +7 -0
- package/dist/utils/FindSimilarCasesUtil/index.d.ts +1 -0
- package/dist/utils/FindSimilarCasesUtil/index.js +2 -0
- package/dist/utils/HistogramUtil/HistogramUtil.d.ts +78 -0
- package/dist/utils/HistogramUtil/index.d.ts +1 -0
- package/dist/utils/HistogramUtil/index.js +145 -0
- package/dist/utils/HistogramUtil/index.js.map +1 -0
- package/dist/utils/MapUtil/MapUtil.d.ts +38 -0
- package/dist/utils/MapUtil/index.d.ts +1 -0
- package/dist/utils/MapUtil/index.js +210 -0
- package/dist/utils/MapUtil/index.js.map +1 -0
- package/dist/utils/StratificationUtil/StratificationUtil.d.ts +25 -0
- package/dist/utils/StratificationUtil/index.d.ts +1 -0
- package/dist/utils/StratificationUtil/index.js +198 -0
- package/dist/utils/StratificationUtil/index.js.map +1 -0
- package/dist/utils/TreeWidgetUtil/TreeWidgetUtil.d.ts +7 -0
- package/dist/utils/TreeWidgetUtil/index.d.ts +1 -0
- package/dist/utils/TreeWidgetUtil/index.js +35 -0
- package/dist/utils/TreeWidgetUtil/index.js.map +1 -0
- package/dist/utils/UploadUtil/UploadUtil.d.ts +106 -0
- package/dist/utils/UploadUtil/index.d.ts +1 -0
- package/dist/utils/UploadUtil/index.js +2 -0
- package/package.json +784 -0
|
@@ -0,0 +1,1976 @@
|
|
|
1
|
+
import { h as e } from "./_MapCache.js";
|
|
2
|
+
import { a as t, r as n, t as r } from "./sync.js";
|
|
3
|
+
import { t as i } from "./format.js";
|
|
4
|
+
import { CaseTypeUtil as a, t as o } from "../utils/CaseTypeUtil/index.js";
|
|
5
|
+
import { CASEDB_QUERY_KEY as s } from "../constants/query.js";
|
|
6
|
+
import { CaseUtil as c, t as l } from "../utils/CaseUtil/index.js";
|
|
7
|
+
import { FileUtil as u } from "../utils/FileUtil/index.js";
|
|
8
|
+
import { UploadError as d } from "../classes/errors/index.js";
|
|
9
|
+
import { lazy as f, object as p, string as m } from "yup";
|
|
10
|
+
import { t as h } from "i18next";
|
|
11
|
+
import { CaseDbCaseApi as g, CaseDbColType as _, CaseDbEtlStatus as ee, CaseDbReadsFileFormat as te, CaseDbSeqFileFormat as ne, CaseDbUploadAction as re } from "@gen-epix/api-casedb";
|
|
12
|
+
import { QueryClientService as ie } from "@gen-epix/ui/classes/services/QueryClientService";
|
|
13
|
+
import { ValidationUtil as ae } from "@gen-epix/ui-core/utils/ValidationUtil";
|
|
14
|
+
import { ObjectUtil as oe } from "@gen-epix/ui-core/utils/ObjectUtil";
|
|
15
|
+
import { StringUtil as se } from "@gen-epix/ui-core/utils/StringUtil";
|
|
16
|
+
import { FORM_FIELD_DEFINITION_TYPE as ce } from "@gen-epix/ui-form/models/form";
|
|
17
|
+
import { DATE_FORMAT as le } from "@gen-epix/ui-core/constants/date";
|
|
18
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xml/xmlBrowser.js
|
|
19
|
+
var ue = { createDocument: function(e) {
|
|
20
|
+
return new DOMParser().parseFromString(e.trim(), "text/xml");
|
|
21
|
+
} };
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/zip/unzipFromArrayBuffer.js
|
|
24
|
+
function de(e, t) {
|
|
25
|
+
return fe(e, t, pe, !0);
|
|
26
|
+
}
|
|
27
|
+
function fe(e) {
|
|
28
|
+
var t = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).filter, n = arguments.length > 2 ? arguments[2] : void 0;
|
|
29
|
+
return arguments.length > 3 && arguments[3], n(new Uint8Array(e), { filter: function(e) {
|
|
30
|
+
return t ? t({ path: e.name }) : !0;
|
|
31
|
+
} });
|
|
32
|
+
}
|
|
33
|
+
function pe(e) {
|
|
34
|
+
return new Promise(function(n, r) {
|
|
35
|
+
t(e, function(e, t) {
|
|
36
|
+
e ? r(e) : n(t);
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/export/convertValuesFromUint8ArraysToStrings.js
|
|
42
|
+
function me(e) {
|
|
43
|
+
for (var t = {}, r = 0, i = Object.keys(e); r < i.length; r++) {
|
|
44
|
+
var a = i[r];
|
|
45
|
+
t[a] = n(e[a]);
|
|
46
|
+
}
|
|
47
|
+
return t;
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/export/filterZipArchiveEntry.js
|
|
51
|
+
function he(e) {
|
|
52
|
+
var t = e.path;
|
|
53
|
+
return t.endsWith(".xml") || t.endsWith(".xml.rels");
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/export/unpackXlsxFileBrowser.js
|
|
57
|
+
function ge(e) {
|
|
58
|
+
return e instanceof File || e instanceof Blob ? e.arrayBuffer().then(_e) : Promise.resolve(e).then(_e);
|
|
59
|
+
}
|
|
60
|
+
function _e(e) {
|
|
61
|
+
return de(e, { filter: he }).then(me);
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xml/dom.js
|
|
65
|
+
function v(e, t) {
|
|
66
|
+
for (var n = 0; n < e.childNodes.length;) {
|
|
67
|
+
var r = e.childNodes[n];
|
|
68
|
+
if (r.nodeType === 1 && x(r) === t) return r;
|
|
69
|
+
n++;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function y(e, t) {
|
|
73
|
+
for (var n = [], r = 0; r < e.childNodes.length;) {
|
|
74
|
+
var i = e.childNodes[r];
|
|
75
|
+
i.nodeType === 1 && x(i) === t && n.push(i), r++;
|
|
76
|
+
}
|
|
77
|
+
return n;
|
|
78
|
+
}
|
|
79
|
+
function b(e, t, n) {
|
|
80
|
+
for (var r = 0; r < e.childNodes.length;) {
|
|
81
|
+
var i = e.childNodes[r];
|
|
82
|
+
t ? i.nodeType === 1 && x(i) === t && n(i, r) : n(i, r), r++;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function ve(e, t, n) {
|
|
86
|
+
var r = [];
|
|
87
|
+
return b(e, t, function(e, t) {
|
|
88
|
+
r.push(n(e, t));
|
|
89
|
+
}), r;
|
|
90
|
+
}
|
|
91
|
+
var ye = /.+\:/;
|
|
92
|
+
function x(e) {
|
|
93
|
+
return e.tagName.replace(ye, "");
|
|
94
|
+
}
|
|
95
|
+
function be(e) {
|
|
96
|
+
return e.nodeType === 1;
|
|
97
|
+
}
|
|
98
|
+
function xe(e) {
|
|
99
|
+
for (var t = 0; t < e.childNodes.length;) {
|
|
100
|
+
if (be(e.childNodes[t])) return e.childNodes[t];
|
|
101
|
+
t++;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function S(e) {
|
|
105
|
+
if (e.nodeType !== 1) return e.textContent;
|
|
106
|
+
for (var t = "<" + x(e), n = 0; n < e.attributes.length;) t += " " + e.attributes[n].name + "=\"" + e.attributes[n].value + "\"", n++;
|
|
107
|
+
t += ">";
|
|
108
|
+
for (var r = 0; r < e.childNodes.length;) t += S(e.childNodes[r]), r++;
|
|
109
|
+
return t += "</" + x(e) + ">", t;
|
|
110
|
+
}
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xml/xlsx.js
|
|
113
|
+
function Se(e) {
|
|
114
|
+
var t = e.documentElement, n = v(t, "sheetData"), r = [];
|
|
115
|
+
return b(n, "row", function(e) {
|
|
116
|
+
b(e, "c", function(e) {
|
|
117
|
+
r.push(e);
|
|
118
|
+
});
|
|
119
|
+
}), r;
|
|
120
|
+
}
|
|
121
|
+
function Ce(e, t) {
|
|
122
|
+
return v(t, "v");
|
|
123
|
+
}
|
|
124
|
+
function we(e, t) {
|
|
125
|
+
var n = xe(t);
|
|
126
|
+
if (n && x(n) === "is") {
|
|
127
|
+
var r = xe(n);
|
|
128
|
+
if (r && x(r) === "t") return r.textContent;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
function Te(e) {
|
|
132
|
+
var t = e.documentElement, n = v(t, "dimension");
|
|
133
|
+
if (n) return n.getAttribute("ref");
|
|
134
|
+
}
|
|
135
|
+
function Ee(e) {
|
|
136
|
+
var t = e.documentElement, n = v(t, "cellStyleXfs");
|
|
137
|
+
return n ? y(n, "xf") : [];
|
|
138
|
+
}
|
|
139
|
+
function De(e) {
|
|
140
|
+
var t = e.documentElement, n = v(t, "cellXfs");
|
|
141
|
+
return n ? y(n, "xf") : [];
|
|
142
|
+
}
|
|
143
|
+
function Oe(e) {
|
|
144
|
+
var t = e.documentElement, n = v(t, "numFmts");
|
|
145
|
+
return n ? y(n, "numFmt") : [];
|
|
146
|
+
}
|
|
147
|
+
function ke(e) {
|
|
148
|
+
var t = e.documentElement;
|
|
149
|
+
return ve(t, "si", function(e) {
|
|
150
|
+
var t = v(e, "t");
|
|
151
|
+
if (t) return t.textContent;
|
|
152
|
+
var n = "";
|
|
153
|
+
return b(e, "r", function(e) {
|
|
154
|
+
n += v(e, "t").textContent;
|
|
155
|
+
}), n;
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
function Ae(e) {
|
|
159
|
+
var t = e.documentElement;
|
|
160
|
+
return v(t, "workbookPr");
|
|
161
|
+
}
|
|
162
|
+
function je(e) {
|
|
163
|
+
var t = e.documentElement;
|
|
164
|
+
return y(t, "Relationship");
|
|
165
|
+
}
|
|
166
|
+
function Me(e) {
|
|
167
|
+
var t = e.documentElement;
|
|
168
|
+
return y(v(t, "sheets"), "sheet");
|
|
169
|
+
}
|
|
170
|
+
//#endregion
|
|
171
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xlsx/parseSpreadsheetInfo.js
|
|
172
|
+
function Ne(e, t) {
|
|
173
|
+
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
174
|
+
if (n) return (n = n.call(e)).next.bind(n);
|
|
175
|
+
if (Array.isArray(e) || (n = Pe(e)) || t && e && typeof e.length == "number") {
|
|
176
|
+
n && (e = n);
|
|
177
|
+
var r = 0;
|
|
178
|
+
return function() {
|
|
179
|
+
return r >= e.length ? { done: !0 } : {
|
|
180
|
+
done: !1,
|
|
181
|
+
value: e[r++]
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
186
|
+
}
|
|
187
|
+
function Pe(e, t) {
|
|
188
|
+
if (e) {
|
|
189
|
+
if (typeof e == "string") return Fe(e, t);
|
|
190
|
+
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
191
|
+
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
192
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Fe(e, t);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
function Fe(e, t) {
|
|
196
|
+
(t == null || t > e.length) && (t = e.length);
|
|
197
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
198
|
+
return r;
|
|
199
|
+
}
|
|
200
|
+
function Ie(e, t) {
|
|
201
|
+
for (var n = t.createDocument(e), r = Ae(n), i = !!r && r.getAttribute("date1904") === "1", a = [], o = Ne(Me(n)), s; !(s = o()).done;) {
|
|
202
|
+
var c = s.value;
|
|
203
|
+
c.getAttribute("name") && a.push({
|
|
204
|
+
id: c.getAttribute("sheetId"),
|
|
205
|
+
name: c.getAttribute("name"),
|
|
206
|
+
relationId: c.getAttribute("r:id")
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
return {
|
|
210
|
+
epoch1904: i,
|
|
211
|
+
sheets: a
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
//#endregion
|
|
215
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xlsx/parseFilePaths.js
|
|
216
|
+
function Le(e, t) {
|
|
217
|
+
var n = t.createDocument(e), r = {
|
|
218
|
+
sheets: {},
|
|
219
|
+
sharedStrings: void 0,
|
|
220
|
+
styles: void 0
|
|
221
|
+
};
|
|
222
|
+
return je(n).forEach(function(e) {
|
|
223
|
+
var t = e.getAttribute("Target");
|
|
224
|
+
switch (e.getAttribute("Type")) {
|
|
225
|
+
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles":
|
|
226
|
+
r.styles = C(t);
|
|
227
|
+
break;
|
|
228
|
+
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings":
|
|
229
|
+
r.sharedStrings = C(t);
|
|
230
|
+
break;
|
|
231
|
+
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet":
|
|
232
|
+
r.sheets[e.getAttribute("Id")] = C(t);
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
}), r;
|
|
236
|
+
}
|
|
237
|
+
function C(e) {
|
|
238
|
+
return e[0] === "/" ? e.slice(1) : "xl/" + e;
|
|
239
|
+
}
|
|
240
|
+
//#endregion
|
|
241
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xlsx/parseStyles.js
|
|
242
|
+
function w(e) {
|
|
243
|
+
"@babel/helpers - typeof";
|
|
244
|
+
return w = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
245
|
+
return typeof e;
|
|
246
|
+
} : function(e) {
|
|
247
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
248
|
+
}, w(e);
|
|
249
|
+
}
|
|
250
|
+
function Re(e, t) {
|
|
251
|
+
var n = Object.keys(e);
|
|
252
|
+
if (Object.getOwnPropertySymbols) {
|
|
253
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
254
|
+
t && (r = r.filter(function(t) {
|
|
255
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
256
|
+
})), n.push.apply(n, r);
|
|
257
|
+
}
|
|
258
|
+
return n;
|
|
259
|
+
}
|
|
260
|
+
function ze(e) {
|
|
261
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
262
|
+
var n = arguments[t] == null ? {} : arguments[t];
|
|
263
|
+
t % 2 ? Re(Object(n), !0).forEach(function(t) {
|
|
264
|
+
Be(e, t, n[t]);
|
|
265
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Re(Object(n)).forEach(function(t) {
|
|
266
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
return e;
|
|
270
|
+
}
|
|
271
|
+
function Be(e, t, n) {
|
|
272
|
+
return t = Ve(t), t in e ? Object.defineProperty(e, t, {
|
|
273
|
+
value: n,
|
|
274
|
+
enumerable: !0,
|
|
275
|
+
configurable: !0,
|
|
276
|
+
writable: !0
|
|
277
|
+
}) : e[t] = n, e;
|
|
278
|
+
}
|
|
279
|
+
function Ve(e) {
|
|
280
|
+
var t = He(e, "string");
|
|
281
|
+
return w(t) === "symbol" ? t : String(t);
|
|
282
|
+
}
|
|
283
|
+
function He(e, t) {
|
|
284
|
+
if (w(e) !== "object" || e === null) return e;
|
|
285
|
+
var n = e[Symbol.toPrimitive];
|
|
286
|
+
if (n !== void 0) {
|
|
287
|
+
var r = n.call(e, t || "default");
|
|
288
|
+
if (w(r) !== "object") return r;
|
|
289
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
290
|
+
}
|
|
291
|
+
return (t === "string" ? String : Number)(e);
|
|
292
|
+
}
|
|
293
|
+
function Ue(e, t) {
|
|
294
|
+
if (!e) return {};
|
|
295
|
+
var n = t.createDocument(e), r = Ee(n).map(T), i = Oe(n).map(We).reduce(function(e, t) {
|
|
296
|
+
return e[t.id] = t, e;
|
|
297
|
+
}, []);
|
|
298
|
+
return De(n).map(function(e) {
|
|
299
|
+
return e.hasAttribute("xfId") ? ze(ze({}, r[e.xfId]), T(e, i)) : T(e, i);
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
function We(e) {
|
|
303
|
+
return {
|
|
304
|
+
id: e.getAttribute("numFmtId"),
|
|
305
|
+
template: e.getAttribute("formatCode")
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
function T(e, t) {
|
|
309
|
+
var n = {};
|
|
310
|
+
if (e.hasAttribute("numFmtId")) {
|
|
311
|
+
var r = e.getAttribute("numFmtId");
|
|
312
|
+
t[r] ? n.numberFormat = t[r] : n.numberFormat = { id: r };
|
|
313
|
+
}
|
|
314
|
+
return n;
|
|
315
|
+
}
|
|
316
|
+
//#endregion
|
|
317
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xlsx/parseSharedStrings.js
|
|
318
|
+
function Ge(e, t) {
|
|
319
|
+
return e ? ke(t.createDocument(e)) : [];
|
|
320
|
+
}
|
|
321
|
+
//#endregion
|
|
322
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xlsx/parseExcelDate.js
|
|
323
|
+
function Ke(e, t) {
|
|
324
|
+
t && t.epoch1904 && (e += 4 * Ze + Je + Ye);
|
|
325
|
+
var n = Je + Ye + 70 * Ze + qe;
|
|
326
|
+
return new Date(Math.floor((e - n) * Xe));
|
|
327
|
+
}
|
|
328
|
+
var qe = 17, Je = 1, Ye = 1, Xe = 1440 * 60 * 1e3, Ze = 365;
|
|
329
|
+
//#endregion
|
|
330
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xlsx/isDateFormat.js
|
|
331
|
+
function Qe(e, t) {
|
|
332
|
+
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
333
|
+
if (n) return (n = n.call(e)).next.bind(n);
|
|
334
|
+
if (Array.isArray(e) || (n = $e(e)) || t && e && typeof e.length == "number") {
|
|
335
|
+
n && (e = n);
|
|
336
|
+
var r = 0;
|
|
337
|
+
return function() {
|
|
338
|
+
return r >= e.length ? { done: !0 } : {
|
|
339
|
+
done: !1,
|
|
340
|
+
value: e[r++]
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
345
|
+
}
|
|
346
|
+
function $e(e, t) {
|
|
347
|
+
if (e) {
|
|
348
|
+
if (typeof e == "string") return et(e, t);
|
|
349
|
+
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
350
|
+
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
351
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return et(e, t);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
function et(e, t) {
|
|
355
|
+
(t == null || t > e.length) && (t = e.length);
|
|
356
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
357
|
+
return r;
|
|
358
|
+
}
|
|
359
|
+
var tt = /^\[\$-[^\]]+\]/, nt = /;@$/, E = {};
|
|
360
|
+
function rt(e) {
|
|
361
|
+
if (e in E) return E[e];
|
|
362
|
+
var t = it(e);
|
|
363
|
+
return E[e] = t, t;
|
|
364
|
+
}
|
|
365
|
+
function it(e) {
|
|
366
|
+
e = e.toLowerCase(), e = e.replace(tt, ""), e = e.replace(nt, "");
|
|
367
|
+
var t = e.split(/\W+/);
|
|
368
|
+
if (t.length < 0) return !1;
|
|
369
|
+
for (var n = Qe(t), r; !(r = n()).done;) {
|
|
370
|
+
var i = r.value;
|
|
371
|
+
if (at.indexOf(i) < 0) return !1;
|
|
372
|
+
}
|
|
373
|
+
return !0;
|
|
374
|
+
}
|
|
375
|
+
var at = [
|
|
376
|
+
"ss",
|
|
377
|
+
"mm",
|
|
378
|
+
"h",
|
|
379
|
+
"hh",
|
|
380
|
+
"am",
|
|
381
|
+
"pm",
|
|
382
|
+
"d",
|
|
383
|
+
"dd",
|
|
384
|
+
"m",
|
|
385
|
+
"mm",
|
|
386
|
+
"mmm",
|
|
387
|
+
"mmmm",
|
|
388
|
+
"yy",
|
|
389
|
+
"yyyy",
|
|
390
|
+
"e"
|
|
391
|
+
];
|
|
392
|
+
//#endregion
|
|
393
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xlsx/isDateFormatStyle.js
|
|
394
|
+
function ot(e, t, n) {
|
|
395
|
+
if (e) {
|
|
396
|
+
var r = t[e];
|
|
397
|
+
if (!r) throw Error(`Cell style not found: ${e}`);
|
|
398
|
+
if (!r.numberFormat) return !1;
|
|
399
|
+
if (lt.indexOf(Number(r.numberFormat.id)) >= 0 || n.dateFormat && r.numberFormat.template === n.dateFormat || n.smartDateParser !== !1 && r.numberFormat.template && rt(r.numberFormat.template)) return !0;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
var st = [
|
|
403
|
+
14,
|
|
404
|
+
15,
|
|
405
|
+
16,
|
|
406
|
+
17,
|
|
407
|
+
18,
|
|
408
|
+
19,
|
|
409
|
+
20,
|
|
410
|
+
21,
|
|
411
|
+
22,
|
|
412
|
+
45,
|
|
413
|
+
46,
|
|
414
|
+
47
|
|
415
|
+
], D = [
|
|
416
|
+
27,
|
|
417
|
+
28,
|
|
418
|
+
29,
|
|
419
|
+
30,
|
|
420
|
+
31,
|
|
421
|
+
32,
|
|
422
|
+
33,
|
|
423
|
+
34,
|
|
424
|
+
35,
|
|
425
|
+
36,
|
|
426
|
+
50,
|
|
427
|
+
51,
|
|
428
|
+
52,
|
|
429
|
+
53,
|
|
430
|
+
54,
|
|
431
|
+
55,
|
|
432
|
+
56,
|
|
433
|
+
57,
|
|
434
|
+
58
|
|
435
|
+
], ct = [
|
|
436
|
+
27,
|
|
437
|
+
28,
|
|
438
|
+
29,
|
|
439
|
+
30,
|
|
440
|
+
31,
|
|
441
|
+
32,
|
|
442
|
+
33,
|
|
443
|
+
34,
|
|
444
|
+
35,
|
|
445
|
+
36,
|
|
446
|
+
50,
|
|
447
|
+
51,
|
|
448
|
+
52,
|
|
449
|
+
53,
|
|
450
|
+
54,
|
|
451
|
+
55,
|
|
452
|
+
56,
|
|
453
|
+
57,
|
|
454
|
+
58
|
|
455
|
+
], lt = st.concat(D).concat(ct.filter(function(e) {
|
|
456
|
+
return D.indexOf(e) < 0;
|
|
457
|
+
})).concat([
|
|
458
|
+
71,
|
|
459
|
+
72,
|
|
460
|
+
73,
|
|
461
|
+
74,
|
|
462
|
+
75,
|
|
463
|
+
76,
|
|
464
|
+
77,
|
|
465
|
+
78,
|
|
466
|
+
79,
|
|
467
|
+
80,
|
|
468
|
+
81
|
|
469
|
+
].filter(function(e) {
|
|
470
|
+
return D.indexOf(e) < 0;
|
|
471
|
+
}).filter(function(e) {
|
|
472
|
+
return ct.indexOf(e) < 0;
|
|
473
|
+
}));
|
|
474
|
+
//#endregion
|
|
475
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xlsx/parseCellValue.js
|
|
476
|
+
function ut(e, t, n) {
|
|
477
|
+
var r = n.getInlineStringValue, i = n.getInlineStringXml, a = n.getStyleId, o = n.styles, s = n.sharedStrings, c = n.epoch1904, l = n.options;
|
|
478
|
+
switch (t ||= "n", t) {
|
|
479
|
+
case "str":
|
|
480
|
+
e = O(e, l);
|
|
481
|
+
break;
|
|
482
|
+
case "inlineStr":
|
|
483
|
+
if (e = r(), e === void 0) throw Error(`Unsupported "inline string" cell value structure: ${i()}`);
|
|
484
|
+
e = O(e, l);
|
|
485
|
+
break;
|
|
486
|
+
case "s":
|
|
487
|
+
var u = Number(e);
|
|
488
|
+
if (isNaN(u)) throw Error(`Invalid "shared" string index: ${e}`);
|
|
489
|
+
if (u >= s.length) throw Error(`An out-of-bounds "shared" string index: ${e}`);
|
|
490
|
+
e = s[u], e = O(e, l);
|
|
491
|
+
break;
|
|
492
|
+
case "b":
|
|
493
|
+
if (e === "1") e = !0;
|
|
494
|
+
else if (e === "0") e = !1;
|
|
495
|
+
else throw Error(`Unsupported "boolean" cell value: ${e}`);
|
|
496
|
+
break;
|
|
497
|
+
case "z":
|
|
498
|
+
e = void 0;
|
|
499
|
+
break;
|
|
500
|
+
case "e":
|
|
501
|
+
e = dt(e);
|
|
502
|
+
break;
|
|
503
|
+
case "d":
|
|
504
|
+
if (e === void 0) break;
|
|
505
|
+
var d = new Date(e);
|
|
506
|
+
if (isNaN(d.valueOf())) throw Error(`Unsupported "date" cell value: ${e}`);
|
|
507
|
+
e = d;
|
|
508
|
+
break;
|
|
509
|
+
case "n":
|
|
510
|
+
if (e === void 0) break;
|
|
511
|
+
var f = a();
|
|
512
|
+
f && ot(f, o, l) ? (e = k(e), e = Ke(e, { epoch1904: c })) : e = (l.parseNumber || k)(e);
|
|
513
|
+
break;
|
|
514
|
+
default: throw TypeError(`Cell type not supported: ${t}`);
|
|
515
|
+
}
|
|
516
|
+
return e === void 0 && (e = null), e;
|
|
517
|
+
}
|
|
518
|
+
function dt(e) {
|
|
519
|
+
switch (e) {
|
|
520
|
+
case 0: return "#NULL!";
|
|
521
|
+
case 7: return "#DIV/0!";
|
|
522
|
+
case 15: return "#VALUE!";
|
|
523
|
+
case 23: return "#REF!";
|
|
524
|
+
case 29: return "#NAME?";
|
|
525
|
+
case 36: return "#NUM!";
|
|
526
|
+
case 42: return "#N/A";
|
|
527
|
+
case 43: return "#GETTING_DATA";
|
|
528
|
+
default: return `#ERROR_${e}`;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
function O(e, t) {
|
|
532
|
+
return t.trim !== !1 && (e = e.trim()), e === "" && (e = void 0), e;
|
|
533
|
+
}
|
|
534
|
+
function k(e) {
|
|
535
|
+
var t = Number(e);
|
|
536
|
+
if (isNaN(t)) throw Error(`Invalid "numeric" cell value: ${e}`);
|
|
537
|
+
return t;
|
|
538
|
+
}
|
|
539
|
+
//#endregion
|
|
540
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xlsx/parseCellCoordinates.js
|
|
541
|
+
function ft(e, t) {
|
|
542
|
+
return gt(e) || ht(e, t) || mt(e, t) || pt();
|
|
543
|
+
}
|
|
544
|
+
function pt() {
|
|
545
|
+
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
546
|
+
}
|
|
547
|
+
function mt(e, t) {
|
|
548
|
+
if (e) {
|
|
549
|
+
if (typeof e == "string") return A(e, t);
|
|
550
|
+
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
551
|
+
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
552
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return A(e, t);
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
function A(e, t) {
|
|
556
|
+
(t == null || t > e.length) && (t = e.length);
|
|
557
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
558
|
+
return r;
|
|
559
|
+
}
|
|
560
|
+
function ht(e, t) {
|
|
561
|
+
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
562
|
+
if (n != null) {
|
|
563
|
+
var r, i, a, o, s = [], c = !0, l = !1;
|
|
564
|
+
try {
|
|
565
|
+
if (a = (n = n.call(e)).next, t === 0) {
|
|
566
|
+
if (Object(n) !== n) return;
|
|
567
|
+
c = !1;
|
|
568
|
+
} else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
569
|
+
} catch (e) {
|
|
570
|
+
l = !0, i = e;
|
|
571
|
+
} finally {
|
|
572
|
+
try {
|
|
573
|
+
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
|
|
574
|
+
} finally {
|
|
575
|
+
if (l) throw i;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
return s;
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
function gt(e) {
|
|
582
|
+
if (Array.isArray(e)) return e;
|
|
583
|
+
}
|
|
584
|
+
function j(e) {
|
|
585
|
+
var t = ft(e.split(/(\d+)/), 2), n = t[0], r = t[1];
|
|
586
|
+
return [Number(r), vt(n.trim())];
|
|
587
|
+
}
|
|
588
|
+
var _t = /* @__PURE__ */ ".A.B.C.D.E.F.G.H.I.J.K.L.M.N.O.P.Q.R.S.T.U.V.W.X.Y.Z".split(".");
|
|
589
|
+
function vt(e) {
|
|
590
|
+
for (var t = 0, n = 0; n < e.length;) t *= 26, t += _t.indexOf(e[n]), n++;
|
|
591
|
+
return t;
|
|
592
|
+
}
|
|
593
|
+
//#endregion
|
|
594
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xlsx/parseCell.js
|
|
595
|
+
function yt(e, t, n, r, i, a) {
|
|
596
|
+
var o = j(e.getAttribute("r")), s = Ce(t, e), c = s && s.textContent, l = e.getAttribute("t");
|
|
597
|
+
return {
|
|
598
|
+
row: o[0],
|
|
599
|
+
column: o[1],
|
|
600
|
+
value: ut(c, l, {
|
|
601
|
+
getInlineStringValue: function() {
|
|
602
|
+
return we(t, e);
|
|
603
|
+
},
|
|
604
|
+
getInlineStringXml: function() {
|
|
605
|
+
return S(e);
|
|
606
|
+
},
|
|
607
|
+
getStyleId: function() {
|
|
608
|
+
return e.getAttribute("s");
|
|
609
|
+
},
|
|
610
|
+
styles: r,
|
|
611
|
+
sharedStrings: n,
|
|
612
|
+
epoch1904: i,
|
|
613
|
+
options: a
|
|
614
|
+
})
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
//#endregion
|
|
618
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xlsx/parseCells.js
|
|
619
|
+
function bt(e, t, n, r, i) {
|
|
620
|
+
var a = Se(e);
|
|
621
|
+
return a.length === 0 ? [] : a.map(function(a) {
|
|
622
|
+
return yt(a, e, t, n, r, i);
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
//#endregion
|
|
626
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xlsx/parseSheetDimensions.js
|
|
627
|
+
function xt(e, t) {
|
|
628
|
+
return Tt(e) || wt(e, t) || Ct(e, t) || St();
|
|
629
|
+
}
|
|
630
|
+
function St() {
|
|
631
|
+
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
632
|
+
}
|
|
633
|
+
function Ct(e, t) {
|
|
634
|
+
if (e) {
|
|
635
|
+
if (typeof e == "string") return M(e, t);
|
|
636
|
+
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
637
|
+
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
638
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return M(e, t);
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
function M(e, t) {
|
|
642
|
+
(t == null || t > e.length) && (t = e.length);
|
|
643
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
644
|
+
return r;
|
|
645
|
+
}
|
|
646
|
+
function wt(e, t) {
|
|
647
|
+
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
648
|
+
if (n != null) {
|
|
649
|
+
var r, i, a, o, s = [], c = !0, l = !1;
|
|
650
|
+
try {
|
|
651
|
+
if (a = (n = n.call(e)).next, t === 0) {
|
|
652
|
+
if (Object(n) !== n) return;
|
|
653
|
+
c = !1;
|
|
654
|
+
} else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
655
|
+
} catch (e) {
|
|
656
|
+
l = !0, i = e;
|
|
657
|
+
} finally {
|
|
658
|
+
try {
|
|
659
|
+
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
|
|
660
|
+
} finally {
|
|
661
|
+
if (l) throw i;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
return s;
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
function Tt(e) {
|
|
668
|
+
if (Array.isArray(e)) return e;
|
|
669
|
+
}
|
|
670
|
+
function Et(e) {
|
|
671
|
+
var t = Te(e);
|
|
672
|
+
if (t) return t = t.split(":").map(j).map(function(e) {
|
|
673
|
+
var t = xt(e, 2);
|
|
674
|
+
return {
|
|
675
|
+
row: t[0],
|
|
676
|
+
column: t[1]
|
|
677
|
+
};
|
|
678
|
+
}), t.length === 1 && (t = [t[0], t[0]]), t;
|
|
679
|
+
}
|
|
680
|
+
//#endregion
|
|
681
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xlsx/reconstructSheetDimensionsFromSheetCells.js
|
|
682
|
+
function Dt(e) {
|
|
683
|
+
var t = function(e, t) {
|
|
684
|
+
return e - t;
|
|
685
|
+
}, n = e.map(function(e) {
|
|
686
|
+
return e.row;
|
|
687
|
+
}).sort(t), r = e.map(function(e) {
|
|
688
|
+
return e.column;
|
|
689
|
+
}).sort(t), i = n[0], a = n[n.length - 1], o = r[0], s = r[r.length - 1];
|
|
690
|
+
return [{
|
|
691
|
+
row: i,
|
|
692
|
+
column: o
|
|
693
|
+
}, {
|
|
694
|
+
row: a,
|
|
695
|
+
column: s
|
|
696
|
+
}];
|
|
697
|
+
}
|
|
698
|
+
//#endregion
|
|
699
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xlsx/dropEmptyRows.js
|
|
700
|
+
function Ot(e, t) {
|
|
701
|
+
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
702
|
+
if (n) return (n = n.call(e)).next.bind(n);
|
|
703
|
+
if (Array.isArray(e) || (n = kt(e)) || t && e && typeof e.length == "number") {
|
|
704
|
+
n && (e = n);
|
|
705
|
+
var r = 0;
|
|
706
|
+
return function() {
|
|
707
|
+
return r >= e.length ? { done: !0 } : {
|
|
708
|
+
done: !1,
|
|
709
|
+
value: e[r++]
|
|
710
|
+
};
|
|
711
|
+
};
|
|
712
|
+
}
|
|
713
|
+
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
714
|
+
}
|
|
715
|
+
function kt(e, t) {
|
|
716
|
+
if (e) {
|
|
717
|
+
if (typeof e == "string") return N(e, t);
|
|
718
|
+
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
719
|
+
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
720
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return N(e, t);
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
function N(e, t) {
|
|
724
|
+
(t == null || t > e.length) && (t = e.length);
|
|
725
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
726
|
+
return r;
|
|
727
|
+
}
|
|
728
|
+
function At(e) {
|
|
729
|
+
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.rowIndexSourceMap, r = t.accessor, i = r === void 0 ? function(e) {
|
|
730
|
+
return e;
|
|
731
|
+
} : r, a = t.onlyTrimAtTheEnd, o = e.length - 1; o >= 0;) {
|
|
732
|
+
for (var s = !0, c = Ot(e[o]), l; !(l = c()).done;) {
|
|
733
|
+
var u = l.value;
|
|
734
|
+
if (i(u) !== null) {
|
|
735
|
+
s = !1;
|
|
736
|
+
break;
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
if (s) e.splice(o, 1), n && n.splice(o, 1);
|
|
740
|
+
else if (a) break;
|
|
741
|
+
o--;
|
|
742
|
+
}
|
|
743
|
+
return e;
|
|
744
|
+
}
|
|
745
|
+
//#endregion
|
|
746
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xlsx/dropEmptyColumns.js
|
|
747
|
+
function jt(e, t) {
|
|
748
|
+
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
749
|
+
if (n) return (n = n.call(e)).next.bind(n);
|
|
750
|
+
if (Array.isArray(e) || (n = Mt(e)) || t && e && typeof e.length == "number") {
|
|
751
|
+
n && (e = n);
|
|
752
|
+
var r = 0;
|
|
753
|
+
return function() {
|
|
754
|
+
return r >= e.length ? { done: !0 } : {
|
|
755
|
+
done: !1,
|
|
756
|
+
value: e[r++]
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
761
|
+
}
|
|
762
|
+
function Mt(e, t) {
|
|
763
|
+
if (e) {
|
|
764
|
+
if (typeof e == "string") return P(e, t);
|
|
765
|
+
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
766
|
+
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
767
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return P(e, t);
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
function P(e, t) {
|
|
771
|
+
(t == null || t > e.length) && (t = e.length);
|
|
772
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
773
|
+
return r;
|
|
774
|
+
}
|
|
775
|
+
function Nt(e) {
|
|
776
|
+
for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.accessor, r = n === void 0 ? function(e) {
|
|
777
|
+
return e;
|
|
778
|
+
} : n, i = t.onlyTrimAtTheEnd, a = e[0].length - 1; a >= 0;) {
|
|
779
|
+
for (var o = !0, s = jt(e), c; !(c = s()).done;) {
|
|
780
|
+
var l = c.value;
|
|
781
|
+
if (r(l[a]) !== null) {
|
|
782
|
+
o = !1;
|
|
783
|
+
break;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
if (o) for (var u = 0; u < e.length;) e[u].splice(a, 1), u++;
|
|
787
|
+
else if (i) break;
|
|
788
|
+
a--;
|
|
789
|
+
}
|
|
790
|
+
return e;
|
|
791
|
+
}
|
|
792
|
+
//#endregion
|
|
793
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xlsx/convertCellsToData2dArray.js
|
|
794
|
+
function Pt(e, t) {
|
|
795
|
+
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
796
|
+
if (n) return (n = n.call(e)).next.bind(n);
|
|
797
|
+
if (Array.isArray(e) || (n = F(e)) || t && e && typeof e.length == "number") {
|
|
798
|
+
n && (e = n);
|
|
799
|
+
var r = 0;
|
|
800
|
+
return function() {
|
|
801
|
+
return r >= e.length ? { done: !0 } : {
|
|
802
|
+
done: !1,
|
|
803
|
+
value: e[r++]
|
|
804
|
+
};
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
808
|
+
}
|
|
809
|
+
function Ft(e, t) {
|
|
810
|
+
return Rt(e) || Lt(e, t) || F(e, t) || It();
|
|
811
|
+
}
|
|
812
|
+
function It() {
|
|
813
|
+
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
814
|
+
}
|
|
815
|
+
function F(e, t) {
|
|
816
|
+
if (e) {
|
|
817
|
+
if (typeof e == "string") return I(e, t);
|
|
818
|
+
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
819
|
+
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
820
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return I(e, t);
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
function I(e, t) {
|
|
824
|
+
(t == null || t > e.length) && (t = e.length);
|
|
825
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
826
|
+
return r;
|
|
827
|
+
}
|
|
828
|
+
function Lt(e, t) {
|
|
829
|
+
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
830
|
+
if (n != null) {
|
|
831
|
+
var r, i, a, o, s = [], c = !0, l = !1;
|
|
832
|
+
try {
|
|
833
|
+
if (a = (n = n.call(e)).next, t === 0) {
|
|
834
|
+
if (Object(n) !== n) return;
|
|
835
|
+
c = !1;
|
|
836
|
+
} else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
837
|
+
} catch (e) {
|
|
838
|
+
l = !0, i = e;
|
|
839
|
+
} finally {
|
|
840
|
+
try {
|
|
841
|
+
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
|
|
842
|
+
} finally {
|
|
843
|
+
if (l) throw i;
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
return s;
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
function Rt(e) {
|
|
850
|
+
if (Array.isArray(e)) return e;
|
|
851
|
+
}
|
|
852
|
+
function zt(e, t) {
|
|
853
|
+
if (e.length === 0) return [];
|
|
854
|
+
var n = Ft(t, 2);
|
|
855
|
+
n[0];
|
|
856
|
+
for (var r = n[1], i = r.column, a = r.row, o = Array(a), s = 0; s < a;) {
|
|
857
|
+
o[s] = Array(i);
|
|
858
|
+
for (var c = 0; c < i;) o[s][c] = null, c++;
|
|
859
|
+
s++;
|
|
860
|
+
}
|
|
861
|
+
for (var l = Pt(e), u; !(u = l()).done;) {
|
|
862
|
+
var d = u.value, f = d.row - 1, p = d.column - 1;
|
|
863
|
+
p < i && f < a && (o[f][p] = d.value);
|
|
864
|
+
}
|
|
865
|
+
return o = At(Nt(o, { onlyTrimAtTheEnd: !0 }), { onlyTrimAtTheEnd: !0 }), o;
|
|
866
|
+
}
|
|
867
|
+
//#endregion
|
|
868
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xlsx/parseSheet.js
|
|
869
|
+
function Bt(e, t, n, r, i, a) {
|
|
870
|
+
var o = t.createDocument(e), s = bt(o, n, r, i, a);
|
|
871
|
+
return zt(s, Et(o) || Dt(s));
|
|
872
|
+
}
|
|
873
|
+
//#endregion
|
|
874
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/xlsx/parseSpreadsheetContents.js
|
|
875
|
+
function L(e, t) {
|
|
876
|
+
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
877
|
+
if (n) return (n = n.call(e)).next.bind(n);
|
|
878
|
+
if (Array.isArray(e) || (n = Vt(e)) || t && e && typeof e.length == "number") {
|
|
879
|
+
n && (e = n);
|
|
880
|
+
var r = 0;
|
|
881
|
+
return function() {
|
|
882
|
+
return r >= e.length ? { done: !0 } : {
|
|
883
|
+
done: !1,
|
|
884
|
+
value: e[r++]
|
|
885
|
+
};
|
|
886
|
+
};
|
|
887
|
+
}
|
|
888
|
+
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
889
|
+
}
|
|
890
|
+
function Vt(e, t) {
|
|
891
|
+
if (e) {
|
|
892
|
+
if (typeof e == "string") return R(e, t);
|
|
893
|
+
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
894
|
+
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
895
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return R(e, t);
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
function R(e, t) {
|
|
899
|
+
(t == null || t > e.length) && (t = e.length);
|
|
900
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
901
|
+
return r;
|
|
902
|
+
}
|
|
903
|
+
function z(e, t) {
|
|
904
|
+
for (var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = function(t) {
|
|
905
|
+
if (!e[t]) throw Error(`"${t}" file not found inside the *.xlsx file zip archive`);
|
|
906
|
+
return e[t];
|
|
907
|
+
}, i = Le(r("xl/_rels/workbook.xml.rels"), t), a = i.sharedStrings ? Ge(r(i.sharedStrings), t) : [], o = i.styles ? Ue(r(i.styles), t) : {}, s = Ie(r("xl/workbook.xml"), t), c = s.sheets, l = s.epoch1904, u = n.sheets && n.sheets.map(function(e) {
|
|
908
|
+
return Ht(e, c);
|
|
909
|
+
}), d = [], f = 0, p = Object.keys(i.sheets); f < p.length; f++) {
|
|
910
|
+
var m = p[f];
|
|
911
|
+
u && !u.includes(m) || d.push({
|
|
912
|
+
sheet: Ut(m, c),
|
|
913
|
+
data: Bt(r(i.sheets[m]), t, a, o, l, n)
|
|
914
|
+
});
|
|
915
|
+
}
|
|
916
|
+
return d;
|
|
917
|
+
}
|
|
918
|
+
function Ht(e, t) {
|
|
919
|
+
if (typeof e == "string") {
|
|
920
|
+
for (var n = L(t), r; !(r = n()).done;) {
|
|
921
|
+
var i = r.value;
|
|
922
|
+
if (i.name === e) return i.relationId;
|
|
923
|
+
}
|
|
924
|
+
throw Error(`Sheet "${e}" not found. Available sheets: ${t.map(function(e) {
|
|
925
|
+
return `"${e.name}"`;
|
|
926
|
+
}).join(", ")}`);
|
|
927
|
+
} else {
|
|
928
|
+
if (e <= t.length) return t[e - 1].relationId;
|
|
929
|
+
throw Error(`Sheet number out of bounds: ${e}. Available sheets count: ${t.length}`);
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
function Ut(e, t) {
|
|
933
|
+
for (var n = L(t), r; !(r = n()).done;) {
|
|
934
|
+
var i = r.value;
|
|
935
|
+
if (i.relationId === e) return i.name;
|
|
936
|
+
}
|
|
937
|
+
throw Error(`Sheet ID not found: ${e}`);
|
|
938
|
+
}
|
|
939
|
+
//#endregion
|
|
940
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/export/readXlsxFileBrowser.js
|
|
941
|
+
function Wt(e, t) {
|
|
942
|
+
return ge(e).then(function(e) {
|
|
943
|
+
return z(e, ue, t);
|
|
944
|
+
});
|
|
945
|
+
}
|
|
946
|
+
//#endregion
|
|
947
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/parseSheetData/InvalidError.js
|
|
948
|
+
function B(e) {
|
|
949
|
+
"@babel/helpers - typeof";
|
|
950
|
+
return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
951
|
+
return typeof e;
|
|
952
|
+
} : function(e) {
|
|
953
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
954
|
+
}, B(e);
|
|
955
|
+
}
|
|
956
|
+
function V(e, t) {
|
|
957
|
+
for (var n = 0; n < t.length; n++) {
|
|
958
|
+
var r = t[n];
|
|
959
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Kt(r.key), r);
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
function Gt(e, t, n) {
|
|
963
|
+
return t && V(e.prototype, t), n && V(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
964
|
+
}
|
|
965
|
+
function Kt(e) {
|
|
966
|
+
var t = qt(e, "string");
|
|
967
|
+
return B(t) === "symbol" ? t : String(t);
|
|
968
|
+
}
|
|
969
|
+
function qt(e, t) {
|
|
970
|
+
if (B(e) !== "object" || e === null) return e;
|
|
971
|
+
var n = e[Symbol.toPrimitive];
|
|
972
|
+
if (n !== void 0) {
|
|
973
|
+
var r = n.call(e, t || "default");
|
|
974
|
+
if (B(r) !== "object") return r;
|
|
975
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
976
|
+
}
|
|
977
|
+
return (t === "string" ? String : Number)(e);
|
|
978
|
+
}
|
|
979
|
+
function Jt(e, t) {
|
|
980
|
+
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
981
|
+
}
|
|
982
|
+
function Yt(e, t) {
|
|
983
|
+
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
|
|
984
|
+
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
985
|
+
value: e,
|
|
986
|
+
writable: !0,
|
|
987
|
+
configurable: !0
|
|
988
|
+
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t && W(e, t);
|
|
989
|
+
}
|
|
990
|
+
function Xt(e) {
|
|
991
|
+
var t = $t();
|
|
992
|
+
return function() {
|
|
993
|
+
var n = G(e), r;
|
|
994
|
+
if (t) {
|
|
995
|
+
var i = G(this).constructor;
|
|
996
|
+
r = Reflect.construct(n, arguments, i);
|
|
997
|
+
} else r = n.apply(this, arguments);
|
|
998
|
+
return Zt(this, r);
|
|
999
|
+
};
|
|
1000
|
+
}
|
|
1001
|
+
function Zt(e, t) {
|
|
1002
|
+
if (t && (B(t) === "object" || typeof t == "function")) return t;
|
|
1003
|
+
if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
|
|
1004
|
+
return Qt(e);
|
|
1005
|
+
}
|
|
1006
|
+
function Qt(e) {
|
|
1007
|
+
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1008
|
+
return e;
|
|
1009
|
+
}
|
|
1010
|
+
function H(e) {
|
|
1011
|
+
var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
1012
|
+
return H = function(e) {
|
|
1013
|
+
if (e === null || !en(e)) return e;
|
|
1014
|
+
if (typeof e != "function") throw TypeError("Super expression must either be null or a function");
|
|
1015
|
+
if (t !== void 0) {
|
|
1016
|
+
if (t.has(e)) return t.get(e);
|
|
1017
|
+
t.set(e, n);
|
|
1018
|
+
}
|
|
1019
|
+
function n() {
|
|
1020
|
+
return U(e, arguments, G(this).constructor);
|
|
1021
|
+
}
|
|
1022
|
+
return n.prototype = Object.create(e.prototype, { constructor: {
|
|
1023
|
+
value: n,
|
|
1024
|
+
enumerable: !1,
|
|
1025
|
+
writable: !0,
|
|
1026
|
+
configurable: !0
|
|
1027
|
+
} }), W(n, e);
|
|
1028
|
+
}, H(e);
|
|
1029
|
+
}
|
|
1030
|
+
function U(e, t, n) {
|
|
1031
|
+
return U = $t() ? Reflect.construct.bind() : function(e, t, n) {
|
|
1032
|
+
var r = [null];
|
|
1033
|
+
r.push.apply(r, t);
|
|
1034
|
+
var i = new (Function.bind.apply(e, r))();
|
|
1035
|
+
return n && W(i, n.prototype), i;
|
|
1036
|
+
}, U.apply(null, arguments);
|
|
1037
|
+
}
|
|
1038
|
+
function $t() {
|
|
1039
|
+
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
1040
|
+
if (typeof Proxy == "function") return !0;
|
|
1041
|
+
try {
|
|
1042
|
+
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})), !0;
|
|
1043
|
+
} catch {
|
|
1044
|
+
return !1;
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
function en(e) {
|
|
1048
|
+
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
1049
|
+
}
|
|
1050
|
+
function W(e, t) {
|
|
1051
|
+
return W = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
1052
|
+
return e.__proto__ = t, e;
|
|
1053
|
+
}, W(e, t);
|
|
1054
|
+
}
|
|
1055
|
+
function G(e) {
|
|
1056
|
+
return G = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
1057
|
+
return e.__proto__ || Object.getPrototypeOf(e);
|
|
1058
|
+
}, G(e);
|
|
1059
|
+
}
|
|
1060
|
+
var K = /*#__PURE__*/ function(e) {
|
|
1061
|
+
Yt(n, e);
|
|
1062
|
+
var t = Xt(n);
|
|
1063
|
+
function n(e) {
|
|
1064
|
+
var r;
|
|
1065
|
+
return Jt(this, n), r = t.call(this, "invalid"), r.reason = e, r;
|
|
1066
|
+
}
|
|
1067
|
+
return Gt(n);
|
|
1068
|
+
}(/*#__PURE__*/ H(Error));
|
|
1069
|
+
//#endregion
|
|
1070
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/parseSheetData/types/Number.js
|
|
1071
|
+
function tn(e) {
|
|
1072
|
+
if (typeof e == "string") {
|
|
1073
|
+
var t = e;
|
|
1074
|
+
if (e = Number(e), String(e) !== t) throw new K("not_a_number");
|
|
1075
|
+
}
|
|
1076
|
+
if (typeof e != "number") throw new K("not_a_number");
|
|
1077
|
+
if (isNaN(e)) throw new K("invalid_number");
|
|
1078
|
+
if (!isFinite(e)) throw new K("out_of_bounds");
|
|
1079
|
+
return e;
|
|
1080
|
+
}
|
|
1081
|
+
//#endregion
|
|
1082
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/parseSheetData/types/String.js
|
|
1083
|
+
function nn(e) {
|
|
1084
|
+
if (typeof e == "string") return e;
|
|
1085
|
+
if (typeof e == "number") {
|
|
1086
|
+
if (isNaN(e)) throw new K("invalid_number");
|
|
1087
|
+
if (!isFinite(e)) throw new K("out_of_bounds");
|
|
1088
|
+
return String(e);
|
|
1089
|
+
}
|
|
1090
|
+
throw new K("not_a_string");
|
|
1091
|
+
}
|
|
1092
|
+
//#endregion
|
|
1093
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/parseSheetData/types/Boolean.js
|
|
1094
|
+
function rn(e) {
|
|
1095
|
+
if (typeof e == "boolean") return e;
|
|
1096
|
+
throw new K("not_a_boolean");
|
|
1097
|
+
}
|
|
1098
|
+
//#endregion
|
|
1099
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/parseSheetData/types/Date.js
|
|
1100
|
+
function an(e) {
|
|
1101
|
+
if (e instanceof Date) {
|
|
1102
|
+
if (isNaN(e.valueOf())) throw new K("out_of_bounds");
|
|
1103
|
+
return e;
|
|
1104
|
+
}
|
|
1105
|
+
throw new K("not_a_date");
|
|
1106
|
+
}
|
|
1107
|
+
//#endregion
|
|
1108
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/parseSheetData/parseSheetData.js
|
|
1109
|
+
function q(e) {
|
|
1110
|
+
"@babel/helpers - typeof";
|
|
1111
|
+
return q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1112
|
+
return typeof e;
|
|
1113
|
+
} : function(e) {
|
|
1114
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1115
|
+
}, q(e);
|
|
1116
|
+
}
|
|
1117
|
+
function on(e, t) {
|
|
1118
|
+
return dn(e) || sn(e, t) || Y(e, t) || ln();
|
|
1119
|
+
}
|
|
1120
|
+
function sn(e, t) {
|
|
1121
|
+
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1122
|
+
if (n != null) {
|
|
1123
|
+
var r, i, a, o, s = [], c = !0, l = !1;
|
|
1124
|
+
try {
|
|
1125
|
+
if (a = (n = n.call(e)).next, t === 0) {
|
|
1126
|
+
if (Object(n) !== n) return;
|
|
1127
|
+
c = !1;
|
|
1128
|
+
} else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
1129
|
+
} catch (e) {
|
|
1130
|
+
l = !0, i = e;
|
|
1131
|
+
} finally {
|
|
1132
|
+
try {
|
|
1133
|
+
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
|
|
1134
|
+
} finally {
|
|
1135
|
+
if (l) throw i;
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
return s;
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
function cn(e) {
|
|
1142
|
+
return dn(e) || un(e) || Y(e) || ln();
|
|
1143
|
+
}
|
|
1144
|
+
function ln() {
|
|
1145
|
+
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1146
|
+
}
|
|
1147
|
+
function un(e) {
|
|
1148
|
+
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
1149
|
+
}
|
|
1150
|
+
function dn(e) {
|
|
1151
|
+
if (Array.isArray(e)) return e;
|
|
1152
|
+
}
|
|
1153
|
+
function fn(e, t) {
|
|
1154
|
+
var n = Object.keys(e);
|
|
1155
|
+
if (Object.getOwnPropertySymbols) {
|
|
1156
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
1157
|
+
t && (r = r.filter(function(t) {
|
|
1158
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
1159
|
+
})), n.push.apply(n, r);
|
|
1160
|
+
}
|
|
1161
|
+
return n;
|
|
1162
|
+
}
|
|
1163
|
+
function J(e) {
|
|
1164
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1165
|
+
var n = arguments[t] == null ? {} : arguments[t];
|
|
1166
|
+
t % 2 ? fn(Object(n), !0).forEach(function(t) {
|
|
1167
|
+
pn(e, t, n[t]);
|
|
1168
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fn(Object(n)).forEach(function(t) {
|
|
1169
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
1170
|
+
});
|
|
1171
|
+
}
|
|
1172
|
+
return e;
|
|
1173
|
+
}
|
|
1174
|
+
function pn(e, t, n) {
|
|
1175
|
+
return t = mn(t), t in e ? Object.defineProperty(e, t, {
|
|
1176
|
+
value: n,
|
|
1177
|
+
enumerable: !0,
|
|
1178
|
+
configurable: !0,
|
|
1179
|
+
writable: !0
|
|
1180
|
+
}) : e[t] = n, e;
|
|
1181
|
+
}
|
|
1182
|
+
function mn(e) {
|
|
1183
|
+
var t = hn(e, "string");
|
|
1184
|
+
return q(t) === "symbol" ? t : String(t);
|
|
1185
|
+
}
|
|
1186
|
+
function hn(e, t) {
|
|
1187
|
+
if (q(e) !== "object" || e === null) return e;
|
|
1188
|
+
var n = e[Symbol.toPrimitive];
|
|
1189
|
+
if (n !== void 0) {
|
|
1190
|
+
var r = n.call(e, t || "default");
|
|
1191
|
+
if (q(r) !== "object") return r;
|
|
1192
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
1193
|
+
}
|
|
1194
|
+
return (t === "string" ? String : Number)(e);
|
|
1195
|
+
}
|
|
1196
|
+
function gn(e, t) {
|
|
1197
|
+
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1198
|
+
if (n) return (n = n.call(e)).next.bind(n);
|
|
1199
|
+
if (Array.isArray(e) || (n = Y(e)) || t && e && typeof e.length == "number") {
|
|
1200
|
+
n && (e = n);
|
|
1201
|
+
var r = 0;
|
|
1202
|
+
return function() {
|
|
1203
|
+
return r >= e.length ? { done: !0 } : {
|
|
1204
|
+
done: !1,
|
|
1205
|
+
value: e[r++]
|
|
1206
|
+
};
|
|
1207
|
+
};
|
|
1208
|
+
}
|
|
1209
|
+
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1210
|
+
}
|
|
1211
|
+
function Y(e, t) {
|
|
1212
|
+
if (e) {
|
|
1213
|
+
if (typeof e == "string") return _n(e, t);
|
|
1214
|
+
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
1215
|
+
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
1216
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _n(e, t);
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
function _n(e, t) {
|
|
1220
|
+
(t == null || t > e.length) && (t = e.length);
|
|
1221
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
1222
|
+
return r;
|
|
1223
|
+
}
|
|
1224
|
+
function vn(e, t, n) {
|
|
1225
|
+
for (var r = [], i = [], a = yn(e, t, n), o = 0, s = gn(a), c; !(c = s()).done;) {
|
|
1226
|
+
var l = c.value, u = l.object, d = l.errors;
|
|
1227
|
+
d ? i = i.concat(d.map(function(e) {
|
|
1228
|
+
return J(J({}, e), {}, { row: o + 1 });
|
|
1229
|
+
})) : r.push(u), o++;
|
|
1230
|
+
}
|
|
1231
|
+
return i.length > 0 ? { errors: i } : { objects: r };
|
|
1232
|
+
}
|
|
1233
|
+
function yn(e, t, n) {
|
|
1234
|
+
Fn(t);
|
|
1235
|
+
var r = zn(n), i = cn(e), a = i[0];
|
|
1236
|
+
return i.slice(1).map(function(e) {
|
|
1237
|
+
return bn(e, t, a, r);
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1240
|
+
function bn(e, t, n, r) {
|
|
1241
|
+
var i = { schema: t }, a = Sn(e, i, void 0, n, r), o = a.value, s = a.isEmptyValue, c = a.errors, l = a.children, u = {
|
|
1242
|
+
value: Bn,
|
|
1243
|
+
isEmptyValue: s,
|
|
1244
|
+
errors: c,
|
|
1245
|
+
isRequired: void 0
|
|
1246
|
+
}, d = Z(i, o, s, c, l, u.isRequired, u.value, u.isEmptyValue, u.errors, n);
|
|
1247
|
+
return c || d ? { errors: (c || []).concat(d || []) } : { object: jn(o, s, void 0, r) };
|
|
1248
|
+
}
|
|
1249
|
+
function xn(e, t, n, r, i) {
|
|
1250
|
+
for (var a = {}, o = !0, s = [], c = [], l = 0, u = Object.keys(t); l < u.length; l++) {
|
|
1251
|
+
var d = u[l], f = Sn(e, t[d], Mn(d, n), r, i);
|
|
1252
|
+
f.errors ? s = s.concat(f.errors) : (a[d] = jn(f.value, f.isEmptyValue, Mn(d, n), i), o && !f.isEmptyValue && (o = !1)), c.push(J(J({}, f), {}, { schemaEntry: t[d] }));
|
|
1253
|
+
}
|
|
1254
|
+
return s.length > 0 ? {
|
|
1255
|
+
errors: s,
|
|
1256
|
+
children: c
|
|
1257
|
+
} : {
|
|
1258
|
+
value: a,
|
|
1259
|
+
isEmptyValue: o,
|
|
1260
|
+
children: c
|
|
1261
|
+
};
|
|
1262
|
+
}
|
|
1263
|
+
function Sn(e, t, n, r, i) {
|
|
1264
|
+
var a = t.column ? r.indexOf(t.column) : void 0, o = t.column ? a < 0 : void 0, s = t.column ? o ? {
|
|
1265
|
+
value: i.propertyValueWhenColumnIsMissing,
|
|
1266
|
+
isEmptyValue: !0
|
|
1267
|
+
} : Cn(e[a], t, a, i) : xn(e, t.schema, n, r, i), c = s.value, l = s.isEmptyValue, u = s.errors, d = s.children;
|
|
1268
|
+
return u ? {
|
|
1269
|
+
errors: u,
|
|
1270
|
+
children: d
|
|
1271
|
+
} : {
|
|
1272
|
+
value: c,
|
|
1273
|
+
isEmptyValue: l,
|
|
1274
|
+
children: d
|
|
1275
|
+
};
|
|
1276
|
+
}
|
|
1277
|
+
function Cn(e, t, n, r) {
|
|
1278
|
+
var i = wn(e, t, r), a = i.value, o = i.isEmptyValue, s = i.error, c = i.reason;
|
|
1279
|
+
return s ? { errors: [Pn({
|
|
1280
|
+
error: s,
|
|
1281
|
+
reason: c,
|
|
1282
|
+
column: t.column,
|
|
1283
|
+
columnIndex: n,
|
|
1284
|
+
valueType: t.type,
|
|
1285
|
+
value: e
|
|
1286
|
+
})] } : {
|
|
1287
|
+
value: a,
|
|
1288
|
+
isEmptyValue: o
|
|
1289
|
+
};
|
|
1290
|
+
}
|
|
1291
|
+
function wn(e, t, n) {
|
|
1292
|
+
return e === void 0 ? {
|
|
1293
|
+
value: n.propertyValueWhenColumnIsMissing,
|
|
1294
|
+
isEmptyValue: !0
|
|
1295
|
+
} : e === null ? {
|
|
1296
|
+
value: n.propertyValueWhenCellIsEmpty,
|
|
1297
|
+
isEmptyValue: !0
|
|
1298
|
+
} : Array.isArray(t.type) ? Tn(e, t, n) : En(e, t, n);
|
|
1299
|
+
}
|
|
1300
|
+
function Tn(e, t, n) {
|
|
1301
|
+
if (typeof e != "string") return { error: "not_a_string" };
|
|
1302
|
+
var r = !0, i = [], a = [], o = An(e, n.separatorCharacter).map(function(e) {
|
|
1303
|
+
if (!(i.length > 0)) {
|
|
1304
|
+
if (!e) {
|
|
1305
|
+
i.push("invalid"), a.push("syntax");
|
|
1306
|
+
return;
|
|
1307
|
+
}
|
|
1308
|
+
var o = En(e, t, n), s = o.value, c = o.isEmptyValue, l = o.error, u = o.reason;
|
|
1309
|
+
if (l) {
|
|
1310
|
+
i.push(l), a.push(u);
|
|
1311
|
+
return;
|
|
1312
|
+
}
|
|
1313
|
+
return r && !c && (r = !1), s;
|
|
1314
|
+
}
|
|
1315
|
+
});
|
|
1316
|
+
return i.length > 0 ? {
|
|
1317
|
+
error: i[0],
|
|
1318
|
+
reason: a[0]
|
|
1319
|
+
} : {
|
|
1320
|
+
value: o,
|
|
1321
|
+
isEmptyValue: r
|
|
1322
|
+
};
|
|
1323
|
+
}
|
|
1324
|
+
function En(e, t, n) {
|
|
1325
|
+
if (e === null) return {
|
|
1326
|
+
value: null,
|
|
1327
|
+
isEmptyValue: !0
|
|
1328
|
+
};
|
|
1329
|
+
var r = t.type ? On(e, Array.isArray(t.type) ? t.type[0] : t.type, n) : { value: e };
|
|
1330
|
+
if (r.error) return r;
|
|
1331
|
+
if (e === null) return {
|
|
1332
|
+
value: null,
|
|
1333
|
+
isEmptyValue: !0
|
|
1334
|
+
};
|
|
1335
|
+
if (t.oneOf) {
|
|
1336
|
+
var i = Dn(r.value, t.oneOf);
|
|
1337
|
+
if (i) return i;
|
|
1338
|
+
}
|
|
1339
|
+
if (t.validate) try {
|
|
1340
|
+
t.validate(r.value);
|
|
1341
|
+
} catch (e) {
|
|
1342
|
+
return { error: e.message };
|
|
1343
|
+
}
|
|
1344
|
+
return {
|
|
1345
|
+
value: r.value,
|
|
1346
|
+
isEmptyValue: Ln(r.value)
|
|
1347
|
+
};
|
|
1348
|
+
}
|
|
1349
|
+
function Dn(e, t) {
|
|
1350
|
+
if (t.indexOf(e) < 0) return {
|
|
1351
|
+
error: "invalid",
|
|
1352
|
+
reason: "unknown"
|
|
1353
|
+
};
|
|
1354
|
+
}
|
|
1355
|
+
function On(e, t) {
|
|
1356
|
+
switch (t) {
|
|
1357
|
+
case String: return X(e, nn);
|
|
1358
|
+
case Number: return X(e, tn);
|
|
1359
|
+
case Date: return X(e, an);
|
|
1360
|
+
case Boolean: return X(e, rn);
|
|
1361
|
+
default:
|
|
1362
|
+
if (typeof t != "function") throw Error(`Unsupported schema \`type\`: ${t && t.name || t}`);
|
|
1363
|
+
return X(e, t);
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
function X(e, t) {
|
|
1367
|
+
try {
|
|
1368
|
+
var n = t(e);
|
|
1369
|
+
return n === void 0 ? { value: null } : { value: n };
|
|
1370
|
+
} catch (e) {
|
|
1371
|
+
var r = { error: e.message };
|
|
1372
|
+
return e.reason && (r.reason = e.reason), r;
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
function kn(e, t, n) {
|
|
1376
|
+
for (var r = 0, i = ""; n + r < e.length;) {
|
|
1377
|
+
var a = e[n + r];
|
|
1378
|
+
if (a === t) return [i, r];
|
|
1379
|
+
i += a, r++;
|
|
1380
|
+
}
|
|
1381
|
+
return [i, r];
|
|
1382
|
+
}
|
|
1383
|
+
function An(e, t) {
|
|
1384
|
+
for (var n = [], r = 0; r < e.length;) {
|
|
1385
|
+
var i = on(kn(e, t, r), 2), a = i[0], o = i[1];
|
|
1386
|
+
r += o + t.length, n.push(a.trim());
|
|
1387
|
+
}
|
|
1388
|
+
return n;
|
|
1389
|
+
}
|
|
1390
|
+
function jn(e, t, n, r) {
|
|
1391
|
+
if (t) {
|
|
1392
|
+
if (Hn(e)) return r.transformEmptyObject(e, { path: n });
|
|
1393
|
+
if (Array.isArray(e)) return r.transformEmptyArray(e, { path: n });
|
|
1394
|
+
}
|
|
1395
|
+
return e;
|
|
1396
|
+
}
|
|
1397
|
+
function Mn(e, t) {
|
|
1398
|
+
return `${t ? t + "." : ""}${e}`;
|
|
1399
|
+
}
|
|
1400
|
+
function Z(e, t, n, r, i, a, o, s, c, l) {
|
|
1401
|
+
var u = [], d = Nn(e, a, o, s, c);
|
|
1402
|
+
if (d && n && u.push(Pn({
|
|
1403
|
+
error: "required",
|
|
1404
|
+
column: e.column,
|
|
1405
|
+
columnIndex: l.indexOf(e.column),
|
|
1406
|
+
valueType: e.type,
|
|
1407
|
+
value: t
|
|
1408
|
+
})), i) for (var f = gn(i), p; !(p = f()).done;) {
|
|
1409
|
+
var m = p.value, h = Z(m.schemaEntry, m.value, m.isEmptyValue, m.errors, m.children, d, t, n, r, l);
|
|
1410
|
+
h && (u = u.concat(h));
|
|
1411
|
+
}
|
|
1412
|
+
if (u.length > 0) return u;
|
|
1413
|
+
}
|
|
1414
|
+
function Nn(e, t, n, r, i) {
|
|
1415
|
+
return t === !1 && (r || i) ? !1 : e.required && (typeof e.required == "boolean" ? e.required : i ? !1 : e.required(n));
|
|
1416
|
+
}
|
|
1417
|
+
function Pn(e) {
|
|
1418
|
+
var t = e.column, n = e.columnIndex, r = e.valueType, i = e.value, a = e.error, o = e.reason, s = {
|
|
1419
|
+
error: a,
|
|
1420
|
+
column: t,
|
|
1421
|
+
columnIndex: n,
|
|
1422
|
+
value: i
|
|
1423
|
+
};
|
|
1424
|
+
return o && (s.reason = o), r && (s.type = r), s;
|
|
1425
|
+
}
|
|
1426
|
+
function Fn(e) {
|
|
1427
|
+
for (var t = 0, n = Object.keys(e); t < n.length; t++) {
|
|
1428
|
+
var r = n[t], i = e[r];
|
|
1429
|
+
if (q(i.type) === "object" && !Array.isArray(i.type)) throw Error("When defining a nested schema, use a `schema` property instead of a `type` property");
|
|
1430
|
+
if (!i.schema && !i.column) throw Error(`"column" not defined for schema entry "${r}".`);
|
|
1431
|
+
}
|
|
1432
|
+
In(e, void 0);
|
|
1433
|
+
}
|
|
1434
|
+
function In(e, t) {
|
|
1435
|
+
if (t !== void 0 && t !== !1) throw Error(`In a schema, a nested object can have a \`required\` property but the only allowed value is \`undefined\` or \`false\`. Otherwise, a "required" error for a nested object would have to include a specific \`column\` title and a nested object doesn't have one. You've specified the following \`required\`: ${t}`);
|
|
1436
|
+
for (var n = 0, r = Object.keys(e); n < r.length; n++) {
|
|
1437
|
+
var i = r[n];
|
|
1438
|
+
if (Hn(e[i].schema)) {
|
|
1439
|
+
if (e[i].column) throw Error(`In a schema, \`column\` property is only allowed when describing a property value rather than a nested object. Key: ${i}. Schema:
|
|
1440
|
+
${JSON.stringify(e[i], null, 2)}`);
|
|
1441
|
+
In(e[i].schema, e[i].required);
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
function Ln(e) {
|
|
1446
|
+
return e == null;
|
|
1447
|
+
}
|
|
1448
|
+
var Rn = {
|
|
1449
|
+
propertyValueWhenColumnIsMissing: void 0,
|
|
1450
|
+
propertyValueWhenCellIsEmpty: null,
|
|
1451
|
+
transformEmptyObject: function() {
|
|
1452
|
+
return null;
|
|
1453
|
+
},
|
|
1454
|
+
transformEmptyArray: function() {
|
|
1455
|
+
return null;
|
|
1456
|
+
},
|
|
1457
|
+
separatorCharacter: ","
|
|
1458
|
+
};
|
|
1459
|
+
function zn(e) {
|
|
1460
|
+
return e ? J(J({}, Rn), e) : Rn;
|
|
1461
|
+
}
|
|
1462
|
+
var Bn = {}, Vn = {}.constructor;
|
|
1463
|
+
function Hn(e) {
|
|
1464
|
+
return e != null && e.constructor === Vn;
|
|
1465
|
+
}
|
|
1466
|
+
//#endregion
|
|
1467
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/export/parseSheet.js
|
|
1468
|
+
function Q(e) {
|
|
1469
|
+
"@babel/helpers - typeof";
|
|
1470
|
+
return Q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1471
|
+
return typeof e;
|
|
1472
|
+
} : function(e) {
|
|
1473
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1474
|
+
}, Q(e);
|
|
1475
|
+
}
|
|
1476
|
+
function Un(e, t) {
|
|
1477
|
+
var n = Object.keys(e);
|
|
1478
|
+
if (Object.getOwnPropertySymbols) {
|
|
1479
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
1480
|
+
t && (r = r.filter(function(t) {
|
|
1481
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
1482
|
+
})), n.push.apply(n, r);
|
|
1483
|
+
}
|
|
1484
|
+
return n;
|
|
1485
|
+
}
|
|
1486
|
+
function Wn(e) {
|
|
1487
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1488
|
+
var n = arguments[t] == null ? {} : arguments[t];
|
|
1489
|
+
t % 2 ? Un(Object(n), !0).forEach(function(t) {
|
|
1490
|
+
Gn(e, t, n[t]);
|
|
1491
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Un(Object(n)).forEach(function(t) {
|
|
1492
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
1493
|
+
});
|
|
1494
|
+
}
|
|
1495
|
+
return e;
|
|
1496
|
+
}
|
|
1497
|
+
function Gn(e, t, n) {
|
|
1498
|
+
return t = Kn(t), t in e ? Object.defineProperty(e, t, {
|
|
1499
|
+
value: n,
|
|
1500
|
+
enumerable: !0,
|
|
1501
|
+
configurable: !0,
|
|
1502
|
+
writable: !0
|
|
1503
|
+
}) : e[t] = n, e;
|
|
1504
|
+
}
|
|
1505
|
+
function Kn(e) {
|
|
1506
|
+
var t = qn(e, "string");
|
|
1507
|
+
return Q(t) === "symbol" ? t : String(t);
|
|
1508
|
+
}
|
|
1509
|
+
function qn(e, t) {
|
|
1510
|
+
if (Q(e) !== "object" || e === null) return e;
|
|
1511
|
+
var n = e[Symbol.toPrimitive];
|
|
1512
|
+
if (n !== void 0) {
|
|
1513
|
+
var r = n.call(e, t || "default");
|
|
1514
|
+
if (Q(r) !== "object") return r;
|
|
1515
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
1516
|
+
}
|
|
1517
|
+
return (t === "string" ? String : Number)(e);
|
|
1518
|
+
}
|
|
1519
|
+
function Jn(e, t, n, r) {
|
|
1520
|
+
var i = z(e, t, Wn(Wn({}, r), {}, { sheets: [n === void 0 ? 1 : n] }))[0].data;
|
|
1521
|
+
return r && r.schema ? vn(i, r.schema) : i;
|
|
1522
|
+
}
|
|
1523
|
+
//#endregion
|
|
1524
|
+
//#region ../../node_modules/.pnpm/read-excel-file@9.2.0/node_modules/read-excel-file/modules/export/readSheetBrowser.js
|
|
1525
|
+
function Yn(e, t, n) {
|
|
1526
|
+
return !n && t && typeof t != "number" && typeof t != "string" && (n = t, t = void 0), ge(e).then(function(e) {
|
|
1527
|
+
return Jn(e, ue, t, n);
|
|
1528
|
+
});
|
|
1529
|
+
}
|
|
1530
|
+
//#endregion
|
|
1531
|
+
//#region src/utils/UploadUtil/UploadUtil.ts
|
|
1532
|
+
var $ = /* @__PURE__ */ e(l(), 1), Xn = /* @__PURE__ */ e(o(), 1), Zn = class e {
|
|
1533
|
+
static caseDateColumnAliases = [
|
|
1534
|
+
"_case_date",
|
|
1535
|
+
"case date",
|
|
1536
|
+
"case_date",
|
|
1537
|
+
"casedate",
|
|
1538
|
+
"case.date"
|
|
1539
|
+
];
|
|
1540
|
+
static caseIdColumnAliases = [
|
|
1541
|
+
"_case_id",
|
|
1542
|
+
"case id",
|
|
1543
|
+
"case_id",
|
|
1544
|
+
"caseid",
|
|
1545
|
+
"case.id"
|
|
1546
|
+
];
|
|
1547
|
+
static colAliases = [
|
|
1548
|
+
"_case_type",
|
|
1549
|
+
"case type",
|
|
1550
|
+
"case_type",
|
|
1551
|
+
"casetype",
|
|
1552
|
+
"case.type"
|
|
1553
|
+
];
|
|
1554
|
+
static areMappedColumnsEqual(e, t) {
|
|
1555
|
+
return e.length === t.length ? e.every((e, n) => {
|
|
1556
|
+
let r = t[n];
|
|
1557
|
+
return `${e.originalIndex}-${e.originalLabel}` == `${r.originalIndex}-${r.originalLabel}`;
|
|
1558
|
+
}) : !1;
|
|
1559
|
+
}
|
|
1560
|
+
static async createCases(e) {
|
|
1561
|
+
let { assemblyProtocolId: t, casesForVerificationFromSourceData: n, completeCaseType: r, createdInDataCollectionId: i, mappedColumns: a, sampleIdColId: o, selectedValidatedCases: s, sequenceMapping: l, sequencingProtocolId: u, signal: d } = e, { col: f, sampleIdentifierIssuerId: p } = a.find((e) => e.col?.id === o) ?? {};
|
|
1562
|
+
return (await g.getInstance().uploadCases({
|
|
1563
|
+
case_batch: { cases: s.map((e) => {
|
|
1564
|
+
let a = e.id, o = [], s = [], d = f ? c.getRowValue(e.validated_content, f, r)?.raw : null, m = n.find((t) => t.id === e.id);
|
|
1565
|
+
return d && (l[e.id]?.sequenceFileNames && Object.entries(l[e.id].sequenceFileNames).forEach(([e, n]) => {
|
|
1566
|
+
n && s.push({
|
|
1567
|
+
case_id: a ?? void 0,
|
|
1568
|
+
col_id: e,
|
|
1569
|
+
other_sample_identifier: {
|
|
1570
|
+
external_id: d,
|
|
1571
|
+
identifier_issuer_id: p
|
|
1572
|
+
},
|
|
1573
|
+
protocol_id: t
|
|
1574
|
+
});
|
|
1575
|
+
}), l[e.id]?.readsFileNames && Object.entries(l[e.id].readsFileNames).forEach(([e, t]) => {
|
|
1576
|
+
(t.fwd || t.rev) && o.push({
|
|
1577
|
+
case_id: a ?? void 0,
|
|
1578
|
+
col_id: e,
|
|
1579
|
+
other_sample_identifier: {
|
|
1580
|
+
external_id: d,
|
|
1581
|
+
identifier_issuer_id: p
|
|
1582
|
+
},
|
|
1583
|
+
protocol_id: u
|
|
1584
|
+
});
|
|
1585
|
+
})), oe.deepNullifyEmptyStrings({
|
|
1586
|
+
case: {
|
|
1587
|
+
case_type_id: r.id,
|
|
1588
|
+
content: e.validated_content,
|
|
1589
|
+
created_in_data_collection_id: m?.case?.created_in_data_collection_id ?? i,
|
|
1590
|
+
id: a ?? void 0
|
|
1591
|
+
},
|
|
1592
|
+
read_sets: o,
|
|
1593
|
+
seqs: s
|
|
1594
|
+
});
|
|
1595
|
+
}) },
|
|
1596
|
+
case_type_id: r.id,
|
|
1597
|
+
default_created_in_data_collection_id: i ?? void 0,
|
|
1598
|
+
on_exists: re.UPDATE
|
|
1599
|
+
}, { signal: d })).data;
|
|
1600
|
+
}
|
|
1601
|
+
static async createCasesAndUploadFiles(t) {
|
|
1602
|
+
let { onComplete: n, onError: r, onProgress: i } = t;
|
|
1603
|
+
try {
|
|
1604
|
+
i(0, h("Creating cases..."));
|
|
1605
|
+
let r = await e.createCases(t);
|
|
1606
|
+
if (r.status === ee.FAILED) throw new d(h("Failed to create cases during upload."), r);
|
|
1607
|
+
return await e.uploadFilesForCases({
|
|
1608
|
+
...t,
|
|
1609
|
+
caseBatchUploadResult: r,
|
|
1610
|
+
endPercentage: 99,
|
|
1611
|
+
startPercentage: 1
|
|
1612
|
+
}), i(100, h("Upload complete.")), await ie.getInstance().invalidateQueryKeys(ie.getInstance().getQueryKeyDependencies([s.CASES], !0)), n(), r;
|
|
1613
|
+
} catch (e) {
|
|
1614
|
+
throw r(e instanceof Error ? e : /* @__PURE__ */ Error("Unknown error occurred during upload")), e;
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
static getCasesForUpload(e) {
|
|
1618
|
+
let { caseTypeId: t, createdInDataCollectionId: n, mappedColumns: r, rawData: i } = e;
|
|
1619
|
+
return i.slice(1).map((e) => {
|
|
1620
|
+
let i = r.find((e) => e.isCaseIdColumn)?.originalIndex, a = {};
|
|
1621
|
+
r.forEach((t) => {
|
|
1622
|
+
t.col && (a[t.col.id] = e[t.originalIndex]);
|
|
1623
|
+
});
|
|
1624
|
+
let o;
|
|
1625
|
+
return o = !isNaN(i) && e[i] ? e[i] : se.createUuid(), {
|
|
1626
|
+
case: {
|
|
1627
|
+
case_type_id: t,
|
|
1628
|
+
content: oe.deepNullifyEmptyStrings(a),
|
|
1629
|
+
created_in_data_collection_id: n
|
|
1630
|
+
},
|
|
1631
|
+
id: o,
|
|
1632
|
+
content: a
|
|
1633
|
+
};
|
|
1634
|
+
});
|
|
1635
|
+
}
|
|
1636
|
+
static getCaseTypeFromColumnLabels(e, t) {
|
|
1637
|
+
let n = {
|
|
1638
|
+
caseType: null,
|
|
1639
|
+
matchCount: 0
|
|
1640
|
+
}, r = /* @__PURE__ */ new Map();
|
|
1641
|
+
return e.forEach((e) => {
|
|
1642
|
+
let n = t.filter((t) => this.matchColumnLabel(t, e)).length;
|
|
1643
|
+
if (n > 0) {
|
|
1644
|
+
let t = e.case_type_id, i = r.get(t);
|
|
1645
|
+
i ? i.matchCount += n : r.set(t, {
|
|
1646
|
+
caseType: { id: t },
|
|
1647
|
+
matchCount: n
|
|
1648
|
+
});
|
|
1649
|
+
}
|
|
1650
|
+
}), r.forEach((e) => {
|
|
1651
|
+
e.matchCount > n.matchCount && (n.caseType = e.caseType, n.matchCount = e.matchCount);
|
|
1652
|
+
}), n.caseType;
|
|
1653
|
+
}
|
|
1654
|
+
static getColumnMappingFormFieldDefinitions(e, t, n) {
|
|
1655
|
+
let r = [], i = [];
|
|
1656
|
+
i.push({
|
|
1657
|
+
label: "Case ID",
|
|
1658
|
+
value: "case_id"
|
|
1659
|
+
});
|
|
1660
|
+
let o = a.getWritableImportExportColIds(e);
|
|
1661
|
+
return e.ordered_col_ids.filter((e) => o.includes(e)).forEach((t) => {
|
|
1662
|
+
let n = e.cols[t];
|
|
1663
|
+
i.push({
|
|
1664
|
+
label: n.label,
|
|
1665
|
+
value: n.id
|
|
1666
|
+
});
|
|
1667
|
+
}), t.forEach((e, t) => {
|
|
1668
|
+
r.push({
|
|
1669
|
+
definition: ce.SELECT,
|
|
1670
|
+
label: e,
|
|
1671
|
+
name: t.toString(),
|
|
1672
|
+
options: i
|
|
1673
|
+
});
|
|
1674
|
+
}), r;
|
|
1675
|
+
}
|
|
1676
|
+
static getColumnMappingSchema(t, n) {
|
|
1677
|
+
let r = {}, i = t[0].map((e, t) => t.toString());
|
|
1678
|
+
return e.getSampleIdColIds(n).forEach((e) => {
|
|
1679
|
+
r[e] = f(() => m().nullable().when(i, (t, n) => n.test("needs-identifier-issuer", h("An identifier issuer must be selected."), (n) => [...t, n].includes(e) ? !!n : !0)));
|
|
1680
|
+
}), i.forEach((e, n) => {
|
|
1681
|
+
let a = i.filter((t) => t !== e);
|
|
1682
|
+
r[e] = f(() => m().nullable().when(a, (e, r) => r.test("unique", h("This column has already been mapped to another field."), (t) => !t || !e.includes(t)).test("valid-case-id-values", h("The column mapped to the case id field must contain valid UUID's."), (e) => e === "case_id" ? t.slice(1).map((e) => e[n]).every((e) => !e || ae.validate("UUID4", e)) : !0)));
|
|
1683
|
+
}), p().shape(r);
|
|
1684
|
+
}
|
|
1685
|
+
static getCompleteCaseTypeColStats(e) {
|
|
1686
|
+
let t = a.getColsByType(e, [_.ID_SAMPLE]), n = a.getColsByType(e, [_.GENETIC_SEQUENCE]);
|
|
1687
|
+
return {
|
|
1688
|
+
readsColumns: a.getColsByType(e, [_.GENETIC_READS]),
|
|
1689
|
+
sampleIdColumns: t,
|
|
1690
|
+
sequenceColumns: n,
|
|
1691
|
+
writableColumns: Object.values(e.cols).filter((t) => a.getWritableColIds(e).includes(t.id))
|
|
1692
|
+
};
|
|
1693
|
+
}
|
|
1694
|
+
static getDefaultColumnMappingFormValues(e, t, n) {
|
|
1695
|
+
let r = Object.fromEntries(Object.keys(e).map((e) => [e.toString(), null])), i = t.find((e) => e.isCaseIdColumn);
|
|
1696
|
+
return i && (r[i.originalIndex.toString()] = "case_id"), t.forEach((e) => {
|
|
1697
|
+
e.col && (r[e.originalIndex.toString()] = e.col.id, e.isSampleIdColumn && (r[e.col.id] = e.sampleIdentifierIssuerId || n.length === 1 ? n[0].value : null));
|
|
1698
|
+
}), r;
|
|
1699
|
+
}
|
|
1700
|
+
static getEpiUploadSequenceMapping(t, n, r) {
|
|
1701
|
+
if (!r || r.files.length === 0) return {};
|
|
1702
|
+
let i = e.getCompleteCaseTypeColStats(t), a = {};
|
|
1703
|
+
return JSON.parse(JSON.stringify(n)).forEach((n) => {
|
|
1704
|
+
let o = {
|
|
1705
|
+
readsFileNames: {},
|
|
1706
|
+
sequenceFileNames: {}
|
|
1707
|
+
};
|
|
1708
|
+
if (a[n.id] = o, i.sequenceColumns.length !== 1 && i.readsColumns.length !== 1) return;
|
|
1709
|
+
let s = [];
|
|
1710
|
+
if (i.sampleIdColumns.forEach((e) => {
|
|
1711
|
+
let r = c.getRowValue(n.validated_content, e, t);
|
|
1712
|
+
r && !r.isMissing && s.push(r.raw);
|
|
1713
|
+
}), !s.length) return;
|
|
1714
|
+
i.sequenceColumns.forEach((e) => {
|
|
1715
|
+
o.sequenceFileNames[e.id] = "";
|
|
1716
|
+
}), i.readsColumns.forEach((e) => {
|
|
1717
|
+
o.readsFileNames[e.id] = {
|
|
1718
|
+
fwd: "",
|
|
1719
|
+
rev: ""
|
|
1720
|
+
};
|
|
1721
|
+
});
|
|
1722
|
+
let l = [], u = [];
|
|
1723
|
+
if (Array.from(r.files).forEach((t) => {
|
|
1724
|
+
let n = t.name, r = n.toLowerCase();
|
|
1725
|
+
s.some((t) => r.match(e.idToRegex(t.toLowerCase()))) && (e.isGenomeFile(n) ? l.push(n) : e.isReadsFile(n) && u.push(n));
|
|
1726
|
+
}), i.sequenceColumns.length === 1 && l.length === 1 && (o.sequenceFileNames[i.sequenceColumns[0].id] = l[0]), i.readsColumns.length === 1 && (u.length === 1 && (o.readsFileNames[i.readsColumns[0].id].fwd = u[0]), u.length === 2)) {
|
|
1727
|
+
let e = u.sort((e, t) => e.localeCompare(t));
|
|
1728
|
+
o.readsFileNames[i.readsColumns[0].id].fwd = e[0], o.readsFileNames[i.readsColumns[0].id].rev = e[1];
|
|
1729
|
+
}
|
|
1730
|
+
}), a;
|
|
1731
|
+
}
|
|
1732
|
+
static getInitialMappedColumns(t, n) {
|
|
1733
|
+
if (n.length === 0) return [];
|
|
1734
|
+
let r = a.getWritableColIds(t), i = a.getWritableImportExportColIds(t).map((e) => t.cols[e]), o = e.getSampleIdColIds(t);
|
|
1735
|
+
return n[0].map((t, n) => {
|
|
1736
|
+
let a = e.isCaseIdColumn(t), s = e.isCol(t), c = null, l = !1;
|
|
1737
|
+
return !a && !s && (c = i.find((n) => e.matchColumnLabel(t, n)) || null, c && !r.includes(c.id) && (c = null), l = c ? o.includes(c.id) : !1), {
|
|
1738
|
+
col: c,
|
|
1739
|
+
isCaseIdColumn: a,
|
|
1740
|
+
isCol: s,
|
|
1741
|
+
isSampleIdColumn: l,
|
|
1742
|
+
originalIndex: n,
|
|
1743
|
+
originalLabel: t,
|
|
1744
|
+
sampleIdentifierIssuerId: null
|
|
1745
|
+
};
|
|
1746
|
+
}).filter((e) => e.isCaseIdColumn || e.col);
|
|
1747
|
+
}
|
|
1748
|
+
static getMappedColumnsFromFormData(t, n, r, i) {
|
|
1749
|
+
let a = [], o = e.getSampleIdColIds(i);
|
|
1750
|
+
return Object.entries(t).forEach(([e, i]) => {
|
|
1751
|
+
if (!i) return;
|
|
1752
|
+
let s = parseInt(e, 10), c = i === "case_id", l = null;
|
|
1753
|
+
c || (l = r.get(i) || null);
|
|
1754
|
+
let u = null, d = l ? o.includes(l.id) : !1;
|
|
1755
|
+
d && (u = t[i] || null), a.push({
|
|
1756
|
+
col: l,
|
|
1757
|
+
isCaseIdColumn: c,
|
|
1758
|
+
isSampleIdColumn: d,
|
|
1759
|
+
originalIndex: s,
|
|
1760
|
+
originalLabel: n[0][s] || "",
|
|
1761
|
+
sampleIdentifierIssuerId: u
|
|
1762
|
+
});
|
|
1763
|
+
}), a;
|
|
1764
|
+
}
|
|
1765
|
+
static getSampleIdColIds(e) {
|
|
1766
|
+
let t = [];
|
|
1767
|
+
return Object.values(Object.keys(e.cols)).forEach((n) => {
|
|
1768
|
+
let r = e.cols[n];
|
|
1769
|
+
e.ref_cols[r.ref_col_id]?.col_type === _.ID_SAMPLE && t.push(r.id);
|
|
1770
|
+
}), t;
|
|
1771
|
+
}
|
|
1772
|
+
static getSequenceMappingStats(t, n) {
|
|
1773
|
+
let r = Array.from(n.files).map((e) => e.name).filter((t) => e.isGenomeFile(t)), i = Array.from(n.files).map((e) => e.name).filter((t) => e.isReadsFile(t)), a = [...r, ...i], o = a.length, s = (0, Xn.default)(Object.values(t).flatMap((e) => Object.values(e.sequenceFileNames)).filter((e) => e)), c = (0, Xn.default)(Object.values(t).flatMap((e) => Object.values(e.readsFileNames).flatMap((e) => [e.fwd, e.rev])).filter((e) => e)), l = [...s, ...c], u = (0, $.default)(r, s), d = (0, $.default)(i, c);
|
|
1774
|
+
return {
|
|
1775
|
+
mappedFiles: l,
|
|
1776
|
+
mappedReadsFiles: c,
|
|
1777
|
+
mappedSequenceFiles: s,
|
|
1778
|
+
numberOfFilesToMap: o,
|
|
1779
|
+
unmappedFileNames: (0, $.default)(a, l),
|
|
1780
|
+
unmappedReadsFiles: d,
|
|
1781
|
+
unmappedSequenceFiles: u
|
|
1782
|
+
};
|
|
1783
|
+
}
|
|
1784
|
+
static async getSheetNameOptions(t) {
|
|
1785
|
+
let n = t[0], r = n.name.toLowerCase();
|
|
1786
|
+
return e.isXlsxFile(r) ? (await Wt(n, { trim: !0 })).map(({ sheet: e }) => ({
|
|
1787
|
+
label: e,
|
|
1788
|
+
value: e
|
|
1789
|
+
})) : [];
|
|
1790
|
+
}
|
|
1791
|
+
static hasReadsColumnMapped(e, t) {
|
|
1792
|
+
return e.some((e) => t.readsColumns.some((t) => e.col?.id === t.id));
|
|
1793
|
+
}
|
|
1794
|
+
static hasSequenceColumnMapped(e, t) {
|
|
1795
|
+
return e.some((e) => t.sequenceColumns.some((t) => e.col?.id === t.id));
|
|
1796
|
+
}
|
|
1797
|
+
static isCaseDateColumn(e) {
|
|
1798
|
+
return this.caseDateColumnAliases.includes(e.toLocaleLowerCase());
|
|
1799
|
+
}
|
|
1800
|
+
static isCaseIdColumn(e) {
|
|
1801
|
+
return this.caseIdColumnAliases.includes(e.toLocaleLowerCase());
|
|
1802
|
+
}
|
|
1803
|
+
static isCol(e) {
|
|
1804
|
+
return this.colAliases.includes(e.toLocaleLowerCase());
|
|
1805
|
+
}
|
|
1806
|
+
static isGenomeFile(e) {
|
|
1807
|
+
let t = e.toLowerCase();
|
|
1808
|
+
return t.endsWith(".fa") || t.endsWith(".fasta") || t.endsWith(".fa.gz") || t.endsWith(".fasta.gz");
|
|
1809
|
+
}
|
|
1810
|
+
static isReadsFile(e) {
|
|
1811
|
+
let t = e.toLowerCase();
|
|
1812
|
+
return t.endsWith(".fq") || t.endsWith(".fastq") || t.endsWith(".fq.gz") || t.endsWith(".fastq.gz");
|
|
1813
|
+
}
|
|
1814
|
+
static isSupportedGeneticFile(t) {
|
|
1815
|
+
return e.isGenomeFile(t) || e.isReadsFile(t);
|
|
1816
|
+
}
|
|
1817
|
+
static isTextFile(e) {
|
|
1818
|
+
let t = e?.toLowerCase();
|
|
1819
|
+
return t?.endsWith(".csv") || t?.endsWith(".tsv") || t?.endsWith(".txt");
|
|
1820
|
+
}
|
|
1821
|
+
static isXlsxFile(e) {
|
|
1822
|
+
return e?.toLowerCase()?.endsWith(".xlsx");
|
|
1823
|
+
}
|
|
1824
|
+
static matchColumnLabel(e, t) {
|
|
1825
|
+
if (!e || typeof e != "string") return !1;
|
|
1826
|
+
let n = e.toLocaleLowerCase();
|
|
1827
|
+
return n === t.label.toLocaleLowerCase() || n === t.code.toLowerCase() || n === t.id.toLocaleLowerCase();
|
|
1828
|
+
}
|
|
1829
|
+
static async readFileAsBase64(e) {
|
|
1830
|
+
return new Promise((t, n) => {
|
|
1831
|
+
let r = new FileReader();
|
|
1832
|
+
r.onload = () => {
|
|
1833
|
+
let e = r.result.split(",")[1];
|
|
1834
|
+
t(e);
|
|
1835
|
+
}, r.onerror = (e) => {
|
|
1836
|
+
n(Error("File read error"));
|
|
1837
|
+
}, r.readAsDataURL(e);
|
|
1838
|
+
});
|
|
1839
|
+
}
|
|
1840
|
+
static async readRawData(t, n) {
|
|
1841
|
+
let i = t[0], a = i.name.toLowerCase(), o;
|
|
1842
|
+
if (e.isTextFile(a)) {
|
|
1843
|
+
let e = await i.text();
|
|
1844
|
+
if (a.endsWith(".tsv") && (e = e.replace(/\t/g, ",")), a.endsWith(".txt")) {
|
|
1845
|
+
let t = e.split(/\r?\n/).filter((e) => e.trim() !== "");
|
|
1846
|
+
if (t.length > 0) {
|
|
1847
|
+
let n = [
|
|
1848
|
+
",",
|
|
1849
|
+
" ",
|
|
1850
|
+
";"
|
|
1851
|
+
], r = ",", i = 0;
|
|
1852
|
+
if (n.forEach((e) => {
|
|
1853
|
+
let n = t[0].split(e).length;
|
|
1854
|
+
n > i && (i = n, r = e);
|
|
1855
|
+
}), r !== ",") {
|
|
1856
|
+
let t = new RegExp(r.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), "g");
|
|
1857
|
+
e = e.replace(t, ",");
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
o = r(e, {
|
|
1862
|
+
columns: !1,
|
|
1863
|
+
skip_empty_lines: !0,
|
|
1864
|
+
trim: !0
|
|
1865
|
+
});
|
|
1866
|
+
} else if (e.isXlsxFile(a)) {
|
|
1867
|
+
let t = n ? await Yn(i, n, { trim: !0 }) : await Yn(i, { trim: !0 });
|
|
1868
|
+
o = e.mapExcelSheetData(t);
|
|
1869
|
+
} else throw Error("Unsupported file format. Please select a CSV or Excel file.");
|
|
1870
|
+
if (o.length < 2 || o[0].length < 2) throw Error("The selected file does not contain enough data. Please ensure it has at least a header row and one data row.");
|
|
1871
|
+
return o;
|
|
1872
|
+
}
|
|
1873
|
+
static reportFileUploadProgress(e) {
|
|
1874
|
+
let { endPercentage: t, fileSize: n, message: r, onProgress: i, startPercentage: a, totalFileSizeToUpload: o, uploadedFileSize: s } = e, c = (t - a) / o;
|
|
1875
|
+
i(a + s * c + n * c, r);
|
|
1876
|
+
}
|
|
1877
|
+
static async uploadFilesForCases(t) {
|
|
1878
|
+
let { caseBatchUploadResult: n, endPercentage: r, onProgress: i, sequenceFilesDataTransfer: a, sequenceMapping: o, signal: s, startPercentage: c } = t, l = [], d = [], f = 0;
|
|
1879
|
+
for (let [e, r] of n.cases.entries()) {
|
|
1880
|
+
let { id: n } = t.selectedValidatedCases[e];
|
|
1881
|
+
if (o[n]) {
|
|
1882
|
+
let e = r.id;
|
|
1883
|
+
for (let [t, r] of Object.entries(o[n].sequenceFileNames)) if (r) {
|
|
1884
|
+
let n = Array.from(a.files).find((e) => e.name === r);
|
|
1885
|
+
n && (l.push({
|
|
1886
|
+
caseId: e,
|
|
1887
|
+
colId: t,
|
|
1888
|
+
fileName: r
|
|
1889
|
+
}), f += n?.size || 0);
|
|
1890
|
+
}
|
|
1891
|
+
for (let [t, r] of Object.entries(o[n].readsFileNames)) {
|
|
1892
|
+
if (r.fwd) {
|
|
1893
|
+
let n = Array.from(a.files).find((e) => e.name === r.fwd);
|
|
1894
|
+
n && (d.push({
|
|
1895
|
+
caseId: e,
|
|
1896
|
+
colId: t,
|
|
1897
|
+
fileName: r.fwd,
|
|
1898
|
+
is_fwd: !0
|
|
1899
|
+
}), f += n?.size || 0);
|
|
1900
|
+
}
|
|
1901
|
+
if (r.rev) {
|
|
1902
|
+
let n = Array.from(a.files).find((e) => e.name === r.rev);
|
|
1903
|
+
n && (d.push({
|
|
1904
|
+
caseId: e,
|
|
1905
|
+
colId: t,
|
|
1906
|
+
fileName: r.rev,
|
|
1907
|
+
is_fwd: !1
|
|
1908
|
+
}), f += n?.size || 0);
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
let p = 0;
|
|
1914
|
+
for (let t of n.cases) {
|
|
1915
|
+
let n = l.find((e) => e.caseId === t.id), o = d.filter((e) => e.caseId === t.id);
|
|
1916
|
+
if (n) {
|
|
1917
|
+
let t = Array.from(a.files).find((e) => e.name === n.fileName);
|
|
1918
|
+
if (t) {
|
|
1919
|
+
let a = t.size, o = await e.readFileAsBase64(t);
|
|
1920
|
+
await g.getInstance().createFileForSeq(n.caseId, n.colId, {
|
|
1921
|
+
file_compression: u.getFileCompressionFromFileName(n.fileName),
|
|
1922
|
+
file_content: o,
|
|
1923
|
+
file_format: ne.FASTA
|
|
1924
|
+
}, { signal: s }), e.reportFileUploadProgress({
|
|
1925
|
+
endPercentage: r,
|
|
1926
|
+
fileSize: a,
|
|
1927
|
+
message: h("Uploading sequence file \"{{fileName}}\" for case ID \"{{caseId}}\"...", {
|
|
1928
|
+
caseId: n.caseId,
|
|
1929
|
+
fileName: n.fileName
|
|
1930
|
+
}),
|
|
1931
|
+
onProgress: i,
|
|
1932
|
+
startPercentage: c,
|
|
1933
|
+
totalFileSizeToUpload: f,
|
|
1934
|
+
uploadedFileSize: p
|
|
1935
|
+
}), p += a;
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
for (let t of o) {
|
|
1939
|
+
let n = Array.from(a.files).find((e) => e.name === t.fileName);
|
|
1940
|
+
if (n) {
|
|
1941
|
+
let a = n.size, o = await e.readFileAsBase64(n);
|
|
1942
|
+
await g.getInstance().createFileForReadSet(t.caseId, t.colId, {
|
|
1943
|
+
file_compression: u.getFileCompressionFromFileName(t.fileName),
|
|
1944
|
+
file_content: o,
|
|
1945
|
+
file_format: te.FASTQ,
|
|
1946
|
+
is_fwd: t.is_fwd
|
|
1947
|
+
}, { signal: s }), e.reportFileUploadProgress({
|
|
1948
|
+
endPercentage: r,
|
|
1949
|
+
fileSize: a,
|
|
1950
|
+
message: h("Uploading read set file \"{{fileName}}\" for case ID \"{{caseId}}\"...", {
|
|
1951
|
+
caseId: t.caseId,
|
|
1952
|
+
fileName: t.fileName
|
|
1953
|
+
}),
|
|
1954
|
+
onProgress: i,
|
|
1955
|
+
startPercentage: c,
|
|
1956
|
+
totalFileSizeToUpload: f,
|
|
1957
|
+
uploadedFileSize: p
|
|
1958
|
+
}), p += a;
|
|
1959
|
+
}
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
static idToRegex(e) {
|
|
1964
|
+
return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"));
|
|
1965
|
+
}
|
|
1966
|
+
static mapExcelCellToString(e) {
|
|
1967
|
+
return e instanceof Date ? i(e, le.DATE) : e == null ? "" : e.toString();
|
|
1968
|
+
}
|
|
1969
|
+
static mapExcelSheetData(t) {
|
|
1970
|
+
return t.map((t) => t.map((t) => e.mapExcelCellToString(t)));
|
|
1971
|
+
}
|
|
1972
|
+
};
|
|
1973
|
+
//#endregion
|
|
1974
|
+
export { Zn as t };
|
|
1975
|
+
|
|
1976
|
+
//# sourceMappingURL=UploadUtil.js.map
|