@e-llm-studio/instant-learning 0.0.268 → 0.0.269
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index10.js +1 -1
- package/dist/_virtual/index11.js +1 -1
- package/dist/_virtual/index12.js +1 -1
- package/dist/_virtual/index13.js +1 -1
- package/dist/_virtual/index14.js +1 -1
- package/dist/_virtual/index15.js +1 -1
- package/dist/_virtual/index16.js +1 -1
- package/dist/_virtual/index17.js +1 -1
- package/dist/_virtual/index18.js +1 -1
- package/dist/_virtual/index19.js +1 -1
- package/dist/_virtual/index2.js +1 -1
- package/dist/_virtual/index20.js +1 -1
- package/dist/_virtual/index21.js +1 -1
- package/dist/_virtual/index22.js +1 -1
- package/dist/_virtual/index23.js +1 -1
- package/dist/_virtual/index24.js +1 -1
- package/dist/_virtual/index28.js +1 -1
- package/dist/_virtual/index3.js +1 -1
- package/dist/_virtual/index30.js +1 -1
- package/dist/_virtual/index31.js +1 -1
- package/dist/_virtual/index32.js +1 -1
- package/dist/_virtual/index33.js +1 -1
- package/dist/_virtual/index35.js +1 -1
- package/dist/_virtual/index36.js +1 -1
- package/dist/_virtual/index4.js +1 -1
- package/dist/_virtual/index7.js +1 -1
- package/dist/_virtual/index8.js +1 -1
- package/dist/_virtual/index9.js +1 -1
- package/dist/cjs/_virtual/index10.js +1 -1
- package/dist/cjs/_virtual/index11.js +1 -1
- package/dist/cjs/_virtual/index12.js +1 -1
- package/dist/cjs/_virtual/index13.js +1 -1
- package/dist/cjs/_virtual/index14.js +1 -1
- package/dist/cjs/_virtual/index15.js +1 -1
- package/dist/cjs/_virtual/index16.js +1 -1
- package/dist/cjs/_virtual/index17.js +1 -1
- package/dist/cjs/_virtual/index18.js +1 -1
- package/dist/cjs/_virtual/index19.js +1 -1
- package/dist/cjs/_virtual/index2.js +1 -1
- package/dist/cjs/_virtual/index20.js +1 -1
- package/dist/cjs/_virtual/index21.js +1 -1
- package/dist/cjs/_virtual/index22.js +1 -1
- package/dist/cjs/_virtual/index23.js +1 -1
- package/dist/cjs/_virtual/index24.js +1 -1
- package/dist/cjs/_virtual/index28.js +1 -1
- package/dist/cjs/_virtual/index3.js +1 -1
- package/dist/cjs/_virtual/index30.js +1 -1
- package/dist/cjs/_virtual/index31.js +1 -1
- package/dist/cjs/_virtual/index32.js +1 -1
- package/dist/cjs/_virtual/index33.js +1 -1
- package/dist/cjs/_virtual/index35.js +1 -1
- package/dist/cjs/_virtual/index36.js +1 -1
- package/dist/cjs/_virtual/index4.js +1 -1
- package/dist/cjs/_virtual/index7.js +1 -1
- package/dist/cjs/_virtual/index8.js +1 -1
- package/dist/cjs/_virtual/index9.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/InputDataReasoningCard.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/NewMinimizedThinkingSteps.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/NewMinimizedThinkingSteps.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/WatchMeWork/AgentStepsView.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/WatchMeWork/AgentStepsView.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/WatchMeWork/StepDetailView.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/WatchMeWork/StepDetailView.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/WatchMeWork/Thinkingstepshelper.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/WatchMeWork/Thinkingstepshelper.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/WatchMeWork/Usethinkingsteps.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/WatchMeWork/Usethinkingsteps.js.map +1 -0
- package/dist/cjs/features/IL-OTJ/_components/WatchMeWork/WorkingIndicator.js +2 -0
- package/dist/cjs/features/IL-OTJ/_components/WatchMeWork/WorkingIndicator.js.map +1 -0
- package/dist/cjs/node_modules/@e-llm-studio/citation/dist/features/PdfViewer/PdfContainer.js +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/citation/dist/features/PdfViewer/PdfContainer.js.map +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/streaming-response/dist/index.js +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/streaming-response/dist/index.js.map +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/AgentStepsView.js +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/AgentStepsView.js.map +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/StepDetailView.js +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/StepDetailView.js.map +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/Usethinkingsteps.js +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/Usethinkingsteps.js.map +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/WorkingIndicator.js +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/WorkingIndicator.js.map +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/WatchMeWork.js +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/WatchMeWork.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/Grow/Grow.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/Popper/Popper.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/Portal/Portal.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/SvgIcon/SvgIcon.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/Tooltip/Tooltip.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/colorManipulator.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/createPalette.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/createSpacing.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/createTheme.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/createTypography.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/utils/capitalize.js +1 -1
- package/dist/cjs/node_modules/@material-ui/icons/utils/createSvgIcon.js +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/getStylesCreator/getStylesCreator.js +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/index.js +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/withStyles/withStyles.js +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/withTheme/withTheme.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/breakpoints.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/merge.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/responsivePropType.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/spacing.js +1 -1
- package/dist/cjs/node_modules/@material-ui/utils/esm/elementAcceptingRef.js +1 -1
- package/dist/cjs/node_modules/@material-ui/utils/esm/elementTypeAcceptingRef.js +1 -1
- package/dist/cjs/node_modules/@material-ui/utils/esm/getDisplayName.js +1 -1
- package/dist/cjs/node_modules/@material-ui/utils/esm/refType.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Accordion/Accordion.js +1 -1
- package/dist/cjs/node_modules/@mui/material/AccordionActions/AccordionActions.js +1 -1
- package/dist/cjs/node_modules/@mui/material/AccordionDetails/AccordionDetails.js +1 -1
- package/dist/cjs/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Alert/Alert.js +1 -1
- package/dist/cjs/node_modules/@mui/material/AlertTitle/AlertTitle.js +1 -1
- package/dist/cjs/node_modules/@mui/material/AppBar/AppBar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Autocomplete/Autocomplete.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Avatar/Avatar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/AvatarGroup/AvatarGroup.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Backdrop/Backdrop.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Badge/Badge.js +1 -1
- package/dist/cjs/node_modules/@mui/material/BottomNavigation/BottomNavigation.js +1 -1
- package/dist/cjs/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Box/Box.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Button/Button.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ButtonBase/ButtonBase.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ButtonBase/Ripple.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ButtonBase/TouchRipple.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Card/Card.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CardActionArea/CardActionArea.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CardActions/CardActions.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CardContent/CardContent.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CardHeader/CardHeader.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CardMedia/CardMedia.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Checkbox/Checkbox.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Chip/Chip.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CircularProgress/CircularProgress.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Collapse/Collapse.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Container/Container.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CssBaseline/CssBaseline.js +1 -1
- package/dist/cjs/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Dialog/Dialog.js +1 -1
- package/dist/cjs/node_modules/@mui/material/DialogActions/DialogActions.js +1 -1
- package/dist/cjs/node_modules/@mui/material/DialogContent/DialogContent.js +1 -1
- package/dist/cjs/node_modules/@mui/material/DialogContentText/DialogContentText.js +1 -1
- package/dist/cjs/node_modules/@mui/material/DialogTitle/DialogTitle.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Divider/Divider.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Drawer/Drawer.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Fab/Fab.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Fade/Fade.js +1 -1
- package/dist/cjs/node_modules/@mui/material/FilledInput/FilledInput.js +1 -1
- package/dist/cjs/node_modules/@mui/material/FormControl/FormControl.js +1 -1
- package/dist/cjs/node_modules/@mui/material/FormControlLabel/FormControlLabel.js +1 -1
- package/dist/cjs/node_modules/@mui/material/FormGroup/FormGroup.js +1 -1
- package/dist/cjs/node_modules/@mui/material/FormHelperText/FormHelperText.js +1 -1
- package/dist/cjs/node_modules/@mui/material/FormLabel/FormLabel.js +1 -1
- package/dist/cjs/node_modules/@mui/material/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Grid/Grid.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Grow/Grow.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Hidden/Hidden.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Hidden/HiddenCss.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Hidden/HiddenJs.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Hidden/withWidth.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Icon/Icon.js +1 -1
- package/dist/cjs/node_modules/@mui/material/IconButton/IconButton.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ImageList/ImageList.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ImageListItem/ImageListItem.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ImageListItemBar/ImageListItemBar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Input/Input.js +1 -1
- package/dist/cjs/node_modules/@mui/material/InputAdornment/InputAdornment.js +1 -1
- package/dist/cjs/node_modules/@mui/material/InputBase/InputBase.js +1 -1
- package/dist/cjs/node_modules/@mui/material/InputLabel/InputLabel.js +1 -1
- package/dist/cjs/node_modules/@mui/material/LinearProgress/LinearProgress.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Link/Link.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Link/getTextDecoration.js +1 -1
- package/dist/cjs/node_modules/@mui/material/List/List.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItem/ListItem.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemAvatar/ListItemAvatar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemButton/ListItemButton.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemIcon/ListItemIcon.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemText/ListItemText.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListSubheader/ListSubheader.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Menu/Menu.js +1 -1
- package/dist/cjs/node_modules/@mui/material/MenuItem/MenuItem.js +1 -1
- package/dist/cjs/node_modules/@mui/material/MenuList/MenuList.js +1 -1
- package/dist/cjs/node_modules/@mui/material/MobileStepper/MobileStepper.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Modal/Modal.js +1 -1
- package/dist/cjs/node_modules/@mui/material/NativeSelect/NativeSelect.js +1 -1
- package/dist/cjs/node_modules/@mui/material/NativeSelect/NativeSelectInput.js +1 -1
- package/dist/cjs/node_modules/@mui/material/NoSsr/NoSsr.js +1 -1
- package/dist/cjs/node_modules/@mui/material/OutlinedInput/NotchedOutline.js +1 -1
- package/dist/cjs/node_modules/@mui/material/OutlinedInput/NotchedOutline.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Pagination/Pagination.js +1 -1
- package/dist/cjs/node_modules/@mui/material/PaginationItem/PaginationItem.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Paper/Paper.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Popover/Popover.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Popper/BasePopper.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Popper/Popper.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Portal/Portal.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Radio/Radio.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Radio/RadioButtonIcon.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Radio/RadioButtonIcon.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/RadioGroup/RadioGroup.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Rating/Rating.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Select/Select.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Select/SelectInput.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Skeleton/Skeleton.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Slide/Slide.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Slider/Slider.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Slider/SliderValueLabel.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Snackbar/Snackbar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SnackbarContent/SnackbarContent.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SpeedDial/SpeedDial.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Stack/Stack.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Step/Step.js +1 -1
- package/dist/cjs/node_modules/@mui/material/StepButton/StepButton.js +1 -1
- package/dist/cjs/node_modules/@mui/material/StepConnector/StepConnector.js +1 -1
- package/dist/cjs/node_modules/@mui/material/StepContent/StepContent.js +1 -1
- package/dist/cjs/node_modules/@mui/material/StepIcon/StepIcon.js +1 -1
- package/dist/cjs/node_modules/@mui/material/StepLabel/StepLabel.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Stepper/Stepper.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SvgIcon/SvgIcon.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SwipeableDrawer/SwipeArea.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SwipeableDrawer/SwipeArea.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Switch/Switch.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Tab/Tab.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TabScrollButton/TabScrollButton.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Table/Table.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableBody/TableBody.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableCell/TableCell.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableContainer/TableContainer.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableFooter/TableFooter.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableHead/TableHead.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TablePagination/TablePagination.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TablePagination/TablePaginationActions.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableRow/TableRow.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableSortLabel/TableSortLabel.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Tabs/ScrollbarSize.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Tabs/Tabs.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TextField/TextField.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ToggleButton/ToggleButton.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Toolbar/Toolbar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Tooltip/Tooltip.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Typography/Typography.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Unstable_Grid2/Grid2.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Zoom/Zoom.js +1 -1
- package/dist/cjs/node_modules/@mui/material/internal/SwitchBase.js +1 -1
- package/dist/cjs/node_modules/@mui/material/internal/SwitchBase.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/CssVarsProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/ThemeProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/experimental_extendTheme.js +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/shouldSkipGeneratingVar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/shouldSkipGeneratingVar.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/useTheme.js +1 -1
- package/dist/cjs/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/cjs/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/system/colorManipulator.js +1 -1
- package/dist/cjs/node_modules/@mui/system/createStyled.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Box/Box.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Container/Container.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Container/createContainer.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/RtlProvider/index.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Stack/Stack.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Stack/createStack.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Unstable_Grid/Grid.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Unstable_Grid/createGrid.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/breakpoints.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/responsivePropType.js +1 -1
- package/dist/cjs/node_modules/@mui/system/useThemeWithoutDefault.js +1 -1
- package/dist/cjs/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +1 -1
- package/dist/cjs/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +1 -1
- package/dist/cjs/node_modules/@mui/utils/esm/refType/refType.js +1 -1
- package/dist/cjs/node_modules/@mui/utils/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/@react-pdf-viewer/core/lib/index.js +1 -1
- package/dist/cjs/node_modules/@react-pdf-viewer/page-navigation/lib/index.js +1 -1
- package/dist/cjs/node_modules/@react-pdf-viewer/search/lib/index.js +1 -1
- package/dist/cjs/node_modules/@react-pdf-viewer/zoom/lib/index.js +1 -1
- package/dist/cjs/node_modules/decode-named-character-reference/index.dom.js.map +1 -1
- package/dist/cjs/node_modules/graphql/execution/execute.mjs.js +1 -1
- package/dist/cjs/node_modules/graphql/execution/execute.mjs.js.map +1 -1
- package/dist/cjs/node_modules/graphql/execution/subscribe.mjs.js.map +1 -1
- package/dist/cjs/node_modules/graphql/execution/values.mjs.js +1 -1
- package/dist/cjs/node_modules/graphql/execution/values.mjs.js.map +1 -1
- package/dist/cjs/node_modules/graphql/utilities/coerceInputValue.mjs.js +1 -1
- package/dist/cjs/node_modules/graphql/utilities/coerceInputValue.mjs.js.map +1 -1
- package/dist/cjs/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs.js +1 -1
- package/dist/cjs/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs.js.map +1 -1
- package/dist/cjs/node_modules/graphql/validation/validate.mjs.js +1 -1
- package/dist/cjs/node_modules/graphql/validation/validate.mjs.js.map +1 -1
- package/dist/cjs/node_modules/graphql-ws/lib/index.js +1 -1
- package/dist/cjs/node_modules/hast-util-raw/node_modules/unist-util-visit/lib/index.js.map +1 -1
- package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/json5/dist/index.js +1 -1
- package/dist/cjs/node_modules/prop-types/index.js +1 -1
- package/dist/cjs/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/react-markdown/lib/react-markdown.js +1 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/CSSTransition.js +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/ReplaceTransition.js +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/SwitchTransition.js +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/Transition.js +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/TransitionGroup.js +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
- package/dist/cjs/node_modules/unified/lib/index.js +1 -1
- package/dist/cjs/node_modules/unified/lib/index.js.map +1 -1
- package/dist/cjs/node_modules/uuid/dist/cjs-browser/index.js +1 -1
- package/dist/cjs/node_modules/vfile/lib/index.js +1 -1
- package/dist/cjs/node_modules/vfile/lib/index.js.map +1 -1
- package/dist/features/IL-OTJ/_components/InputDataReasoningCard.js +1 -1
- package/dist/features/IL-OTJ/_components/NewMinimizedThinkingSteps.js +2 -0
- package/dist/features/IL-OTJ/_components/NewMinimizedThinkingSteps.js.map +1 -0
- package/dist/features/IL-OTJ/_components/WatchMeWork/AgentStepsView.js +2 -0
- package/dist/features/IL-OTJ/_components/WatchMeWork/AgentStepsView.js.map +1 -0
- package/dist/features/IL-OTJ/_components/WatchMeWork/StepDetailView.js +2 -0
- package/dist/features/IL-OTJ/_components/WatchMeWork/StepDetailView.js.map +1 -0
- package/dist/features/IL-OTJ/_components/WatchMeWork/Thinkingstepshelper.js +2 -0
- package/dist/features/IL-OTJ/_components/WatchMeWork/Thinkingstepshelper.js.map +1 -0
- package/dist/features/IL-OTJ/_components/WatchMeWork/Usethinkingsteps.js +2 -0
- package/dist/features/IL-OTJ/_components/WatchMeWork/Usethinkingsteps.js.map +1 -0
- package/dist/features/IL-OTJ/_components/WatchMeWork/WorkingIndicator.js +2 -0
- package/dist/features/IL-OTJ/_components/WatchMeWork/WorkingIndicator.js.map +1 -0
- package/dist/node_modules/@e-llm-studio/citation/dist/features/PdfViewer/PdfContainer.js +1 -1
- package/dist/node_modules/@e-llm-studio/citation/dist/features/PdfViewer/PdfContainer.js.map +1 -1
- package/dist/node_modules/@e-llm-studio/streaming-response/dist/index.js +1 -1
- package/dist/node_modules/@e-llm-studio/streaming-response/dist/index.js.map +1 -1
- package/dist/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/AgentStepsView.js +1 -1
- package/dist/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/AgentStepsView.js.map +1 -1
- package/dist/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/StepDetailView.js +1 -1
- package/dist/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/StepDetailView.js.map +1 -1
- package/dist/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/Usethinkingsteps.js +1 -1
- package/dist/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/Usethinkingsteps.js.map +1 -1
- package/dist/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/WorkingIndicator.js +1 -1
- package/dist/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/Components/WorkingIndicator.js.map +1 -1
- package/dist/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/WatchMeWork.js +1 -1
- package/dist/node_modules/@e-llm-studio/watch-me-work/dist/features/WatchMeWork/WatchMeWork.js.map +1 -1
- package/dist/node_modules/@material-ui/core/esm/Grow/Grow.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/Popper/Popper.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/Portal/Portal.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/SvgIcon/SvgIcon.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/Tooltip/Tooltip.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/colorManipulator.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/createPalette.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/createSpacing.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/createTheme.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/createTypography.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/utils/capitalize.js +1 -1
- package/dist/node_modules/@material-ui/icons/utils/createSvgIcon.js +1 -1
- package/dist/node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js +1 -1
- package/dist/node_modules/@material-ui/styles/esm/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/node_modules/@material-ui/styles/esm/getStylesCreator/getStylesCreator.js +1 -1
- package/dist/node_modules/@material-ui/styles/esm/index.js +1 -1
- package/dist/node_modules/@material-ui/styles/esm/withStyles/withStyles.js +1 -1
- package/dist/node_modules/@material-ui/styles/esm/withTheme/withTheme.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/breakpoints.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/merge.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/responsivePropType.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/spacing.js +1 -1
- package/dist/node_modules/@material-ui/utils/esm/elementAcceptingRef.js +1 -1
- package/dist/node_modules/@material-ui/utils/esm/elementTypeAcceptingRef.js +1 -1
- package/dist/node_modules/@material-ui/utils/esm/getDisplayName.js +1 -1
- package/dist/node_modules/@material-ui/utils/esm/refType.js +1 -1
- package/dist/node_modules/@mui/material/Accordion/Accordion.js +1 -1
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions.js +1 -1
- package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails.js +1 -1
- package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +1 -1
- package/dist/node_modules/@mui/material/Alert/Alert.js +1 -1
- package/dist/node_modules/@mui/material/AlertTitle/AlertTitle.js +1 -1
- package/dist/node_modules/@mui/material/AppBar/AppBar.js +1 -1
- package/dist/node_modules/@mui/material/Autocomplete/Autocomplete.js +1 -1
- package/dist/node_modules/@mui/material/Avatar/Avatar.js +1 -1
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup.js +1 -1
- package/dist/node_modules/@mui/material/Backdrop/Backdrop.js +1 -1
- package/dist/node_modules/@mui/material/Badge/Badge.js +1 -1
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation.js +1 -1
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/dist/node_modules/@mui/material/Box/Box.js +1 -1
- package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
- package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed.js.map +1 -1
- package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/node_modules/@mui/material/Button/Button.js +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/ButtonBase.js +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/Ripple.js +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/TouchRipple.js +1 -1
- package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/node_modules/@mui/material/Card/Card.js +1 -1
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea.js +1 -1
- package/dist/node_modules/@mui/material/CardActions/CardActions.js +1 -1
- package/dist/node_modules/@mui/material/CardContent/CardContent.js +1 -1
- package/dist/node_modules/@mui/material/CardHeader/CardHeader.js +1 -1
- package/dist/node_modules/@mui/material/CardMedia/CardMedia.js +1 -1
- package/dist/node_modules/@mui/material/Checkbox/Checkbox.js +1 -1
- package/dist/node_modules/@mui/material/Chip/Chip.js +1 -1
- package/dist/node_modules/@mui/material/CircularProgress/CircularProgress.js +1 -1
- package/dist/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.js +1 -1
- package/dist/node_modules/@mui/material/Collapse/Collapse.js +1 -1
- package/dist/node_modules/@mui/material/Container/Container.js +1 -1
- package/dist/node_modules/@mui/material/CssBaseline/CssBaseline.js +1 -1
- package/dist/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
- package/dist/node_modules/@mui/material/Dialog/Dialog.js +1 -1
- package/dist/node_modules/@mui/material/DialogActions/DialogActions.js +1 -1
- package/dist/node_modules/@mui/material/DialogContent/DialogContent.js +1 -1
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText.js +1 -1
- package/dist/node_modules/@mui/material/DialogTitle/DialogTitle.js +1 -1
- package/dist/node_modules/@mui/material/Divider/Divider.js +1 -1
- package/dist/node_modules/@mui/material/Drawer/Drawer.js +1 -1
- package/dist/node_modules/@mui/material/Fab/Fab.js +1 -1
- package/dist/node_modules/@mui/material/Fade/Fade.js +1 -1
- package/dist/node_modules/@mui/material/FilledInput/FilledInput.js +1 -1
- package/dist/node_modules/@mui/material/FormControl/FormControl.js +1 -1
- package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel.js +1 -1
- package/dist/node_modules/@mui/material/FormGroup/FormGroup.js +1 -1
- package/dist/node_modules/@mui/material/FormHelperText/FormHelperText.js +1 -1
- package/dist/node_modules/@mui/material/FormLabel/FormLabel.js +1 -1
- package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/node_modules/@mui/material/Grid/Grid.js +1 -1
- package/dist/node_modules/@mui/material/Grow/Grow.js +1 -1
- package/dist/node_modules/@mui/material/Hidden/Hidden.js +1 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenCss.js +1 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenJs.js +1 -1
- package/dist/node_modules/@mui/material/Hidden/withWidth.js +1 -1
- package/dist/node_modules/@mui/material/Icon/Icon.js +1 -1
- package/dist/node_modules/@mui/material/IconButton/IconButton.js +1 -1
- package/dist/node_modules/@mui/material/ImageList/ImageList.js +1 -1
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem.js +1 -1
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar.js +1 -1
- package/dist/node_modules/@mui/material/Input/Input.js +1 -1
- package/dist/node_modules/@mui/material/InputAdornment/InputAdornment.js +1 -1
- package/dist/node_modules/@mui/material/InputBase/InputBase.js +1 -1
- package/dist/node_modules/@mui/material/InputLabel/InputLabel.js +1 -1
- package/dist/node_modules/@mui/material/LinearProgress/LinearProgress.js +1 -1
- package/dist/node_modules/@mui/material/Link/Link.js +1 -1
- package/dist/node_modules/@mui/material/Link/getTextDecoration.js +1 -1
- package/dist/node_modules/@mui/material/List/List.js +1 -1
- package/dist/node_modules/@mui/material/ListItem/ListItem.js +1 -1
- package/dist/node_modules/@mui/material/ListItemAvatar/ListItemAvatar.js +1 -1
- package/dist/node_modules/@mui/material/ListItemButton/ListItemButton.js +1 -1
- package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon.js +1 -1
- package/dist/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/dist/node_modules/@mui/material/ListItemText/ListItemText.js +1 -1
- package/dist/node_modules/@mui/material/ListSubheader/ListSubheader.js +1 -1
- package/dist/node_modules/@mui/material/Menu/Menu.js +1 -1
- package/dist/node_modules/@mui/material/MenuItem/MenuItem.js +1 -1
- package/dist/node_modules/@mui/material/MenuList/MenuList.js +1 -1
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper.js +1 -1
- package/dist/node_modules/@mui/material/Modal/Modal.js +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect.js +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelectInput.js +1 -1
- package/dist/node_modules/@mui/material/NoSsr/NoSsr.js +1 -1
- package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline.js +1 -1
- package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline.js.map +1 -1
- package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +1 -1
- package/dist/node_modules/@mui/material/Pagination/Pagination.js +1 -1
- package/dist/node_modules/@mui/material/PaginationItem/PaginationItem.js +1 -1
- package/dist/node_modules/@mui/material/Paper/Paper.js +1 -1
- package/dist/node_modules/@mui/material/Popover/Popover.js +1 -1
- package/dist/node_modules/@mui/material/Popper/BasePopper.js +1 -1
- package/dist/node_modules/@mui/material/Popper/Popper.js +1 -1
- package/dist/node_modules/@mui/material/Portal/Portal.js +1 -1
- package/dist/node_modules/@mui/material/Radio/Radio.js +1 -1
- package/dist/node_modules/@mui/material/Radio/RadioButtonIcon.js +1 -1
- package/dist/node_modules/@mui/material/Radio/RadioButtonIcon.js.map +1 -1
- package/dist/node_modules/@mui/material/RadioGroup/RadioGroup.js +1 -1
- package/dist/node_modules/@mui/material/Rating/Rating.js +1 -1
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/dist/node_modules/@mui/material/Select/Select.js +1 -1
- package/dist/node_modules/@mui/material/Select/SelectInput.js +1 -1
- package/dist/node_modules/@mui/material/Skeleton/Skeleton.js +1 -1
- package/dist/node_modules/@mui/material/Slide/Slide.js +1 -1
- package/dist/node_modules/@mui/material/Slider/Slider.js +1 -1
- package/dist/node_modules/@mui/material/Slider/SliderValueLabel.js +1 -1
- package/dist/node_modules/@mui/material/Snackbar/Snackbar.js +1 -1
- package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent.js +1 -1
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial.js +1 -1
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.js +1 -1
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/dist/node_modules/@mui/material/Stack/Stack.js +1 -1
- package/dist/node_modules/@mui/material/Step/Step.js +1 -1
- package/dist/node_modules/@mui/material/StepButton/StepButton.js +1 -1
- package/dist/node_modules/@mui/material/StepConnector/StepConnector.js +1 -1
- package/dist/node_modules/@mui/material/StepContent/StepContent.js +1 -1
- package/dist/node_modules/@mui/material/StepIcon/StepIcon.js +1 -1
- package/dist/node_modules/@mui/material/StepLabel/StepLabel.js +1 -1
- package/dist/node_modules/@mui/material/Stepper/Stepper.js +1 -1
- package/dist/node_modules/@mui/material/SvgIcon/SvgIcon.js +1 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea.js +1 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea.js.map +1 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/dist/node_modules/@mui/material/Switch/Switch.js +1 -1
- package/dist/node_modules/@mui/material/Tab/Tab.js +1 -1
- package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton.js +1 -1
- package/dist/node_modules/@mui/material/Table/Table.js +1 -1
- package/dist/node_modules/@mui/material/TableBody/TableBody.js +1 -1
- package/dist/node_modules/@mui/material/TableCell/TableCell.js +1 -1
- package/dist/node_modules/@mui/material/TableContainer/TableContainer.js +1 -1
- package/dist/node_modules/@mui/material/TableFooter/TableFooter.js +1 -1
- package/dist/node_modules/@mui/material/TableHead/TableHead.js +1 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePagination.js +1 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions.js +1 -1
- package/dist/node_modules/@mui/material/TableRow/TableRow.js +1 -1
- package/dist/node_modules/@mui/material/TableSortLabel/TableSortLabel.js +1 -1
- package/dist/node_modules/@mui/material/Tabs/ScrollbarSize.js +1 -1
- package/dist/node_modules/@mui/material/Tabs/Tabs.js +1 -1
- package/dist/node_modules/@mui/material/TextField/TextField.js +1 -1
- package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js +1 -1
- package/dist/node_modules/@mui/material/ToggleButton/ToggleButton.js +1 -1
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/dist/node_modules/@mui/material/Toolbar/Toolbar.js +1 -1
- package/dist/node_modules/@mui/material/Tooltip/Tooltip.js +1 -1
- package/dist/node_modules/@mui/material/Typography/Typography.js +1 -1
- package/dist/node_modules/@mui/material/Unstable_Grid2/Grid2.js +1 -1
- package/dist/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js +1 -1
- package/dist/node_modules/@mui/material/Zoom/Zoom.js +1 -1
- package/dist/node_modules/@mui/material/internal/SwitchBase.js +1 -1
- package/dist/node_modules/@mui/material/internal/SwitchBase.js.map +1 -1
- package/dist/node_modules/@mui/material/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/@mui/material/styles/CssVarsProvider.js +1 -1
- package/dist/node_modules/@mui/material/styles/ThemeProvider.js +1 -1
- package/dist/node_modules/@mui/material/styles/experimental_extendTheme.js +1 -1
- package/dist/node_modules/@mui/material/styles/shouldSkipGeneratingVar.js +1 -1
- package/dist/node_modules/@mui/material/styles/shouldSkipGeneratingVar.js.map +1 -1
- package/dist/node_modules/@mui/material/styles/useTheme.js +1 -1
- package/dist/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +1 -1
- package/dist/node_modules/@mui/system/colorManipulator.js +1 -1
- package/dist/node_modules/@mui/system/createStyled.js +1 -1
- package/dist/node_modules/@mui/system/esm/Box/Box.js +1 -1
- package/dist/node_modules/@mui/system/esm/Container/Container.js +1 -1
- package/dist/node_modules/@mui/system/esm/Container/createContainer.js +1 -1
- package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
- package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/node_modules/@mui/system/esm/RtlProvider/index.js +1 -1
- package/dist/node_modules/@mui/system/esm/Stack/Stack.js +1 -1
- package/dist/node_modules/@mui/system/esm/Stack/createStack.js +1 -1
- package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/node_modules/@mui/system/esm/Unstable_Grid/Grid.js +1 -1
- package/dist/node_modules/@mui/system/esm/Unstable_Grid/createGrid.js +1 -1
- package/dist/node_modules/@mui/system/esm/breakpoints.js +1 -1
- package/dist/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +1 -1
- package/dist/node_modules/@mui/system/esm/responsivePropType.js +1 -1
- package/dist/node_modules/@mui/system/useThemeWithoutDefault.js +1 -1
- package/dist/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +1 -1
- package/dist/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +1 -1
- package/dist/node_modules/@mui/utils/esm/refType/refType.js +1 -1
- package/dist/node_modules/@mui/utils/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/@react-pdf-viewer/core/lib/index.js +1 -1
- package/dist/node_modules/@react-pdf-viewer/page-navigation/lib/index.js +1 -1
- package/dist/node_modules/@react-pdf-viewer/search/lib/index.js +1 -1
- package/dist/node_modules/@react-pdf-viewer/zoom/lib/index.js +1 -1
- package/dist/node_modules/decode-named-character-reference/index.dom.js.map +1 -1
- package/dist/node_modules/graphql/execution/execute.mjs.js +1 -1
- package/dist/node_modules/graphql/execution/execute.mjs.js.map +1 -1
- package/dist/node_modules/graphql/execution/subscribe.mjs.js.map +1 -1
- package/dist/node_modules/graphql/execution/values.mjs.js +1 -1
- package/dist/node_modules/graphql/execution/values.mjs.js.map +1 -1
- package/dist/node_modules/graphql/utilities/coerceInputValue.mjs.js +1 -1
- package/dist/node_modules/graphql/utilities/coerceInputValue.mjs.js.map +1 -1
- package/dist/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs.js +1 -1
- package/dist/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs.js.map +1 -1
- package/dist/node_modules/graphql/validation/validate.mjs.js +1 -1
- package/dist/node_modules/graphql/validation/validate.mjs.js.map +1 -1
- package/dist/node_modules/graphql-ws/lib/index.js +1 -1
- package/dist/node_modules/hast-util-raw/node_modules/unist-util-visit/lib/index.js.map +1 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/json5/dist/index.js +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-markdown/lib/react-markdown.js +1 -1
- package/dist/node_modules/react-markdown/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-transition-group/esm/CSSTransition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/ReplaceTransition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/SwitchTransition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/Transition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/TransitionGroup.js +1 -1
- package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js.map +1 -1
- package/dist/node_modules/uuid/dist/cjs-browser/index.js +1 -1
- package/dist/node_modules/vfile/lib/index.js +1 -1
- package/dist/node_modules/vfile/lib/index.js.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/InputDataReasoningCard.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/unified/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('vfile').VFileCompatible} VFileCompatible\n * @typedef {import('vfile').VFileValue} VFileValue\n * @typedef {import('..').Processor} Processor\n * @typedef {import('..').Plugin} Plugin\n * @typedef {import('..').Preset} Preset\n * @typedef {import('..').Pluggable} Pluggable\n * @typedef {import('..').PluggableList} PluggableList\n * @typedef {import('..').Transformer} Transformer\n * @typedef {import('..').Parser} Parser\n * @typedef {import('..').Compiler} Compiler\n * @typedef {import('..').RunCallback} RunCallback\n * @typedef {import('..').ProcessCallback} ProcessCallback\n *\n * @typedef Context\n * @property {Node} tree\n * @property {VFile} file\n */\n\nimport {bail} from 'bail'\nimport isBuffer from 'is-buffer'\nimport extend from 'extend'\nimport isPlainObj from 'is-plain-obj'\nimport {trough} from 'trough'\nimport {VFile} from 'vfile'\n\n// Expose a frozen processor.\nexport const unified = base().freeze()\n\nconst own = {}.hasOwnProperty\n\n// Function to create the first processor.\n/**\n * @returns {Processor}\n */\nfunction base() {\n const transformers = trough()\n /** @type {Processor['attachers']} */\n const attachers = []\n /** @type {Record<string, unknown>} */\n let namespace = {}\n /** @type {boolean|undefined} */\n let frozen\n let freezeIndex = -1\n\n // Data management.\n // @ts-expect-error: overloads are handled.\n processor.data = data\n processor.Parser = undefined\n processor.Compiler = undefined\n\n // Lock.\n processor.freeze = freeze\n\n // Plugins.\n processor.attachers = attachers\n // @ts-expect-error: overloads are handled.\n processor.use = use\n\n // API.\n processor.parse = parse\n processor.stringify = stringify\n // @ts-expect-error: overloads are handled.\n processor.run = run\n processor.runSync = runSync\n // @ts-expect-error: overloads are handled.\n processor.process = process\n processor.processSync = processSync\n\n // Expose.\n return processor\n\n // Create a new processor based on the processor in the current scope.\n /** @type {Processor} */\n function processor() {\n const destination = base()\n let index = -1\n\n while (++index < attachers.length) {\n destination.use(...attachers[index])\n }\n\n destination.data(extend(true, {}, namespace))\n\n return destination\n }\n\n /**\n * @param {string|Record<string, unknown>} [key]\n * @param {unknown} [value]\n * @returns {unknown}\n */\n function data(key, value) {\n if (typeof key === 'string') {\n // Set `key`.\n if (arguments.length === 2) {\n assertUnfrozen('data', frozen)\n namespace[key] = value\n return processor\n }\n\n // Get `key`.\n return (own.call(namespace, key) && namespace[key]) || null\n }\n\n // Set space.\n if (key) {\n assertUnfrozen('data', frozen)\n namespace = key\n return processor\n }\n\n // Get space.\n return namespace\n }\n\n /** @type {Processor['freeze']} */\n function freeze() {\n if (frozen) {\n return processor\n }\n\n while (++freezeIndex < attachers.length) {\n const [attacher, ...options] = attachers[freezeIndex]\n\n if (options[0] === false) {\n continue\n }\n\n if (options[0] === true) {\n options[0] = undefined\n }\n\n /** @type {Transformer|void} */\n const transformer = attacher.call(processor, ...options)\n\n if (typeof transformer === 'function') {\n transformers.use(transformer)\n }\n }\n\n frozen = true\n freezeIndex = Number.POSITIVE_INFINITY\n\n return processor\n }\n\n /**\n * @param {Pluggable|null|undefined} [value]\n * @param {...unknown} options\n * @returns {Processor}\n */\n function use(value, ...options) {\n /** @type {Record<string, unknown>|undefined} */\n let settings\n\n assertUnfrozen('use', frozen)\n\n if (value === null || value === undefined) {\n // Empty.\n } else if (typeof value === 'function') {\n addPlugin(value, ...options)\n } else if (typeof value === 'object') {\n if (Array.isArray(value)) {\n addList(value)\n } else {\n addPreset(value)\n }\n } else {\n throw new TypeError('Expected usable value, not `' + value + '`')\n }\n\n if (settings) {\n namespace.settings = Object.assign(namespace.settings || {}, settings)\n }\n\n return processor\n\n /**\n * @param {import('..').Pluggable<unknown[]>} value\n * @returns {void}\n */\n function add(value) {\n if (typeof value === 'function') {\n addPlugin(value)\n } else if (typeof value === 'object') {\n if (Array.isArray(value)) {\n const [plugin, ...options] = value\n addPlugin(plugin, ...options)\n } else {\n addPreset(value)\n }\n } else {\n throw new TypeError('Expected usable value, not `' + value + '`')\n }\n }\n\n /**\n * @param {Preset} result\n * @returns {void}\n */\n function addPreset(result) {\n addList(result.plugins)\n\n if (result.settings) {\n settings = Object.assign(settings || {}, result.settings)\n }\n }\n\n /**\n * @param {PluggableList|null|undefined} [plugins]\n * @returns {void}\n */\n function addList(plugins) {\n let index = -1\n\n if (plugins === null || plugins === undefined) {\n // Empty.\n } else if (Array.isArray(plugins)) {\n while (++index < plugins.length) {\n const thing = plugins[index]\n add(thing)\n }\n } else {\n throw new TypeError('Expected a list of plugins, not `' + plugins + '`')\n }\n }\n\n /**\n * @param {Plugin} plugin\n * @param {...unknown} [value]\n * @returns {void}\n */\n function addPlugin(plugin, value) {\n let index = -1\n /** @type {Processor['attachers'][number]|undefined} */\n let entry\n\n while (++index < attachers.length) {\n if (attachers[index][0] === plugin) {\n entry = attachers[index]\n break\n }\n }\n\n if (entry) {\n if (isPlainObj(entry[1]) && isPlainObj(value)) {\n value = extend(true, entry[1], value)\n }\n\n entry[1] = value\n } else {\n // @ts-expect-error: fine.\n attachers.push([...arguments])\n }\n }\n }\n\n /** @type {Processor['parse']} */\n function parse(doc) {\n processor.freeze()\n const file = vfile(doc)\n const Parser = processor.Parser\n assertParser('parse', Parser)\n\n if (newable(Parser, 'parse')) {\n // @ts-expect-error: `newable` checks this.\n return new Parser(String(file), file).parse()\n }\n\n // @ts-expect-error: `newable` checks this.\n return Parser(String(file), file) // eslint-disable-line new-cap\n }\n\n /** @type {Processor['stringify']} */\n function stringify(node, doc) {\n processor.freeze()\n const file = vfile(doc)\n const Compiler = processor.Compiler\n assertCompiler('stringify', Compiler)\n assertNode(node)\n\n if (newable(Compiler, 'compile')) {\n // @ts-expect-error: `newable` checks this.\n return new Compiler(node, file).compile()\n }\n\n // @ts-expect-error: `newable` checks this.\n return Compiler(node, file) // eslint-disable-line new-cap\n }\n\n /**\n * @param {Node} node\n * @param {VFileCompatible|RunCallback} [doc]\n * @param {RunCallback} [callback]\n * @returns {Promise<Node>|void}\n */\n function run(node, doc, callback) {\n assertNode(node)\n processor.freeze()\n\n if (!callback && typeof doc === 'function') {\n callback = doc\n doc = undefined\n }\n\n if (!callback) {\n return new Promise(executor)\n }\n\n executor(null, callback)\n\n /**\n * @param {null|((node: Node) => void)} resolve\n * @param {(error: Error) => void} reject\n * @returns {void}\n */\n function executor(resolve, reject) {\n // @ts-expect-error: `doc` can’t be a callback anymore, we checked.\n transformers.run(node, vfile(doc), done)\n\n /**\n * @param {Error|null} error\n * @param {Node} tree\n * @param {VFile} file\n * @returns {void}\n */\n function done(error, tree, file) {\n tree = tree || node\n if (error) {\n reject(error)\n } else if (resolve) {\n resolve(tree)\n } else {\n // @ts-expect-error: `callback` is defined if `resolve` is not.\n callback(null, tree, file)\n }\n }\n }\n }\n\n /** @type {Processor['runSync']} */\n function runSync(node, file) {\n /** @type {Node|undefined} */\n let result\n /** @type {boolean|undefined} */\n let complete\n\n processor.run(node, file, done)\n\n assertDone('runSync', 'run', complete)\n\n // @ts-expect-error: we either bailed on an error or have a tree.\n return result\n\n /**\n * @param {Error|null} [error]\n * @param {Node} [tree]\n * @returns {void}\n */\n function done(error, tree) {\n bail(error)\n result = tree\n complete = true\n }\n }\n\n /**\n * @param {VFileCompatible} doc\n * @param {ProcessCallback} [callback]\n * @returns {Promise<VFile>|undefined}\n */\n function process(doc, callback) {\n processor.freeze()\n assertParser('process', processor.Parser)\n assertCompiler('process', processor.Compiler)\n\n if (!callback) {\n return new Promise(executor)\n }\n\n executor(null, callback)\n\n /**\n * @param {null|((file: VFile) => void)} resolve\n * @param {(error?: Error|null|undefined) => void} reject\n * @returns {void}\n */\n function executor(resolve, reject) {\n const file = vfile(doc)\n\n processor.run(processor.parse(file), file, (error, tree, file) => {\n if (error || !tree || !file) {\n done(error)\n } else {\n /** @type {unknown} */\n const result = processor.stringify(tree, file)\n\n if (result === undefined || result === null) {\n // Empty.\n } else if (looksLikeAVFileValue(result)) {\n file.value = result\n } else {\n file.result = result\n }\n\n done(error, file)\n }\n })\n\n /**\n * @param {Error|null|undefined} [error]\n * @param {VFile|undefined} [file]\n * @returns {void}\n */\n function done(error, file) {\n if (error || !file) {\n reject(error)\n } else if (resolve) {\n resolve(file)\n } else {\n // @ts-expect-error: `callback` is defined if `resolve` is not.\n callback(null, file)\n }\n }\n }\n }\n\n /** @type {Processor['processSync']} */\n function processSync(doc) {\n /** @type {boolean|undefined} */\n let complete\n\n processor.freeze()\n assertParser('processSync', processor.Parser)\n assertCompiler('processSync', processor.Compiler)\n\n const file = vfile(doc)\n\n processor.process(file, done)\n\n assertDone('processSync', 'process', complete)\n\n return file\n\n /**\n * @param {Error|null|undefined} [error]\n * @returns {void}\n */\n function done(error) {\n complete = true\n bail(error)\n }\n }\n}\n\n/**\n * Check if `value` is a constructor.\n *\n * @param {unknown} value\n * @param {string} name\n * @returns {boolean}\n */\nfunction newable(value, name) {\n return (\n typeof value === 'function' &&\n // Prototypes do exist.\n // type-coverage:ignore-next-line\n value.prototype &&\n // A function with keys in its prototype is probably a constructor.\n // Classes’ prototype methods are not enumerable, so we check if some value\n // exists in the prototype.\n // type-coverage:ignore-next-line\n (keys(value.prototype) || name in value.prototype)\n )\n}\n\n/**\n * Check if `value` is an object with keys.\n *\n * @param {Record<string, unknown>} value\n * @returns {boolean}\n */\nfunction keys(value) {\n /** @type {string} */\n let key\n\n for (key in value) {\n if (own.call(value, key)) {\n return true\n }\n }\n\n return false\n}\n\n/**\n * Assert a parser is available.\n *\n * @param {string} name\n * @param {unknown} value\n * @returns {asserts value is Parser}\n */\nfunction assertParser(name, value) {\n if (typeof value !== 'function') {\n throw new TypeError('Cannot `' + name + '` without `Parser`')\n }\n}\n\n/**\n * Assert a compiler is available.\n *\n * @param {string} name\n * @param {unknown} value\n * @returns {asserts value is Compiler}\n */\nfunction assertCompiler(name, value) {\n if (typeof value !== 'function') {\n throw new TypeError('Cannot `' + name + '` without `Compiler`')\n }\n}\n\n/**\n * Assert the processor is not frozen.\n *\n * @param {string} name\n * @param {unknown} frozen\n * @returns {asserts frozen is false}\n */\nfunction assertUnfrozen(name, frozen) {\n if (frozen) {\n throw new Error(\n 'Cannot call `' +\n name +\n '` on a frozen processor.\\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.'\n )\n }\n}\n\n/**\n * Assert `node` is a unist node.\n *\n * @param {unknown} node\n * @returns {asserts node is Node}\n */\nfunction assertNode(node) {\n // `isPlainObj` unfortunately uses `any` instead of `unknown`.\n // type-coverage:ignore-next-line\n if (!isPlainObj(node) || typeof node.type !== 'string') {\n throw new TypeError('Expected node, got `' + node + '`')\n // Fine.\n }\n}\n\n/**\n * Assert that `complete` is `true`.\n *\n * @param {string} name\n * @param {string} asyncName\n * @param {unknown} complete\n * @returns {asserts complete is true}\n */\nfunction assertDone(name, asyncName, complete) {\n if (!complete) {\n throw new Error(\n '`' + name + '` finished async. Use `' + asyncName + '` instead'\n )\n }\n}\n\n/**\n * @param {VFileCompatible} [value]\n * @returns {VFile}\n */\nfunction vfile(value) {\n return looksLikeAVFile(value) ? value : new VFile(value)\n}\n\n/**\n * @param {VFileCompatible} [value]\n * @returns {value is VFile}\n */\nfunction looksLikeAVFile(value) {\n return Boolean(\n value &&\n typeof value === 'object' &&\n 'message' in value &&\n 'messages' in value\n )\n}\n\n/**\n * @param {unknown} [value]\n * @returns {value is VFileValue}\n */\nfunction looksLikeAVFileValue(value) {\n return typeof value === 'string' || isBuffer(value)\n}\n"],"names":["unified","base","transformers","trough","attachers","frozen","namespace","freezeIndex","processor","data","key","value","arguments","length","assertUnfrozen","own","call","Parser","undefined","Compiler","freeze","attacher","options","transformer","use","Number","POSITIVE_INFINITY","settings","addPlugin","TypeError","Array","isArray","addList","addPreset","Object","assign","add","plugin","result","plugins","index","entry","isPlainObj","extend","push","parse","doc","file","vfile","assertParser","newable","String","stringify","node","assertCompiler","assertNode","compile","run","callback","Promise","executor","resolve","reject","done","error","tree","runSync","complete","assertDone","bail","process","isBuffer","processSync","destination","hasOwnProperty","name","prototype","keys","Error","type","asyncName","Boolean","looksLikeAVFile","VFile"],"mappings":"mTA4BY,MAACA,EAQb,SAASC,IACP,MAAMC,EAAeC,EAAAA,SAEfC,EAAY,GAElB,IAEIC,EAFAC,EAAY,CAAE,EAGdC,GAAe,EA2BnB,OAvBAC,EAAUC,KA6CV,SAAcC,EAAKC,GACjB,GAAmB,iBAARD,EAET,OAAyB,IAArBE,UAAUC,QACZC,EAAe,OAAQT,GACvBC,EAAUI,GAAOC,EACVH,GAIDO,EAAIC,KAAKV,EAAWI,IAAQJ,EAAUI,IAAS,KAIzD,GAAIA,EAGF,OAFAI,EAAe,OAAQT,GACvBC,EAAYI,EACLF,EAIT,OAAOF,CACR,EAlEDE,EAAUS,YAASC,EACnBV,EAAUW,cAAWD,EAGrBV,EAAUY,OAiEV,WACE,GAAIf,EACF,O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"sourcesContent":["/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('vfile').VFileCompatible} VFileCompatible\n * @typedef {import('vfile').VFileValue} VFileValue\n * @typedef {import('..').Processor} Processor\n * @typedef {import('..').Plugin} Plugin\n * @typedef {import('..').Preset} Preset\n * @typedef {import('..').Pluggable} Pluggable\n * @typedef {import('..').PluggableList} PluggableList\n * @typedef {import('..').Transformer} Transformer\n * @typedef {import('..').Parser} Parser\n * @typedef {import('..').Compiler} Compiler\n * @typedef {import('..').RunCallback} RunCallback\n * @typedef {import('..').ProcessCallback} ProcessCallback\n *\n * @typedef Context\n * @property {Node} tree\n * @property {VFile} file\n */\n\nimport {bail} from 'bail'\nimport isBuffer from 'is-buffer'\nimport extend from 'extend'\nimport isPlainObj from 'is-plain-obj'\nimport {trough} from 'trough'\nimport {VFile} from 'vfile'\n\n// Expose a frozen processor.\nexport const unified = base().freeze()\n\nconst own = {}.hasOwnProperty\n\n// Function to create the first processor.\n/**\n * @returns {Processor}\n */\nfunction base() {\n const transformers = trough()\n /** @type {Processor['attachers']} */\n const attachers = []\n /** @type {Record<string, unknown>} */\n let namespace = {}\n /** @type {boolean|undefined} */\n let frozen\n let freezeIndex = -1\n\n // Data management.\n // @ts-expect-error: overloads are handled.\n processor.data = data\n processor.Parser = undefined\n processor.Compiler = undefined\n\n // Lock.\n processor.freeze = freeze\n\n // Plugins.\n processor.attachers = attachers\n // @ts-expect-error: overloads are handled.\n processor.use = use\n\n // API.\n processor.parse = parse\n processor.stringify = stringify\n // @ts-expect-error: overloads are handled.\n processor.run = run\n processor.runSync = runSync\n // @ts-expect-error: overloads are handled.\n processor.process = process\n processor.processSync = processSync\n\n // Expose.\n return processor\n\n // Create a new processor based on the processor in the current scope.\n /** @type {Processor} */\n function processor() {\n const destination = base()\n let index = -1\n\n while (++index < attachers.length) {\n destination.use(...attachers[index])\n }\n\n destination.data(extend(true, {}, namespace))\n\n return destination\n }\n\n /**\n * @param {string|Record<string, unknown>} [key]\n * @param {unknown} [value]\n * @returns {unknown}\n */\n function data(key, value) {\n if (typeof key === 'string') {\n // Set `key`.\n if (arguments.length === 2) {\n assertUnfrozen('data', frozen)\n namespace[key] = value\n return processor\n }\n\n // Get `key`.\n return (own.call(namespace, key) && namespace[key]) || null\n }\n\n // Set space.\n if (key) {\n assertUnfrozen('data', frozen)\n namespace = key\n return processor\n }\n\n // Get space.\n return namespace\n }\n\n /** @type {Processor['freeze']} */\n function freeze() {\n if (frozen) {\n return processor\n }\n\n while (++freezeIndex < attachers.length) {\n const [attacher, ...options] = attachers[freezeIndex]\n\n if (options[0] === false) {\n continue\n }\n\n if (options[0] === true) {\n options[0] = undefined\n }\n\n /** @type {Transformer|void} */\n const transformer = attacher.call(processor, ...options)\n\n if (typeof transformer === 'function') {\n transformers.use(transformer)\n }\n }\n\n frozen = true\n freezeIndex = Number.POSITIVE_INFINITY\n\n return processor\n }\n\n /**\n * @param {Pluggable|null|undefined} [value]\n * @param {...unknown} options\n * @returns {Processor}\n */\n function use(value, ...options) {\n /** @type {Record<string, unknown>|undefined} */\n let settings\n\n assertUnfrozen('use', frozen)\n\n if (value === null || value === undefined) {\n // Empty.\n } else if (typeof value === 'function') {\n addPlugin(value, ...options)\n } else if (typeof value === 'object') {\n if (Array.isArray(value)) {\n addList(value)\n } else {\n addPreset(value)\n }\n } else {\n throw new TypeError('Expected usable value, not `' + value + '`')\n }\n\n if (settings) {\n namespace.settings = Object.assign(namespace.settings || {}, settings)\n }\n\n return processor\n\n /**\n * @param {import('..').Pluggable<unknown[]>} value\n * @returns {void}\n */\n function add(value) {\n if (typeof value === 'function') {\n addPlugin(value)\n } else if (typeof value === 'object') {\n if (Array.isArray(value)) {\n const [plugin, ...options] = value\n addPlugin(plugin, ...options)\n } else {\n addPreset(value)\n }\n } else {\n throw new TypeError('Expected usable value, not `' + value + '`')\n }\n }\n\n /**\n * @param {Preset} result\n * @returns {void}\n */\n function addPreset(result) {\n addList(result.plugins)\n\n if (result.settings) {\n settings = Object.assign(settings || {}, result.settings)\n }\n }\n\n /**\n * @param {PluggableList|null|undefined} [plugins]\n * @returns {void}\n */\n function addList(plugins) {\n let index = -1\n\n if (plugins === null || plugins === undefined) {\n // Empty.\n } else if (Array.isArray(plugins)) {\n while (++index < plugins.length) {\n const thing = plugins[index]\n add(thing)\n }\n } else {\n throw new TypeError('Expected a list of plugins, not `' + plugins + '`')\n }\n }\n\n /**\n * @param {Plugin} plugin\n * @param {...unknown} [value]\n * @returns {void}\n */\n function addPlugin(plugin, value) {\n let index = -1\n /** @type {Processor['attachers'][number]|undefined} */\n let entry\n\n while (++index < attachers.length) {\n if (attachers[index][0] === plugin) {\n entry = attachers[index]\n break\n }\n }\n\n if (entry) {\n if (isPlainObj(entry[1]) && isPlainObj(value)) {\n value = extend(true, entry[1], value)\n }\n\n entry[1] = value\n } else {\n // @ts-expect-error: fine.\n attachers.push([...arguments])\n }\n }\n }\n\n /** @type {Processor['parse']} */\n function parse(doc) {\n processor.freeze()\n const file = vfile(doc)\n const Parser = processor.Parser\n assertParser('parse', Parser)\n\n if (newable(Parser, 'parse')) {\n // @ts-expect-error: `newable` checks this.\n return new Parser(String(file), file).parse()\n }\n\n // @ts-expect-error: `newable` checks this.\n return Parser(String(file), file) // eslint-disable-line new-cap\n }\n\n /** @type {Processor['stringify']} */\n function stringify(node, doc) {\n processor.freeze()\n const file = vfile(doc)\n const Compiler = processor.Compiler\n assertCompiler('stringify', Compiler)\n assertNode(node)\n\n if (newable(Compiler, 'compile')) {\n // @ts-expect-error: `newable` checks this.\n return new Compiler(node, file).compile()\n }\n\n // @ts-expect-error: `newable` checks this.\n return Compiler(node, file) // eslint-disable-line new-cap\n }\n\n /**\n * @param {Node} node\n * @param {VFileCompatible|RunCallback} [doc]\n * @param {RunCallback} [callback]\n * @returns {Promise<Node>|void}\n */\n function run(node, doc, callback) {\n assertNode(node)\n processor.freeze()\n\n if (!callback && typeof doc === 'function') {\n callback = doc\n doc = undefined\n }\n\n if (!callback) {\n return new Promise(executor)\n }\n\n executor(null, callback)\n\n /**\n * @param {null|((node: Node) => void)} resolve\n * @param {(error: Error) => void} reject\n * @returns {void}\n */\n function executor(resolve, reject) {\n // @ts-expect-error: `doc` can’t be a callback anymore, we checked.\n transformers.run(node, vfile(doc), done)\n\n /**\n * @param {Error|null} error\n * @param {Node} tree\n * @param {VFile} file\n * @returns {void}\n */\n function done(error, tree, file) {\n tree = tree || node\n if (error) {\n reject(error)\n } else if (resolve) {\n resolve(tree)\n } else {\n // @ts-expect-error: `callback` is defined if `resolve` is not.\n callback(null, tree, file)\n }\n }\n }\n }\n\n /** @type {Processor['runSync']} */\n function runSync(node, file) {\n /** @type {Node|undefined} */\n let result\n /** @type {boolean|undefined} */\n let complete\n\n processor.run(node, file, done)\n\n assertDone('runSync', 'run', complete)\n\n // @ts-expect-error: we either bailed on an error or have a tree.\n return result\n\n /**\n * @param {Error|null} [error]\n * @param {Node} [tree]\n * @returns {void}\n */\n function done(error, tree) {\n bail(error)\n result = tree\n complete = true\n }\n }\n\n /**\n * @param {VFileCompatible} doc\n * @param {ProcessCallback} [callback]\n * @returns {Promise<VFile>|undefined}\n */\n function process(doc, callback) {\n processor.freeze()\n assertParser('process', processor.Parser)\n assertCompiler('process', processor.Compiler)\n\n if (!callback) {\n return new Promise(executor)\n }\n\n executor(null, callback)\n\n /**\n * @param {null|((file: VFile) => void)} resolve\n * @param {(error?: Error|null|undefined) => void} reject\n * @returns {void}\n */\n function executor(resolve, reject) {\n const file = vfile(doc)\n\n processor.run(processor.parse(file), file, (error, tree, file) => {\n if (error || !tree || !file) {\n done(error)\n } else {\n /** @type {unknown} */\n const result = processor.stringify(tree, file)\n\n if (result === undefined || result === null) {\n // Empty.\n } else if (looksLikeAVFileValue(result)) {\n file.value = result\n } else {\n file.result = result\n }\n\n done(error, file)\n }\n })\n\n /**\n * @param {Error|null|undefined} [error]\n * @param {VFile|undefined} [file]\n * @returns {void}\n */\n function done(error, file) {\n if (error || !file) {\n reject(error)\n } else if (resolve) {\n resolve(file)\n } else {\n // @ts-expect-error: `callback` is defined if `resolve` is not.\n callback(null, file)\n }\n }\n }\n }\n\n /** @type {Processor['processSync']} */\n function processSync(doc) {\n /** @type {boolean|undefined} */\n let complete\n\n processor.freeze()\n assertParser('processSync', processor.Parser)\n assertCompiler('processSync', processor.Compiler)\n\n const file = vfile(doc)\n\n processor.process(file, done)\n\n assertDone('processSync', 'process', complete)\n\n return file\n\n /**\n * @param {Error|null|undefined} [error]\n * @returns {void}\n */\n function done(error) {\n complete = true\n bail(error)\n }\n }\n}\n\n/**\n * Check if `value` is a constructor.\n *\n * @param {unknown} value\n * @param {string} name\n * @returns {boolean}\n */\nfunction newable(value, name) {\n return (\n typeof value === 'function' &&\n // Prototypes do exist.\n // type-coverage:ignore-next-line\n value.prototype &&\n // A function with keys in its prototype is probably a constructor.\n // Classes’ prototype methods are not enumerable, so we check if some value\n // exists in the prototype.\n // type-coverage:ignore-next-line\n (keys(value.prototype) || name in value.prototype)\n )\n}\n\n/**\n * Check if `value` is an object with keys.\n *\n * @param {Record<string, unknown>} value\n * @returns {boolean}\n */\nfunction keys(value) {\n /** @type {string} */\n let key\n\n for (key in value) {\n if (own.call(value, key)) {\n return true\n }\n }\n\n return false\n}\n\n/**\n * Assert a parser is available.\n *\n * @param {string} name\n * @param {unknown} value\n * @returns {asserts value is Parser}\n */\nfunction assertParser(name, value) {\n if (typeof value !== 'function') {\n throw new TypeError('Cannot `' + name + '` without `Parser`')\n }\n}\n\n/**\n * Assert a compiler is available.\n *\n * @param {string} name\n * @param {unknown} value\n * @returns {asserts value is Compiler}\n */\nfunction assertCompiler(name, value) {\n if (typeof value !== 'function') {\n throw new TypeError('Cannot `' + name + '` without `Compiler`')\n }\n}\n\n/**\n * Assert the processor is not frozen.\n *\n * @param {string} name\n * @param {unknown} frozen\n * @returns {asserts frozen is false}\n */\nfunction assertUnfrozen(name, frozen) {\n if (frozen) {\n throw new Error(\n 'Cannot call `' +\n name +\n '` on a frozen processor.\\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.'\n )\n }\n}\n\n/**\n * Assert `node` is a unist node.\n *\n * @param {unknown} node\n * @returns {asserts node is Node}\n */\nfunction assertNode(node) {\n // `isPlainObj` unfortunately uses `any` instead of `unknown`.\n // type-coverage:ignore-next-line\n if (!isPlainObj(node) || typeof node.type !== 'string') {\n throw new TypeError('Expected node, got `' + node + '`')\n // Fine.\n }\n}\n\n/**\n * Assert that `complete` is `true`.\n *\n * @param {string} name\n * @param {string} asyncName\n * @param {unknown} complete\n * @returns {asserts complete is true}\n */\nfunction assertDone(name, asyncName, complete) {\n if (!complete) {\n throw new Error(\n '`' + name + '` finished async. Use `' + asyncName + '` instead'\n )\n }\n}\n\n/**\n * @param {VFileCompatible} [value]\n * @returns {VFile}\n */\nfunction vfile(value) {\n return looksLikeAVFile(value) ? value : new VFile(value)\n}\n\n/**\n * @param {VFileCompatible} [value]\n * @returns {value is VFile}\n */\nfunction looksLikeAVFile(value) {\n return Boolean(\n value &&\n typeof value === 'object' &&\n 'message' in value &&\n 'messages' in value\n )\n}\n\n/**\n * @param {unknown} [value]\n * @returns {value is VFileValue}\n */\nfunction looksLikeAVFileValue(value) {\n return typeof value === 'string' || isBuffer(value)\n}\n"],"names":["unified","base","transformers","trough","attachers","frozen","namespace","freezeIndex","processor","data","key","value","arguments","length","assertUnfrozen","own","call","Parser","undefined","Compiler","freeze","attacher","options","transformer","use","Number","POSITIVE_INFINITY","settings","addPlugin","TypeError","Array","isArray","addList","addPreset","Object","assign","add","plugin","result","plugins","index","entry","isPlainObj","extend","push","parse","doc","file","vfile","assertParser","newable","String","stringify","node","assertCompiler","assertNode","compile","run","callback","Promise","executor","resolve","reject","done","error","tree","runSync","complete","assertDone","bail","process","isBuffer","processSync","destination","hasOwnProperty","name","prototype","keys","Error","type","asyncName","Boolean","looksLikeAVFile","VFile"],"mappings":"iTA4BY,MAACA,EAQb,SAASC,IACP,MAAMC,EAAeC,EAAAA,SAEfC,EAAY,GAElB,IAEIC,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ACnC,MAAM,IAAIlD,UAAU,uBAAyBwB,EAAO,IAGxD,CAUA,SAASe,EAAWO,EAAMK,EAAWb,GACnC,IAAKA,EACH,MAAM,IAAIW,MACR,IAAMH,EAAO,0BAA4BK,EAAY,YAG3D,CAMA,SAAShC,EAAMrC,GACb,OAOF,SAAyBA,GACvB,OAAOsE,QACLtE,GACmB,iBAAVA,GACP,YAAaA,GACb,aAAcA,EAEpB,CAdSuE,CAAgBvE,GAASA,EAAQ,IAAIwE,EAAAA,MAAMxE,EACpD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,r=require("../../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,r=require("../../../../_virtual/index12.js"),t=require("./max.js"),u=require("./nil.js"),n=require("./parse.js"),i=require("./stringify.js"),a=require("./v1.js"),f=require("./v1ToV6.js"),v=require("./v3.js"),o=require("./v4.js"),_=require("./v5.js"),d=require("./v6.js"),l=require("./v6ToV1.js"),c=require("./v7.js"),s=require("./validate.js"),j=require("./version.js");exports.__require=function(){return e||(e=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.validate=e.v7=e.v6ToV1=e.v6=e.v5=e.v4=e.v3=e.v1ToV6=e.v1=e.stringify=e.parse=e.NIL=e.MAX=void 0;var r=t.__require();Object.defineProperty(e,"MAX",{enumerable:!0,get:function(){return r.default}});var b=u.__require();Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return b.default}});var q=n.__require();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return q.default}});var p=i.__require();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return p.default}});var y=a.__require();Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return y.default}});var g=f.__require();Object.defineProperty(e,"v1ToV6",{enumerable:!0,get:function(){return g.default}});var O=v.__require();Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return O.default}});var P=o.__require();Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return P.default}});var m=_.__require();Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return m.default}});var x=d.__require();Object.defineProperty(e,"v6",{enumerable:!0,get:function(){return x.default}});var T=l.__require();Object.defineProperty(e,"v6ToV1",{enumerable:!0,get:function(){return T.default}});var V=c.__require();Object.defineProperty(e,"v7",{enumerable:!0,get:function(){return V.default}});var M=s.__require();Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return M.default}});var A=j.__require();Object.defineProperty(e,"version",{enumerable:!0,get:function(){return A.default}})}(r.__exports)),r.__exports};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../../_virtual/index7.js"),e=require("../../vfile-message/lib/index.js"),s=require("./minpath.browser.js"),i=require("./minproc.browser.js"),a=require("./minurl.browser.js"),r=require("./minurl.shared.js");const n=["history","path","basename","stem","extname","dirname"];function h(t,e){if(t&&t.includes(s.path.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+s.path.sep+"`")}function o(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function p(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}exports.VFile=class{constructor(e){let s;s=e?"string"==typeof e||function(e){return t.default(e)}(e)?{value:e}:r.isUrl(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=i.proc.cwd(),this.value,this.stored,this.result,this.map;let a,h=-1;for(;++h<n.length;){const t=n[h];t in s&&void 0!==s[t]&&null!==s[t]&&(this[t]="history"===t?[...s[t]]:s[t])}for(a in s)n.includes(a)||(this[a]=s[a])}get path(){return this.history[this.history.length-1]}set path(t){r.isUrl(t)&&(t=a.urlToPath(t)),o(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return"string"==typeof this.path?s.path.dirname(this.path):void 0}set dirname(t){p(this.basename,"dirname"),this.path=s.path.join(t||"",this.basename)}get basename(){return"string"==typeof this.path?s.path.basename(this.path):void 0}set basename(t){o(t,"basename"),h(t,"basename"),this.path=s.path.join(this.dirname||"",t)}get extname(){return"string"==typeof this.path?s.path.extname(this.path):void 0}set extname(t){if(h(t,"extname"),p(this.dirname,"extname"),t){if(46!==t.charCodeAt(0))throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=s.path.join(this.dirname,this.stem+(t||""))}get stem(){return"string"==typeof this.path?s.path.basename(this.path,this.extname):void 0}set stem(t){o(t,"stem"),h(t,"stem"),this.path=s.path.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,s,i){const a=new e.VFileMessage(t,s,i);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}info(t,e,s){const i=this.message(t,e,s);return i.fatal=null,i}fail(t,e,s){const i=this.message(t,e,s);throw i.fatal=!0,i}};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/vfile/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Position} Position\n * @typedef {import('unist').Point} Point\n * @typedef {import('./minurl.shared.js').URL} URL\n * @typedef {import('../index.js').Data} Data\n * @typedef {import('../index.js').Value} Value\n */\n\n/**\n * @typedef {Record<string, unknown> & {type: string, position?: Position | undefined}} NodeLike\n *\n * @typedef {'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex'} BufferEncoding\n * Encodings supported by the buffer class.\n *\n * This is a copy of the types from Node, copied to prevent Node globals from\n * being needed.\n * Copied from: <https://github.com/DefinitelyTyped/DefinitelyTyped/blob/90a4ec8/types/node/buffer.d.ts#L170>\n *\n * @typedef {Options | URL | Value | VFile} Compatible\n * Things that can be passed to the constructor.\n *\n * @typedef VFileCoreOptions\n * Set multiple values.\n * @property {Value | null | undefined} [value]\n * Set `value`.\n * @property {string | null | undefined} [cwd]\n * Set `cwd`.\n * @property {Array<string> | null | undefined} [history]\n * Set `history`.\n * @property {URL | string | null | undefined} [path]\n * Set `path`.\n * @property {string | null | undefined} [basename]\n * Set `basename`.\n * @property {string | null | undefined} [stem]\n * Set `stem`.\n * @property {string | null | undefined} [extname]\n * Set `extname`.\n * @property {string | null | undefined} [dirname]\n * Set `dirname`.\n * @property {Data | null | undefined} [data]\n * Set `data`.\n *\n * @typedef Map\n * Raw source map.\n *\n * See:\n * <https://github.com/mozilla/source-map/blob/58819f0/source-map.d.ts#L15-L23>.\n * @property {number} version\n * Which version of the source map spec this map is following.\n * @property {Array<string>} sources\n * An array of URLs to the original source files.\n * @property {Array<string>} names\n * An array of identifiers which can be referenced by individual mappings.\n * @property {string | undefined} [sourceRoot]\n * The URL root from which all sources are relative.\n * @property {Array<string> | undefined} [sourcesContent]\n * An array of contents of the original source files.\n * @property {string} mappings\n * A string of base64 VLQs which contain the actual mappings.\n * @property {string} file\n * The generated file this source map is associated with.\n *\n * @typedef {{[key: string]: unknown} & VFileCoreOptions} Options\n * Configuration.\n *\n * A bunch of keys that will be shallow copied over to the new file.\n *\n * @typedef {Record<string, unknown>} ReporterSettings\n * Configuration for reporters.\n */\n\n/**\n * @template {ReporterSettings} Settings\n * Options type.\n * @callback Reporter\n * Type for a reporter.\n * @param {Array<VFile>} files\n * Files to report.\n * @param {Settings} options\n * Configuration.\n * @returns {string}\n * Report.\n */\n\nimport bufferLike from 'is-buffer'\nimport {VFileMessage} from 'vfile-message'\nimport {path} from './minpath.js'\nimport {proc} from './minproc.js'\nimport {urlToPath, isUrl} from './minurl.js'\n\n/**\n * Order of setting (least specific to most), we need this because otherwise\n * `{stem: 'a', path: '~/b.js'}` would throw, as a path is needed before a\n * stem can be set.\n *\n * @type {Array<'basename' | 'dirname' | 'extname' | 'history' | 'path' | 'stem'>}\n */\nconst order = ['history', 'path', 'basename', 'stem', 'extname', 'dirname']\n\nexport class VFile {\n /**\n * Create a new virtual file.\n *\n * `options` is treated as:\n *\n * * `string` or `Buffer` — `{value: options}`\n * * `URL` — `{path: options}`\n * * `VFile` — shallow copies its data over to the new file\n * * `object` — all fields are shallow copied over to the new file\n *\n * Path related fields are set in the following order (least specific to\n * most specific): `history`, `path`, `basename`, `stem`, `extname`,\n * `dirname`.\n *\n * You cannot set `dirname` or `extname` without setting either `history`,\n * `path`, `basename`, or `stem` too.\n *\n * @param {Compatible | null | undefined} [value]\n * File value.\n * @returns\n * New instance.\n */\n constructor(value) {\n /** @type {Options | VFile} */\n let options\n\n if (!value) {\n options = {}\n } else if (typeof value === 'string' || buffer(value)) {\n options = {value}\n } else if (isUrl(value)) {\n options = {path: value}\n } else {\n options = value\n }\n\n /**\n * Place to store custom information (default: `{}`).\n *\n * It’s OK to store custom data directly on the file but moving it to\n * `data` is recommended.\n *\n * @type {Data}\n */\n this.data = {}\n\n /**\n * List of messages associated with the file.\n *\n * @type {Array<VFileMessage>}\n */\n this.messages = []\n\n /**\n * List of filepaths the file moved between.\n *\n * The first is the original path and the last is the current path.\n *\n * @type {Array<string>}\n */\n this.history = []\n\n /**\n * Base of `path` (default: `process.cwd()` or `'/'` in browsers).\n *\n * @type {string}\n */\n this.cwd = proc.cwd()\n\n /* eslint-disable no-unused-expressions */\n /**\n * Raw value.\n *\n * @type {Value}\n */\n this.value\n\n // The below are non-standard, they are “well-known”.\n // As in, used in several tools.\n\n /**\n * Whether a file was saved to disk.\n *\n * This is used by vfile reporters.\n *\n * @type {boolean}\n */\n this.stored\n\n /**\n * Custom, non-string, compiled, representation.\n *\n * This is used by unified to store non-string results.\n * One example is when turning markdown into React nodes.\n *\n * @type {unknown}\n */\n this.result\n\n /**\n * Source map.\n *\n * This type is equivalent to the `RawSourceMap` type from the `source-map`\n * module.\n *\n * @type {Map | null | undefined}\n */\n this.map\n /* eslint-enable no-unused-expressions */\n\n // Set path related properties in the correct order.\n let index = -1\n\n while (++index < order.length) {\n const prop = order[index]\n\n // Note: we specifically use `in` instead of `hasOwnProperty` to accept\n // `vfile`s too.\n if (\n prop in options &&\n options[prop] !== undefined &&\n options[prop] !== null\n ) {\n // @ts-expect-error: TS doesn’t understand basic reality.\n this[prop] = prop === 'history' ? [...options[prop]] : options[prop]\n }\n }\n\n /** @type {string} */\n let prop\n\n // Set non-path related properties.\n for (prop in options) {\n // @ts-expect-error: fine to set other things.\n if (!order.includes(prop)) {\n // @ts-expect-error: fine to set other things.\n this[prop] = options[prop]\n }\n }\n }\n\n /**\n * Get the full path (example: `'~/index.min.js'`).\n *\n * @returns {string}\n */\n get path() {\n return this.history[this.history.length - 1]\n }\n\n /**\n * Set the full path (example: `'~/index.min.js'`).\n *\n * Cannot be nullified.\n * You can set a file URL (a `URL` object with a `file:` protocol) which will\n * be turned into a path with `url.fileURLToPath`.\n *\n * @param {string | URL} path\n */\n set path(path) {\n if (isUrl(path)) {\n path = urlToPath(path)\n }\n\n assertNonEmpty(path, 'path')\n\n if (this.path !== path) {\n this.history.push(path)\n }\n }\n\n /**\n * Get the parent path (example: `'~'`).\n */\n get dirname() {\n return typeof this.path === 'string' ? path.dirname(this.path) : undefined\n }\n\n /**\n * Set the parent path (example: `'~'`).\n *\n * Cannot be set if there’s no `path` yet.\n */\n set dirname(dirname) {\n assertPath(this.basename, 'dirname')\n this.path = path.join(dirname || '', this.basename)\n }\n\n /**\n * Get the basename (including extname) (example: `'index.min.js'`).\n */\n get basename() {\n return typeof this.path === 'string' ? path.basename(this.path) : undefined\n }\n\n /**\n * Set basename (including extname) (`'index.min.js'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be nullified (use `file.path = file.dirname` instead).\n */\n set basename(basename) {\n assertNonEmpty(basename, 'basename')\n assertPart(basename, 'basename')\n this.path = path.join(this.dirname || '', basename)\n }\n\n /**\n * Get the extname (including dot) (example: `'.js'`).\n */\n get extname() {\n return typeof this.path === 'string' ? path.extname(this.path) : undefined\n }\n\n /**\n * Set the extname (including dot) (example: `'.js'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be set if there’s no `path` yet.\n */\n set extname(extname) {\n assertPart(extname, 'extname')\n assertPath(this.dirname, 'extname')\n\n if (extname) {\n if (extname.charCodeAt(0) !== 46 /* `.` */) {\n throw new Error('`extname` must start with `.`')\n }\n\n if (extname.includes('.', 1)) {\n throw new Error('`extname` cannot contain multiple dots')\n }\n }\n\n this.path = path.join(this.dirname, this.stem + (extname || ''))\n }\n\n /**\n * Get the stem (basename w/o extname) (example: `'index.min'`).\n */\n get stem() {\n return typeof this.path === 'string'\n ? path.basename(this.path, this.extname)\n : undefined\n }\n\n /**\n * Set the stem (basename w/o extname) (example: `'index.min'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be nullified (use `file.path = file.dirname` instead).\n */\n set stem(stem) {\n assertNonEmpty(stem, 'stem')\n assertPart(stem, 'stem')\n this.path = path.join(this.dirname || '', stem + (this.extname || ''))\n }\n\n /**\n * Serialize the file.\n *\n * @param {BufferEncoding | null | undefined} [encoding='utf8']\n * Character encoding to understand `value` as when it’s a `Buffer`\n * (default: `'utf8'`).\n * @returns {string}\n * Serialized file.\n */\n toString(encoding) {\n return (this.value || '').toString(encoding || undefined)\n }\n\n /**\n * Create a warning message associated with the file.\n *\n * Its `fatal` is set to `false` and `file` is set to the current file path.\n * Its added to `file.messages`.\n *\n * @param {string | Error | VFileMessage} reason\n * Reason for message, uses the stack and message of the error if given.\n * @param {Node | NodeLike | Position | Point | null | undefined} [place]\n * Place in file where the message occurred.\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {VFileMessage}\n * Message.\n */\n message(reason, place, origin) {\n const message = new VFileMessage(reason, place, origin)\n\n if (this.path) {\n message.name = this.path + ':' + message.name\n message.file = this.path\n }\n\n message.fatal = false\n\n this.messages.push(message)\n\n return message\n }\n\n /**\n * Create an info message associated with the file.\n *\n * Its `fatal` is set to `null` and `file` is set to the current file path.\n * Its added to `file.messages`.\n *\n * @param {string | Error | VFileMessage} reason\n * Reason for message, uses the stack and message of the error if given.\n * @param {Node | NodeLike | Position | Point | null | undefined} [place]\n * Place in file where the message occurred.\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {VFileMessage}\n * Message.\n */\n info(reason, place, origin) {\n const message = this.message(reason, place, origin)\n\n message.fatal = null\n\n return message\n }\n\n /**\n * Create a fatal error associated with the file.\n *\n * Its `fatal` is set to `true` and `file` is set to the current file path.\n * Its added to `file.messages`.\n *\n * > 👉 **Note**: a fatal error means that a file is no longer processable.\n *\n * @param {string | Error | VFileMessage} reason\n * Reason for message, uses the stack and message of the error if given.\n * @param {Node | NodeLike | Position | Point | null | undefined} [place]\n * Place in file where the message occurred.\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {never}\n * Message.\n * @throws {VFileMessage}\n * Message.\n */\n fail(reason, place, origin) {\n const message = this.message(reason, place, origin)\n\n message.fatal = true\n\n throw message\n }\n}\n\n/**\n * Assert that `part` is not a path (as in, does not contain `path.sep`).\n *\n * @param {string | null | undefined} part\n * File path part.\n * @param {string} name\n * Part name.\n * @returns {void}\n * Nothing.\n */\nfunction assertPart(part, name) {\n if (part && part.includes(path.sep)) {\n throw new Error(\n '`' + name + '` cannot be a path: did not expect `' + path.sep + '`'\n )\n }\n}\n\n/**\n * Assert that `part` is not empty.\n *\n * @param {string | undefined} part\n * Thing.\n * @param {string} name\n * Part name.\n * @returns {asserts part is string}\n * Nothing.\n */\nfunction assertNonEmpty(part, name) {\n if (!part) {\n throw new Error('`' + name + '` cannot be empty')\n }\n}\n\n/**\n * Assert `path` exists.\n *\n * @param {string | undefined} path\n * Path.\n * @param {string} name\n * Dependency name.\n * @returns {asserts path is string}\n * Nothing.\n */\nfunction assertPath(path, name) {\n if (!path) {\n throw new Error('Setting `' + name + '` requires `path` to be set too')\n }\n}\n\n/**\n * Assert `value` is a buffer.\n *\n * @param {unknown} value\n * thing.\n * @returns {value is Buffer}\n * Whether `value` is a Node.js buffer.\n */\nfunction buffer(value) {\n return bufferLike(value)\n}\n"],"names":["order","assertPart","part","name","includes","path","sep","Error","assertNonEmpty","assertPath","constructor","value","options","bufferLike","buffer","isUrl","this","data","messages","history","cwd","proc","stored","result","map","prop","index","length","undefined","urlToPath","push","dirname","basename","join","extname","charCodeAt","stem","toString","encoding","message","reason","place","origin","VFileMessage","file","fatal","info","fail"],"mappings":"qSAkGA,MAAMA,EAAQ,CAAC,UAAW,OAAQ,WAAY,OAAQ,UAAW,WAmXjE,SAASC,EAAWC,EAAMC,GACxB,GAAID,GAAQA,EAAKE,SAASC,EAAIA,KAACC,KAC7B,MAAM,IAAIC,MACR,IAAMJ,EAAO,uCAAyCE,EAAIA,KAACC,IAAM,IAGvE,CAYA,SAASE,EAAeN,EAAMC,GAC5B,IAAKD,EACH,MAAM,IAAIK,MAAM,IAAMJ,EAAO,oBAEjC,CAYA,SAASM,EAAWJ,EAAMF,GACxB,IAAKE,EACH,MAAM,IAAIE,MAAM,YAAcJ,EAAO,kCAEzC,eAvZO,MAuBL,WAAAO,CAAYC,GAEV,IAAIC,EAKFA,EAHGD,EAEuB,iBAAVA,GAoYtB,SAAgBA,GACd,OAAOE,EAAAA,QAAWF,EACpB,CAtY4CG,CAAOH,GACnC,CAACA,SACFI,EAAAA,MAAMJ,GACL,CAACN,KAAMM,GAEPA,EANA,CAAE,EAiBdK,KAAKC,KAAO,CAAE,EAOdD,KAAKE,SAAW,GAShBF,KAAKG,QAAU,GAOfH,KAAKI,IAAMC,EAAIA,KAACD,MAQhBJ,KAAK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M,IAAI5B,MAAM,iCAGlB,GAAI2B,EAAQ9B,SAAS,IAAK,GACxB,MAAM,IAAIG,MAAM,yCAEnB,CAEDS,KAAKX,KAAOA,OAAK4B,KAAKjB,KAAKe,QAASf,KAAKoB,MAAQF,GAAW,IAC7D,CAKD,QAAIE,GACF,MAA4B,iBAAdpB,KAAKX,KACfA,EAAAA,KAAK2B,SAAShB,KAAKX,KAAMW,KAAKkB,cAC9BN,CACL,CASD,QAAIQ,CAAKA,GACP5B,EAAe4B,EAAM,QACrBnC,EAAWmC,EAAM,QACjBpB,KAAKX,KAAOA,OAAK4B,KAAKjB,KAAKe,SAAW,GAAIK,GAAQpB,KAAKkB,SAAW,IACnE,CAWD,QAAAG,CAASC,GACP,OAAQtB,KAAKL,OAAS,IAAI0B,SAASC,QAAYV,EAChD,CAkBD,OAAAW,CAAQC,EAAQC,EAAOC,GACrB,MAAMH,EAAU,IAAII,EAAAA,aAAaH,EAAQC,EAAOC,GAWhD,OATI1B,KAAKX,OACPkC,EAAQpC,KAAOa,KAAKX,KAAO,IAAMkC,EAAQpC,KACzCoC,EAAQK,KAAO5B,KAAKX,MAGtBkC,EAAQM,OAAQ,EAEhB7B,KAAKE,SAASY,KAAKS,GAEZA,CACR,CAkBD,IAAAO,CAAKN,EAAQC,EAAOC,GAClB,MAAMH,EAAUvB,KAAKuB,QAAQC,EAAQC,EAAOC,GAI5C,OAFAH,EAAQM,MAAQ,KAETN,CACR,CAsBD,IAAAQ,CAAKP,EAAQC,EAAOC,GAClB,MAAMH,EAAUvB,KAAKuB,QAAQC,EAAQC,EAAOC,GAI5C,MAFAH,EAAQM,OAAQ,EAEVN,CACP"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/vfile/lib/index.js"],"sourcesContent":["/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Position} Position\n * @typedef {import('unist').Point} Point\n * @typedef {import('./minurl.shared.js').URL} URL\n * @typedef {import('../index.js').Data} Data\n * @typedef {import('../index.js').Value} Value\n */\n\n/**\n * @typedef {Record<string, unknown> & {type: string, position?: Position | undefined}} NodeLike\n *\n * @typedef {'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex'} BufferEncoding\n * Encodings supported by the buffer class.\n *\n * This is a copy of the types from Node, copied to prevent Node globals from\n * being needed.\n * Copied from: <https://github.com/DefinitelyTyped/DefinitelyTyped/blob/90a4ec8/types/node/buffer.d.ts#L170>\n *\n * @typedef {Options | URL | Value | VFile} Compatible\n * Things that can be passed to the constructor.\n *\n * @typedef VFileCoreOptions\n * Set multiple values.\n * @property {Value | null | undefined} [value]\n * Set `value`.\n * @property {string | null | undefined} [cwd]\n * Set `cwd`.\n * @property {Array<string> | null | undefined} [history]\n * Set `history`.\n * @property {URL | string | null | undefined} [path]\n * Set `path`.\n * @property {string | null | undefined} [basename]\n * Set `basename`.\n * @property {string | null | undefined} [stem]\n * Set `stem`.\n * @property {string | null | undefined} [extname]\n * Set `extname`.\n * @property {string | null | undefined} [dirname]\n * Set `dirname`.\n * @property {Data | null | undefined} [data]\n * Set `data`.\n *\n * @typedef Map\n * Raw source map.\n *\n * See:\n * <https://github.com/mozilla/source-map/blob/58819f0/source-map.d.ts#L15-L23>.\n * @property {number} version\n * Which version of the source map spec this map is following.\n * @property {Array<string>} sources\n * An array of URLs to the original source files.\n * @property {Array<string>} names\n * An array of identifiers which can be referenced by individual mappings.\n * @property {string | undefined} [sourceRoot]\n * The URL root from which all sources are relative.\n * @property {Array<string> | undefined} [sourcesContent]\n * An array of contents of the original source files.\n * @property {string} mappings\n * A string of base64 VLQs which contain the actual mappings.\n * @property {string} file\n * The generated file this source map is associated with.\n *\n * @typedef {{[key: string]: unknown} & VFileCoreOptions} Options\n * Configuration.\n *\n * A bunch of keys that will be shallow copied over to the new file.\n *\n * @typedef {Record<string, unknown>} ReporterSettings\n * Configuration for reporters.\n */\n\n/**\n * @template {ReporterSettings} Settings\n * Options type.\n * @callback Reporter\n * Type for a reporter.\n * @param {Array<VFile>} files\n * Files to report.\n * @param {Settings} options\n * Configuration.\n * @returns {string}\n * Report.\n */\n\nimport bufferLike from 'is-buffer'\nimport {VFileMessage} from 'vfile-message'\nimport {path} from './minpath.js'\nimport {proc} from './minproc.js'\nimport {urlToPath, isUrl} from './minurl.js'\n\n/**\n * Order of setting (least specific to most), we need this because otherwise\n * `{stem: 'a', path: '~/b.js'}` would throw, as a path is needed before a\n * stem can be set.\n *\n * @type {Array<'basename' | 'dirname' | 'extname' | 'history' | 'path' | 'stem'>}\n */\nconst order = ['history', 'path', 'basename', 'stem', 'extname', 'dirname']\n\nexport class VFile {\n /**\n * Create a new virtual file.\n *\n * `options` is treated as:\n *\n * * `string` or `Buffer` — `{value: options}`\n * * `URL` — `{path: options}`\n * * `VFile` — shallow copies its data over to the new file\n * * `object` — all fields are shallow copied over to the new file\n *\n * Path related fields are set in the following order (least specific to\n * most specific): `history`, `path`, `basename`, `stem`, `extname`,\n * `dirname`.\n *\n * You cannot set `dirname` or `extname` without setting either `history`,\n * `path`, `basename`, or `stem` too.\n *\n * @param {Compatible | null | undefined} [value]\n * File value.\n * @returns\n * New instance.\n */\n constructor(value) {\n /** @type {Options | VFile} */\n let options\n\n if (!value) {\n options = {}\n } else if (typeof value === 'string' || buffer(value)) {\n options = {value}\n } else if (isUrl(value)) {\n options = {path: value}\n } else {\n options = value\n }\n\n /**\n * Place to store custom information (default: `{}`).\n *\n * It’s OK to store custom data directly on the file but moving it to\n * `data` is recommended.\n *\n * @type {Data}\n */\n this.data = {}\n\n /**\n * List of messages associated with the file.\n *\n * @type {Array<VFileMessage>}\n */\n this.messages = []\n\n /**\n * List of filepaths the file moved between.\n *\n * The first is the original path and the last is the current path.\n *\n * @type {Array<string>}\n */\n this.history = []\n\n /**\n * Base of `path` (default: `process.cwd()` or `'/'` in browsers).\n *\n * @type {string}\n */\n this.cwd = proc.cwd()\n\n /* eslint-disable no-unused-expressions */\n /**\n * Raw value.\n *\n * @type {Value}\n */\n this.value\n\n // The below are non-standard, they are “well-known”.\n // As in, used in several tools.\n\n /**\n * Whether a file was saved to disk.\n *\n * This is used by vfile reporters.\n *\n * @type {boolean}\n */\n this.stored\n\n /**\n * Custom, non-string, compiled, representation.\n *\n * This is used by unified to store non-string results.\n * One example is when turning markdown into React nodes.\n *\n * @type {unknown}\n */\n this.result\n\n /**\n * Source map.\n *\n * This type is equivalent to the `RawSourceMap` type from the `source-map`\n * module.\n *\n * @type {Map | null | undefined}\n */\n this.map\n /* eslint-enable no-unused-expressions */\n\n // Set path related properties in the correct order.\n let index = -1\n\n while (++index < order.length) {\n const prop = order[index]\n\n // Note: we specifically use `in` instead of `hasOwnProperty` to accept\n // `vfile`s too.\n if (\n prop in options &&\n options[prop] !== undefined &&\n options[prop] !== null\n ) {\n // @ts-expect-error: TS doesn’t understand basic reality.\n this[prop] = prop === 'history' ? [...options[prop]] : options[prop]\n }\n }\n\n /** @type {string} */\n let prop\n\n // Set non-path related properties.\n for (prop in options) {\n // @ts-expect-error: fine to set other things.\n if (!order.includes(prop)) {\n // @ts-expect-error: fine to set other things.\n this[prop] = options[prop]\n }\n }\n }\n\n /**\n * Get the full path (example: `'~/index.min.js'`).\n *\n * @returns {string}\n */\n get path() {\n return this.history[this.history.length - 1]\n }\n\n /**\n * Set the full path (example: `'~/index.min.js'`).\n *\n * Cannot be nullified.\n * You can set a file URL (a `URL` object with a `file:` protocol) which will\n * be turned into a path with `url.fileURLToPath`.\n *\n * @param {string | URL} path\n */\n set path(path) {\n if (isUrl(path)) {\n path = urlToPath(path)\n }\n\n assertNonEmpty(path, 'path')\n\n if (this.path !== path) {\n this.history.push(path)\n }\n }\n\n /**\n * Get the parent path (example: `'~'`).\n */\n get dirname() {\n return typeof this.path === 'string' ? path.dirname(this.path) : undefined\n }\n\n /**\n * Set the parent path (example: `'~'`).\n *\n * Cannot be set if there’s no `path` yet.\n */\n set dirname(dirname) {\n assertPath(this.basename, 'dirname')\n this.path = path.join(dirname || '', this.basename)\n }\n\n /**\n * Get the basename (including extname) (example: `'index.min.js'`).\n */\n get basename() {\n return typeof this.path === 'string' ? path.basename(this.path) : undefined\n }\n\n /**\n * Set basename (including extname) (`'index.min.js'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be nullified (use `file.path = file.dirname` instead).\n */\n set basename(basename) {\n assertNonEmpty(basename, 'basename')\n assertPart(basename, 'basename')\n this.path = path.join(this.dirname || '', basename)\n }\n\n /**\n * Get the extname (including dot) (example: `'.js'`).\n */\n get extname() {\n return typeof this.path === 'string' ? path.extname(this.path) : undefined\n }\n\n /**\n * Set the extname (including dot) (example: `'.js'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be set if there’s no `path` yet.\n */\n set extname(extname) {\n assertPart(extname, 'extname')\n assertPath(this.dirname, 'extname')\n\n if (extname) {\n if (extname.charCodeAt(0) !== 46 /* `.` */) {\n throw new Error('`extname` must start with `.`')\n }\n\n if (extname.includes('.', 1)) {\n throw new Error('`extname` cannot contain multiple dots')\n }\n }\n\n this.path = path.join(this.dirname, this.stem + (extname || ''))\n }\n\n /**\n * Get the stem (basename w/o extname) (example: `'index.min'`).\n */\n get stem() {\n return typeof this.path === 'string'\n ? path.basename(this.path, this.extname)\n : undefined\n }\n\n /**\n * Set the stem (basename w/o extname) (example: `'index.min'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be nullified (use `file.path = file.dirname` instead).\n */\n set stem(stem) {\n assertNonEmpty(stem, 'stem')\n assertPart(stem, 'stem')\n this.path = path.join(this.dirname || '', stem + (this.extname || ''))\n }\n\n /**\n * Serialize the file.\n *\n * @param {BufferEncoding | null | undefined} [encoding='utf8']\n * Character encoding to understand `value` as when it’s a `Buffer`\n * (default: `'utf8'`).\n * @returns {string}\n * Serialized file.\n */\n toString(encoding) {\n return (this.value || '').toString(encoding || undefined)\n }\n\n /**\n * Create a warning message associated with the file.\n *\n * Its `fatal` is set to `false` and `file` is set to the current file path.\n * Its added to `file.messages`.\n *\n * @param {string | Error | VFileMessage} reason\n * Reason for message, uses the stack and message of the error if given.\n * @param {Node | NodeLike | Position | Point | null | undefined} [place]\n * Place in file where the message occurred.\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {VFileMessage}\n * Message.\n */\n message(reason, place, origin) {\n const message = new VFileMessage(reason, place, origin)\n\n if (this.path) {\n message.name = this.path + ':' + message.name\n message.file = this.path\n }\n\n message.fatal = false\n\n this.messages.push(message)\n\n return message\n }\n\n /**\n * Create an info message associated with the file.\n *\n * Its `fatal` is set to `null` and `file` is set to the current file path.\n * Its added to `file.messages`.\n *\n * @param {string | Error | VFileMessage} reason\n * Reason for message, uses the stack and message of the error if given.\n * @param {Node | NodeLike | Position | Point | null | undefined} [place]\n * Place in file where the message occurred.\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {VFileMessage}\n * Message.\n */\n info(reason, place, origin) {\n const message = this.message(reason, place, origin)\n\n message.fatal = null\n\n return message\n }\n\n /**\n * Create a fatal error associated with the file.\n *\n * Its `fatal` is set to `true` and `file` is set to the current file path.\n * Its added to `file.messages`.\n *\n * > 👉 **Note**: a fatal error means that a file is no longer processable.\n *\n * @param {string | Error | VFileMessage} reason\n * Reason for message, uses the stack and message of the error if given.\n * @param {Node | NodeLike | Position | Point | null | undefined} [place]\n * Place in file where the message occurred.\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {never}\n * Message.\n * @throws {VFileMessage}\n * Message.\n */\n fail(reason, place, origin) {\n const message = this.message(reason, place, origin)\n\n message.fatal = true\n\n throw message\n }\n}\n\n/**\n * Assert that `part` is not a path (as in, does not contain `path.sep`).\n *\n * @param {string | null | undefined} part\n * File path part.\n * @param {string} name\n * Part name.\n * @returns {void}\n * Nothing.\n */\nfunction assertPart(part, name) {\n if (part && part.includes(path.sep)) {\n throw new Error(\n '`' + name + '` cannot be a path: did not expect `' + path.sep + '`'\n )\n }\n}\n\n/**\n * Assert that `part` is not empty.\n *\n * @param {string | undefined} part\n * Thing.\n * @param {string} name\n * Part name.\n * @returns {asserts part is string}\n * Nothing.\n */\nfunction assertNonEmpty(part, name) {\n if (!part) {\n throw new Error('`' + name + '` cannot be empty')\n }\n}\n\n/**\n * Assert `path` exists.\n *\n * @param {string | undefined} path\n * Path.\n * @param {string} name\n * Dependency name.\n * @returns {asserts path is string}\n * Nothing.\n */\nfunction assertPath(path, name) {\n if (!path) {\n throw new Error('Setting `' + name + '` requires `path` to be set too')\n }\n}\n\n/**\n * Assert `value` is a buffer.\n *\n * @param {unknown} value\n * thing.\n * @returns {value is Buffer}\n * Whether `value` is a Node.js buffer.\n */\nfunction buffer(value) {\n return bufferLike(value)\n}\n"],"names":["order","assertPart","part","name","includes","path","sep","Error","assertNonEmpty","assertPath","constructor","value","options","bufferLike","buffer","isUrl","this","data","messages","history","cwd","proc","stored","result","map","prop","index","length","undefined","urlToPath","push","dirname","basename","join","extname","charCodeAt","stem","toString","encoding","message","reason","place","origin","VFileMessage","file","fatal","info","fail"],"mappings":"oSAkGA,MAAMA,EAAQ,CAAC,UAAW,OAAQ,WAAY,OAAQ,UAAW,WAmXjE,SAASC,EAAWC,EAAMC,GACxB,GAAID,GAAQA,EAAKE,SAASC,EAAIA,KAACC,KAC7B,MAAM,IAAIC,MACR,IAAMJ,EAAO,uCAAyCE,EAAIA,KAACC,IAAM,IAGvE,CAYA,SAASE,EAAeN,EAAMC,GAC5B,IAAKD,EACH,MAAM,IAAIK,MAAM,IAAMJ,EAAO,oBAEjC,CAYA,SAASM,EAAWJ,EAAMF,GACxB,IAAKE,EACH,MAAM,IAAIE,MAAM,YAAcJ,EAAO,kCAEzC,eA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,CAAKP,EAAQC,EAAOC,GAClB,MAAMH,EAAUvB,KAAKuB,QAAQC,EAAQC,EAAOC,GAI5C,MAFAH,EAAQM,OAAQ,EAEVN,CACP"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as n,__assign as t}from"tslib";import{jsx as i,jsxs as e}from"react/jsx-runtime";import{memo as r,useMemo as o,useCallback as a}from"react";import l from"./CitationLink.js";import{CognitiveDecisioningCard as c}from"@e-llm-studio/citation";import{ButtonCognitiveIcon as d}from"./_svg/ButtonCognitiveIcon.js";import{getSourceFromUrl as u}from"./MarkdownComponents/MarkdownElements.js";var p=r(function(r){var p=r.citation,f=r.citations;r.fieldName,r.fieldValue;var s=r.isVisible,g=void 0!==s&&s,m=function(n,t){var i,e="";if(!(e="string"==typeof t?t:(null===(i=null==t?void 0:t.customMetaData)||void 0===i?void 0:i.content)?t.customMetaData.content:String(t)))return null;var r=new RegExp("<".concat(n,"[^>]*>([\\s\\S]*?)<\\/").concat(n,">"),"i"),o=e.match(r);return o?o[1].replace(/\\n/g,"\n"):null},x=o(function(){return m("reason",p)},[p]),h=o(function(){return m("gap",p)},[p]),v=o(function(){return m("relevance_score",p)},[p]),y=a(function(n,t){return f&&f.find(function(i){return i.customMetaData.citation_number&&"Cognitive Decisioning"!==i.customMetaData.citation_title&&i.customMetaData.source===t&&String(i.customMetaData.citation_number)===String(n)})||null},[f]),S=o(function(){return{p:function(e){e.node;var r=n(e,["node"]);return i("p",t({},r,{style:{margin:0}},{children:null==r?void 0:r.children}))},li:function(r){r.node;var o=r.index,a=n(r,["node","index"]);return e("div",t({style:{display:"flex",alignItems:"flex-start",marginBottom:"6px"}},{children:[i("span",t({style:{fontSize:"12px",fontWeight:400,color:"#55585fff",flexShrink:0,minWidth:"18px"}},{children:"number"==typeof o?"".concat(o+1,"."):"•"})),i("span",t({style:{fontSize:"12px",color:"#4B5563",lineHeight:"1.5",flex:1}},{children:a.children}))]}))},a:function(e){e.node;var r=e.href,o=e.children,a=n(e,["node","href","children"]);if(!r)return i("a",t({},a,{children:o}));var c=r.match(/citationNumber=([^&]+)/),d=c?c[1]:null;if(d){var p=u(r),f=y(d,p);if(f)return i("span",t({style:{display:"inline",alignItems:"center",fontSize:"14px !important",gap:"3px",color:"#2563EB",verticalAlign:"middle"}},{children:i(l,{citation:f,linkTitle:o,fontSize:12})}))}return i("a",t({href:r,target:"_blank",rel:"noopener noreferrer",style:{color:"#2563EB",textDecoration:"none"}},a,{children:o}))}}},[y]),b=function(n){return n?n.replace(/(\[[^\]]+\]\()([^)]+)(\))/g,function(n,t,i,e){return"".concat(t).concat(i.replace(/\s/g,"%20")).concat(e)}):""},C=o(function(){return{header:{backgroundColor:"#F5F3FF",padding:"8px 16px"},sectionButton:{paddingLeft:"24px",paddingRight:"24px",paddingBottom:"12px"},textContent:{fontSize:"12px",paddingLeft:"30px",paddingRight:"24px",paddingBottom:"20px"},badge:{fontSize:"11px",color:"#1E293B",borderColor:"#C4B5FD",padding:"8px 8px"},pill:{gap:"2px",border:"none",backgroundColor:"transparent"}}},[]);return g?i(c,{headerIcon:i(d,{}),isOpen:!0,hideTrigger:!0,onToggle:function(){},reasoning:b(x)||"",gap:b(h)||"",score:v,mdComponents:S,styles:C}):null},function(n,t){return n.isVisible===t.isVisible&&n.fieldValue===t.fieldValue&&n.fieldName===t.fieldName&&JSON.stringify(n.citation)===JSON.stringify(t.citation)&&JSON.stringify(n.citations)===JSON.stringify(t.citations)});p.displayName="InputDataReasoningCard";export{p as InputDataReasoningCard};
|
|
1
|
+
import{__rest as n,__assign as t}from"tslib";import{jsx as i,jsxs as e}from"react/jsx-runtime";import{memo as r,useMemo as o,useCallback as a}from"react";import l from"./CitationLink.js";import{CognitiveDecisioningCard as c}from"@e-llm-studio/citation";import{ButtonCognitiveIcon as d}from"./_svg/ButtonCognitiveIcon.js";import{getSourceFromUrl as u}from"./MarkdownComponents/MarkdownElements.js";var p=r(function(r){var p=r.citation,f=r.citations;r.fieldName,r.fieldValue;var s=r.isVisible,g=void 0!==s&&s,m=function(n,t){var i,e="";if(!(e="string"==typeof t?t:(null===(i=null==t?void 0:t.customMetaData)||void 0===i?void 0:i.content)?t.customMetaData.content:String(t)))return null;var r=new RegExp("<".concat(n,"[^>]*>([\\s\\S]*?)<\\/").concat(n,">"),"i"),o=e.match(r);return o?o[1].replace(/\\n/g,"\n"):null},x=o(function(){return m("reason",p)},[p]),h=o(function(){return m("gap",p)},[p]),v=o(function(){return m("relevance_score",p)},[p]),y=a(function(n,t){return f&&f.find(function(i){return i.customMetaData.citation_number&&"Cognitive Decisioning"!==i.customMetaData.citation_title&&i.customMetaData.source===t&&String(i.customMetaData.citation_number)===String(n)})||null},[f]),S=o(function(){return{p:function(e){e.node;var r=n(e,["node"]);return i("p",t({},r,{style:{margin:0}},{children:null==r?void 0:r.children}))},li:function(r){r.node;var o=r.index,a=n(r,["node","index"]);return e("div",t({style:{display:"flex",alignItems:"flex-start",marginBottom:"6px"}},{children:[i("span",t({style:{fontSize:"12px",fontWeight:400,color:"#55585fff",flexShrink:0,minWidth:"18px"}},{children:"number"==typeof o?"".concat(o+1,"."):"•"})),i("span",t({style:{fontSize:"12px",color:"#4B5563",lineHeight:"1.5",flex:1}},{children:a.children}))]}))},a:function(e){e.node;var r=e.href,o=e.children,a=n(e,["node","href","children"]);if(!r)return i("a",t({},a,{children:o}));var c=r.match(/citationNumber=([^&]+)/),d=c?c[1]:null;if(d){var p=u(r),f=y(d,p);if(f)return i("span",t({style:{display:"inline",alignItems:"center",fontSize:"14px !important",gap:"3px",color:"#2563EB",verticalAlign:"middle"}},{children:i(l,{citation:f,linkTitle:o,fontSize:12})}))}return i("a",t({href:r,target:"_blank",rel:"noopener noreferrer",style:{color:"#2563EB",textDecoration:"none"}},a,{children:o}))}}},[y]),b=function(n){return n?n.replace(/(\[[^\]]+\]\()([^)]+)(\))/g,function(n,t,i,e){return"".concat(t).concat(i.replace(/\s/g,"%20")).concat(e)}).replace(/`([^`\n]+)`/g,"**$1**"):""},C=o(function(){return{header:{backgroundColor:"#F5F3FF",padding:"8px 16px"},sectionButton:{paddingLeft:"24px",paddingRight:"24px",paddingBottom:"12px"},textContent:{fontSize:"12px",paddingLeft:"30px",paddingRight:"24px",paddingBottom:"20px"},badge:{fontSize:"11px",color:"#1E293B",borderColor:"#C4B5FD",padding:"8px 8px"},pill:{gap:"2px",border:"none",backgroundColor:"transparent"}}},[]);return g?i(c,{headerIcon:i(d,{}),isOpen:!0,hideTrigger:!0,onToggle:function(){},reasoning:b(x)||"",gap:b(h)||"",score:v,mdComponents:S,styles:C}):null},function(n,t){return n.isVisible===t.isVisible&&n.fieldValue===t.fieldValue&&n.fieldName===t.fieldName&&JSON.stringify(n.citation)===JSON.stringify(t.citation)&&JSON.stringify(n.citations)===JSON.stringify(t.citations)});p.displayName="InputDataReasoningCard";export{p as InputDataReasoningCard};
|
|
2
2
|
//# sourceMappingURL=InputDataReasoningCard.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../node_modules/tslib/tslib.es6.mjs.js";import{jsxs as t,jsx as n}from"react/jsx-runtime";import{forwardRef as o,useRef as r,useImperativeHandle as i}from"react";import{useThinkingSteps as s}from"./WatchMeWork/Usethinkingsteps.js";import{WorkingIndicator as a}from"./WatchMeWork/WorkingIndicator.js";import{StepDetailView as c}from"./WatchMeWork/StepDetailView.js";import{AgentStepsView as m}from"./WatchMeWork/AgentStepsView.js";var l=o(function(o,l){var d=o.orchestratorAndAgentsMessages,p=o.isStreamEnd,g=o.finalTimeTaken,u=o.thinkingStartTime,f=o.streamEndTime,h=o.storeTime,T=r(null);i(l,function(){return T.current});var k=s({orchestratorAndAgentsMessages:d,isStreamEnd:p,finalTime:g,thinkingStartTime:u,streamEndTime:f,storeTime:h}),w=k.viewType,S=k.accordionOpen,M=k.openSteps,A=k.showMoreMap,W=k.contentRefs,b=k.currentStep,v=k.currentContent,j=k.wmwLabel,y=k.toggleStep,E=k.toggleExpanded,x=k.toggleAccordion,O=k.setAccordionOpen;return t("div",e({className:"w-full mx-auto mb-2",ref:T},{children:[n("div",e({style:{display:"thinking"===w?"block":"none"}},{children:n(a,{startTime:u})})),n("div",e({style:{display:"steps"===w&&b?"block":"none"}},{children:n(c,{currentStep:b,currentContent:v,accordionOpen:S,onToggleAccordion:function(){return O(function(e){return!e})}})})),n("div",e({style:{display:"watchmework"===w?"block":"none"}},{children:n(m,{messages:d,wmwLabel:j,accordionOpen:S,openSteps:M,showMoreMap:A,onToggleAccordion:x,onToggleStep:y,onToggleExpanded:E,contentRefs:W})}))]}))});export{l as default};
|
|
2
|
+
//# sourceMappingURL=NewMinimizedThinkingSteps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewMinimizedThinkingSteps.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|