@plumile/ui 0.1.120 → 0.1.125
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/README.md +12 -0
- package/lib/esm/__tests__/reactDomTestUtils.js +48 -0
- package/lib/esm/__tests__/reactDomTestUtils.js.map +1 -0
- package/lib/esm/admin/organisms/admin_sidebar/AdminSidebar.js +1 -1
- package/lib/esm/admin/organisms/admin_sidebar/adminSidebar.css.js +3 -2
- package/lib/esm/admin/organisms/admin_topbar/adminTopbar.css.js +1 -1
- package/lib/esm/admin/theme/adminDensity.css.js.map +1 -1
- package/lib/esm/admin/theme/adminSurface.css.js.map +1 -1
- package/lib/esm/atomic/atoms/badge/badge.css.js +7 -7
- package/lib/esm/atomic/atoms/badge/badge.css.js.map +1 -1
- package/lib/esm/atomic/atoms/button/button.css.js +38 -38
- package/lib/esm/atomic/atoms/button/button.css.js.map +1 -1
- package/lib/esm/atomic/atoms/checkbox/checkbox.css.js +8 -8
- package/lib/esm/atomic/atoms/checkbox/checkbox.css.js.map +1 -1
- package/lib/esm/atomic/atoms/error_message/errorMessage.css.js +1 -1
- package/lib/esm/atomic/atoms/input/input.css.js +9 -9
- package/lib/esm/atomic/atoms/input/input.css.js.map +1 -1
- package/lib/esm/atomic/atoms/label/label.css.js +7 -7
- package/lib/esm/atomic/atoms/modal/Modal.js +1 -1
- package/lib/esm/atomic/atoms/modal/modal.css.js +1 -1
- package/lib/esm/atomic/atoms/modal/modal.css.js.map +1 -1
- package/lib/esm/atomic/atoms/overlay/overlay.css.js +1 -1
- package/lib/esm/atomic/atoms/textarea/textarea.css.js +8 -8
- package/lib/esm/atomic/atoms/textarea/textarea.css.js.map +1 -1
- package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbMenuPopover.js +1 -1
- package/lib/esm/atomic/molecules/breadcrumb_navigation/breadcrumbNavigation.css.js +1 -1
- package/lib/esm/atomic/molecules/breadcrumb_navigation/breadcrumbNavigation.css.js.map +1 -1
- package/lib/esm/atomic/molecules/card/Card.css.js +1 -1
- package/lib/esm/atomic/molecules/checkbox_field/checkboxField.css.js +1 -1
- package/lib/esm/atomic/molecules/checkbox_field/checkboxField.css.js.map +1 -1
- package/lib/esm/atomic/molecules/dropdown/dropdown.css.js +1 -1
- package/lib/esm/atomic/molecules/empty-state/EmptyState.css.js +1 -1
- package/lib/esm/atomic/molecules/form/FormErrorBanner.css.js +1 -1
- package/lib/esm/atomic/molecules/form/formStyles.css.js +1 -1
- package/lib/esm/atomic/molecules/form_error/formError.css.js +1 -1
- package/lib/esm/atomic/molecules/form_field/formField.css.js +1 -1
- package/lib/esm/atomic/molecules/highlight/HighlightCode.css.js +1 -1
- package/lib/esm/atomic/molecules/highlight/highlightStyles.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/LazyMarkdownRenderer.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownArticleContainer.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownArticleContainer.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownBlockquote.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownCodeCopyButton.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownCodeCopyButton.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownDelete.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownDelete.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownEmphasis.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownFootnoteDefinition.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownFootnoteReference.css.js +1 -2
- package/lib/esm/atomic/molecules/markdown/components/MarkdownFootnoteReference.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownFootnotesSection.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownHeading.css.js +8 -7
- package/lib/esm/atomic/molecules/markdown/components/MarkdownHeading.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownHtmlFallback.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownImage.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownInlineCode.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownInlineCode.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownLink.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownLink.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownList.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownList.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownListItem.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownListItem.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownMark.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownMark.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownMermaidBlock.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownParagraph.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownParagraph.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownStrong.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownStrong.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownSubscript.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownSubscript.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownSuperscript.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownSuperscript.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTable.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTable.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTableCaption.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTableCell.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTableCell.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTableHead.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTableHeaderCell.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTaskListItem.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTaskListItem.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownText.css.js +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownText.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownThematicBreak.css.js +1 -1
- package/lib/esm/atomic/molecules/tabs/tabs.css.js +4 -4
- package/lib/esm/atomic/molecules/toast/toast.css.js +2 -2
- package/lib/esm/atomic/molecules/toast/toast.css.js.map +1 -1
- package/lib/esm/atomic/organisms/login_form/loginForm.css.js +1 -1
- package/lib/esm/atomic/organisms/sidebar/SidebarContainer.js +2 -2
- package/lib/esm/atomic/organisms/sidebar/navigationSidebar.css.js +13 -13
- package/lib/esm/atomic/organisms/sidebar/sidebar.css.js +2 -2
- package/lib/esm/atomic/templates/auth_layout/authLayout.css.js +1 -1
- package/lib/esm/atomic/templates/detail-page/DetailPage.js +4 -4
- package/lib/esm/atomic/templates/detail-page/detailPage.css.js +1 -1
- package/lib/esm/atomic/templates/page-container/PageContainer.js +3 -3
- package/lib/esm/atomic/templates/page-container/pageContainer.css.js +1 -1
- package/lib/esm/backoffice/atoms/backoffice_id_badge/backofficeIdBadge.css.js +1 -1
- package/lib/esm/backoffice/atoms/copyable_text/copyableText.css.js +1 -1
- package/lib/esm/backoffice/atoms/environment_badge/environmentBadge.css.js +1 -1
- package/lib/esm/backoffice/atoms/shortcut_hint/shortcutHint.css.js +1 -1
- package/lib/esm/backoffice/atoms/skeleton/skeleton.css.js +5 -5
- package/lib/esm/backoffice/atoms/skeleton/skeleton.css.js.map +1 -1
- package/lib/esm/backoffice/atoms/spinner/spinner.css.js +1 -1
- package/lib/esm/backoffice/atoms/spinner/spinner.css.js.map +1 -1
- package/lib/esm/backoffice/atoms/status_badge/statusBadge.css.js +1 -1
- package/lib/esm/backoffice/atoms/tag/tag.css.js +7 -7
- package/lib/esm/backoffice/atoms/tag/tag.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_filter_drawer/BackofficeFilterDrawer.js +7 -7
- package/lib/esm/backoffice/molecules/backoffice_filter_drawer/backofficeFilterDrawer.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_filter_drawer/backofficeFilterDrawer.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_filter_field/backofficeFilterField.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_form_section/BackofficeFormSection.js +3 -3
- package/lib/esm/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_infinite_list_status/BackofficeInfiniteListStatus.js +2 -2
- package/lib/esm/backoffice/molecules/backoffice_infinite_list_status/backofficeInfiniteListStatus.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/backofficeJsonViewer.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_page_header/BackofficePageHeader.js +4 -4
- package/lib/esm/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.js +4 -4
- package/lib/esm/backoffice/molecules/backoffice_relations_menu/backofficeRelationsMenu.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_relations_menu/backofficeRelationsMenu.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_table_skeleton/backofficeTableSkeleton.css.js +4 -4
- package/lib/esm/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.js +8 -8
- package/lib/esm/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.js +1 -1
- package/lib/esm/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_tabs/backofficeTabs.css.js +8 -8
- package/lib/esm/backoffice/molecules/backoffice_tabs/backofficeTabs.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.js +1 -1
- package/lib/esm/backoffice/molecules/confirm_dialog/confirmDialog.css.js +1 -1
- package/lib/esm/backoffice/molecules/filter_chip_row/filterChipRow.css.js +1 -1
- package/lib/esm/backoffice/molecules/filter_chip_row/filterChipRow.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/global_search_input/globalSearchInput.css.js +1 -1
- package/lib/esm/backoffice/molecules/global_search_input/globalSearchInput.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/inline_banner/inlineBanner.css.js +6 -6
- package/lib/esm/backoffice/molecules/inline_banner/inlineBanner.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.js +1 -1
- package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.js +1 -1
- package/lib/esm/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/sidebar_nav_section/SidebarNavSection.js +5 -5
- package/lib/esm/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.js +1 -1
- package/lib/esm/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.js +4 -4
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.js.map +1 -1
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.js +5 -5
- package/lib/esm/backoffice/molecules/table_toolbar/tableToolbar.css.js +1 -1
- package/lib/esm/backoffice/organisms/audit_timeline/auditTimeline.css.js +1 -1
- package/lib/esm/backoffice/organisms/backoffice_data_table/backofficeDataTable.css.js +1 -1
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.js +1 -1
- package/lib/esm/backoffice/organisms/entity_header/entityHeader.css.js +1 -1
- package/lib/esm/backoffice/templates/detail_page_template/DetailPageTemplate.js +2 -2
- package/lib/esm/backoffice/templates/detail_page_template/detailPageTemplate.css.js +2 -2
- package/lib/esm/backoffice/templates/detail_page_template/detailPageTemplate.css.js.map +1 -1
- package/lib/esm/backoffice/templates/list_page_template/ListPageTemplate.js +1 -1
- package/lib/esm/backoffice/templates/list_page_template/ListPageTemplate.js.map +1 -1
- package/lib/esm/backoffice/templates/list_page_template/listPageTemplate.css.js +10 -10
- package/lib/esm/backoffice/templates/list_page_template/listPageTemplate.css.js.map +1 -1
- package/lib/esm/components/agent/AgentMarkdownCard.css.js +1 -1
- package/lib/esm/components/charts/MetricHistoryChart.js +17 -39
- package/lib/esm/components/charts/MetricHistoryChart.js.map +1 -1
- package/lib/esm/components/charts/TimeSeriesLineChart.js +20 -32
- package/lib/esm/components/charts/TimeSeriesLineChart.js.map +1 -1
- package/lib/esm/components/charts/metricHistoryChart.css.js +1 -1
- package/lib/esm/components/charts/timeSeriesLineChart.css.js +1 -1
- package/lib/esm/components/dashboard/activity_card/ActivityCard.css.js +1 -1
- package/lib/esm/components/dashboard/activity_card/ActivityCard.js +2 -2
- package/lib/esm/components/dashboard/activity_feed/ActivityFeed.css.js +1 -1
- package/lib/esm/components/dashboard/dashboard_grid/DashboardGrid.css.js +21 -21
- package/lib/esm/components/dashboard/dashboard_grid/DashboardGrid.css.js.map +1 -1
- package/lib/esm/components/dashboard/metadata_strip/MetadataStrip.css.js +1 -1
- package/lib/esm/components/dashboard/metric_card/MetricCard.css.js +1 -1
- package/lib/esm/components/dashboard/metric_card/MetricCard.js +2 -2
- package/lib/esm/components/dashboard/metric_tile_group/MetricTileGroup.css.js +1 -1
- package/lib/esm/components/dashboard/page_hero/PageHero.css.js +1 -1
- package/lib/esm/components/dashboard/page_hero/PageHero.js +3 -3
- package/lib/esm/components/dashboard/section_nav/SectionNav.css.js +1 -1
- package/lib/esm/components/dashboard/section_nav/SectionNav.css.js.map +1 -1
- package/lib/esm/components/dashboard/segmented_nav/SegmentedNav.css.js +1 -1
- package/lib/esm/components/dashboard/segmented_nav/SegmentedNav.css.js.map +1 -1
- package/lib/esm/components/dashboard/selectable_card/SelectableCard.css.js +1 -1
- package/lib/esm/components/dashboard/selectable_card/SelectableCard.css.js.map +1 -1
- package/lib/esm/components/dashboard/selectable_card/SelectableCard.js +2 -2
- package/lib/esm/components/dashboard/status_summary_panel/StatusSummaryPanel.css.js +1 -1
- package/lib/esm/components/dashboard/status_summary_panel/StatusSummaryPanel.js +1 -1
- package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.css.js +1 -1
- package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.js +2 -2
- package/lib/esm/components/data-table/DataTable.css.js +28 -28
- package/lib/esm/components/data-table/DataTable.css.js.map +1 -1
- package/lib/esm/components/data-table/DataTable.js +33 -35
- package/lib/esm/components/data-table/DataTable.js.map +1 -1
- package/lib/esm/components/data-table/ResponsiveRecordList.css.js +6 -6
- package/lib/esm/components/data-table/TableCell.css.js +2 -2
- package/lib/esm/components/data-table/VirtualizedConnectionTable.css.js +1 -1
- package/lib/esm/components/data-table/VirtualizedConnectionTable.js +49 -61
- package/lib/esm/components/data-table/VirtualizedConnectionTable.js.map +1 -1
- package/lib/esm/components/feedback/OperationFeedback.css.js +1 -1
- package/lib/esm/components/feedback/OperationFeedback.js +1 -1
- package/lib/esm/components/infinite/InfiniteScrollTrigger.js +1 -1
- package/lib/esm/components/infinite/infiniteScrollTrigger.css.js +1 -1
- package/lib/esm/components/layout/ActionPanel.css.js +1 -1
- package/lib/esm/components/layout/ActionPanel.js +3 -3
- package/lib/esm/components/layout/ActionPanel.js.map +1 -1
- package/lib/esm/components/layout/AppHeader.css.js +1 -1
- package/lib/esm/components/layout/AppHeader.js +4 -4
- package/lib/esm/components/layout/ContentLayout.css.js +1 -1
- package/lib/esm/components/layout/ContentLayout.js +2 -2
- package/lib/esm/components/layout/DetailSummaryHeader.css.js +1 -1
- package/lib/esm/components/layout/DetailSummaryHeader.js +3 -3
- package/lib/esm/components/layout/PageShell.css.js +4 -4
- package/lib/esm/components/layout/PageShell.js +5 -5
- package/lib/esm/components/layout/PageShell.js.map +1 -1
- package/lib/esm/components/layout/SettingsLayout.css.js +1 -1
- package/lib/esm/components/layout/SplitViewLayout.css.js +1 -1
- package/lib/esm/components/layout/TabsContentLayout.css.js +1 -1
- package/lib/esm/components/layout/ToolbarRow.css.js +1 -1
- package/lib/esm/components/media/imagePreviewModal.css.js +5 -5
- package/lib/esm/components/responsive/ResponsiveCollectionRenderer.css.js +1 -1
- package/lib/esm/components/responsive/ResponsiveCollectionRenderer.css.js.map +1 -1
- package/lib/esm/components/routing/routeFallback.css.js +1 -1
- package/lib/esm/components/routing/routeFallback.css.js.map +1 -1
- package/lib/esm/components/routing/routePendingBar.css.js +1 -1
- package/lib/esm/components/routing/routePendingBar.css.js.map +1 -1
- package/lib/esm/components/select/SimpleSelect.css.js +14 -14
- package/lib/esm/components/select/SimpleSelect.css.js.map +1 -1
- package/lib/esm/components/subscriptions/RefetchNeededBanner.css.js +1 -1
- package/lib/esm/components/tile/InfoTile.css.js +1 -1
- package/lib/esm/components/tile/InfoTile.css.js.map +1 -1
- package/lib/esm/components/tile/InfoTile.js +3 -3
- package/lib/esm/index.js +257 -255
- package/lib/esm/internal/charts/metricHistoryChartHelpers.js +24 -0
- package/lib/esm/internal/charts/metricHistoryChartHelpers.js.map +1 -0
- package/lib/esm/internal/charts/timeSeriesLineChartHelpers.js +18 -0
- package/lib/esm/internal/charts/timeSeriesLineChartHelpers.js.map +1 -0
- package/lib/esm/internal/data-table/layout.js +6 -0
- package/lib/esm/internal/data-table/layout.js.map +1 -0
- package/lib/esm/internal/data-table/virtualization.js +12 -0
- package/lib/esm/internal/data-table/virtualization.js.map +1 -0
- package/lib/esm/node_modules/@vitest/pretty-format/dist/index.js +614 -0
- package/lib/esm/node_modules/@vitest/pretty-format/dist/index.js.map +1 -0
- package/lib/esm/node_modules/@vitest/runner/dist/chunk-artifact.js +909 -0
- package/lib/esm/node_modules/@vitest/runner/dist/chunk-artifact.js.map +1 -0
- package/lib/esm/node_modules/@vitest/runner/dist/index.js +1 -0
- package/lib/esm/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js +50 -0
- package/lib/esm/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js.map +1 -0
- package/lib/esm/node_modules/@vitest/utils/dist/display.js +424 -0
- package/lib/esm/node_modules/@vitest/utils/dist/display.js.map +1 -0
- package/lib/esm/node_modules/@vitest/utils/dist/helpers.js +43 -0
- package/lib/esm/node_modules/@vitest/utils/dist/helpers.js.map +1 -0
- package/lib/esm/node_modules/@vitest/utils/dist/source-map.js +68 -0
- package/lib/esm/node_modules/@vitest/utils/dist/source-map.js.map +1 -0
- package/lib/esm/node_modules/@vitest/utils/dist/timers.js +19 -0
- package/lib/esm/node_modules/@vitest/utils/dist/timers.js.map +1 -0
- package/lib/esm/node_modules/tinyrainbow/dist/index.js +85 -0
- package/lib/esm/node_modules/tinyrainbow/dist/index.js.map +1 -0
- package/lib/esm/shared/backofficeTableDensity.css.js.map +1 -1
- package/lib/esm/style.css +1 -1
- package/lib/esm/theme/accessibility.css.js +1 -1
- package/lib/esm/theme/accessibility.css.js.map +1 -1
- package/lib/esm/theme/index.js +12 -10
- package/lib/esm/theme/sprinkles.css.js +73323 -51658
- package/lib/esm/theme/sprinkles.css.js.map +1 -1
- package/lib/esm/theme/styleRecipes.css.js +19 -0
- package/lib/esm/theme/styleRecipes.css.js.map +1 -0
- package/lib/esm/theme/theme-dark.css.js.map +1 -1
- package/lib/esm/theme/theme-light.css.js +23 -2
- package/lib/esm/theme/theme-light.css.js.map +1 -1
- package/lib/esm/theme/theme.css.js +23 -2
- package/lib/esm/theme/themeContract.js +23 -2
- package/lib/esm/theme/themeContract.js.map +1 -1
- package/lib/types/atomic/atoms/button/button.css.d.ts.map +1 -1
- package/lib/types/atomic/atoms/checkbox/checkbox.css.d.ts.map +1 -1
- package/lib/types/atomic/atoms/input/input.css.d.ts.map +1 -1
- package/lib/types/atomic/atoms/modal/modal.css.d.ts.map +1 -1
- package/lib/types/atomic/atoms/textarea/textarea.css.d.ts.map +1 -1
- package/lib/types/atomic/molecules/markdown/components/MarkdownCodeCopyButton.css.d.ts.map +1 -1
- package/lib/types/atomic/molecules/toast/toast.css.d.ts.map +1 -1
- package/lib/types/backoffice/atoms/tag/tag.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_filter_drawer/backofficeFilterDrawer.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_relations_menu/backofficeRelationsMenu.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_tabs/backofficeTabs.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/filter_chip_row/filterChipRow.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/global_search_input/globalSearchInput.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/inline_banner/inlineBanner.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.d.ts.map +1 -1
- package/lib/types/backoffice/templates/detail_page_template/detailPageTemplate.css.d.ts.map +1 -1
- package/lib/types/backoffice/templates/list_page_template/listPageTemplate.css.d.ts.map +1 -1
- package/lib/types/components/charts/MetricHistoryChart.d.ts +0 -8
- package/lib/types/components/charts/MetricHistoryChart.d.ts.map +1 -1
- package/lib/types/components/charts/TimeSeriesLineChart.d.ts +0 -4
- package/lib/types/components/charts/TimeSeriesLineChart.d.ts.map +1 -1
- package/lib/types/components/dashboard/dashboard_grid/DashboardGrid.css.d.ts.map +1 -1
- package/lib/types/components/dashboard/section_nav/SectionNav.css.d.ts.map +1 -1
- package/lib/types/components/dashboard/segmented_nav/SegmentedNav.css.d.ts.map +1 -1
- package/lib/types/components/dashboard/selectable_card/SelectableCard.css.d.ts.map +1 -1
- package/lib/types/components/data-table/DataTable.d.ts +1 -5
- package/lib/types/components/data-table/DataTable.d.ts.map +1 -1
- package/lib/types/components/data-table/VirtualizedConnectionTable.d.ts +1 -34
- package/lib/types/components/data-table/VirtualizedConnectionTable.d.ts.map +1 -1
- package/lib/types/components/select/SimpleSelect.css.d.ts.map +1 -1
- package/lib/types/components/tile/InfoTile.css.d.ts.map +1 -1
- package/lib/types/internal/charts/metricHistoryChartHelpers.d.ts +4 -0
- package/lib/types/internal/charts/metricHistoryChartHelpers.d.ts.map +1 -0
- package/lib/types/internal/charts/timeSeriesLineChartHelpers.d.ts +9 -0
- package/lib/types/internal/charts/timeSeriesLineChartHelpers.d.ts.map +1 -0
- package/lib/types/internal/data-table/layout.d.ts +4 -0
- package/lib/types/internal/data-table/layout.d.ts.map +1 -0
- package/lib/types/internal/data-table/virtualization.d.ts +29 -0
- package/lib/types/internal/data-table/virtualization.d.ts.map +1 -0
- package/lib/types/shared/backofficeTableDensity.css.d.ts.map +1 -1
- package/lib/types/theme/index.d.ts +2 -0
- package/lib/types/theme/index.d.ts.map +1 -1
- package/lib/types/theme/sprinkles.css.d.ts +684 -60
- package/lib/types/theme/sprinkles.css.d.ts.map +1 -1
- package/lib/types/theme/styleRecipes.css.d.ts +29 -0
- package/lib/types/theme/styleRecipes.css.d.ts.map +1 -0
- package/lib/types/theme/theme-dark.css.d.ts.map +1 -1
- package/lib/types/theme/theme-light.css.d.ts +21 -0
- package/lib/types/theme/theme-light.css.d.ts.map +1 -1
- package/lib/types/theme/themeContract.d.ts +21 -0
- package/lib/types/theme/themeContract.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
import { createDOMElementFilter as e, format as t, plugins as n } from "../../pretty-format/dist/index.js";
|
|
2
|
+
//#region ../../node_modules/@vitest/utils/dist/display.js
|
|
3
|
+
var r = {
|
|
4
|
+
bold: ["1", "22"],
|
|
5
|
+
dim: ["2", "22"],
|
|
6
|
+
italic: ["3", "23"],
|
|
7
|
+
underline: ["4", "24"],
|
|
8
|
+
inverse: ["7", "27"],
|
|
9
|
+
hidden: ["8", "28"],
|
|
10
|
+
strike: ["9", "29"],
|
|
11
|
+
black: ["30", "39"],
|
|
12
|
+
red: ["31", "39"],
|
|
13
|
+
green: ["32", "39"],
|
|
14
|
+
yellow: ["33", "39"],
|
|
15
|
+
blue: ["34", "39"],
|
|
16
|
+
magenta: ["35", "39"],
|
|
17
|
+
cyan: ["36", "39"],
|
|
18
|
+
white: ["37", "39"],
|
|
19
|
+
brightblack: ["30;1", "39"],
|
|
20
|
+
brightred: ["31;1", "39"],
|
|
21
|
+
brightgreen: ["32;1", "39"],
|
|
22
|
+
brightyellow: ["33;1", "39"],
|
|
23
|
+
brightblue: ["34;1", "39"],
|
|
24
|
+
brightmagenta: ["35;1", "39"],
|
|
25
|
+
brightcyan: ["36;1", "39"],
|
|
26
|
+
brightwhite: ["37;1", "39"],
|
|
27
|
+
grey: ["90", "39"]
|
|
28
|
+
}, i = {
|
|
29
|
+
special: "cyan",
|
|
30
|
+
number: "yellow",
|
|
31
|
+
bigint: "yellow",
|
|
32
|
+
boolean: "yellow",
|
|
33
|
+
undefined: "grey",
|
|
34
|
+
null: "bold",
|
|
35
|
+
string: "green",
|
|
36
|
+
symbol: "green",
|
|
37
|
+
date: "magenta",
|
|
38
|
+
regexp: "red"
|
|
39
|
+
}, a = "…";
|
|
40
|
+
function o(e, t) {
|
|
41
|
+
let n = r[i[t]] || r[t] || "";
|
|
42
|
+
return n ? `\u001b[${n[0]}m${String(e)}\u001b[${n[1]}m` : String(e);
|
|
43
|
+
}
|
|
44
|
+
function s({ showHidden: e = !1, depth: t = 2, colors: n = !1, customInspect: r = !0, showProxy: i = !1, maxArrayLength: a = Infinity, breakLength: s = Infinity, seen: c = [], truncate: l = Infinity, stylize: u = String } = {}, d) {
|
|
45
|
+
let f = {
|
|
46
|
+
showHidden: !!e,
|
|
47
|
+
depth: Number(t),
|
|
48
|
+
colors: !!n,
|
|
49
|
+
customInspect: !!r,
|
|
50
|
+
showProxy: !!i,
|
|
51
|
+
maxArrayLength: Number(a),
|
|
52
|
+
breakLength: Number(s),
|
|
53
|
+
truncate: Number(l),
|
|
54
|
+
seen: c,
|
|
55
|
+
inspect: d,
|
|
56
|
+
stylize: u
|
|
57
|
+
};
|
|
58
|
+
return f.colors && (f.stylize = o), f;
|
|
59
|
+
}
|
|
60
|
+
function c(e) {
|
|
61
|
+
return e >= "\ud800" && e <= "\udbff";
|
|
62
|
+
}
|
|
63
|
+
function l(e, t, n = a) {
|
|
64
|
+
e = String(e);
|
|
65
|
+
let r = n.length, i = e.length;
|
|
66
|
+
if (r > t && i > r) return n;
|
|
67
|
+
if (i > t && i > r) {
|
|
68
|
+
let i = t - r;
|
|
69
|
+
return i > 0 && c(e[i - 1]) && --i, `${e.slice(0, i)}${n}`;
|
|
70
|
+
}
|
|
71
|
+
return e;
|
|
72
|
+
}
|
|
73
|
+
function u(e, t, n, r = ", ") {
|
|
74
|
+
n ||= t.inspect;
|
|
75
|
+
let i = e.length;
|
|
76
|
+
if (i === 0) return "";
|
|
77
|
+
let o = t.truncate, s = "", c = "", l = "";
|
|
78
|
+
for (let u = 0; u < i; u += 1) {
|
|
79
|
+
let i = u + 1 === e.length, d = u + 2 === e.length;
|
|
80
|
+
l = `${a}(${e.length - u})`;
|
|
81
|
+
let f = e[u];
|
|
82
|
+
t.truncate = o - s.length - (i ? 0 : r.length);
|
|
83
|
+
let p = c || n(f, t) + (i ? "" : r), m = s.length + p.length, h = m + l.length;
|
|
84
|
+
if (i && m > o && s.length + l.length <= o || !i && !d && h > o || (c = i ? "" : n(e[u + 1], t) + (d ? "" : r), !i && d && h > o && m + c.length > o)) break;
|
|
85
|
+
if (s += p, !i && !d && m + c.length >= o) {
|
|
86
|
+
l = `${a}(${e.length - u - 1})`;
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
l = "";
|
|
90
|
+
}
|
|
91
|
+
return `${s}${l}`;
|
|
92
|
+
}
|
|
93
|
+
function d(e) {
|
|
94
|
+
return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/) ? e : JSON.stringify(e).replace(/'/g, "\\'").replace(/\\"/g, "\"").replace(/(^"|"$)/g, "'");
|
|
95
|
+
}
|
|
96
|
+
function f([e, t], n) {
|
|
97
|
+
return n.truncate -= 2, typeof e == "string" ? e = d(e) : typeof e != "number" && (e = `[${n.inspect(e, n)}]`), n.truncate -= e.length, t = n.inspect(t, n), `${e}: ${t}`;
|
|
98
|
+
}
|
|
99
|
+
function p(e, t) {
|
|
100
|
+
let n = Object.keys(e).slice(e.length);
|
|
101
|
+
if (!e.length && !n.length) return "[]";
|
|
102
|
+
t.truncate -= 4;
|
|
103
|
+
let r = u(e, t);
|
|
104
|
+
t.truncate -= r.length;
|
|
105
|
+
let i = "";
|
|
106
|
+
return n.length && (i = u(n.map((t) => [t, e[t]]), t, f)), `[ ${r}${i ? `, ${i}` : ""} ]`;
|
|
107
|
+
}
|
|
108
|
+
var m = (e) => typeof Buffer == "function" && e instanceof Buffer ? "Buffer" : e[Symbol.toStringTag] ? e[Symbol.toStringTag] : e.constructor.name;
|
|
109
|
+
function h(e, t) {
|
|
110
|
+
let n = m(e);
|
|
111
|
+
t.truncate -= n.length + 4;
|
|
112
|
+
let r = Object.keys(e).slice(e.length);
|
|
113
|
+
if (!e.length && !r.length) return `${n}[]`;
|
|
114
|
+
let i = "";
|
|
115
|
+
for (let n = 0; n < e.length; n++) {
|
|
116
|
+
let r = `${t.stylize(l(e[n], t.truncate), "number")}${n === e.length - 1 ? "" : ", "}`;
|
|
117
|
+
if (t.truncate -= r.length, e[n] !== e.length && t.truncate <= 3) {
|
|
118
|
+
i += `${a}(${e.length - e[n] + 1})`;
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
i += r;
|
|
122
|
+
}
|
|
123
|
+
let o = "";
|
|
124
|
+
return r.length && (o = u(r.map((t) => [t, e[t]]), t, f)), `${n}[ ${i}${o ? `, ${o}` : ""} ]`;
|
|
125
|
+
}
|
|
126
|
+
function ee(e, t) {
|
|
127
|
+
let n = e.toJSON();
|
|
128
|
+
if (n === null) return "Invalid Date";
|
|
129
|
+
let r = n.split("T"), i = r[0];
|
|
130
|
+
return t.stylize(`${i}T${l(r[1], t.truncate - i.length - 1)}`, "date");
|
|
131
|
+
}
|
|
132
|
+
function g(e, t) {
|
|
133
|
+
let n = e[Symbol.toStringTag] || "Function", r = e.name;
|
|
134
|
+
return r ? t.stylize(`[${n} ${l(r, t.truncate - 11)}]`, "special") : t.stylize(`[${n}]`, "special");
|
|
135
|
+
}
|
|
136
|
+
function te([e, t], n) {
|
|
137
|
+
return n.truncate -= 4, e = n.inspect(e, n), n.truncate -= e.length, t = n.inspect(t, n), `${e} => ${t}`;
|
|
138
|
+
}
|
|
139
|
+
function _(e) {
|
|
140
|
+
let t = [];
|
|
141
|
+
return e.forEach((e, n) => {
|
|
142
|
+
t.push([n, e]);
|
|
143
|
+
}), t;
|
|
144
|
+
}
|
|
145
|
+
function v(e, t) {
|
|
146
|
+
return e.size === 0 ? "Map{}" : (t.truncate -= 7, `Map{ ${u(_(e), t, te)} }`);
|
|
147
|
+
}
|
|
148
|
+
var y = Number.isNaN || ((e) => e !== e);
|
|
149
|
+
function b(e, t) {
|
|
150
|
+
return y(e) ? t.stylize("NaN", "number") : e === Infinity ? t.stylize("Infinity", "number") : e === -Infinity ? t.stylize("-Infinity", "number") : e === 0 ? t.stylize(1 / e == Infinity ? "+0" : "-0", "number") : t.stylize(l(String(e), t.truncate), "number");
|
|
151
|
+
}
|
|
152
|
+
function x(e, t) {
|
|
153
|
+
let n = l(e.toString(), t.truncate - 1);
|
|
154
|
+
return n !== a && (n += "n"), t.stylize(n, "bigint");
|
|
155
|
+
}
|
|
156
|
+
function S(e, t) {
|
|
157
|
+
let n = e.toString().split("/")[2], r = t.truncate - (2 + n.length), i = e.source;
|
|
158
|
+
return t.stylize(`/${l(i, r)}/${n}`, "regexp");
|
|
159
|
+
}
|
|
160
|
+
function C(e) {
|
|
161
|
+
let t = [];
|
|
162
|
+
return e.forEach((e) => {
|
|
163
|
+
t.push(e);
|
|
164
|
+
}), t;
|
|
165
|
+
}
|
|
166
|
+
function w(e, t) {
|
|
167
|
+
return e.size === 0 ? "Set{}" : (t.truncate -= 7, `Set{ ${u(C(e), t)} }`);
|
|
168
|
+
}
|
|
169
|
+
var T = /* @__PURE__ */ RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", "g"), E = {
|
|
170
|
+
"\b": "\\b",
|
|
171
|
+
" ": "\\t",
|
|
172
|
+
"\n": "\\n",
|
|
173
|
+
"\f": "\\f",
|
|
174
|
+
"\r": "\\r",
|
|
175
|
+
"'": "\\'",
|
|
176
|
+
"\\": "\\\\"
|
|
177
|
+
}, D = 16;
|
|
178
|
+
function O(e) {
|
|
179
|
+
return E[e] || `\\u${`0000${e.charCodeAt(0).toString(D)}`.slice(-4)}`;
|
|
180
|
+
}
|
|
181
|
+
function k(e, t) {
|
|
182
|
+
return T.test(e) && (e = e.replace(T, O)), t.stylize(`'${l(e, t.truncate - 2)}'`, "string");
|
|
183
|
+
}
|
|
184
|
+
function A(e) {
|
|
185
|
+
return "description" in Symbol.prototype ? e.description ? `Symbol(${e.description})` : "Symbol()" : e.toString();
|
|
186
|
+
}
|
|
187
|
+
var j = () => "Promise{…}";
|
|
188
|
+
function M(e, t) {
|
|
189
|
+
let n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e) : [];
|
|
190
|
+
if (n.length === 0 && r.length === 0) return "{}";
|
|
191
|
+
if (t.truncate -= 4, t.seen = t.seen || [], t.seen.includes(e)) return "[Circular]";
|
|
192
|
+
t.seen.push(e);
|
|
193
|
+
let i = u(n.map((t) => [t, e[t]]), t, f), a = u(r.map((t) => [t, e[t]]), t, f);
|
|
194
|
+
t.seen.pop();
|
|
195
|
+
let o = "";
|
|
196
|
+
return i && a && (o = ", "), `{ ${i}${o}${a} }`;
|
|
197
|
+
}
|
|
198
|
+
var N = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1;
|
|
199
|
+
function ne(e, t) {
|
|
200
|
+
let n = "";
|
|
201
|
+
return N && N in e && (n = e[N]), n ||= e.constructor.name, (!n || n === "_class") && (n = "<Anonymous Class>"), t.truncate -= n.length, `${n}${M(e, t)}`;
|
|
202
|
+
}
|
|
203
|
+
function re(e, t) {
|
|
204
|
+
return e.length === 0 ? "Arguments[]" : (t.truncate -= 13, `Arguments[ ${u(e, t)} ]`);
|
|
205
|
+
}
|
|
206
|
+
var ie = [
|
|
207
|
+
"stack",
|
|
208
|
+
"line",
|
|
209
|
+
"column",
|
|
210
|
+
"name",
|
|
211
|
+
"message",
|
|
212
|
+
"fileName",
|
|
213
|
+
"lineNumber",
|
|
214
|
+
"columnNumber",
|
|
215
|
+
"number",
|
|
216
|
+
"description",
|
|
217
|
+
"cause"
|
|
218
|
+
];
|
|
219
|
+
function ae(e, t) {
|
|
220
|
+
let n = Object.getOwnPropertyNames(e).filter((e) => ie.indexOf(e) === -1), r = e.name;
|
|
221
|
+
t.truncate -= r.length;
|
|
222
|
+
let i = "";
|
|
223
|
+
if (typeof e.message == "string" ? i = l(e.message, t.truncate) : n.unshift("message"), i = i ? `: ${i}` : "", t.truncate -= i.length + 5, t.seen = t.seen || [], t.seen.includes(e)) return "[Circular]";
|
|
224
|
+
t.seen.push(e);
|
|
225
|
+
let a = u(n.map((t) => [t, e[t]]), t, f);
|
|
226
|
+
return `${r}${i}${a ? ` { ${a} }` : ""}`;
|
|
227
|
+
}
|
|
228
|
+
function oe([e, t], n) {
|
|
229
|
+
return n.truncate -= 3, t ? `${n.stylize(String(e), "yellow")}=${n.stylize(`"${t}"`, "string")}` : `${n.stylize(String(e), "yellow")}`;
|
|
230
|
+
}
|
|
231
|
+
function P(e, t) {
|
|
232
|
+
return u(e, t, F, "\n");
|
|
233
|
+
}
|
|
234
|
+
function F(e, t) {
|
|
235
|
+
switch (e.nodeType) {
|
|
236
|
+
case 1: return I(e, t);
|
|
237
|
+
case 3: return t.inspect(e.data, t);
|
|
238
|
+
default: return t.inspect(e, t);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
function I(e, t) {
|
|
242
|
+
let n = e.getAttributeNames(), r = e.tagName.toLowerCase(), i = t.stylize(`<${r}`, "special"), o = t.stylize(">", "special"), s = t.stylize(`</${r}>`, "special");
|
|
243
|
+
t.truncate -= r.length * 2 + 5;
|
|
244
|
+
let c = "";
|
|
245
|
+
n.length > 0 && (c += " ", c += u(n.map((t) => [t, e.getAttribute(t)]), t, oe, " ")), t.truncate -= c.length;
|
|
246
|
+
let l = t.truncate, d = P(e.children, t);
|
|
247
|
+
return d && d.length > l && (d = `${a}(${e.children.length})`), `${i}${c}${o}${d}${s}`;
|
|
248
|
+
}
|
|
249
|
+
var L = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("chai/inspect") : "@@chai/inspect", R = Symbol.for("nodejs.util.inspect.custom"), z = /* @__PURE__ */ new WeakMap(), B = {}, V = {
|
|
250
|
+
undefined: (e, t) => t.stylize("undefined", "undefined"),
|
|
251
|
+
null: (e, t) => t.stylize("null", "null"),
|
|
252
|
+
boolean: (e, t) => t.stylize(String(e), "boolean"),
|
|
253
|
+
Boolean: (e, t) => t.stylize(String(e), "boolean"),
|
|
254
|
+
number: b,
|
|
255
|
+
Number: b,
|
|
256
|
+
bigint: x,
|
|
257
|
+
BigInt: x,
|
|
258
|
+
string: k,
|
|
259
|
+
String: k,
|
|
260
|
+
function: g,
|
|
261
|
+
Function: g,
|
|
262
|
+
symbol: A,
|
|
263
|
+
Symbol: A,
|
|
264
|
+
Array: p,
|
|
265
|
+
Date: ee,
|
|
266
|
+
Map: v,
|
|
267
|
+
Set: w,
|
|
268
|
+
RegExp: S,
|
|
269
|
+
Promise: j,
|
|
270
|
+
WeakSet: (e, t) => t.stylize("WeakSet{…}", "special"),
|
|
271
|
+
WeakMap: (e, t) => t.stylize("WeakMap{…}", "special"),
|
|
272
|
+
Arguments: re,
|
|
273
|
+
Int8Array: h,
|
|
274
|
+
Uint8Array: h,
|
|
275
|
+
Uint8ClampedArray: h,
|
|
276
|
+
Int16Array: h,
|
|
277
|
+
Uint16Array: h,
|
|
278
|
+
Int32Array: h,
|
|
279
|
+
Uint32Array: h,
|
|
280
|
+
Float32Array: h,
|
|
281
|
+
Float64Array: h,
|
|
282
|
+
Generator: () => "",
|
|
283
|
+
DataView: () => "",
|
|
284
|
+
ArrayBuffer: () => "",
|
|
285
|
+
Error: ae,
|
|
286
|
+
HTMLCollection: P,
|
|
287
|
+
NodeList: P
|
|
288
|
+
}, H = (e, t, n, r) => L in e && typeof e[L] == "function" ? e[L](t) : R in e && typeof e[R] == "function" ? e[R](t.depth, t, r) : "inspect" in e && typeof e.inspect == "function" ? e.inspect(t.depth, t) : "constructor" in e && z.has(e.constructor) ? z.get(e.constructor)(e, t) : B[n] ? B[n](e, t) : "", U = Object.prototype.toString;
|
|
289
|
+
function W(e, t = {}) {
|
|
290
|
+
let n = s(t, W), { customInspect: r } = n, i = e === null ? "null" : typeof e;
|
|
291
|
+
if (i === "object" && (i = U.call(e).slice(8, -1)), i in V) return V[i](e, n);
|
|
292
|
+
if (r && e) {
|
|
293
|
+
let t = H(e, n, i, W);
|
|
294
|
+
if (t) return typeof t == "string" ? t : W(t, n);
|
|
295
|
+
}
|
|
296
|
+
let a = e ? Object.getPrototypeOf(e) : !1;
|
|
297
|
+
return a === Object.prototype || a === null ? M(e, n) : e && typeof HTMLElement == "function" && e instanceof HTMLElement ? I(e, n) : "constructor" in e ? e.constructor === Object ? M(e, n) : ne(e, n) : e === Object(e) ? M(e, n) : n.stylize(String(e), i);
|
|
298
|
+
}
|
|
299
|
+
var { AsymmetricMatcher: G, DOMCollection: K, DOMElement: se, Immutable: q, ReactElement: J, ReactTestComponent: Y } = n, ce = [
|
|
300
|
+
Y,
|
|
301
|
+
J,
|
|
302
|
+
se,
|
|
303
|
+
K,
|
|
304
|
+
q,
|
|
305
|
+
G
|
|
306
|
+
];
|
|
307
|
+
function X(n, r = 10, { maxLength: i, filterNode: a, ...o } = {}) {
|
|
308
|
+
let s = i ?? 1e4, c, l = typeof a == "string" ? le(a) : a, u = l ? [
|
|
309
|
+
Y,
|
|
310
|
+
J,
|
|
311
|
+
e(l),
|
|
312
|
+
K,
|
|
313
|
+
q,
|
|
314
|
+
G
|
|
315
|
+
] : ce;
|
|
316
|
+
try {
|
|
317
|
+
c = t(n, {
|
|
318
|
+
maxDepth: r,
|
|
319
|
+
escapeString: !1,
|
|
320
|
+
plugins: u,
|
|
321
|
+
...o
|
|
322
|
+
});
|
|
323
|
+
} catch {
|
|
324
|
+
c = t(n, {
|
|
325
|
+
callToJSON: !1,
|
|
326
|
+
maxDepth: r,
|
|
327
|
+
escapeString: !1,
|
|
328
|
+
plugins: u,
|
|
329
|
+
...o
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
return c.length >= s && r > 1 ? X(n, Math.floor(Math.min(r, 2 ** 53 - 1) / 2), {
|
|
333
|
+
maxLength: i,
|
|
334
|
+
filterNode: a,
|
|
335
|
+
...o
|
|
336
|
+
}) : c;
|
|
337
|
+
}
|
|
338
|
+
function le(e) {
|
|
339
|
+
return (t) => {
|
|
340
|
+
if (t.nodeType === 8) return !1;
|
|
341
|
+
if (t.nodeType === 1 && t.matches) try {
|
|
342
|
+
return !t.matches(e);
|
|
343
|
+
} catch {
|
|
344
|
+
return !0;
|
|
345
|
+
}
|
|
346
|
+
return !0;
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
var Z = /%[sdjifoOc%]/g;
|
|
350
|
+
function ue(e, t = {}) {
|
|
351
|
+
let n = (e, n) => t.prettifyObject ? X(e, void 0, {
|
|
352
|
+
printBasicPrototype: !1,
|
|
353
|
+
escapeString: !1
|
|
354
|
+
}) : $(e, n);
|
|
355
|
+
if (typeof e[0] != "string") {
|
|
356
|
+
let t = [];
|
|
357
|
+
for (let r = 0; r < e.length; r++) t.push(n(e[r], {
|
|
358
|
+
depth: 0,
|
|
359
|
+
colors: !1
|
|
360
|
+
}));
|
|
361
|
+
return t.join(" ");
|
|
362
|
+
}
|
|
363
|
+
let r = e.length, i = 1, a = e[0], o = String(a).replace(Z, (t) => {
|
|
364
|
+
if (t === "%%") return "%";
|
|
365
|
+
if (i >= r) return t;
|
|
366
|
+
switch (t) {
|
|
367
|
+
case "%s": {
|
|
368
|
+
let t = e[i++];
|
|
369
|
+
return typeof t == "bigint" ? `${t.toString()}n` : typeof t == "number" && t === 0 && 1 / t < 0 ? "-0" : typeof t == "object" && t ? typeof t.toString == "function" && t.toString !== Object.prototype.toString ? t.toString() : n(t, {
|
|
370
|
+
depth: 0,
|
|
371
|
+
colors: !1
|
|
372
|
+
}) : String(t);
|
|
373
|
+
}
|
|
374
|
+
case "%d": {
|
|
375
|
+
let t = e[i++];
|
|
376
|
+
return typeof t == "bigint" ? `${t.toString()}n` : typeof t == "symbol" ? "NaN" : Number(t).toString();
|
|
377
|
+
}
|
|
378
|
+
case "%i": {
|
|
379
|
+
let t = e[i++];
|
|
380
|
+
return typeof t == "bigint" ? `${t.toString()}n` : Number.parseInt(String(t)).toString();
|
|
381
|
+
}
|
|
382
|
+
case "%f": return Number.parseFloat(String(e[i++])).toString();
|
|
383
|
+
case "%o": return n(e[i++], {
|
|
384
|
+
showHidden: !0,
|
|
385
|
+
showProxy: !0
|
|
386
|
+
});
|
|
387
|
+
case "%O": return n(e[i++]);
|
|
388
|
+
case "%c": return i++, "";
|
|
389
|
+
case "%j": try {
|
|
390
|
+
return JSON.stringify(e[i++]);
|
|
391
|
+
} catch (e) {
|
|
392
|
+
let t = e.message;
|
|
393
|
+
if (t.includes("circular structure") || t.includes("cyclic structures") || t.includes("cyclic object")) return "[Circular]";
|
|
394
|
+
throw e;
|
|
395
|
+
}
|
|
396
|
+
default: return t;
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
for (let t = e[i]; i < r; t = e[++i]) typeof t != "object" || !t ? o += ` ${typeof t == "symbol" ? t.toString() : t}` : o += ` ${n(t)}`;
|
|
400
|
+
return o;
|
|
401
|
+
}
|
|
402
|
+
function Q(...e) {
|
|
403
|
+
return ue(e);
|
|
404
|
+
}
|
|
405
|
+
function $(e, t = {}) {
|
|
406
|
+
return t.truncate === 0 && (t.truncate = Infinity), W(e, t);
|
|
407
|
+
}
|
|
408
|
+
function de(e, t = {}) {
|
|
409
|
+
t.truncate === void 0 && (t.truncate = 40);
|
|
410
|
+
let n = $(e, t), r = Object.prototype.toString.call(e);
|
|
411
|
+
if (t.truncate && n.length >= t.truncate) if (r === "[object Function]") {
|
|
412
|
+
let t = e;
|
|
413
|
+
return t.name ? `[Function: ${t.name}]` : "[Function]";
|
|
414
|
+
} else if (r === "[object Array]") return `[ Array(${e.length}) ]`;
|
|
415
|
+
else if (r === "[object Object]") {
|
|
416
|
+
let t = Object.keys(e);
|
|
417
|
+
return `{ Object (${t.length > 2 ? `${t.splice(0, 2).join(", ")}, ...` : t.join(", ")}) }`;
|
|
418
|
+
} else return n;
|
|
419
|
+
return n;
|
|
420
|
+
}
|
|
421
|
+
//#endregion
|
|
422
|
+
export { Q as format, Z as formatRegExp, de as objDisplay };
|
|
423
|
+
|
|
424
|
+
//# sourceMappingURL=display.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display.js","names":[],"sources":["../../../../../../../../node_modules/@vitest/utils/dist/display.js"],"sourcesContent":["import { plugins, createDOMElementFilter, format as format$1 } from '@vitest/pretty-format';\n\nconst ansiColors = {\n bold: ['1', '22'],\n dim: ['2', '22'],\n italic: ['3', '23'],\n underline: ['4', '24'],\n // 5 & 6 are blinking\n inverse: ['7', '27'],\n hidden: ['8', '28'],\n strike: ['9', '29'],\n // 10-20 are fonts\n // 21-29 are resets for 1-9\n black: ['30', '39'],\n red: ['31', '39'],\n green: ['32', '39'],\n yellow: ['33', '39'],\n blue: ['34', '39'],\n magenta: ['35', '39'],\n cyan: ['36', '39'],\n white: ['37', '39'],\n brightblack: ['30;1', '39'],\n brightred: ['31;1', '39'],\n brightgreen: ['32;1', '39'],\n brightyellow: ['33;1', '39'],\n brightblue: ['34;1', '39'],\n brightmagenta: ['35;1', '39'],\n brightcyan: ['36;1', '39'],\n brightwhite: ['37;1', '39'],\n grey: ['90', '39'],\n};\nconst styles = {\n special: 'cyan',\n number: 'yellow',\n bigint: 'yellow',\n boolean: 'yellow',\n undefined: 'grey',\n null: 'bold',\n string: 'green',\n symbol: 'green',\n date: 'magenta',\n regexp: 'red',\n};\nconst truncator = '…';\nfunction colorise(value, styleType) {\n const color = ansiColors[styles[styleType]] || ansiColors[styleType] || '';\n if (!color) {\n return String(value);\n }\n return `\\u001b[${color[0]}m${String(value)}\\u001b[${color[1]}m`;\n}\nfunction normaliseOptions({ showHidden = false, depth = 2, colors = false, customInspect = true, showProxy = false, maxArrayLength = Infinity, breakLength = Infinity, seen = [], \n// eslint-disable-next-line no-shadow\ntruncate = Infinity, stylize = String, } = {}, inspect) {\n const options = {\n showHidden: Boolean(showHidden),\n depth: Number(depth),\n colors: Boolean(colors),\n customInspect: Boolean(customInspect),\n showProxy: Boolean(showProxy),\n maxArrayLength: Number(maxArrayLength),\n breakLength: Number(breakLength),\n truncate: Number(truncate),\n seen,\n inspect,\n stylize,\n };\n if (options.colors) {\n options.stylize = colorise;\n }\n return options;\n}\nfunction isHighSurrogate(char) {\n return char >= '\\ud800' && char <= '\\udbff';\n}\nfunction truncate(string, length, tail = truncator) {\n string = String(string);\n const tailLength = tail.length;\n const stringLength = string.length;\n if (tailLength > length && stringLength > tailLength) {\n return tail;\n }\n if (stringLength > length && stringLength > tailLength) {\n let end = length - tailLength;\n if (end > 0 && isHighSurrogate(string[end - 1])) {\n end = end - 1;\n }\n return `${string.slice(0, end)}${tail}`;\n }\n return string;\n}\n// eslint-disable-next-line complexity\nfunction inspectList(list, options, inspectItem, separator = ', ') {\n inspectItem = inspectItem || options.inspect;\n const size = list.length;\n if (size === 0)\n return '';\n const originalLength = options.truncate;\n let output = '';\n let peek = '';\n let truncated = '';\n for (let i = 0; i < size; i += 1) {\n const last = i + 1 === list.length;\n const secondToLast = i + 2 === list.length;\n truncated = `${truncator}(${list.length - i})`;\n const value = list[i];\n // If there is more than one remaining we need to account for a separator of `, `\n options.truncate = originalLength - output.length - (last ? 0 : separator.length);\n const string = peek || inspectItem(value, options) + (last ? '' : separator);\n const nextLength = output.length + string.length;\n const truncatedLength = nextLength + truncated.length;\n // If this is the last element, and adding it would\n // take us over length, but adding the truncator wouldn't - then break now\n if (last && nextLength > originalLength && output.length + truncated.length <= originalLength) {\n break;\n }\n // If this isn't the last or second to last element to scan,\n // but the string is already over length then break here\n if (!last && !secondToLast && truncatedLength > originalLength) {\n break;\n }\n // Peek at the next string to determine if we should\n // break early before adding this item to the output\n peek = last ? '' : inspectItem(list[i + 1], options) + (secondToLast ? '' : separator);\n // If we have one element left, but this element and\n // the next takes over length, the break early\n if (!last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength) {\n break;\n }\n output += string;\n // If the next element takes us to length -\n // but there are more after that, then we should truncate now\n if (!last && !secondToLast && nextLength + peek.length >= originalLength) {\n truncated = `${truncator}(${list.length - i - 1})`;\n break;\n }\n truncated = '';\n }\n return `${output}${truncated}`;\n}\nfunction quoteComplexKey(key) {\n if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) {\n return key;\n }\n return JSON.stringify(key)\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n}\nfunction inspectProperty([key, value], options) {\n options.truncate -= 2;\n if (typeof key === 'string') {\n key = quoteComplexKey(key);\n }\n else if (typeof key !== 'number') {\n key = `[${options.inspect(key, options)}]`;\n }\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return `${key}: ${value}`;\n}\n\nfunction inspectArray(array, options) {\n // Object.keys will always output the Array indices first, so we can slice by\n // `array.length` to get non-index properties\n const nonIndexProperties = Object.keys(array).slice(array.length);\n if (!array.length && !nonIndexProperties.length)\n return '[]';\n options.truncate -= 4;\n const listContents = inspectList(array, options);\n options.truncate -= listContents.length;\n let propertyContents = '';\n if (nonIndexProperties.length) {\n propertyContents = inspectList(nonIndexProperties.map(key => [key, array[key]]), options, inspectProperty);\n }\n return `[ ${listContents}${propertyContents ? `, ${propertyContents}` : ''} ]`;\n}\n\nconst getArrayName = (array) => {\n // We need to special case Node.js' Buffers, which report to be Uint8Array\n // @ts-ignore\n if (typeof Buffer === 'function' && array instanceof Buffer) {\n return 'Buffer';\n }\n if (array[Symbol.toStringTag]) {\n return array[Symbol.toStringTag];\n }\n return array.constructor.name;\n};\nfunction inspectTypedArray(array, options) {\n const name = getArrayName(array);\n options.truncate -= name.length + 4;\n // Object.keys will always output the Array indices first, so we can slice by\n // `array.length` to get non-index properties\n const nonIndexProperties = Object.keys(array).slice(array.length);\n if (!array.length && !nonIndexProperties.length)\n return `${name}[]`;\n // As we know TypedArrays only contain Unsigned Integers, we can skip inspecting each one and simply\n // stylise the toString() value of them\n let output = '';\n for (let i = 0; i < array.length; i++) {\n const string = `${options.stylize(truncate(array[i], options.truncate), 'number')}${i === array.length - 1 ? '' : ', '}`;\n options.truncate -= string.length;\n if (array[i] !== array.length && options.truncate <= 3) {\n output += `${truncator}(${array.length - array[i] + 1})`;\n break;\n }\n output += string;\n }\n let propertyContents = '';\n if (nonIndexProperties.length) {\n propertyContents = inspectList(nonIndexProperties.map(key => [key, array[key]]), options, inspectProperty);\n }\n return `${name}[ ${output}${propertyContents ? `, ${propertyContents}` : ''} ]`;\n}\n\nfunction inspectDate(dateObject, options) {\n const stringRepresentation = dateObject.toJSON();\n if (stringRepresentation === null) {\n return 'Invalid Date';\n }\n const split = stringRepresentation.split('T');\n const date = split[0];\n // If we need to - truncate the time portion, but never the date\n return options.stylize(`${date}T${truncate(split[1], options.truncate - date.length - 1)}`, 'date');\n}\n\nfunction inspectFunction(func, options) {\n const functionType = func[Symbol.toStringTag] || 'Function';\n const name = func.name;\n if (!name) {\n return options.stylize(`[${functionType}]`, 'special');\n }\n return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, 'special');\n}\n\nfunction inspectMapEntry([key, value], options) {\n options.truncate -= 4;\n key = options.inspect(key, options);\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return `${key} => ${value}`;\n}\n// IE11 doesn't support `map.entries()`\nfunction mapToEntries(map) {\n const entries = [];\n map.forEach((value, key) => {\n entries.push([key, value]);\n });\n return entries;\n}\nfunction inspectMap(map, options) {\n if (map.size === 0)\n return 'Map{}';\n options.truncate -= 7;\n return `Map{ ${inspectList(mapToEntries(map), options, inspectMapEntry)} }`;\n}\n\nconst isNaN = Number.isNaN || (i => i !== i); // eslint-disable-line no-self-compare\nfunction inspectNumber(number, options) {\n if (isNaN(number)) {\n return options.stylize('NaN', 'number');\n }\n if (number === Infinity) {\n return options.stylize('Infinity', 'number');\n }\n if (number === -Infinity) {\n return options.stylize('-Infinity', 'number');\n }\n if (number === 0) {\n return options.stylize(1 / number === Infinity ? '+0' : '-0', 'number');\n }\n return options.stylize(truncate(String(number), options.truncate), 'number');\n}\n\nfunction inspectBigInt(number, options) {\n let nums = truncate(number.toString(), options.truncate - 1);\n if (nums !== truncator)\n nums += 'n';\n return options.stylize(nums, 'bigint');\n}\n\nfunction inspectRegExp(value, options) {\n const flags = value.toString().split('/')[2];\n const sourceLength = options.truncate - (2 + flags.length);\n const source = value.source;\n return options.stylize(`/${truncate(source, sourceLength)}/${flags}`, 'regexp');\n}\n\n// IE11 doesn't support `Array.from(set)`\nfunction arrayFromSet(set) {\n const values = [];\n set.forEach(value => {\n values.push(value);\n });\n return values;\n}\nfunction inspectSet(set, options) {\n if (set.size === 0)\n return 'Set{}';\n options.truncate -= 7;\n return `Set{ ${inspectList(arrayFromSet(set), options)} }`;\n}\n\nconst stringEscapeChars = new RegExp(\"['\\\\u0000-\\\\u001f\\\\u007f-\\\\u009f\\\\u00ad\\\\u0600-\\\\u0604\\\\u070f\\\\u17b4\\\\u17b5\" +\n '\\\\u200c-\\\\u200f\\\\u2028-\\\\u202f\\\\u2060-\\\\u206f\\\\ufeff\\\\ufff0-\\\\uffff]', 'g');\nconst escapeCharacters = {\n '\\b': '\\\\b',\n '\\t': '\\\\t',\n '\\n': '\\\\n',\n '\\f': '\\\\f',\n '\\r': '\\\\r',\n \"'\": \"\\\\'\",\n '\\\\': '\\\\\\\\',\n};\nconst hex = 16;\nfunction escape(char) {\n return (escapeCharacters[char] ||\n `\\\\u${`0000${char.charCodeAt(0).toString(hex)}`.slice(-4)}`);\n}\nfunction inspectString(string, options) {\n if (stringEscapeChars.test(string)) {\n string = string.replace(stringEscapeChars, escape);\n }\n return options.stylize(`'${truncate(string, options.truncate - 2)}'`, 'string');\n}\n\nfunction inspectSymbol(value) {\n if ('description' in Symbol.prototype) {\n return value.description ? `Symbol(${value.description})` : 'Symbol()';\n }\n return value.toString();\n}\n\nconst getPromiseValue = () => 'Promise{…}';\n\nfunction inspectObject$1(object, options) {\n const properties = Object.getOwnPropertyNames(object);\n const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];\n if (properties.length === 0 && symbols.length === 0) {\n return '{}';\n }\n options.truncate -= 4;\n options.seen = options.seen || [];\n if (options.seen.includes(object)) {\n return '[Circular]';\n }\n options.seen.push(object);\n const propertyContents = inspectList(properties.map(key => [key, object[key]]), options, inspectProperty);\n const symbolContents = inspectList(symbols.map(key => [key, object[key]]), options, inspectProperty);\n options.seen.pop();\n let sep = '';\n if (propertyContents && symbolContents) {\n sep = ', ';\n }\n return `{ ${propertyContents}${sep}${symbolContents} }`;\n}\n\nconst toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag ? Symbol.toStringTag : false;\nfunction inspectClass(value, options) {\n let name = '';\n if (toStringTag && toStringTag in value) {\n name = value[toStringTag];\n }\n name = name || value.constructor.name;\n // Babel transforms anonymous classes to the name `_class`\n if (!name || name === '_class') {\n name = '<Anonymous Class>';\n }\n options.truncate -= name.length;\n return `${name}${inspectObject$1(value, options)}`;\n}\n\nfunction inspectArguments(args, options) {\n if (args.length === 0)\n return 'Arguments[]';\n options.truncate -= 13;\n return `Arguments[ ${inspectList(args, options)} ]`;\n}\n\nconst errorKeys = [\n 'stack',\n 'line',\n 'column',\n 'name',\n 'message',\n 'fileName',\n 'lineNumber',\n 'columnNumber',\n 'number',\n 'description',\n 'cause',\n];\nfunction inspectObject(error, options) {\n const properties = Object.getOwnPropertyNames(error).filter(key => errorKeys.indexOf(key) === -1);\n const name = error.name;\n options.truncate -= name.length;\n let message = '';\n if (typeof error.message === 'string') {\n message = truncate(error.message, options.truncate);\n }\n else {\n properties.unshift('message');\n }\n message = message ? `: ${message}` : '';\n options.truncate -= message.length + 5;\n options.seen = options.seen || [];\n if (options.seen.includes(error)) {\n return '[Circular]';\n }\n options.seen.push(error);\n const propertyContents = inspectList(properties.map(key => [key, error[key]]), options, inspectProperty);\n return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ''}`;\n}\n\nfunction inspectAttribute([key, value], options) {\n options.truncate -= 3;\n if (!value) {\n return `${options.stylize(String(key), 'yellow')}`;\n }\n return `${options.stylize(String(key), 'yellow')}=${options.stylize(`\"${value}\"`, 'string')}`;\n}\nfunction inspectNodeCollection(collection, options) {\n return inspectList(collection, options, inspectNode, '\\n');\n}\nfunction inspectNode(node, options) {\n switch (node.nodeType) {\n case 1:\n return inspectHTML(node, options);\n case 3:\n return options.inspect(node.data, options);\n default:\n return options.inspect(node, options);\n }\n}\n// @ts-ignore (Deno doesn't have Element)\nfunction inspectHTML(element, options) {\n const properties = element.getAttributeNames();\n const name = element.tagName.toLowerCase();\n const head = options.stylize(`<${name}`, 'special');\n const headClose = options.stylize(`>`, 'special');\n const tail = options.stylize(`</${name}>`, 'special');\n options.truncate -= name.length * 2 + 5;\n let propertyContents = '';\n if (properties.length > 0) {\n propertyContents += ' ';\n propertyContents += inspectList(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute, ' ');\n }\n options.truncate -= propertyContents.length;\n const truncate = options.truncate;\n let children = inspectNodeCollection(element.children, options);\n if (children && children.length > truncate) {\n children = `${truncator}(${element.children.length})`;\n }\n return `${head}${propertyContents}${headClose}${children}${tail}`;\n}\n\n/* !\n * loupe\n * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>\n * MIT Licensed\n */\nconst symbolsSupported = typeof Symbol === 'function' && typeof Symbol.for === 'function';\nconst chaiInspect = symbolsSupported ? Symbol.for('chai/inspect') : '@@chai/inspect';\nconst nodeInspect = Symbol.for('nodejs.util.inspect.custom');\nconst constructorMap = new WeakMap();\nconst stringTagMap = {};\nconst baseTypesMap = {\n undefined: (value, options) => options.stylize('undefined', 'undefined'),\n null: (value, options) => options.stylize('null', 'null'),\n boolean: (value, options) => options.stylize(String(value), 'boolean'),\n Boolean: (value, options) => options.stylize(String(value), 'boolean'),\n number: inspectNumber,\n Number: inspectNumber,\n bigint: inspectBigInt,\n BigInt: inspectBigInt,\n string: inspectString,\n String: inspectString,\n function: inspectFunction,\n Function: inspectFunction,\n symbol: inspectSymbol,\n // A Symbol polyfill will return `Symbol` not `symbol` from typedetect\n Symbol: inspectSymbol,\n Array: inspectArray,\n Date: inspectDate,\n Map: inspectMap,\n Set: inspectSet,\n RegExp: inspectRegExp,\n Promise: getPromiseValue,\n // WeakSet, WeakMap are totally opaque to us\n WeakSet: (value, options) => options.stylize('WeakSet{…}', 'special'),\n WeakMap: (value, options) => options.stylize('WeakMap{…}', 'special'),\n Arguments: inspectArguments,\n Int8Array: inspectTypedArray,\n Uint8Array: inspectTypedArray,\n Uint8ClampedArray: inspectTypedArray,\n Int16Array: inspectTypedArray,\n Uint16Array: inspectTypedArray,\n Int32Array: inspectTypedArray,\n Uint32Array: inspectTypedArray,\n Float32Array: inspectTypedArray,\n Float64Array: inspectTypedArray,\n Generator: () => '',\n DataView: () => '',\n ArrayBuffer: () => '',\n Error: inspectObject,\n HTMLCollection: inspectNodeCollection,\n NodeList: inspectNodeCollection,\n};\n// eslint-disable-next-line complexity\nconst inspectCustom = (value, options, type, inspectFn) => {\n if (chaiInspect in value && typeof value[chaiInspect] === 'function') {\n return value[chaiInspect](options);\n }\n if (nodeInspect in value && typeof value[nodeInspect] === 'function') {\n return value[nodeInspect](options.depth, options, inspectFn);\n }\n if ('inspect' in value && typeof value.inspect === 'function') {\n return value.inspect(options.depth, options);\n }\n if ('constructor' in value && constructorMap.has(value.constructor)) {\n return constructorMap.get(value.constructor)(value, options);\n }\n if (stringTagMap[type]) {\n return stringTagMap[type](value, options);\n }\n return '';\n};\nconst toString = Object.prototype.toString;\n// eslint-disable-next-line complexity\nfunction inspect$1(value, opts = {}) {\n const options = normaliseOptions(opts, inspect$1);\n const { customInspect } = options;\n let type = value === null ? 'null' : typeof value;\n if (type === 'object') {\n type = toString.call(value).slice(8, -1);\n }\n // If it is a base value that we already support, then use Loupe's inspector\n if (type in baseTypesMap) {\n return baseTypesMap[type](value, options);\n }\n // If `options.customInspect` is set to true then try to use the custom inspector\n if (customInspect && value) {\n const output = inspectCustom(value, options, type, inspect$1);\n if (output) {\n if (typeof output === 'string')\n return output;\n return inspect$1(output, options);\n }\n }\n const proto = value ? Object.getPrototypeOf(value) : false;\n // If it's a plain Object then use Loupe's inspector\n if (proto === Object.prototype || proto === null) {\n return inspectObject$1(value, options);\n }\n // Specifically account for HTMLElements\n // @ts-ignore\n if (value && typeof HTMLElement === 'function' && value instanceof HTMLElement) {\n return inspectHTML(value, options);\n }\n if ('constructor' in value) {\n // If it is a class, inspect it like an object but add the constructor name\n if (value.constructor !== Object) {\n return inspectClass(value, options);\n }\n // If it is an object with an anonymous prototype, display it as an object.\n return inspectObject$1(value, options);\n }\n // last chance to check if it's an object\n if (value === Object(value)) {\n return inspectObject$1(value, options);\n }\n // We have run out of options! Just stringify the value\n return options.stylize(String(value), type);\n}\n\nconst { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = plugins;\nconst PLUGINS = [\n\tReactTestComponent,\n\tReactElement,\n\tDOMElement,\n\tDOMCollection,\n\tImmutable,\n\tAsymmetricMatcher\n];\nfunction stringify(object, maxDepth = 10, { maxLength, filterNode, ...options } = {}) {\n\tconst MAX_LENGTH = maxLength ?? 1e4;\n\tlet result;\n\t// Convert string selector to filter function\n\tconst filterFn = typeof filterNode === \"string\" ? createNodeFilterFromSelector(filterNode) : filterNode;\n\tconst plugins = filterFn ? [\n\t\tReactTestComponent,\n\t\tReactElement,\n\t\tcreateDOMElementFilter(filterFn),\n\t\tDOMCollection,\n\t\tImmutable,\n\t\tAsymmetricMatcher\n\t] : PLUGINS;\n\ttry {\n\t\tresult = format$1(object, {\n\t\t\tmaxDepth,\n\t\t\tescapeString: false,\n\t\t\tplugins,\n\t\t\t...options\n\t\t});\n\t} catch {\n\t\tresult = format$1(object, {\n\t\t\tcallToJSON: false,\n\t\t\tmaxDepth,\n\t\t\tescapeString: false,\n\t\t\tplugins,\n\t\t\t...options\n\t\t});\n\t}\n\t// Prevents infinite loop https://github.com/vitest-dev/vitest/issues/7249\n\treturn result.length >= MAX_LENGTH && maxDepth > 1 ? stringify(object, Math.floor(Math.min(maxDepth, Number.MAX_SAFE_INTEGER) / 2), {\n\t\tmaxLength,\n\t\tfilterNode,\n\t\t...options\n\t}) : result;\n}\nfunction createNodeFilterFromSelector(selector) {\n\tconst ELEMENT_NODE = 1;\n\tconst COMMENT_NODE = 8;\n\treturn (node) => {\n\t\t// Filter out comments\n\t\tif (node.nodeType === COMMENT_NODE) {\n\t\t\treturn false;\n\t\t}\n\t\t// Filter out elements matching the selector\n\t\tif (node.nodeType === ELEMENT_NODE && node.matches) {\n\t\t\ttry {\n\t\t\t\treturn !node.matches(selector);\n\t\t\t} catch {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t};\n}\nconst formatRegExp = /%[sdjifoOc%]/g;\nfunction baseFormat(args, options = {}) {\n\tconst formatArg = (item, inspecOptions) => {\n\t\tif (options.prettifyObject) {\n\t\t\treturn stringify(item, undefined, {\n\t\t\t\tprintBasicPrototype: false,\n\t\t\t\tescapeString: false\n\t\t\t});\n\t\t}\n\t\treturn inspect(item, inspecOptions);\n\t};\n\tif (typeof args[0] !== \"string\") {\n\t\tconst objects = [];\n\t\tfor (let i = 0; i < args.length; i++) {\n\t\t\tobjects.push(formatArg(args[i], {\n\t\t\t\tdepth: 0,\n\t\t\t\tcolors: false\n\t\t\t}));\n\t\t}\n\t\treturn objects.join(\" \");\n\t}\n\tconst len = args.length;\n\tlet i = 1;\n\tconst template = args[0];\n\tlet str = String(template).replace(formatRegExp, (x) => {\n\t\tif (x === \"%%\") {\n\t\t\treturn \"%\";\n\t\t}\n\t\tif (i >= len) {\n\t\t\treturn x;\n\t\t}\n\t\tswitch (x) {\n\t\t\tcase \"%s\": {\n\t\t\t\tconst value = args[i++];\n\t\t\t\tif (typeof value === \"bigint\") {\n\t\t\t\t\treturn `${value.toString()}n`;\n\t\t\t\t}\n\t\t\t\tif (typeof value === \"number\" && value === 0 && 1 / value < 0) {\n\t\t\t\t\treturn \"-0\";\n\t\t\t\t}\n\t\t\t\tif (typeof value === \"object\" && value !== null) {\n\t\t\t\t\tif (typeof value.toString === \"function\" && value.toString !== Object.prototype.toString) {\n\t\t\t\t\t\treturn value.toString();\n\t\t\t\t\t}\n\t\t\t\t\treturn formatArg(value, {\n\t\t\t\t\t\tdepth: 0,\n\t\t\t\t\t\tcolors: false\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treturn String(value);\n\t\t\t}\n\t\t\tcase \"%d\": {\n\t\t\t\tconst value = args[i++];\n\t\t\t\tif (typeof value === \"bigint\") {\n\t\t\t\t\treturn `${value.toString()}n`;\n\t\t\t\t}\n\t\t\t\tif (typeof value === \"symbol\") {\n\t\t\t\t\treturn \"NaN\";\n\t\t\t\t}\n\t\t\t\treturn Number(value).toString();\n\t\t\t}\n\t\t\tcase \"%i\": {\n\t\t\t\tconst value = args[i++];\n\t\t\t\tif (typeof value === \"bigint\") {\n\t\t\t\t\treturn `${value.toString()}n`;\n\t\t\t\t}\n\t\t\t\treturn Number.parseInt(String(value)).toString();\n\t\t\t}\n\t\t\tcase \"%f\": return Number.parseFloat(String(args[i++])).toString();\n\t\t\tcase \"%o\": return formatArg(args[i++], {\n\t\t\t\tshowHidden: true,\n\t\t\t\tshowProxy: true\n\t\t\t});\n\t\t\tcase \"%O\": return formatArg(args[i++]);\n\t\t\tcase \"%c\": {\n\t\t\t\ti++;\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\tcase \"%j\": try {\n\t\t\t\treturn JSON.stringify(args[i++]);\n\t\t\t} catch (err) {\n\t\t\t\tconst m = err.message;\n\t\t\t\tif (m.includes(\"circular structure\") || m.includes(\"cyclic structures\") || m.includes(\"cyclic object\")) {\n\t\t\t\t\treturn \"[Circular]\";\n\t\t\t\t}\n\t\t\t\tthrow err;\n\t\t\t}\n\t\t\tdefault: return x;\n\t\t}\n\t});\n\tfor (let x = args[i]; i < len; x = args[++i]) {\n\t\tif (x === null || typeof x !== \"object\") {\n\t\t\tstr += ` ${typeof x === \"symbol\" ? x.toString() : x}`;\n\t\t} else {\n\t\t\tstr += ` ${formatArg(x)}`;\n\t\t}\n\t}\n\treturn str;\n}\nfunction format(...args) {\n\treturn baseFormat(args);\n}\nfunction browserFormat(...args) {\n\treturn baseFormat(args, { prettifyObject: true });\n}\nfunction inspect(obj, options = {}) {\n\tif (options.truncate === 0) {\n\t\toptions.truncate = Number.POSITIVE_INFINITY;\n\t}\n\treturn inspect$1(obj, options);\n}\nfunction objDisplay(obj, options = {}) {\n\tif (typeof options.truncate === \"undefined\") {\n\t\toptions.truncate = 40;\n\t}\n\tconst str = inspect(obj, options);\n\tconst type = Object.prototype.toString.call(obj);\n\tif (options.truncate && str.length >= options.truncate) {\n\t\tif (type === \"[object Function]\") {\n\t\t\tconst fn = obj;\n\t\t\treturn !fn.name ? \"[Function]\" : `[Function: ${fn.name}]`;\n\t\t} else if (type === \"[object Array]\") {\n\t\t\treturn `[ Array(${obj.length}) ]`;\n\t\t} else if (type === \"[object Object]\") {\n\t\t\tconst keys = Object.keys(obj);\n\t\t\tconst kstr = keys.length > 2 ? `${keys.splice(0, 2).join(\", \")}, ...` : keys.join(\", \");\n\t\t\treturn `{ Object (${kstr}) }`;\n\t\t} else {\n\t\t\treturn str;\n\t\t}\n\t}\n\treturn str;\n}\n\nexport { browserFormat, format, formatRegExp, inspect, objDisplay, stringify };\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,IAAM,IAAa;CACf,MAAM,CAAC,KAAK,KAAK;CACjB,KAAK,CAAC,KAAK,KAAK;CAChB,QAAQ,CAAC,KAAK,KAAK;CACnB,WAAW,CAAC,KAAK,KAAK;CAEtB,SAAS,CAAC,KAAK,KAAK;CACpB,QAAQ,CAAC,KAAK,KAAK;CACnB,QAAQ,CAAC,KAAK,KAAK;CAGnB,OAAO,CAAC,MAAM,KAAK;CACnB,KAAK,CAAC,MAAM,KAAK;CACjB,OAAO,CAAC,MAAM,KAAK;CACnB,QAAQ,CAAC,MAAM,KAAK;CACpB,MAAM,CAAC,MAAM,KAAK;CAClB,SAAS,CAAC,MAAM,KAAK;CACrB,MAAM,CAAC,MAAM,KAAK;CAClB,OAAO,CAAC,MAAM,KAAK;CACnB,aAAa,CAAC,QAAQ,KAAK;CAC3B,WAAW,CAAC,QAAQ,KAAK;CACzB,aAAa,CAAC,QAAQ,KAAK;CAC3B,cAAc,CAAC,QAAQ,KAAK;CAC5B,YAAY,CAAC,QAAQ,KAAK;CAC1B,eAAe,CAAC,QAAQ,KAAK;CAC7B,YAAY,CAAC,QAAQ,KAAK;CAC1B,aAAa,CAAC,QAAQ,KAAK;CAC3B,MAAM,CAAC,MAAM,KAAK;CACrB,EACK,IAAS;CACX,SAAS;CACT,QAAQ;CACR,QAAQ;CACR,SAAS;CACT,WAAW;CACX,MAAM;CACN,QAAQ;CACR,QAAQ;CACR,MAAM;CACN,QAAQ;CACX,EACK,IAAY;AAClB,SAAS,EAAS,GAAO,GAAW;CAChC,IAAM,IAAQ,EAAW,EAAO,OAAe,EAAW,MAAc;CAIxE,OAHK,IAGE,UAAU,EAAM,GAAG,GAAG,OAAO,EAAM,CAAC,SAAS,EAAM,GAAG,KAFlD,OAAO,EA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AAO;;GAEhB;CACF,KAAK,IAAI,IAAI,EAAK,IAAI,IAAI,GAAK,IAAI,EAAK,EAAE,IACzC,AAAkB,OAAO,KAAM,aAA3B,IACH,KAAO,IAAI,OAAO,KAAM,WAAW,EAAE,UAAU,GAAG,MAElD,KAAO,IAAI,EAAU,EAAE;CAGzB,OAAO;;AAER,SAAS,EAAO,GAAG,GAAM;CACxB,OAAO,GAAW,EAAK;;AAKxB,SAAS,EAAQ,GAAK,IAAU,EAAE,EAAE;CAInC,OAHI,EAAQ,aAAa,MACxB,EAAQ,WAAW,WAEb,EAAU,GAAK,EAAQ;;AAE/B,SAAS,GAAW,GAAK,IAAU,EAAE,EAAE;CACtC,AAAW,EAAQ,aAAa,WAC/B,EAAQ,WAAW;CAEpB,IAAM,IAAM,EAAQ,GAAK,EAAQ,EAC3B,IAAO,OAAO,UAAU,SAAS,KAAK,EAAI;CAChD,IAAI,EAAQ,YAAY,EAAI,UAAU,EAAQ,UAC7C,IAAI,MAAS,qBAAqB;EACjC,IAAM,IAAK;EACX,OAAQ,EAAG,OAAsB,cAAc,EAAG,KAAK,KAArC;QACZ,IAAI,MAAS,kBACnB,OAAO,WAAW,EAAI,OAAO;MACvB,IAAI,MAAS,mBAAmB;EACtC,IAAM,IAAO,OAAO,KAAK,EAAI;EAE7B,OAAO,aADM,EAAK,SAAS,IAAI,GAAG,EAAK,OAAO,GAAG,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,EAAK,KAAK,KAAK,CAC9D;QAEzB,OAAO;CAGT,OAAO"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
//#region ../../node_modules/@vitest/utils/dist/helpers.js
|
|
2
|
+
function e(e, t, n) {
|
|
3
|
+
let r = typeof e;
|
|
4
|
+
if (!n.includes(r)) throw TypeError(`${t} value must be ${n.join(" or ")}, received "${r}"`);
|
|
5
|
+
}
|
|
6
|
+
function t(e) {
|
|
7
|
+
let t = [], n = "none";
|
|
8
|
+
for (let r = 0; r < e.length; ++r) n === "singleline" ? e[r] === "\n" && (n = "none") : n === "multiline" ? e[r - 1] === "*" && e[r] === "/" && (n = "none") : n === "none" && (e[r] === "/" && e[r + 1] === "/" ? n = "singleline" : e[r] === "/" && e[r + 1] === "*" ? (n = "multiline", r += 2) : t.push(e[r]));
|
|
9
|
+
return t.join("");
|
|
10
|
+
}
|
|
11
|
+
function n(e) {
|
|
12
|
+
return e ??= [], Array.isArray(e) ? e : [e];
|
|
13
|
+
}
|
|
14
|
+
function r(e) {
|
|
15
|
+
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
16
|
+
}
|
|
17
|
+
function i(e, t, n = void 0) {
|
|
18
|
+
let r = t.replace(/\[(\d+)\]/g, ".$1").split("."), i = e;
|
|
19
|
+
for (let e of r) if (i = new Object(i)[e], i === void 0) return n;
|
|
20
|
+
return i;
|
|
21
|
+
}
|
|
22
|
+
function a() {
|
|
23
|
+
let e = null, t = null, n = new Promise((n, r) => {
|
|
24
|
+
e = n, t = r;
|
|
25
|
+
});
|
|
26
|
+
return n.resolve = e, n.reject = t, n;
|
|
27
|
+
}
|
|
28
|
+
function o(e) {
|
|
29
|
+
if (!Number.isNaN(e)) return !1;
|
|
30
|
+
let t = new Float64Array(1);
|
|
31
|
+
return t[0] = e, new Uint32Array(t.buffer)[1] >>> 31 == 1;
|
|
32
|
+
}
|
|
33
|
+
function s(e) {
|
|
34
|
+
let t = e % 10, n = e % 100;
|
|
35
|
+
return t === 1 && n !== 11 ? `${e}st` : t === 2 && n !== 12 ? `${e}nd` : t === 3 && n !== 13 ? `${e}rd` : `${e}th`;
|
|
36
|
+
}
|
|
37
|
+
function c(e) {
|
|
38
|
+
return Array.from(new Set(e));
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { e as assertTypes, a as createDefer, t as filterOutComments, o as isNegativeNaN, r as isObject, i as objectAttr, s as ordinal, n as toArray, c as unique };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","names":[],"sources":["../../../../../../../../node_modules/@vitest/utils/dist/helpers.js"],"sourcesContent":["import { VALID_ID_PREFIX, NULL_BYTE_PLACEHOLDER } from './constants.js';\n\n// port from nanoid\n// https://github.com/ai/nanoid\nconst urlAlphabet = \"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict\";\nfunction nanoid(size = 21) {\n\tlet id = \"\";\n\tlet i = size;\n\twhile (i--) {\n\t\tid += urlAlphabet[Math.random() * 64 | 0];\n\t}\n\treturn id;\n}\n\nconst RealDate = Date;\nfunction random(seed) {\n\tconst x = Math.sin(seed++) * 1e4;\n\treturn x - Math.floor(x);\n}\nfunction shuffle(array, seed = RealDate.now()) {\n\tlet length = array.length;\n\twhile (length) {\n\t\tconst index = Math.floor(random(seed) * length--);\n\t\tconst previous = array[length];\n\t\tarray[length] = array[index];\n\t\tarray[index] = previous;\n\t\t++seed;\n\t}\n\treturn array;\n}\n\n/**\n* Get original stacktrace without source map support the most performant way.\n* - Create only 1 stack frame.\n* - Rewrite prepareStackTrace to bypass \"support-stack-trace\" (usually takes ~250ms).\n*/\nfunction createSimpleStackTrace(options) {\n\tconst { message = \"$$stack trace error\", stackTraceLimit = 1 } = options || {};\n\tconst limit = Error.stackTraceLimit;\n\tconst prepareStackTrace = Error.prepareStackTrace;\n\tError.stackTraceLimit = stackTraceLimit;\n\tError.prepareStackTrace = (e) => e.stack;\n\tconst err = new Error(message);\n\tconst stackTrace = err.stack || \"\";\n\tError.prepareStackTrace = prepareStackTrace;\n\tError.stackTraceLimit = limit;\n\treturn stackTrace;\n}\nfunction notNullish(v) {\n\treturn v != null;\n}\nfunction assertTypes(value, name, types) {\n\tconst receivedType = typeof value;\n\tconst pass = types.includes(receivedType);\n\tif (!pass) {\n\t\tthrow new TypeError(`${name} value must be ${types.join(\" or \")}, received \"${receivedType}\"`);\n\t}\n}\nfunction isPrimitive(value) {\n\treturn value === null || typeof value !== \"function\" && typeof value !== \"object\";\n}\nfunction slash(path) {\n\treturn path.replace(/\\\\/g, \"/\");\n}\nconst postfixRE = /[?#].*$/;\nfunction cleanUrl(url) {\n\treturn url.replace(postfixRE, \"\");\n}\nfunction splitFileAndPostfix(path) {\n\tconst file = cleanUrl(path);\n\treturn {\n\t\tfile,\n\t\tpostfix: path.slice(file.length)\n\t};\n}\nconst externalRE = /^(?:[a-z]+:)?\\/\\//;\nconst isExternalUrl = (url) => externalRE.test(url);\n/**\n* Prepend `/@id/` and replace null byte so the id is URL-safe.\n* This is prepended to resolved ids that are not valid browser\n* import specifiers by the importAnalysis plugin.\n*/\nfunction wrapId(id) {\n\treturn id.startsWith(VALID_ID_PREFIX) ? id : VALID_ID_PREFIX + id.replace(\"\\0\", NULL_BYTE_PLACEHOLDER);\n}\n/**\n* Undo {@link wrapId}'s `/@id/` and null byte replacements.\n*/\nfunction unwrapId(id) {\n\treturn id.startsWith(VALID_ID_PREFIX) ? id.slice(VALID_ID_PREFIX.length).replace(NULL_BYTE_PLACEHOLDER, \"\\0\") : id;\n}\nfunction withTrailingSlash(path) {\n\tif (path.at(-1) !== \"/\") {\n\t\treturn `${path}/`;\n\t}\n\treturn path;\n}\nfunction filterOutComments(s) {\n\tconst result = [];\n\tlet commentState = \"none\";\n\tfor (let i = 0; i < s.length; ++i) {\n\t\tif (commentState === \"singleline\") {\n\t\t\tif (s[i] === \"\\n\") {\n\t\t\t\tcommentState = \"none\";\n\t\t\t}\n\t\t} else if (commentState === \"multiline\") {\n\t\t\tif (s[i - 1] === \"*\" && s[i] === \"/\") {\n\t\t\t\tcommentState = \"none\";\n\t\t\t}\n\t\t} else if (commentState === \"none\") {\n\t\t\tif (s[i] === \"/\" && s[i + 1] === \"/\") {\n\t\t\t\tcommentState = \"singleline\";\n\t\t\t} else if (s[i] === \"/\" && s[i + 1] === \"*\") {\n\t\t\t\tcommentState = \"multiline\";\n\t\t\t\ti += 2;\n\t\t\t} else {\n\t\t\t\tresult.push(s[i]);\n\t\t\t}\n\t\t}\n\t}\n\treturn result.join(\"\");\n}\nconst bareImportRE = /^(?![a-z]:)[\\w@](?!.*:\\/\\/)/i;\nfunction isBareImport(id) {\n\treturn bareImportRE.test(id);\n}\nfunction toArray(array) {\n\tif (array === null || array === undefined) {\n\t\tarray = [];\n\t}\n\tif (Array.isArray(array)) {\n\t\treturn array;\n\t}\n\treturn [array];\n}\nfunction isObject(item) {\n\treturn item != null && typeof item === \"object\" && !Array.isArray(item);\n}\nfunction isFinalObj(obj) {\n\treturn obj === Object.prototype || obj === Function.prototype || obj === RegExp.prototype;\n}\nfunction getType(value) {\n\treturn Object.prototype.toString.apply(value).slice(8, -1);\n}\nfunction collectOwnProperties(obj, collector) {\n\tconst collect = typeof collector === \"function\" ? collector : (key) => collector.add(key);\n\tObject.getOwnPropertyNames(obj).forEach(collect);\n\tObject.getOwnPropertySymbols(obj).forEach(collect);\n}\nfunction getOwnProperties(obj) {\n\tconst ownProps = new Set();\n\tif (isFinalObj(obj)) {\n\t\treturn [];\n\t}\n\tcollectOwnProperties(obj, ownProps);\n\treturn Array.from(ownProps);\n}\nconst defaultCloneOptions = { forceWritable: false };\nfunction deepClone(val, options = defaultCloneOptions) {\n\tconst seen = new WeakMap();\n\treturn clone(val, seen, options);\n}\nfunction clone(val, seen, options = defaultCloneOptions) {\n\tlet k, out;\n\tif (seen.has(val)) {\n\t\treturn seen.get(val);\n\t}\n\tif (Array.isArray(val)) {\n\t\tout = Array.from({ length: k = val.length });\n\t\tseen.set(val, out);\n\t\twhile (k--) {\n\t\t\tout[k] = clone(val[k], seen, options);\n\t\t}\n\t\treturn out;\n\t}\n\tif (Object.prototype.toString.call(val) === \"[object Object]\") {\n\t\tout = Object.create(Object.getPrototypeOf(val));\n\t\tseen.set(val, out);\n\t\t// we don't need properties from prototype\n\t\tconst props = getOwnProperties(val);\n\t\tfor (const k of props) {\n\t\t\tconst descriptor = Object.getOwnPropertyDescriptor(val, k);\n\t\t\tif (!descriptor) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst cloned = clone(val[k], seen, options);\n\t\t\tif (options.forceWritable) {\n\t\t\t\tObject.defineProperty(out, k, {\n\t\t\t\t\tenumerable: descriptor.enumerable,\n\t\t\t\t\tconfigurable: true,\n\t\t\t\t\twritable: true,\n\t\t\t\t\tvalue: cloned\n\t\t\t\t});\n\t\t\t} else if (\"get\" in descriptor) {\n\t\t\t\tObject.defineProperty(out, k, {\n\t\t\t\t\t...descriptor,\n\t\t\t\t\tget() {\n\t\t\t\t\t\treturn cloned;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tObject.defineProperty(out, k, {\n\t\t\t\t\t...descriptor,\n\t\t\t\t\tvalue: cloned\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\treturn out;\n\t}\n\treturn val;\n}\nfunction noop() {}\nfunction objectAttr(source, path, defaultValue = undefined) {\n\t// a[3].b -> a.3.b\n\tconst paths = path.replace(/\\[(\\d+)\\]/g, \".$1\").split(\".\");\n\tlet result = source;\n\tfor (const p of paths) {\n\t\tresult = new Object(result)[p];\n\t\tif (result === undefined) {\n\t\t\treturn defaultValue;\n\t\t}\n\t}\n\treturn result;\n}\nfunction createDefer() {\n\tlet resolve = null;\n\tlet reject = null;\n\tconst p = new Promise((_resolve, _reject) => {\n\t\tresolve = _resolve;\n\t\treject = _reject;\n\t});\n\tp.resolve = resolve;\n\tp.reject = reject;\n\treturn p;\n}\n/**\n* If code starts with a function call, will return its last index, respecting arguments.\n* This will return 25 - last ending character of toMatch \")\"\n* Also works with callbacks\n* ```\n* toMatch({ test: '123' });\n* toBeAliased('123')\n* ```\n*/\nfunction getCallLastIndex(code) {\n\tlet charIndex = -1;\n\tlet inString = null;\n\tlet startedBracers = 0;\n\tlet endedBracers = 0;\n\tlet beforeChar = null;\n\twhile (charIndex <= code.length) {\n\t\tbeforeChar = code[charIndex];\n\t\tcharIndex++;\n\t\tconst char = code[charIndex];\n\t\tconst isCharString = char === \"\\\"\" || char === \"'\" || char === \"`\";\n\t\tif (isCharString && beforeChar !== \"\\\\\") {\n\t\t\tif (inString === char) {\n\t\t\t\tinString = null;\n\t\t\t} else if (!inString) {\n\t\t\t\tinString = char;\n\t\t\t}\n\t\t}\n\t\tif (!inString) {\n\t\t\tif (char === \"(\") {\n\t\t\t\tstartedBracers++;\n\t\t\t}\n\t\t\tif (char === \")\") {\n\t\t\t\tendedBracers++;\n\t\t\t}\n\t\t}\n\t\tif (startedBracers && endedBracers && startedBracers === endedBracers) {\n\t\t\treturn charIndex;\n\t\t}\n\t}\n\treturn null;\n}\nfunction isNegativeNaN(val) {\n\tif (!Number.isNaN(val)) {\n\t\treturn false;\n\t}\n\tconst f64 = new Float64Array(1);\n\tf64[0] = val;\n\tconst u32 = new Uint32Array(f64.buffer);\n\tconst isNegative = u32[1] >>> 31 === 1;\n\treturn isNegative;\n}\nfunction toString(v) {\n\treturn Object.prototype.toString.call(v);\n}\nfunction isPlainObject(val) {\n\treturn toString(val) === \"[object Object]\" && (!val.constructor || val.constructor.name === \"Object\");\n}\nfunction isMergeableObject(item) {\n\treturn isPlainObject(item) && !Array.isArray(item);\n}\nfunction ordinal(i) {\n\tconst j = i % 10;\n\tconst k = i % 100;\n\tif (j === 1 && k !== 11) {\n\t\treturn `${i}st`;\n\t}\n\tif (j === 2 && k !== 12) {\n\t\treturn `${i}nd`;\n\t}\n\tif (j === 3 && k !== 13) {\n\t\treturn `${i}rd`;\n\t}\n\treturn `${i}th`;\n}\n/**\n* Deep merge :P\n*\n* Will merge objects only if they are plain\n*\n* Do not merge types - it is very expensive and usually it's better to case a type here\n*/\nfunction deepMerge(target, ...sources) {\n\tif (!sources.length) {\n\t\treturn target;\n\t}\n\tconst source = sources.shift();\n\tif (source === undefined) {\n\t\treturn target;\n\t}\n\tif (isMergeableObject(target) && isMergeableObject(source)) {\n\t\tObject.keys(source).forEach((key) => {\n\t\t\tconst _source = source;\n\t\t\tif (isMergeableObject(_source[key])) {\n\t\t\t\tif (!target[key]) {\n\t\t\t\t\ttarget[key] = {};\n\t\t\t\t}\n\t\t\t\tdeepMerge(target[key], _source[key]);\n\t\t\t} else {\n\t\t\t\ttarget[key] = _source[key];\n\t\t\t}\n\t\t});\n\t}\n\treturn deepMerge(target, ...sources);\n}\nfunction unique(array) {\n\treturn Array.from(new Set(array));\n}\n\nexport { assertTypes, cleanUrl, clone, createDefer, createSimpleStackTrace, deepClone, deepMerge, filterOutComments, getCallLastIndex, getOwnProperties, getType, isBareImport, isExternalUrl, isNegativeNaN, isObject, isPrimitive, nanoid, noop, notNullish, objectAttr, ordinal, shuffle, slash, splitFileAndPostfix, toArray, unique, unwrapId, withTrailingSlash, wrapId };\n"],"x_google_ignoreList":[0],"mappings":";AAmDA,SAAS,EAAY,GAAO,GAAM,GAAO;CACxC,IAAM,IAAe,OAAO;CAE5B,IAAI,CADS,EAAM,SAAS,EACnB,EACR,MAAU,UAAU,GAAG,EAAK,iBAAiB,EAAM,KAAK,OAAO,CAAC,cAAc,EAAa,GAAG;;AA0ChG,SAAS,EAAkB,GAAG;CAC7B,IAAM,IAAS,EAAE,EACb,IAAe;CACnB,KAAK,IAAI,IAAI,GAAG,IAAI,EAAE,QAAQ,EAAE,GAC/B,AAAI,MAAiB,eAChB,EAAE,OAAO,SACZ,IAAe,UAEN,MAAiB,cACvB,EAAE,IAAI,OAAO,OAAO,EAAE,OAAO,QAChC,IAAe,UAEN,MAAiB,WACvB,EAAE,OAAO,OAAO,EAAE,IAAI,OAAO,MAChC,IAAe,eACL,EAAE,OAAO,OAAO,EAAE,IAAI,OAAO,OACvC,IAAe,aACf,KAAK,KAEL,EAAO,KAAK,EAAE,GAAG;CAIpB,OAAO,EAAO,KAAK,GAAG;;AAMvB,SAAS,EAAQ,GAAO;CAOvB,OANA,AACC,MAAQ,EAAE,EAEP,MAAM,QAAQ,EAAM,GAChB,IAED,CAAC,EAAM;;AAEf,SAAS,EAAS,GAAM;CACvB,OAAuB,OAAO,KAAS,cAAhC,KAA4C,CAAC,MAAM,QAAQ,EAAK;;AA4ExE,SAAS,EAAW,GAAQ,GAAM,IAAe,KAAA,GAAW;CAE3D,IAAM,IAAQ,EAAK,QAAQ,cAAc,MAAM,CAAC,MAAM,IAAI,EACtD,IAAS;CACb,KAAK,IAAM,KAAK,GAEf,IADA,IAAS,IAAI,OAAO,EAAO,CAAC,IACxB,MAAW,KAAA,GACd,OAAO;CAGT,OAAO;;AAER,SAAS,IAAc;CACtB,IAAI,IAAU,MACV,IAAS,MACP,IAAI,IAAI,SAAS,GAAU,MAAY;EAE5C,AADA,IAAU,GACV,IAAS;GACR;CAGF,OAFA,EAAE,UAAU,GACZ,EAAE,SAAS,GACJ;;AA2CR,SAAS,EAAc,GAAK;CAC3B,IAAI,CAAC,OAAO,MAAM,EAAI,EACrB,OAAO;CAER,IAAM,IAAM,IAAI,aAAa,EAAE;CAI/B,OAHA,EAAI,KAAK,GAEU,IADH,YAAY,EAAI,OACV,CAAC,OAAO,MAAO;;AAYtC,SAAS,EAAQ,GAAG;CACnB,IAAM,IAAI,IAAI,IACR,IAAI,IAAI;CAUd,OATI,MAAM,KAAK,MAAM,KACb,GAAG,EAAE,MAET,MAAM,KAAK,MAAM,KACb,GAAG,EAAE,MAET,MAAM,KAAK,MAAM,KACb,GAAG,EAAE,MAEN,GAAG,EAAE;;AAgCb,SAAS,EAAO,GAAO;CACtB,OAAO,MAAM,KAAK,IAAI,IAAI,EAAM,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { resolve as e } from "./chunk-pathe.M-eThtNZ.js";
|
|
2
|
+
var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", n = new Uint8Array(64), r = new Uint8Array(128);
|
|
3
|
+
for (let e = 0; e < t.length; e++) {
|
|
4
|
+
let i = t.charCodeAt(e);
|
|
5
|
+
n[e] = i, r[i] = e;
|
|
6
|
+
}
|
|
7
|
+
var i = /^\s*at .*(?:\S:\d+|\(native\))/m, a = /^(?:eval@)?(?:\[native code\])?$/, o = Date.now().toString().length, s = RegExp(`vitest=\\d{${o}}`);
|
|
8
|
+
function c(e) {
|
|
9
|
+
if (!e.includes(":")) return [e];
|
|
10
|
+
let t = /(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g, ""));
|
|
11
|
+
if (!t) return [e];
|
|
12
|
+
let n = t[1];
|
|
13
|
+
if (n.startsWith("async ") && (n = n.slice(6)), n.startsWith("http:") || n.startsWith("https:")) {
|
|
14
|
+
let e = new URL(n);
|
|
15
|
+
e.searchParams.delete("import"), e.searchParams.delete("browserv"), n = e.pathname + e.hash + e.search;
|
|
16
|
+
}
|
|
17
|
+
if (n.startsWith("/@fs/")) {
|
|
18
|
+
let e = /^\/@fs\/[a-zA-Z]:\//.test(n);
|
|
19
|
+
n = n.slice(e ? 5 : 4);
|
|
20
|
+
}
|
|
21
|
+
return n.includes("vitest=") && (n = n.replace(s, "").replace(/[?&]$/, "")), [
|
|
22
|
+
n,
|
|
23
|
+
t[2] || void 0,
|
|
24
|
+
t[3] || void 0
|
|
25
|
+
];
|
|
26
|
+
}
|
|
27
|
+
function l(e) {
|
|
28
|
+
let t = e.trim();
|
|
29
|
+
if (a.test(t) || (t.includes(" > eval") && (t = t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), !t.includes("@"))) return null;
|
|
30
|
+
let n = -1, r = "", i;
|
|
31
|
+
for (let e = 0; e < t.length; e++) if (t[e] === "@") {
|
|
32
|
+
let a = t.slice(e + 1);
|
|
33
|
+
if (a.includes(":") && a.length >= 3) {
|
|
34
|
+
n = e, r = a, i = e > 0 ? t.slice(0, e) : void 0;
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (n === -1 || !r.includes(":") || r.length < 3) return null;
|
|
39
|
+
let [o, s, l] = c(r);
|
|
40
|
+
return !o || !s || !l ? null : {
|
|
41
|
+
file: o,
|
|
42
|
+
method: i || "",
|
|
43
|
+
line: Number.parseInt(s),
|
|
44
|
+
column: Number.parseInt(l)
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function u(e) {
|
|
48
|
+
let t = e.trim();
|
|
49
|
+
return i.test(t) ? d(t) : l(t);
|
|
50
|
+
}
|
|
51
|
+
function d(t) {
|
|
52
|
+
let n = t.trim();
|
|
53
|
+
if (!i.test(n)) return null;
|
|
54
|
+
n.includes("(eval ") && (n = n.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, ""));
|
|
55
|
+
let r = n.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, ""), a = r.match(/ (\(.+\)$)/);
|
|
56
|
+
r = a ? r.replace(a[0], "") : r;
|
|
57
|
+
let [o, s, l] = c(a ? a[1] : r), u = a && r || "", d = o && ["eval", "<anonymous>"].includes(o) ? void 0 : o;
|
|
58
|
+
return !d || !s || !l ? null : (u.startsWith("async ") && (u = u.slice(6)), d.startsWith("file://") && (d = d.slice(7)), d = d.startsWith("node:") || d.startsWith("internal:") ? d : e(d), u &&= u.replace(/\(0\s?,\s?__vite_ssr_import_\d+__.(\w+)\)/g, "$1").replace(/__(vite_ssr_import|vi_import)_\d+__\./g, "").replace(/(Object\.)?__vite_ssr_export_default__\s?/g, ""), {
|
|
59
|
+
method: u,
|
|
60
|
+
file: d,
|
|
61
|
+
line: Number.parseInt(s),
|
|
62
|
+
column: Number.parseInt(l)
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
export { u as parseSingleStack };
|
|
67
|
+
|
|
68
|
+
//# sourceMappingURL=source-map.js.map
|