Initial commit: Crypto trader application

This commit is contained in:
2025-12-25 20:20:40 -05:00
commit 07a04c1bb8
47895 changed files with 2042266 additions and 0 deletions

98
frontend/node_modules/@mui/material/Hidden/Hidden.d.ts generated vendored Normal file
View File

@@ -0,0 +1,98 @@
import * as React from 'react';
import { Breakpoint } from '@mui/system';
export interface HiddenProps {
/**
* The content of the component.
*/
children?: React.ReactNode;
/**
* Specify which implementation to use. 'js' is the default, 'css' works better for
* server-side rendering.
* @default 'js'
*/
implementation?: 'js' | 'css';
/**
* You can use this prop when choosing the `js` implementation with server-side rendering.
*
* As `window.innerWidth` is unavailable on the server,
* we default to rendering an empty component during the first mount.
* You might want to use a heuristic to approximate
* the screen width of the client browser screen width.
*
* For instance, you could be using the user-agent or the client-hints.
* https://caniuse.com/#search=client%20hint
*/
initialWidth?: Breakpoint;
/**
* If `true`, component is hidden on screens below (but not including) this size.
* @default false
*/
lgDown?: boolean;
/**
* If `true`, component is hidden on screens this size and above.
* @default false
*/
lgUp?: boolean;
/**
* If `true`, component is hidden on screens below (but not including) this size.
* @default false
*/
mdDown?: boolean;
/**
* If `true`, component is hidden on screens this size and above.
* @default false
*/
mdUp?: boolean;
/**
* Hide the given breakpoint(s).
*/
only?: Breakpoint | Breakpoint[];
/**
* If `true`, component is hidden on screens below (but not including) this size.
* @default false
*/
smDown?: boolean;
/**
* If `true`, component is hidden on screens this size and above.
* @default false
*/
smUp?: boolean;
/**
* If `true`, component is hidden on screens below (but not including) this size.
* @default false
*/
xlDown?: boolean;
/**
* If `true`, component is hidden on screens this size and above.
* @default false
*/
xlUp?: boolean;
/**
* If `true`, component is hidden on screens below (but not including) this size.
* @default false
*/
xsDown?: boolean;
/**
* If `true`, component is hidden on screens this size and above.
* @default false
*/
xsUp?: boolean;
}
/**
* Responsively hides children based on the selected implementation.
*
* Demos:
*
* - [Hidden](https://mui.com/material-ui/react-hidden/)
*
* API:
*
* - [Hidden API](https://mui.com/material-ui/api/hidden/)
*
* @deprecated The Hidden component was deprecated in Material UI v5. To learn more, see [the Hidden section](/material-ui/migration/v5-component-changes/#hidden) of the migration docs.
*/
declare const Hidden: React.JSXElementConstructor<HiddenProps>;
export default Hidden;

141
frontend/node_modules/@mui/material/Hidden/Hidden.js generated vendored Normal file
View File

@@ -0,0 +1,141 @@
'use client';
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
const _excluded = ["implementation", "lgDown", "lgUp", "mdDown", "mdUp", "smDown", "smUp", "xlDown", "xlUp", "xsDown", "xsUp"];
import * as React from 'react';
import PropTypes from 'prop-types';
import HiddenJs from './HiddenJs';
import HiddenCss from './HiddenCss';
/**
* Responsively hides children based on the selected implementation.
*
* @deprecated The Hidden component was deprecated in Material UI v5. To learn more, see [the Hidden section](/material-ui/migration/v5-component-changes/#hidden) of the migration docs.
*/
import { jsx as _jsx } from "react/jsx-runtime";
function Hidden(props) {
const {
implementation = 'js',
lgDown = false,
lgUp = false,
mdDown = false,
mdUp = false,
smDown = false,
smUp = false,
xlDown = false,
xlUp = false,
xsDown = false,
xsUp = false
} = props,
other = _objectWithoutPropertiesLoose(props, _excluded);
if (implementation === 'js') {
return /*#__PURE__*/_jsx(HiddenJs, _extends({
lgDown: lgDown,
lgUp: lgUp,
mdDown: mdDown,
mdUp: mdUp,
smDown: smDown,
smUp: smUp,
xlDown: xlDown,
xlUp: xlUp,
xsDown: xsDown,
xsUp: xsUp
}, other));
}
return /*#__PURE__*/_jsx(HiddenCss, _extends({
lgDown: lgDown,
lgUp: lgUp,
mdDown: mdDown,
mdUp: mdUp,
smDown: smDown,
smUp: smUp,
xlDown: xlDown,
xlUp: xlUp,
xsDown: xsDown,
xsUp: xsUp
}, other));
}
process.env.NODE_ENV !== "production" ? Hidden.propTypes /* remove-proptypes */ = {
// ┌────────────────────────────── Warning ──────────────────────────────┐
// │ These PropTypes are generated from the TypeScript type definitions. │
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* The content of the component.
*/
children: PropTypes.node,
/**
* Specify which implementation to use. 'js' is the default, 'css' works better for
* server-side rendering.
* @default 'js'
*/
implementation: PropTypes.oneOf(['css', 'js']),
/**
* You can use this prop when choosing the `js` implementation with server-side rendering.
*
* As `window.innerWidth` is unavailable on the server,
* we default to rendering an empty component during the first mount.
* You might want to use a heuristic to approximate
* the screen width of the client browser screen width.
*
* For instance, you could be using the user-agent or the client-hints.
* https://caniuse.com/#search=client%20hint
*/
initialWidth: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
/**
* If `true`, component is hidden on screens below (but not including) this size.
* @default false
*/
lgDown: PropTypes.bool,
/**
* If `true`, component is hidden on screens this size and above.
* @default false
*/
lgUp: PropTypes.bool,
/**
* If `true`, component is hidden on screens below (but not including) this size.
* @default false
*/
mdDown: PropTypes.bool,
/**
* If `true`, component is hidden on screens this size and above.
* @default false
*/
mdUp: PropTypes.bool,
/**
* Hide the given breakpoint(s).
*/
only: PropTypes.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']), PropTypes.arrayOf(PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']).isRequired)]),
/**
* If `true`, component is hidden on screens below (but not including) this size.
* @default false
*/
smDown: PropTypes.bool,
/**
* If `true`, component is hidden on screens this size and above.
* @default false
*/
smUp: PropTypes.bool,
/**
* If `true`, component is hidden on screens below (but not including) this size.
* @default false
*/
xlDown: PropTypes.bool,
/**
* If `true`, component is hidden on screens this size and above.
* @default false
*/
xlUp: PropTypes.bool,
/**
* If `true`, component is hidden on screens below (but not including) this size.
* @default false
*/
xsDown: PropTypes.bool,
/**
* If `true`, component is hidden on screens this size and above.
* @default false
*/
xsUp: PropTypes.bool
} : void 0;
export default Hidden;

View File

@@ -0,0 +1,20 @@
import * as React from 'react';
import { Breakpoint } from '@mui/system';
export interface HiddenCssProps {
lgDown?: boolean;
lgUp?: boolean;
mdDown?: boolean;
mdUp?: boolean;
only?: Breakpoint | Breakpoint[];
smDown?: boolean;
smUp?: boolean;
xlDown?: boolean;
xlUp?: boolean;
xsDown?: boolean;
xsUp?: boolean;
}
declare const HiddenCss: React.JSXElementConstructor<HiddenCssProps>;
export default HiddenCss;

180
frontend/node_modules/@mui/material/Hidden/HiddenCss.js generated vendored Normal file
View File

@@ -0,0 +1,180 @@
'use client';
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
const _excluded = ["children", "className", "only"];
import * as React from 'react';
import clsx from 'clsx';
import PropTypes from 'prop-types';
import composeClasses from '@mui/utils/composeClasses';
import capitalize from '../utils/capitalize';
import styled from '../styles/styled';
import useTheme from '../styles/useTheme';
import { getHiddenCssUtilityClass } from './hiddenCssClasses';
import { jsx as _jsx } from "react/jsx-runtime";
const useUtilityClasses = ownerState => {
const {
classes,
breakpoints
} = ownerState;
const slots = {
root: ['root', ...breakpoints.map(({
breakpoint,
dir
}) => {
return dir === 'only' ? `${dir}${capitalize(breakpoint)}` : `${breakpoint}${capitalize(dir)}`;
})]
};
return composeClasses(slots, getHiddenCssUtilityClass, classes);
};
const HiddenCssRoot = styled('div', {
name: 'PrivateHiddenCss',
slot: 'Root'
})(({
theme,
ownerState
}) => {
const hidden = {
display: 'none'
};
return _extends({}, ownerState.breakpoints.map(({
breakpoint,
dir
}) => {
if (dir === 'only') {
return {
[theme.breakpoints.only(breakpoint)]: hidden
};
}
return dir === 'up' ? {
[theme.breakpoints.up(breakpoint)]: hidden
} : {
[theme.breakpoints.down(breakpoint)]: hidden
};
}).reduce((r, o) => {
Object.keys(o).forEach(k => {
r[k] = o[k];
});
return r;
}, {}));
});
/**
* @ignore - internal component.
*/
function HiddenCss(props) {
const {
children,
className,
only
} = props,
other = _objectWithoutPropertiesLoose(props, _excluded);
const theme = useTheme();
if (process.env.NODE_ENV !== 'production') {
const unknownProps = Object.keys(other).filter(propName => {
const isUndeclaredBreakpoint = !theme.breakpoints.keys.some(breakpoint => {
return `${breakpoint}Up` === propName || `${breakpoint}Down` === propName;
});
return !['classes', 'theme', 'isRtl', 'sx'].includes(propName) && isUndeclaredBreakpoint;
});
if (unknownProps.length > 0) {
console.error(`MUI: Unsupported props received by \`<Hidden implementation="css" />\`: ${unknownProps.join(', ')}. Did you forget to wrap this component in a ThemeProvider declaring these breakpoints?`);
}
}
const breakpoints = [];
for (let i = 0; i < theme.breakpoints.keys.length; i += 1) {
const breakpoint = theme.breakpoints.keys[i];
const breakpointUp = other[`${breakpoint}Up`];
const breakpointDown = other[`${breakpoint}Down`];
if (breakpointUp) {
breakpoints.push({
breakpoint,
dir: 'up'
});
}
if (breakpointDown) {
breakpoints.push({
breakpoint,
dir: 'down'
});
}
}
if (only) {
const onlyBreakpoints = Array.isArray(only) ? only : [only];
onlyBreakpoints.forEach(breakpoint => {
breakpoints.push({
breakpoint,
dir: 'only'
});
});
}
const ownerState = _extends({}, props, {
breakpoints
});
const classes = useUtilityClasses(ownerState);
return /*#__PURE__*/_jsx(HiddenCssRoot, {
className: clsx(classes.root, className),
ownerState: ownerState,
children: children
});
}
process.env.NODE_ENV !== "production" ? HiddenCss.propTypes = {
/**
* The content of the component.
*/
children: PropTypes.node,
/**
* @ignore
*/
className: PropTypes.string,
/**
* Specify which implementation to use. 'js' is the default, 'css' works better for
* server-side rendering.
*/
implementation: PropTypes.oneOf(['js', 'css']),
/**
* If `true`, screens this size and down are hidden.
*/
lgDown: PropTypes.bool,
/**
* If `true`, screens this size and up are hidden.
*/
lgUp: PropTypes.bool,
/**
* If `true`, screens this size and down are hidden.
*/
mdDown: PropTypes.bool,
/**
* If `true`, screens this size and up are hidden.
*/
mdUp: PropTypes.bool,
/**
* Hide the given breakpoint(s).
*/
only: PropTypes.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']), PropTypes.arrayOf(PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']))]),
/**
* If `true`, screens this size and down are hidden.
*/
smDown: PropTypes.bool,
/**
* If `true`, screens this size and up are hidden.
*/
smUp: PropTypes.bool,
/**
* If `true`, screens this size and down are hidden.
*/
xlDown: PropTypes.bool,
/**
* If `true`, screens this size and up are hidden.
*/
xlUp: PropTypes.bool,
/**
* If `true`, screens this size and down are hidden.
*/
xsDown: PropTypes.bool,
/**
* If `true`, screens this size and up are hidden.
*/
xsUp: PropTypes.bool
} : void 0;
export default HiddenCss;

View File

@@ -0,0 +1,21 @@
import * as React from 'react';
import { Breakpoint } from '@mui/system';
export interface HiddenJsProps {
width?: Breakpoint;
lgDown?: boolean;
lgUp?: boolean;
mdDown?: boolean;
mdUp?: boolean;
only?: Breakpoint | Breakpoint[];
smDown?: boolean;
smUp?: boolean;
xlDown?: boolean;
xlUp?: boolean;
xsDown?: boolean;
xsUp?: boolean;
}
declare const HiddenJs: React.JSXElementConstructor<HiddenJsProps>;
export default HiddenJs;

125
frontend/node_modules/@mui/material/Hidden/HiddenJs.js generated vendored Normal file
View File

@@ -0,0 +1,125 @@
'use client';
import * as React from 'react';
import PropTypes from 'prop-types';
import exactProp from '@mui/utils/exactProp';
import withWidth, { isWidthDown, isWidthUp } from './withWidth';
import useTheme from '../styles/useTheme';
/**
* @ignore - internal component.
*/
import { jsx as _jsx } from "react/jsx-runtime";
function HiddenJs(props) {
const {
children,
only,
width
} = props;
const theme = useTheme();
let visible = true;
// `only` check is faster to get out sooner if used.
if (only) {
if (Array.isArray(only)) {
for (let i = 0; i < only.length; i += 1) {
const breakpoint = only[i];
if (width === breakpoint) {
visible = false;
break;
}
}
} else if (only && width === only) {
visible = false;
}
}
// Allow `only` to be combined with other props. If already hidden, no need to check others.
if (visible) {
// determine visibility based on the smallest size up
for (let i = 0; i < theme.breakpoints.keys.length; i += 1) {
const breakpoint = theme.breakpoints.keys[i];
const breakpointUp = props[`${breakpoint}Up`];
const breakpointDown = props[`${breakpoint}Down`];
if (breakpointUp && isWidthUp(breakpoint, width) || breakpointDown && isWidthDown(breakpoint, width)) {
visible = false;
break;
}
}
}
if (!visible) {
return null;
}
return /*#__PURE__*/_jsx(React.Fragment, {
children: children
});
}
process.env.NODE_ENV !== "production" ? HiddenJs.propTypes = {
/**
* The content of the component.
*/
children: PropTypes.node,
/**
* If `true`, screens this size and down are hidden.
*/
// eslint-disable-next-line react/no-unused-prop-types
lgDown: PropTypes.bool,
/**
* If `true`, screens this size and up are hidden.
*/
// eslint-disable-next-line react/no-unused-prop-types
lgUp: PropTypes.bool,
/**
* If `true`, screens this size and down are hidden.
*/
// eslint-disable-next-line react/no-unused-prop-types
mdDown: PropTypes.bool,
/**
* If `true`, screens this size and up are hidden.
*/
// eslint-disable-next-line react/no-unused-prop-types
mdUp: PropTypes.bool,
/**
* Hide the given breakpoint(s).
*/
only: PropTypes.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']), PropTypes.arrayOf(PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']))]),
/**
* If `true`, screens this size and down are hidden.
*/
// eslint-disable-next-line react/no-unused-prop-types
smDown: PropTypes.bool,
/**
* If `true`, screens this size and up are hidden.
*/
// eslint-disable-next-line react/no-unused-prop-types
smUp: PropTypes.bool,
/**
* @ignore
* width prop provided by withWidth decorator.
*/
width: PropTypes.string.isRequired,
/**
* If `true`, screens this size and down are hidden.
*/
// eslint-disable-next-line react/no-unused-prop-types
xlDown: PropTypes.bool,
/**
* If `true`, screens this size and up are hidden.
*/
// eslint-disable-next-line react/no-unused-prop-types
xlUp: PropTypes.bool,
/**
* If `true`, screens this size and down are hidden.
*/
// eslint-disable-next-line react/no-unused-prop-types
xsDown: PropTypes.bool,
/**
* If `true`, screens this size and up are hidden.
*/
// eslint-disable-next-line react/no-unused-prop-types
xsUp: PropTypes.bool
} : void 0;
if (process.env.NODE_ENV !== 'production') {
process.env.NODE_ENV !== "production" ? HiddenJs.propTypes = exactProp(HiddenJs.propTypes) : void 0;
}
export default withWidth()(HiddenJs);

View File

@@ -0,0 +1,7 @@
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
import generateUtilityClass from '@mui/utils/generateUtilityClass';
export function getHiddenCssUtilityClass(slot) {
return generateUtilityClass('PrivateHiddenCss', slot);
}
const hiddenCssClasses = generateUtilityClasses('PrivateHiddenCss', ['root', 'xlDown', 'xlUp', 'onlyXl', 'lgDown', 'lgUp', 'onlyLg', 'mdDown', 'mdUp', 'onlyMd', 'smDown', 'smUp', 'onlySm', 'xsDown', 'xsUp', 'onlyXs']);
export default hiddenCssClasses;

View File

@@ -0,0 +1,2 @@
export { default } from './Hidden';
export * from './Hidden';

3
frontend/node_modules/@mui/material/Hidden/index.js generated vendored Normal file
View File

@@ -0,0 +1,3 @@
'use client';
export { default } from './Hidden';

View File

@@ -0,0 +1,6 @@
{
"sideEffects": false,
"module": "./index.js",
"main": "../node/Hidden/index.js",
"types": "./index.d.ts"
}

View File

@@ -0,0 +1,33 @@
import { Breakpoint } from '@mui/system';
import { PropInjector } from '@mui/types';
export interface WithWidthOptions {
withTheme?: boolean;
noSSR?: boolean;
initialWidth?: Breakpoint;
resizeInterval?: number;
}
export interface WithWidth {
width: Breakpoint;
}
export interface WithWidthProps extends Partial<WithWidth> {
innerRef?: React.Ref<any>;
}
export function isWidthDown(
breakpoint: Breakpoint,
screenWidth: Breakpoint,
inclusive?: boolean,
): boolean;
export function isWidthUp(
breakpoint: Breakpoint,
screenWidth: Breakpoint,
inclusive?: boolean,
): boolean;
export default function withWidth(
options?: WithWidthOptions,
): PropInjector<WithWidth, WithWidthProps>;

106
frontend/node_modules/@mui/material/Hidden/withWidth.js generated vendored Normal file
View File

@@ -0,0 +1,106 @@
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
const _excluded = ["initialWidth", "width"];
import * as React from 'react';
import PropTypes from 'prop-types';
import getDisplayName from '@mui/utils/getDisplayName';
import { getThemeProps } from '@mui/system/useThemeProps';
import useTheme from '../styles/useTheme';
import useEnhancedEffect from '../utils/useEnhancedEffect';
import useMediaQuery from '../useMediaQuery';
import { jsx as _jsx } from "react/jsx-runtime";
const breakpointKeys = ['xs', 'sm', 'md', 'lg', 'xl'];
// By default, returns true if screen width is the same or greater than the given breakpoint.
export const isWidthUp = (breakpoint, width, inclusive = true) => {
if (inclusive) {
return breakpointKeys.indexOf(breakpoint) <= breakpointKeys.indexOf(width);
}
return breakpointKeys.indexOf(breakpoint) < breakpointKeys.indexOf(width);
};
// By default, returns true if screen width is less than the given breakpoint.
export const isWidthDown = (breakpoint, width, inclusive = false) => {
if (inclusive) {
return breakpointKeys.indexOf(width) <= breakpointKeys.indexOf(breakpoint);
}
return breakpointKeys.indexOf(width) < breakpointKeys.indexOf(breakpoint);
};
const withWidth = (options = {}) => Component => {
const {
withTheme: withThemeOption = false,
noSSR = false,
initialWidth: initialWidthOption
} = options;
function WithWidth(props) {
const contextTheme = useTheme();
const theme = props.theme || contextTheme;
const _getThemeProps = getThemeProps({
theme,
name: 'MuiWithWidth',
props
}),
{
initialWidth,
width
} = _getThemeProps,
other = _objectWithoutPropertiesLoose(_getThemeProps, _excluded);
const [mountedState, setMountedState] = React.useState(false);
useEnhancedEffect(() => {
setMountedState(true);
}, []);
/**
* innerWidth |xs sm md lg xl
* |-------|-------|-------|-------|------>
* width | xs | sm | md | lg | xl
*/
const keys = theme.breakpoints.keys.slice().reverse();
const widthComputed = keys.reduce((output, key) => {
// eslint-disable-next-line react-hooks/rules-of-hooks
const matches = useMediaQuery(theme.breakpoints.up(key));
return !output && matches ? key : output;
}, null);
const more = _extends({
width: width || (mountedState || noSSR ? widthComputed : undefined) || initialWidth || initialWidthOption
}, withThemeOption ? {
theme
} : {}, other);
// When rendering the component on the server,
// we have no idea about the client browser screen width.
// In order to prevent blinks and help the reconciliation of the React tree
// we are not rendering the child component.
//
// An alternative is to use the `initialWidth` property.
if (more.width === undefined) {
return null;
}
return /*#__PURE__*/_jsx(Component, _extends({}, more));
}
process.env.NODE_ENV !== "production" ? WithWidth.propTypes = {
/**
* As `window.innerWidth` is unavailable on the server,
* we default to rendering an empty component during the first mount.
* You might want to use a heuristic to approximate
* the screen width of the client browser screen width.
*
* For instance, you could be using the user-agent or the client-hints.
* https://caniuse.com/#search=client%20hint
*/
initialWidth: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
/**
* @ignore
*/
theme: PropTypes.object,
/**
* Bypass the width calculation logic.
*/
width: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl'])
} : void 0;
if (process.env.NODE_ENV !== 'production') {
WithWidth.displayName = `WithWidth(${getDisplayName(Component)})`;
}
return WithWidth;
};
export default withWidth;