@pie-element/multi-trait-rubric 8.1.2-next.16 → 8.1.2-next.18
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/browser/{Typography-le3zSh6t.js → Typography-CR9tXNhP.js} +293 -289
- package/dist/browser/{Typography-le3zSh6t.js.map → Typography-CR9tXNhP.js.map} +1 -1
- package/dist/browser/assets/Symbola-4c507403.woff2 +0 -0
- package/dist/browser/author/index.js +19 -1
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +1 -1
- package/dist/browser/editor-runtime/Typography-CgHBy44t.js +9017 -0
- package/dist/browser/editor-runtime/Typography-CgHBy44t.js.map +1 -0
- package/dist/browser/editor-runtime/assets/Symbola-4c507403.woff2 +0 -0
- package/dist/browser/editor-runtime/author/index.js +20671 -0
- package/dist/browser/editor-runtime/author/index.js.map +1 -0
- package/dist/browser/editor-runtime/controller/index.js +70 -0
- package/dist/browser/editor-runtime/controller/index.js.map +1 -0
- package/dist/browser/editor-runtime/delivery/index.js +541 -0
- package/dist/browser/editor-runtime/delivery/index.js.map +1 -0
- package/dist/index.iife.js +1 -1
- package/package.json +20 -11
- package/dist/browser/multi-trait-rubric.css +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["capitalize","React"],"sources":["../../../../../../shared/player-events/dist/index.js","../../../../src/delivery/trait.tsx","../../../../src/delivery/scale.tsx","../../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Link/linkClasses.js","../../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Link/getTextDecoration.js","../../../../../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Link/Link.js","../../../../src/delivery/main.tsx","../../../../src/delivery/index.ts"],"sourcesContent":["//#region src/session-notifier.ts\nvar e = \"commitPendingSession\", t = /* @__PURE__ */ new WeakMap();\nfunction n(e, n) {\n\tlet r = t.get(e);\n\tr || (r = /* @__PURE__ */ new Set(), t.set(e, r)), r.add(n);\n}\nfunction r(t) {\n\treturn Object.getOwnPropertyDescriptor(t, e) !== void 0;\n}\nfunction i(t) {\n\tif (r(t)) return;\n\tlet n = t[e];\n\tObject.defineProperty(t, e, {\n\t\tvalue: () => {\n\t\t\tif (typeof n == \"function\") try {\n\t\t\t\tn.call(t);\n\t\t\t} catch {}\n\t\t\to(t);\n\t\t},\n\t\tconfigurable: !0,\n\t\tenumerable: !1,\n\t\twritable: !0\n\t});\n}\nfunction a(e, t, r = {}) {\n\tlet a = r.delayMs, o = typeof a == \"function\" ? a : () => a ?? 0, s = r.maxWaitMs, c = null, l = null, u = !1, d = () => {\n\t\tc !== null && (clearTimeout(c), c = null), l !== null && (clearTimeout(l), l = null);\n\t}, f = () => {\n\t\td(), u && (u = !1, t());\n\t}, p = {\n\t\tnotify() {\n\t\t\tu = !0, c !== null && clearTimeout(c), c = setTimeout(f, Math.max(0, o())), s !== void 0 && l === null && (l = setTimeout(f, Math.max(0, s)));\n\t\t},\n\t\tflush() {\n\t\t\tif (!u) {\n\t\t\t\td();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tf();\n\t\t\t} catch (e) {\n\t\t\t\tconsole.warn(\"[session-notifier] a committed session-changed dispatch threw\", e);\n\t\t\t}\n\t\t}\n\t};\n\treturn n(e, p), i(e), p;\n}\nfunction o(e) {\n\tlet n = t.get(e);\n\tif (n) for (let e of [...n]) e.flush();\n}\n//#endregion\n//#region src/index.ts\nvar s = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"model-set\";\n\t}\n\tconstructor(t, n, r) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tcomposed: !0,\n\t\t\tdetail: {\n\t\t\t\tcomplete: n,\n\t\t\t\tcomponent: t,\n\t\t\t\thasModel: r\n\t\t\t}\n\t\t}), this.component = t, this.complete = n;\n\t}\n}, c = class e extends CustomEvent {\n\tstatic {\n\t\tthis.TYPE = \"session-changed\";\n\t}\n\tconstructor(t, n) {\n\t\tsuper(e.TYPE, {\n\t\t\tbubbles: !0,\n\t\t\tcomposed: !0,\n\t\t\tdetail: {\n\t\t\t\tcomplete: n,\n\t\t\t\tcomponent: t\n\t\t\t}\n\t\t}), this.component = t, this.complete = n;\n\t}\n};\n//#endregion\nexport { s as ModelSetEvent, e as SESSION_COMMIT_METHOD, c as SessionChangedEvent, a as createSessionNotifier, o as flushSessionNotifiers };\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/multi-trait-rubric/src/trait.jsx\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/material/styles';\nimport { color } from '@pie-lib/render-ui';\n\nconst TraitName: any = styled('td')({\n color: color.primaryDark(),\n verticalAlign: 'middle',\n});\n\nconst NoDescription: any = styled('div')({\n color: color.secondaryBackground(),\n textAlign: 'center',\n});\n\nconst Trait = (props) => {\n const { trait, traitIndex, scaleIndex, showStandards, showDescription, scorePointsValues } = props;\n const { name, standards, scorePointsDescriptors, description } = trait || {};\n\n return (\n <tr key={`scale-${scaleIndex}-trait-${traitIndex}`}>\n <TraitName>\n <div dangerouslySetInnerHTML={{ __html: name }} />\n </TraitName>\n\n {showStandards ? (\n <td>\n <div dangerouslySetInnerHTML={{ __html: standards.join(',') }} />\n </td>\n ) : null}\n\n {showDescription ? (\n <td>\n <div dangerouslySetInnerHTML={{ __html: description }} />\n </td>\n ) : null}\n\n {scorePointsValues &&\n scorePointsValues.map((scorePointValue, index) => {\n let scoreDescriptor;\n\n try {\n scoreDescriptor = scorePointsDescriptors[scorePointsValues.length - index - 1] || '';\n } catch (e) {\n scoreDescriptor = '';\n }\n\n return (\n <td key={`table-cell-${index}`}>\n {!scoreDescriptor ? (\n <NoDescription dangerouslySetInnerHTML={{ __html: 'No Description' }} />\n ) : (\n <div dangerouslySetInnerHTML={{ __html: scoreDescriptor }} />\n )}\n </td>\n );\n })}\n </tr>\n );\n};\n\nTrait.propTypes = {\n showStandards: PropTypes.bool,\n showDescription: PropTypes.bool,\n scorePointsValues: PropTypes.arrayOf(PropTypes.number),\n scaleIndex: PropTypes.number,\n traitIndex: PropTypes.number,\n trait: PropTypes.shape({\n name: PropTypes.string,\n standards: PropTypes.arrayOf(PropTypes.string),\n scorePointsDescriptors: PropTypes.arrayOf(PropTypes.string),\n description: PropTypes.string,\n }),\n};\n\nexport default Trait;\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/multi-trait-rubric/src/scale.jsx\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/material/styles';\nimport { color } from '@pie-lib/render-ui';\nimport Trait from './trait.js';\nimport ArrowBackIosIcon from '@mui/icons-material/ArrowBackIos';\nimport ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos';\n\nconst Wrapper: any = styled('div')({\n display: 'flex',\n position: 'relative',\n});\n\nconst TableWrapper: any = styled('div')({\n width: '100%',\n overflow: 'auto',\n});\n\nconst Table: any = styled('table')(({ theme }) => ({\n borderSpacing: 0,\n marginBottom: theme.spacing(2),\n borderRadius: '4px',\n color: color.text(),\n fontSize: theme.typography.fontSize,\n lineHeight: '16px',\n overflow: 'unset',\n\n '& ul, ol': {\n marginBlockStart: 0,\n paddingInlineStart: theme.spacing(2),\n },\n\n '& th': {\n padding: theme.spacing(2),\n textAlign: 'left',\n backgroundColor: color.secondaryBackground(),\n verticalAlign: 'bottom',\n },\n\n '& th div': {\n width: '200px',\n },\n\n '& td': {\n width: '200px',\n padding: `${theme.spacing(2)} ${theme.spacing(1)}`,\n verticalAlign: 'top',\n },\n}));\n\nconst ScorePointHeaderTable: any = styled('table')({\n '& td': {\n border: 0,\n padding: 0,\n textAlign: 'center',\n minWidth: '200px',\n },\n});\n\nconst PointLabel: any = styled('div')({\n marginBottom: '4px',\n});\n\nconst ScorePointValue: any = styled('td')({\n fontWeight: 'normal',\n});\n\nconst ArrowContainer = ({ show, onClick, extraStyles, children }) => (\n <div\n style={{\n height: 'calc(100% - 1px)',\n top: '1px',\n display: show ? 'flex' : 'none',\n width: '50px',\n margin: 'auto',\n position: 'absolute',\n alignItems: 'center',\n justifyContent: 'center',\n cursor: 'pointer',\n ...extraStyles,\n }}\n onClick={onClick}\n >\n {children}\n </div>\n);\n\nArrowContainer.propTypes = {\n show: PropTypes.bool,\n onClick: PropTypes.func,\n extraStyles: PropTypes.object,\n children: PropTypes.object,\n};\n\nclass Scale extends React.Component {\n state = {};\n\n componentDidMount() {\n if (this.tableWrapper) {\n if (this.tableWrapper.offsetWidth < this.tableWrapper.scrollWidth) {\n this.setState({ showRight: true });\n }\n }\n }\n\n scrollLeft: any = () => {\n this.tableWrapper.scrollLeft -= this.tableWrapper.offsetWidth / 2;\n\n this.setState({\n showRight: this.tableWrapper.scrollLeft < this.tableWrapper.scrollWidth,\n showLeft: this.tableWrapper.scrollLeft < this.tableWrapper.scrollWidth && this.tableWrapper.scrollLeft > 0,\n });\n };\n\n scrollRight: any = () => {\n const initialScrollLeft = this.tableWrapper.scrollLeft;\n this.tableWrapper.scrollLeft += this.tableWrapper.offsetWidth / 2;\n\n this.setState({\n showRight:\n initialScrollLeft !== this.tableWrapper.scrollLeft &&\n this.tableWrapper.scrollLeft < this.tableWrapper.scrollWidth,\n showLeft: this.tableWrapper.scrollLeft < this.tableWrapper.scrollWidth && this.tableWrapper.scrollLeft > 0,\n });\n };\n\n render() {\n const { showRight, showLeft } = this.state;\n const { scale, scaleIndex, showDescription, showPointsLabels, showStandards, arrowsDisabled } = this.props;\n const { excludeZero, maxPoints, traitLabel, traits, scorePointsLabels } = scale || {};\n\n let scorePointsValues = [];\n let descriptions;\n let pointsLabels;\n let standards;\n\n try {\n // determining the score points values\n for (let pointValue = maxPoints; pointValue >= excludeZero ? 1 : 0; pointValue -= 1) {\n scorePointsValues.push(pointValue);\n }\n\n const { traitStandards, traitDescriptions } = traits.reduce(\n (tcc, trait) => ({\n traitStandards: [...tcc.traitStandards, ...(trait.standards || [])],\n traitDescriptions: [...tcc.traitDescriptions, ...(trait.description || [])],\n }),\n {\n traitStandards: [],\n traitDescriptions: [],\n },\n );\n\n descriptions = showDescription && traitDescriptions.length;\n pointsLabels = showPointsLabels && scorePointsLabels.length;\n standards = showStandards && traitStandards.length;\n } catch (e) {\n descriptions = false;\n pointsLabels = false;\n standards = false;\n }\n\n return (\n <Wrapper>\n <ArrowContainer\n show={showLeft && !arrowsDisabled}\n onClick={this.scrollLeft}\n extraStyles={{\n left: 0,\n background: `linear-gradient(to right, white, ${color.background()})`,\n }}\n >\n <ArrowBackIosIcon />\n </ArrowContainer>\n\n <TableWrapper\n ref={(ref) => {\n this.tableWrapper = ref;\n }}\n onScroll={() => {\n this.setState({\n // 5 is a margin of error\n showRight:\n this.tableWrapper.scrollLeft + this.tableWrapper.offsetWidth < this.tableWrapper.scrollWidth - 5 &&\n this.tableWrapper.scrollLeft < this.tableWrapper.scrollWidth,\n showLeft:\n this.tableWrapper.scrollLeft < this.tableWrapper.scrollWidth && this.tableWrapper.scrollLeft > 0,\n });\n }}\n >\n {arrowsDisabled && (showRight || showLeft) ? <div>The item is too large to fit in print mode.</div> : null}\n <Table key={`scale-${scaleIndex}`}>\n <thead>\n <tr>\n <th>\n <div dangerouslySetInnerHTML={{ __html: traitLabel }} />\n </th>\n\n {standards ? (\n <th>\n <div>Standard(s)</div>\n </th>\n ) : null}\n\n {descriptions ? (\n <th>\n <div>Description</div>\n </th>\n ) : null}\n\n {scorePointsValues &&\n scorePointsValues.map((scorePointValue, index) => {\n let pointLabel = '';\n\n // to handle the case when there aren't enough labels\n try {\n pointLabel = scorePointsLabels[scorePointsValues.length - index - 1] || '';\n } catch (e) {\n pointLabel = '';\n }\n\n return (\n <th key={`table-header-${index}`}>\n <ScorePointHeaderTable>\n <thead>\n {pointsLabels ? (\n <tr>\n <td>\n <PointLabel\n dangerouslySetInnerHTML={{ __html: pointLabel }}\n />\n </td>\n </tr>\n ) : null}\n <tr>\n <ScorePointValue>\n {scorePointValue === 1 ? `${scorePointValue} point` : `${scorePointValue} points`}\n </ScorePointValue>\n </tr>\n </thead>\n </ScorePointHeaderTable>\n </th>\n );\n })}\n </tr>\n </thead>\n\n <tbody>\n {traits &&\n traits.map((trait, traitIndex) => (\n <Trait\n key={`trait_${scaleIndex}_${traitIndex}`}\n trait={trait}\n traitIndex={traitIndex}\n showDescription={!!descriptions}\n showStandards={!!standards}\n scaleIndex={scaleIndex}\n scorePointsValues={scorePointsValues}\n excludeZero={excludeZero}\n />\n ))}\n </tbody>\n </Table>\n </TableWrapper>\n\n <ArrowContainer\n show={showRight && !arrowsDisabled}\n onClick={this.scrollRight}\n extraStyles={{\n right: 0,\n background: `linear-gradient(to left, white, ${color.background()})`,\n }}\n >\n <ArrowForwardIosIcon />\n </ArrowContainer>\n </Wrapper>\n );\n }\n}\n\nScale.propTypes = {\n scaleIndex: PropTypes.number,\n scale: PropTypes.shape({\n excludeZero: PropTypes.bool,\n maxPoints: PropTypes.number,\n scorePointsLabels: PropTypes.arrayOf(PropTypes.string),\n traitLabel: PropTypes.string,\n traits: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string,\n standards: PropTypes.arrayOf(PropTypes.string),\n scorePointsDescriptors: PropTypes.arrayOf(PropTypes.string),\n description: PropTypes.string,\n }),\n ),\n }),\n showPointsLabels: PropTypes.bool,\n showDescription: PropTypes.bool,\n showStandards: PropTypes.bool,\n arrowsDisabled: PropTypes.bool,\n};\n\nexport default Scale;\n","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getLinkUtilityClass(slot) {\n return generateUtilityClass('MuiLink', slot);\n}\nconst linkClasses = generateUtilityClasses('MuiLink', ['root', 'underlineNone', 'underlineHover', 'underlineAlways', 'button', 'focusVisible']);\nexport default linkClasses;","import { getPath } from '@mui/system/style';\nimport { alpha } from '@mui/system/colorManipulator';\nconst getTextDecoration = ({\n theme,\n ownerState\n}) => {\n const transformedColor = ownerState.color;\n if ('colorSpace' in theme && theme.colorSpace) {\n const color = getPath(theme, `palette.${transformedColor}.main`) || getPath(theme, `palette.${transformedColor}`) || ownerState.color;\n return theme.alpha(color, 0.4);\n }\n\n // check the `main` color first for a custom palette, then fallback to the color itself\n const color = getPath(theme, `palette.${transformedColor}.main`, false) || getPath(theme, `palette.${transformedColor}`, false) || ownerState.color;\n const channelColor = getPath(theme, `palette.${transformedColor}.mainChannel`) || getPath(theme, `palette.${transformedColor}Channel`);\n if ('vars' in theme && channelColor) {\n return `rgba(${channelColor} / 0.4)`;\n }\n return alpha(color, 0.4);\n};\nexport default getTextDecoration;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport composeClasses from '@mui/utils/composeClasses';\nimport isFocusVisible from '@mui/utils/isFocusVisible';\nimport capitalize from \"../utils/capitalize.js\";\nimport { styled, useTheme } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Typography from \"../Typography/index.js\";\nimport linkClasses, { getLinkUtilityClass } from \"./linkClasses.js\";\nimport getTextDecoration from \"./getTextDecoration.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst v6Colors = {\n primary: true,\n secondary: true,\n error: true,\n info: true,\n success: true,\n warning: true,\n textPrimary: true,\n textSecondary: true,\n textDisabled: true\n};\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n component,\n focusVisible,\n underline\n } = ownerState;\n const slots = {\n root: ['root', `underline${capitalize(underline)}`, component === 'button' && 'button', focusVisible && 'focusVisible']\n };\n return composeClasses(slots, getLinkUtilityClass, classes);\n};\nconst LinkRoot = styled(Typography, {\n name: 'MuiLink',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[`underline${capitalize(ownerState.underline)}`], ownerState.component === 'button' && styles.button];\n }\n})(memoTheme(({\n theme\n}) => {\n return {\n variants: [{\n props: {\n underline: 'none'\n },\n style: {\n textDecoration: 'none'\n }\n }, {\n props: {\n underline: 'hover'\n },\n style: {\n textDecoration: 'none',\n '&:hover': {\n textDecoration: 'underline'\n }\n }\n }, {\n props: {\n underline: 'always'\n },\n style: {\n textDecoration: 'underline',\n '&:hover': {\n textDecorationColor: 'inherit'\n }\n }\n }, {\n props: ({\n underline,\n ownerState\n }) => underline === 'always' && ownerState.color !== 'inherit',\n style: {\n textDecorationColor: 'var(--Link-underlineColor)'\n }\n }, {\n props: ({\n underline,\n ownerState\n }) => underline === 'always' && ownerState.color === 'inherit',\n style: theme.colorSpace ? {\n textDecorationColor: theme.alpha('currentColor', 0.4)\n } : null\n }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n underline: 'always',\n color\n },\n style: {\n '--Link-underlineColor': theme.alpha((theme.vars || theme).palette[color].main, 0.4)\n }\n })), {\n props: {\n underline: 'always',\n color: 'textPrimary'\n },\n style: {\n '--Link-underlineColor': theme.alpha((theme.vars || theme).palette.text.primary, 0.4)\n }\n }, {\n props: {\n underline: 'always',\n color: 'textSecondary'\n },\n style: {\n '--Link-underlineColor': theme.alpha((theme.vars || theme).palette.text.secondary, 0.4)\n }\n }, {\n props: {\n underline: 'always',\n color: 'textDisabled'\n },\n style: {\n '--Link-underlineColor': (theme.vars || theme).palette.text.disabled\n }\n }, {\n props: {\n component: 'button'\n },\n style: {\n position: 'relative',\n WebkitTapHighlightColor: 'transparent',\n backgroundColor: 'transparent',\n // Reset default value\n // We disable the focus ring for mouse, touch and keyboard users.\n outline: 0,\n border: 0,\n margin: 0,\n // Remove the margin in Safari\n borderRadius: 0,\n padding: 0,\n // Remove the padding in Firefox\n cursor: 'pointer',\n userSelect: 'none',\n verticalAlign: 'middle',\n MozAppearance: 'none',\n // Reset\n WebkitAppearance: 'none',\n // Reset\n '&::-moz-focus-inner': {\n borderStyle: 'none' // Remove Firefox dotted outline.\n },\n [`&.${linkClasses.focusVisible}`]: {\n outline: 'auto'\n }\n }\n }]\n };\n}));\nconst Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiLink'\n });\n const theme = useTheme();\n const {\n className,\n color = 'primary',\n component = 'a',\n onBlur,\n onFocus,\n TypographyClasses,\n underline = 'always',\n variant = 'inherit',\n sx,\n ...other\n } = props;\n const [focusVisible, setFocusVisible] = React.useState(false);\n const handleBlur = event => {\n if (!isFocusVisible(event.target)) {\n setFocusVisible(false);\n }\n if (onBlur) {\n onBlur(event);\n }\n };\n const handleFocus = event => {\n if (isFocusVisible(event.target)) {\n setFocusVisible(true);\n }\n if (onFocus) {\n onFocus(event);\n }\n };\n const ownerState = {\n ...props,\n color,\n component,\n focusVisible,\n underline,\n variant\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(LinkRoot, {\n color: color,\n className: clsx(classes.root, className),\n classes: TypographyClasses,\n component: component,\n onBlur: handleBlur,\n onFocus: handleFocus,\n ref: ref,\n ownerState: ownerState,\n variant: variant,\n ...other,\n sx: [...(v6Colors[color] === undefined ? [{\n color\n }] : []), ...(Array.isArray(sx) ? sx : [sx])],\n style: {\n ...other.style,\n ...(underline === 'always' && color !== 'inherit' && !v6Colors[color] && {\n '--Link-underlineColor': getTextDecoration({\n theme,\n ownerState\n })\n })\n }\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Link.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the link.\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'success', 'error', 'info', 'warning', 'textPrimary', 'textSecondary', 'textDisabled']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: elementTypeAcceptingRef,\n /**\n * @ignore\n */\n onBlur: PropTypes.func,\n /**\n * @ignore\n */\n onFocus: PropTypes.func,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * `classes` prop applied to the [`Typography`](https://mui.com/material-ui/api/typography/) element.\n */\n TypographyClasses: PropTypes.object,\n /**\n * Controls when the link should have an underline.\n * @default 'always'\n */\n underline: PropTypes.oneOf(['always', 'hover', 'none']),\n /**\n * Applies the theme typography styles.\n * @default 'inherit'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['body1', 'body2', 'button', 'caption', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'inherit', 'overline', 'subtitle1', 'subtitle2']), PropTypes.string])\n} : void 0;\nexport default Link;","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/multi-trait-rubric/src/main.jsx\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nimport Scale from './scale.js';\nimport Link from '@mui/material/Link';\nimport Collapse from '@mui/material/Collapse';\nimport { color, UiLayout as UiLayoutImport } from '@pie-lib/render-ui';\n\nfunction isRenderableReactInteropType(value: any) {\n return (\n typeof value === 'function' ||\n (typeof value === 'object' && value !== null && typeof value.$$typeof === 'symbol')\n );\n}\n\nfunction unwrapReactInteropSymbol(maybeSymbol: any, namedExport?: string) {\n if (!maybeSymbol) return maybeSymbol;\n if (isRenderableReactInteropType(maybeSymbol)) return maybeSymbol;\n if (isRenderableReactInteropType(maybeSymbol.default)) return maybeSymbol.default;\n if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport])) {\n return maybeSymbol[namedExport];\n }\n if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport]?.default)) {\n return maybeSymbol[namedExport].default;\n }\n return maybeSymbol;\n}\nconst UiLayout = unwrapReactInteropSymbol(UiLayoutImport, 'UiLayout') || unwrapReactInteropSymbol(renderUi.UiLayout, 'UiLayout');\nimport * as RenderUiNamespace from '@pie-lib/render-ui';\nconst renderUiNamespaceAny = RenderUiNamespace as any;\nconst renderUiDefaultMaybe = renderUiNamespaceAny['default'];\nconst renderUi =\n renderUiDefaultMaybe && typeof renderUiDefaultMaybe === 'object'\n ? renderUiDefaultMaybe\n : renderUiNamespaceAny;\nclass Main extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n rubricOpen: false,\n linkPrefix: 'Show',\n };\n this.toggleRubric = this.toggleRubric.bind(this);\n }\n\n toggleRubric() {\n this.setState({ rubricOpen: !this.state.rubricOpen });\n this.setState({ linkPrefix: this.state.rubricOpen ? 'Show' : 'Hide' });\n }\n\n render() {\n const { model } = this.props;\n let { animationsDisabled } = this.props;\n const { extraCSSRules, halfScoring, scales, visible, pointLabels, description, standards, arrowsDisabled } =\n model || {};\n animationsDisabled = animationsDisabled || model.animationsDisabled;\n\n if (!scales || !visible) {\n return null;\n }\n\n const rubricItem = (\n <UiLayout\n extraCSSRules={extraCSSRules}\n style={{ fontFamily: 'Cerebri Sans', color: color.text(), backgroundColor: color.background() }}\n >\n {halfScoring ? (\n <div style={{ marginBottom: '16px' }}>* Half-point or in-between scores are permitted under this rubric.</div>\n ) : null}\n\n {scales.map((scale, scaleIndex) => (\n <Scale\n key={`scale_${scaleIndex}`}\n scale={scale}\n scaleIndex={scaleIndex}\n showPointsLabels={pointLabels}\n showDescription={description}\n showStandards={standards}\n arrowsDisabled={arrowsDisabled}\n />\n ))}\n </UiLayout>\n );\n\n if (animationsDisabled) {\n return rubricItem;\n }\n\n return (\n <UiLayout extraCSSRules={extraCSSRules} style={{ color: color.text(), backgroundColor: color.background() }}>\n <Link style={{ backgroundColor: color.background() }} href={this.dudUrl} onClick={this.toggleRubric}>\n {this.state.linkPrefix} Rubric\n </Link>\n <Collapse style={{ marginTop: '16px' }} in={this.state.rubricOpen} timeout={{ enter: 225, exit: 195 }}>\n {rubricItem}\n </Collapse>\n </UiLayout>\n );\n }\n}\n\nMain.propTypes = {\n model: PropTypes.shape({\n halfScoring: PropTypes.bool,\n scales: PropTypes.arrayOf(\n PropTypes.shape({\n excludeZero: PropTypes.bool,\n maxPoints: PropTypes.number,\n scorePointsLabels: PropTypes.arrayOf(PropTypes.string),\n traitLabel: PropTypes.string,\n traits: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string,\n description: PropTypes.string,\n scorePointsDescriptors: PropTypes.arrayOf(PropTypes.string),\n standards: PropTypes.arrayOf(PropTypes.string),\n }),\n ),\n }),\n ),\n visible: PropTypes.bool,\n pointLabels: PropTypes.bool,\n description: PropTypes.bool,\n standards: PropTypes.bool,\n animationsDisabled: PropTypes.bool,\n }),\n animationsDisabled: PropTypes.bool,\n};\n\nexport default Main;\n","// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/multi-trait-rubric/src/index.js\n * @auto-generated\n *\n * This file is automatically synced from pie-elements and converted to TypeScript.\n * Manual edits will be overwritten on next sync.\n * To make changes, edit the upstream JavaScript file and run sync again.\n */\n\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport { ModelSetEvent } from '@pie-element/shared-player-events';\nimport Main from './main.js';\nimport { renderMath } from '@pie-element/shared-math-rendering-mathjax';\n\nexport default class MultiTraitRubric extends HTMLElement {\n constructor() {\n super();\n this._model = {};\n this._session = null;\n this._root = null;\n this._mathObserver = null;\n this._mathRenderPending = false;\n }\n\n // React commits asynchronously, so a queueMicrotask(renderMath) can run before\n // the LaTeX spans are in the DOM and leave raw LaTeX on first render — this is\n // especially visible when this element is mounted inside complex-rubric, which\n // swaps its innerHTML and re-defines the inner element. Observing the DOM and\n // typesetting after each commit keeps math in sync regardless of timing.\n _scheduleMathRender: any = () => {\n if (this._mathRenderPending) return;\n this._mathRenderPending = true;\n\n requestAnimationFrame(() => {\n if (this._mathObserver) {\n this._mathObserver.disconnect();\n }\n renderMath(this);\n this._mathRenderPending = false;\n setTimeout(() => {\n if (this._mathObserver) {\n this._mathObserver.observe(this, { childList: true, subtree: true });\n }\n }, 50);\n });\n };\n\n _initMathObserver() {\n if (this._mathObserver) return;\n this._mathObserver = new MutationObserver(this._scheduleMathRender);\n this._mathObserver.observe(this, { childList: true, subtree: true });\n }\n\n _disconnectMathObserver() {\n if (this._mathObserver) {\n this._mathObserver.disconnect();\n this._mathObserver = null;\n }\n }\n\n set model(s) {\n this._model = s;\n this.dispatchEvent(new ModelSetEvent(this.tagName.toLowerCase(), this._session, !!this._model));\n\n this._render();\n }\n\n set session(s) {\n this._session = s;\n }\n\n get session() {\n return this._session;\n }\n\n connectedCallback() {\n this._initMathObserver();\n this._render();\n }\n\n _render() {\n this._initMathObserver();\n\n const el = React.createElement(Main, { model: this._model, session: this._session });\n\n if (!this._root) {\n this._root = createRoot(this);\n }\n this._root.render(el);\n }\n\n disconnectedCallback() {\n this._disconnectMathObserver();\n if (this._root) {\n this._root.unmount();\n this._root = null;\n }\n }\n}\n"],"x_google_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iB,KAAK,mBAAmB,GAClE,KAAK,cAAc,QAAQ,MAAM;GAAE,WAAW;GAAM,SAAS;EAAK,CAAC;CACrE;CAEA,0BAA0B;EACxB,AAEE,KAAK,mBADL,KAAK,cAAc,WAAW,GACT;CAEzB;CAEA,IAAI,MAAM,GAAG;EAIX,AAHA,KAAK,SAAS,GACd,KAAK,cAAc,IAAI,EAAc,KAAK,QAAQ,YAAY,GAAG,KAAK,UAAU,CAAC,CAAC,KAAK,MAAM,CAAC,GAE9F,KAAK,QAAQ;CACf;CAEA,IAAI,QAAQ,GAAG;EACb,KAAK,WAAW;CAClB;CAEA,IAAI,UAAU;EACZ,OAAO,KAAK;CACd;CAEA,oBAAoB;EAElB,AADA,KAAK,kBAAkB,GACvB,KAAK,QAAQ;CACf;CAEA,UAAU;EACR,KAAK,kBAAkB;EAEvB,IAAM,IAAK,EAAM,cAAc,GAAM;GAAE,OAAO,KAAK;GAAQ,SAAS,KAAK;EAAS,CAAC;EAKnF,AAHA,AACE,KAAK,UAAQ,EAAW,IAAI,GAE9B,KAAK,MAAM,OAAO,CAAE;CACtB;CAEA,uBAAuB;EAErB,AADA,KAAK,wBAAwB,GAC7B,AAEE,KAAK,WADL,KAAK,MAAM,QAAQ,GACN;CAEjB;AACF"}
|
package/dist/index.iife.js
CHANGED
|
@@ -42,7 +42,7 @@ theme.transitions = createTransitions(theme.transitions || {});
|
|
|
42
42
|
export default theme;`}function Ga(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var Ka=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n};function qa(e){Object.assign(e,{alpha(t,n){let r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n==`string`?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,`var(--$1Channel)`)} / ${typeof n==`string`?`calc(${n})`:n})`:di(t,Ka(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Ga(n)})`:mi(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Ga(n)})`:pi(t,n)}})}function Ja(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:c,colorSpace:l,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(b(20));let d=H({...a,colorSpace:l}),f=Er(e),p=un(f,{mixins:Oa(f.breakpoints,r),palette:d,shadows:Ia.slice(),typography:Ma(d,s),transitions:Va(o),zIndex:{...Ha}});return p=un(p,u),p=t.reduce((e,t)=>un(e,t),p),p.unstable_sxConfig={...br,...u?.unstable_sxConfig},p.unstable_sx=function(e){return wr({sx:e,theme:this})},p.toRuntimeSource=Wa,qa(p),p}function Ya(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var Xa=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=Ya(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Za(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function Qa(e){return e===`dark`?Xa:[]}function $a(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=H({...t,colorSpace:i});return{palette:o,opacity:{...Za(o.mode),...n},overlays:r||Qa(o.mode),...a}}function eo(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var to=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],no=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return to(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function ro(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function W(e,t,n){!e[t]&&n&&(e[t]=n)}function io(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:ci(e)}function ao(e,t){`${t}Channel`in e||(e[`${t}Channel`]=oi(io(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
43
43
|
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function oo(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var so=e=>{try{return e()}catch{}},co=(e=`mui`)=>Zi(e);function lo(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=$a({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=Ja({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...Za(a),...n?.opacity},overlays:n?.overlays||Qa(a)},s}function uo(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=eo,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=co(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(b(21,f));let x;o&&(x=`oklch`);let S=lo(x,v,y,u,f);h&&!v.light&&lo(x,v,h,void 0,`light`),g&&!v.dark&&lo(x,v,g,void 0,`dark`);let C={defaultColorScheme:f,...S,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...Da(S.typography),...S.font},spacing:oo(u.spacing)};Object.keys(C.colorSchemes).forEach(e=>{let t=C.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(W(t.common,`background`,`#fff`),W(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(W(t.common,`background`,`#000`),W(t.common,`onBackground`,`#fff`));function r(e,t,n){if(x){let r;return e===fi&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===z&&(r=`#000 ${(n*100).toFixed(0)}%`),e===B&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${x}, ${t}, ${r})`}return e(t,n)}if(ro(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){W(t.Alert,`errorColor`,r(z,o?p(`palette-error-light`):t.error.light,.6)),W(t.Alert,`infoColor`,r(z,o?p(`palette-info-light`):t.info.light,.6)),W(t.Alert,`successColor`,r(z,o?p(`palette-success-light`):t.success.light,.6)),W(t.Alert,`warningColor`,r(z,o?p(`palette-warning-light`):t.warning.light,.6)),W(t.Alert,`errorFilledBg`,n(`palette-error-main`)),W(t.Alert,`infoFilledBg`,n(`palette-info-main`)),W(t.Alert,`successFilledBg`,n(`palette-success-main`)),W(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),W(t.Alert,`errorFilledColor`,so(()=>t.getContrastText(t.error.main))),W(t.Alert,`infoFilledColor`,so(()=>t.getContrastText(t.info.main))),W(t.Alert,`successFilledColor`,so(()=>t.getContrastText(t.success.main))),W(t.Alert,`warningFilledColor`,so(()=>t.getContrastText(t.warning.main))),W(t.Alert,`errorStandardBg`,r(B,o?p(`palette-error-light`):t.error.light,.9)),W(t.Alert,`infoStandardBg`,r(B,o?p(`palette-info-light`):t.info.light,.9)),W(t.Alert,`successStandardBg`,r(B,o?p(`palette-success-light`):t.success.light,.9)),W(t.Alert,`warningStandardBg`,r(B,o?p(`palette-warning-light`):t.warning.light,.9)),W(t.Alert,`errorIconColor`,n(`palette-error-main`)),W(t.Alert,`infoIconColor`,n(`palette-info-main`)),W(t.Alert,`successIconColor`,n(`palette-success-main`)),W(t.Alert,`warningIconColor`,n(`palette-warning-main`)),W(t.AppBar,`defaultBg`,n(`palette-grey-100`)),W(t.Avatar,`defaultBg`,n(`palette-grey-400`)),W(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),W(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),W(t.Chip,`defaultBorder`,n(`palette-grey-400`)),W(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),W(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),W(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),W(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),W(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),W(t.LinearProgress,`primaryBg`,r(B,o?p(`palette-primary-main`):t.primary.main,.62)),W(t.LinearProgress,`secondaryBg`,r(B,o?p(`palette-secondary-main`):t.secondary.main,.62)),W(t.LinearProgress,`errorBg`,r(B,o?p(`palette-error-main`):t.error.main,.62)),W(t.LinearProgress,`infoBg`,r(B,o?p(`palette-info-main`):t.info.main,.62)),W(t.LinearProgress,`successBg`,r(B,o?p(`palette-success-main`):t.success.main,.62)),W(t.LinearProgress,`warningBg`,r(B,o?p(`palette-warning-light`):t.warning.main,.62)),W(t.Skeleton,`bg`,x?r(fi,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),W(t.Slider,`primaryTrack`,r(B,o?p(`palette-primary-main`):t.primary.main,.62)),W(t.Slider,`secondaryTrack`,r(B,o?p(`palette-secondary-main`):t.secondary.main,.62)),W(t.Slider,`errorTrack`,r(B,o?p(`palette-error-main`):t.error.main,.62)),W(t.Slider,`infoTrack`,r(B,o?p(`palette-info-main`):t.info.main,.62)),W(t.Slider,`successTrack`,r(B,o?p(`palette-success-main`):t.success.main,.62)),W(t.Slider,`warningTrack`,r(B,o?p(`palette-warning-main`):t.warning.main,.62));let e=x?r(z,o?p(`palette-background-default`):t.background.default,.6825):gi(t.background.default,.8);W(t.SnackbarContent,`bg`,e),W(t.SnackbarContent,`color`,so(()=>x?_a.text.primary:t.getContrastText(e))),W(t.SpeedDialAction,`fabHoverBg`,gi(t.background.paper,.15)),W(t.StepConnector,`border`,n(`palette-grey-400`)),W(t.StepContent,`border`,n(`palette-grey-400`)),W(t.Switch,`defaultColor`,n(`palette-common-white`)),W(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),W(t.Switch,`primaryDisabledColor`,r(B,o?p(`palette-primary-main`):t.primary.main,.62)),W(t.Switch,`secondaryDisabledColor`,r(B,o?p(`palette-secondary-main`):t.secondary.main,.62)),W(t.Switch,`errorDisabledColor`,r(B,o?p(`palette-error-main`):t.error.main,.62)),W(t.Switch,`infoDisabledColor`,r(B,o?p(`palette-info-main`):t.info.main,.62)),W(t.Switch,`successDisabledColor`,r(B,o?p(`palette-success-main`):t.success.main,.62)),W(t.Switch,`warningDisabledColor`,r(B,o?p(`palette-warning-main`):t.warning.main,.62)),W(t.TableCell,`border`,r(B,fi(o?p(`palette-divider`):t.divider,1),.88)),W(t.Tooltip,`bg`,r(fi,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){W(t.Alert,`errorColor`,r(B,o?p(`palette-error-light`):t.error.light,.6)),W(t.Alert,`infoColor`,r(B,o?p(`palette-info-light`):t.info.light,.6)),W(t.Alert,`successColor`,r(B,o?p(`palette-success-light`):t.success.light,.6)),W(t.Alert,`warningColor`,r(B,o?p(`palette-warning-light`):t.warning.light,.6)),W(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),W(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),W(t.Alert,`successFilledBg`,n(`palette-success-dark`)),W(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),W(t.Alert,`errorFilledColor`,so(()=>t.getContrastText(t.error.dark))),W(t.Alert,`infoFilledColor`,so(()=>t.getContrastText(t.info.dark))),W(t.Alert,`successFilledColor`,so(()=>t.getContrastText(t.success.dark))),W(t.Alert,`warningFilledColor`,so(()=>t.getContrastText(t.warning.dark))),W(t.Alert,`errorStandardBg`,r(z,o?p(`palette-error-light`):t.error.light,.9)),W(t.Alert,`infoStandardBg`,r(z,o?p(`palette-info-light`):t.info.light,.9)),W(t.Alert,`successStandardBg`,r(z,o?p(`palette-success-light`):t.success.light,.9)),W(t.Alert,`warningStandardBg`,r(z,o?p(`palette-warning-light`):t.warning.light,.9)),W(t.Alert,`errorIconColor`,n(`palette-error-main`)),W(t.Alert,`infoIconColor`,n(`palette-info-main`)),W(t.Alert,`successIconColor`,n(`palette-success-main`)),W(t.Alert,`warningIconColor`,n(`palette-warning-main`)),W(t.AppBar,`defaultBg`,n(`palette-grey-900`)),W(t.AppBar,`darkBg`,n(`palette-background-paper`)),W(t.AppBar,`darkColor`,n(`palette-text-primary`)),W(t.Avatar,`defaultBg`,n(`palette-grey-600`)),W(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),W(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),W(t.Chip,`defaultBorder`,n(`palette-grey-700`)),W(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),W(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),W(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),W(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),W(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),W(t.LinearProgress,`primaryBg`,r(z,o?p(`palette-primary-main`):t.primary.main,.5)),W(t.LinearProgress,`secondaryBg`,r(z,o?p(`palette-secondary-main`):t.secondary.main,.5)),W(t.LinearProgress,`errorBg`,r(z,o?p(`palette-error-main`):t.error.main,.5)),W(t.LinearProgress,`infoBg`,r(z,o?p(`palette-info-main`):t.info.main,.5)),W(t.LinearProgress,`successBg`,r(z,o?p(`palette-success-main`):t.success.main,.5)),W(t.LinearProgress,`warningBg`,r(z,o?p(`palette-warning-main`):t.warning.main,.5)),W(t.Skeleton,`bg`,x?r(fi,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),W(t.Slider,`primaryTrack`,r(z,o?p(`palette-primary-main`):t.primary.main,.5)),W(t.Slider,`secondaryTrack`,r(z,o?p(`palette-secondary-main`):t.secondary.main,.5)),W(t.Slider,`errorTrack`,r(z,o?p(`palette-error-main`):t.error.main,.5)),W(t.Slider,`infoTrack`,r(z,o?p(`palette-info-main`):t.info.main,.5)),W(t.Slider,`successTrack`,r(z,o?p(`palette-success-main`):t.success.main,.5)),W(t.Slider,`warningTrack`,r(z,o?p(`palette-warning-light`):t.warning.main,.5));let e=x?r(B,o?p(`palette-background-default`):t.background.default,.985):gi(t.background.default,.98);W(t.SnackbarContent,`bg`,e),W(t.SnackbarContent,`color`,so(()=>x?ha.text.primary:t.getContrastText(e))),W(t.SpeedDialAction,`fabHoverBg`,gi(t.background.paper,.15)),W(t.StepConnector,`border`,n(`palette-grey-600`)),W(t.StepContent,`border`,n(`palette-grey-600`)),W(t.Switch,`defaultColor`,n(`palette-grey-300`)),W(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),W(t.Switch,`primaryDisabledColor`,r(z,o?p(`palette-primary-main`):t.primary.main,.55)),W(t.Switch,`secondaryDisabledColor`,r(z,o?p(`palette-secondary-main`):t.secondary.main,.55)),W(t.Switch,`errorDisabledColor`,r(z,o?p(`palette-error-main`):t.error.main,.55)),W(t.Switch,`infoDisabledColor`,r(z,o?p(`palette-info-main`):t.info.main,.55)),W(t.Switch,`successDisabledColor`,r(z,o?p(`palette-success-main`):t.success.main,.55)),W(t.Switch,`warningDisabledColor`,r(z,o?p(`palette-warning-light`):t.warning.main,.55)),W(t.TableCell,`border`,r(z,fi(o?p(`palette-divider`):t.divider,1),.68)),W(t.Tooltip,`bg`,r(fi,o?p(`palette-grey-700`):t.grey[700],.92))}o||(ao(t.background,`default`),ao(t.background,`paper`),ao(t.common,`background`),ao(t.common,`onBackground`),ao(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&W(t[e],`mainChannel`,oi(io(n.main))),n.light&&W(t[e],`lightChannel`,oi(io(n.light))),n.dark&&W(t[e],`darkChannel`,oi(io(n.dark))),n.contrastText&&W(t[e],`contrastTextChannel`,oi(io(n.contrastText))),e===`text`&&(ao(t[e],`primary`),ao(t[e],`secondary`)),e===`action`&&(n.active&&ao(t[e],`active`),n.selected&&ao(t[e],`selected`)))})}),C=t.reduce((e,t)=>un(e,t),C);let w={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:no(C),enableContrastVars:o},{vars:T,generateThemeVars:E,generateStyleSheets:D}=na(C,w);return C.vars=T,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([e,t])=>{C[e]=t}),C.generateThemeVars=E,C.generateStyleSheets=D,C.generateSpacing=function(){return Kn(u.spacing,Rn(this))},C.getColorSchemeSelector=ra(c),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=s,C.unstable_sxConfig={...br,...u?.unstable_sxConfig},C.unstable_sx=function(e){return wr({sx:e,theme:this})},C.toRuntimeSource=Wa,C}function fo(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:H({...n===!0?{}:n.palette,mode:t})})}function po(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return Ja(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=Ja({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},fo(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},fo(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),uo({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var mo=po();function ho(){let e=Ar(mo);return e.$$material||e}function go(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var _o=e=>go(e)&&e!==`classes`,G=Yr({themeId:x,defaultTheme:mo,rootShouldForwardProp:_o});function vo({theme:e,...t}){let n=`$$material`in e?e[x]:void 0;return(0,L.jsx)(Ii,{...t,themeId:n?x:void 0,theme:n||e})}var K={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:yo,useColorScheme:bo,getInitColorSchemeScript:xo}=Xi({themeId:x,theme:()=>po({cssVariables:!0}),colorSchemeStorageKey:K.colorSchemeStorageKey,modeStorageKey:K.modeStorageKey,defaultColorScheme:{light:K.defaultLightColorScheme,dark:K.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:Ma(e.palette,e.typography)};return t.unstable_sx=function(e){return wr({sx:e,theme:this})},t}}),So=yo;function Co({theme:e,...t}){let n=F.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[x]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,L.jsx)(vo,{theme:n,...t}):(0,L.jsx)(So,{theme:e,...t})}var wo=e=>typeof e==`string`?e:typeof e==`number`?`${e}px`:`30px`,To=({size:e,children:t})=>(e=wo(e),(0,L.jsx)(`div`,{style:{height:e,width:e,display:`inline-block`,position:`relative`},children:t}));To.propTypes={size:y.number,children:y.oneOfType([y.arrayOf(y.node),y.node]).isRequired};var q=({size:e,children:t,sx:n})=>(0,L.jsx)(To,{size:e,children:(0,L.jsx)(`svg`,{preserveAspectRatio:`xMinYMin meet`,viewBox:`0 0 44 40`,style:{enableBackground:`new 0 0 44 40`,...n},children:t})});q.propTypes={size:y.oneOfType([y.string,y.number]),children:y.oneOfType([y.arrayOf(y.node),y.node]).isRequired,sx:y.object};var Eo=({fill:e})=>(0,L.jsx)(`polygon`,{points:`17.4,26.9 10.1,20.6 12.8,17.5 16.3,20.5 22.3,9.7 25.9,11.7`,fill:e});Eo.propTypes={fill:y.string.isRequired};var Do=({fill:e})=>(0,L.jsx)(`polygon`,{transform:`translate(2, 0)`,points:`34.1,28.6 34.1,2.2 2,2.2 2,34.3 40.1,34.3`,fill:e});Do.propTypes={fill:y.string.isRequired};var Oo=({fill:e})=>(0,L.jsx)(`path`,{transform:`translate(1, 0)`,d:`M31.2,29.1v-0.3c2.2-2.8,3.6-6.3,3.6-10.1c0-8.9-7.2-16.1-16.1-16.1c-8.8,0.1-16,7.3-16,16.2 s7.2,16.1,16.1,16.1h18.5L31.2,29.1z`,fill:e});Oo.propTypes={fill:y.string.isRequired};var ko=({fill:e})=>(0,L.jsx)(`circle`,{transform:`translate(-3,0)`,cx:`23`,cy:`20.4`,r:`16`,fill:e});ko.propTypes={fill:y.string.isRequired};var Ao=({fill:e})=>(0,L.jsx)(`rect`,{x:`3.6`,y:`4.1`,width:`32`,height:`32`,fill:e});Ao.propTypes={fill:y.string.isRequired};var jo=(e,t)=>{class n extends F.Component{static propTypes={iconSet:y.oneOf([`emoji`,`check`]),shape:y.oneOf([`round`,`square`]),category:y.oneOf([`feedback`,void 0]),open:y.bool,size:y.oneOfType([y.number,y.string]),fg:y.string,bg:y.string};static defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,size:30,fg:`#4aaf46`,bg:`#f8ffe2`};render(){let{iconSet:n,shape:r,category:i,open:a,size:o,fg:s,bg:c}=this.props,l=n===`check`?(0,L.jsx)(e,{fill:s}):(0,L.jsx)(t,{fill:s}),u=n===`check`?(0,L.jsx)(e,{fill:c}):(0,L.jsx)(t,{fill:c});return a?(0,L.jsx)(q,{size:o,children:u}):(0,L.jsxs)(q,{size:o,children:[i===`feedback`?r===`round`?(0,L.jsx)(Oo,{fill:c}):(0,L.jsx)(Do,{fill:c}):r===`round`?(0,L.jsx)(ko,{fill:c}):(0,L.jsx)(Ao,{fill:c}),l]})}}return n},Mo=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(1, 0)`,children:[(0,L.jsx)(`path`,{d:`M24.7,22.1c-1.5,1.7-3.6,2.7-5.8,2.7s-4.5-1.1-5.8-2.7l-2.8,1.6c2,2.7,5.2,4.2,8.7,4.2
|
|
44
44
|
c3.4,0,6.6-1.6,8.7-4.2L24.7,22.1z`,fill:e}),(0,L.jsx)(`rect`,{x:`21.1`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e}),(0,L.jsx)(`rect`,{x:`12.7`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e})]});Mo.propTypes={fill:y.string.isRequired};var No=({fill:e,x:t=0,y:n=0})=>(0,L.jsx)(`polygon`,{transform:`translate(${t}, ${n})`,points:`19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4`,fill:e});No.propTypes={fill:y.string.isRequired,x:y.number,y:y.number};var Po=jo(No,Mo);Po.propTypes={iconSet:y.oneOf([`emoji`,`check`]),shape:y.oneOf([`round`,`square`]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string,size:y.oneOfType([y.string,y.number])},Po.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#f8ffe2`,size:30};var Fo=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(0.5, 0.5)`,children:[(0,L.jsx)(`rect`,{x:`11`,y:`17.3`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)`,width:`16.6`,height:`3.7`,fill:e}),(0,L.jsx)(`rect`,{x:`17.4`,y:`10.7`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)`,width:`3.7`,height:`16.6`,fill:e})]});Fo.propTypes={fill:y.string.isRequired};var Io=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(1,0)`,children:[(0,L.jsx)(`rect`,{x:`21`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,L.jsx)(`rect`,{x:`12.7`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,L.jsx)(`rect`,{x:`12.2`,y:`22.5`,width:`13`,height:`3.3`,fill:e})]});Io.propTypes={fill:y.string.isRequired};var Lo=jo(Fo,Io);Lo.propTypes={iconSet:y.oneOf([`emoji`,`check`]),shape:y.oneOf([`round`,`square`]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string,size:y.oneOfType([y.string,y.number])},Lo.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30};var Ro=({fill:e})=>(0,L.jsxs)(`g`,{children:[(0,L.jsx)(`rect`,{x:`19.3`,y:`10.3`,width:`4.5`,height:`12.7`,fill:e}),(0,L.jsx)(`rect`,{x:`19.3`,y:`26.2`,width:`4.5`,height:`4.5`,fill:e})]});Ro.propTypes={fill:y.string.isRequired};var zo=({fill:e})=>(0,L.jsx)(`polygon`,{points:`14.8,4.5 5.6,13.8 5.6,27 14.8,36.5 28.1,36.5 37.6,27 37.6,13.8 28.1,4.5`,fill:e});zo.propTypes={fill:y.string.isRequired};var Bo=({fill:e})=>(0,L.jsxs)(`g`,{children:[(0,L.jsx)(`rect`,{x:`23.8`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,L.jsx)(`rect`,{x:`16`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,L.jsx)(`path`,{d:`M24.2,27.1h-5.1c-0.8,0-1.5-0.7-1.5-1.5v0c0-0.8,0.7-1.5,1.5-1.5h5.1c0.8,0,1.5,0.7,1.5,1.5v0
|
|
45
|
-
C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});Bo.propTypes={fill:y.string.isRequired};var Vo=class extends F.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Ro,{fill:t})]}),emoji:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),feedback:{check:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),emoji:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),square:{check:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Ro,{fill:t})]}),emoji:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),open:{check:(0,L.jsx)(q,{children:(0,L.jsx)(Ro,{fill:n})}),emoji:(0,L.jsx)(q,{children:(0,L.jsx)(Bo,{fill:n})})}}}}}render(){let{iconSet:e,category:t,shape:n,open:r}=this.props;return t===void 0?this.icons[e]:n===void 0?this.icons.feedback[e]:r===!0?this.icons.feedback.square.open[e]:this.icons.feedback.square[e]}};Vo.propTypes={iconSet:y.oneOf([`emoji`,`check`,void 0]),shape:y.oneOf([`square`,void 0]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string},Vo.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var Ho=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,L.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,L.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});Ho.propTypes={fill:y.string.isRequired};var Uo=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,L.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,L.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,L.jsx)(`rect`,{x:`10.9`,y:`22.9`,transform:`matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)`,width:`14.3`,height:`3.7`,fill:e})]});Uo.propTypes={fill:y.string.isRequired};var Wo=jo(Ho,Uo);Wo.propTypes={iconSet:y.oneOf([`emoji`,`check`]),shape:y.oneOf([`round`,`square`]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string,size:y.oneOfType([y.string,y.number])},Wo.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function Go(e){return typeof e==`string`}function Ko(){return Pr}function qo(e){return Oi(e)}function Jo(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var Yo=Jo;function Xo(e){return e&&e.ownerDocument||document}var Zo=Xo;function Qo(e){return Xo(e).defaultView||window}var $o=Qo,es={};function ts(e,t){let n=F.useRef(es);return n.current===es&&(n.current=e(t)),n}var ns=[];function rs(e){F.useEffect(e,ns)}var is=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function as(){let e=ts(is.create).current;return rs(e.disposeEffect),e}function os(e){return e?.ref||null}function ss(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function cs(e,t){return cs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cs(e,t)}function ls(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cs(e,t)}function us(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function ds(e,t){e.classList?e.classList.add(t):us(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function fs(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function ps(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=fs(e.className,t):e.setAttribute(`class`,fs(e.className&&e.className.baseVal||``,t))}var ms={disabled:!1},hs=F.createContext(null),gs=function(e){return e.scrollTop},_s=l(h()),vs=`unmounted`,ys=`exited`,bs=`entering`,xs=`entered`,Ss=`exiting`,Cs=function(e){ls(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=ys,r.appearStatus=bs):o=xs:o=t.unmountOnExit||t.mountOnEnter?vs:ys,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:ys}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=bs):(n===`entering`||n===`entered`)&&(t=Ss)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:_s.findDOMNode(this);n&&gs(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:vs})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[_s.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||ms.disabled){this.safeSetState({status:xs},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:bs},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:xs},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:_s.findDOMNode(this);if(!t||ms.disabled){this.safeSetState({status:ys},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:Ss},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:ys},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:_s.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=ss(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return F.createElement(hs.Provider,{value:null},typeof n==`function`?n(e,r):F.cloneElement(F.Children.only(n),r))},t}(F.Component);Cs.contextType=hs,Cs.propTypes={};function ws(){}Cs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ws,onEntering:ws,onEntered:ws,onExit:ws,onExiting:ws,onExited:ws},Cs.UNMOUNTED=vs,Cs.EXITED=ys,Cs.ENTERING=bs,Cs.ENTERED=xs,Cs.EXITING=Ss;var Ts=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return ds(e,t)})},Es=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return ps(e,t)})},Ds=function(e){ls(t,e);function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=e.call.apply(e,[this].concat(r))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&gs(e),r&&(this.appliedClasses[t][n]=r,Ts(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&Es(e,r),i&&Es(e,i),a&&Es(e,a)},n.render=function(){var e=this.props;e.classNames;var t=ss(e,[`classNames`]);return F.createElement(Cs,S({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(F.Component);Ds.defaultProps={classNames:``},Ds.propTypes={};function Os(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function ks(e,t){var n=function(e){return t&&(0,F.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&F.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function As(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function js(e,t,n){return n[t]==null?e.props[t]:n[t]}function Ms(e,t){return ks(e.children,function(n){return(0,F.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:js(n,`appear`,e),enter:js(n,`enter`,e),exit:js(n,`exit`,e)})})}function Ns(e,t,n){var r=ks(e.children),i=As(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,F.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,F.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,F.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:js(o,`exit`,e),enter:js(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,F.cloneElement)(o,{in:!1}):c&&s&&(0,F.isValidElement)(l)&&(i[a]=(0,F.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:js(o,`exit`,e),enter:js(o,`enter`,e)}))}}),i}var Ps=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Fs={component:`div`,childFactory:function(e){return e}},Is=function(e){ls(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(Os(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?Ms(e,r):Ns(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=ks(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=S({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=ss(e,[`component`,`childFactory`]),i=this.state.contextValue,a=Ps(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?F.createElement(hs.Provider,{value:i},a):F.createElement(hs.Provider,{value:i},F.createElement(t,r,a))},t}(F.Component);Is.propTypes={},Is.defaultProps=Fs;var Ls=e=>e.scrollTop;function Rs(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function zs(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function Bs(e,t){let{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function Vs(...e){let t=F.useRef(void 0),n=F.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return F.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var Hs=Vs;function Us(e){return`scale(${e}, ${e**2})`}var Ws={entering:{opacity:1,transform:Us(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:Us(.75)},exited:{opacity:0,transform:Us(.75)}},Gs={opacity:0,transform:Us(.75),visibility:`hidden`},Ks=F.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,easing:a,in:o,onEnter:s,onEntered:c,onEntering:l,onExit:u,onExited:d,onExiting:f,style:p,timeout:m=`auto`,...h}=e,g=as(),_=F.useRef(),v=ho(),y=F.useRef(null),b=Hs(y,os(i),t),x=Rs(y,l),S=Rs(y,(e,t)=>{Ls(e);let{duration:n,delay:r,easing:i}=Bs({style:p,timeout:m,easing:a},{mode:`enter`}),o;m===`auto`?(o=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=o):o=n,e.style.transition=[v.transitions.create(`opacity`,{duration:o,delay:r}),v.transitions.create(`transform`,{duration:o*.666,delay:r,easing:i})].join(`,`),s&&s(e,t)}),C=Rs(y,c),w=Rs(y,f),T=Rs(y,e=>{let{duration:t,delay:n,easing:r}=Bs({style:p,timeout:m,easing:a},{mode:`exit`}),i;m===`auto`?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):i=t,e.style.transition=[v.transitions.create(`opacity`,{duration:i,delay:n}),v.transitions.create(`transform`,{duration:i*.666,delay:n||i*.333,easing:r})].join(`,`),e.style.opacity=0,e.style.transform=Us(.75),u&&u(e)}),E=Rs(y,e=>{e.style.transition=``,d&&d(e)});return(0,L.jsx)(Cs,{appear:r,in:o,nodeRef:y,onEnter:S,onEntered:C,onEntering:x,onExit:T,onExited:E,onExiting:w,addEndListener:e=>{m===`auto`&&g.start(_.current||0,e),n&&n(y.current,e)},timeout:m===`auto`?null:m,...h,children:(e,{ownerState:t,...n})=>{let r=zs(e,o,Ws,Gs,p,i.props.style);return F.cloneElement(i,{style:r,ref:b,...n})}})});Ks&&(Ks.muiSupportAuto=!0);function qs(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Js(e){let t=Xo(e);return t.body===e?Qo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ys(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function Xs(e){return parseFloat(Qo(e).getComputedStyle(e).paddingRight)||0}function Zs(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function Qs(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!Zs(e);t&&n&&Ys(e,i)})}function $s(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function ec(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(Js(r)){let e=qs(Qo(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${Xs(r)+e}px`;let t=Xo(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${Xs(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Xo(r).body;else{let t=r.parentElement,n=Qo(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function tc(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var nc=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Ys(e.modalRef,!1);let r=tc(t);Qs(t,e.mount,e.modalRef,r,!0);let i=$s(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=$s(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=ec(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=$s(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&Ys(e.modalRef,t),Qs(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&Ys(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function rc(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}var ic=rc;function ac(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var oc=ac,sc=`data-mui-focusable`;function cc(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${sc}]`):null}var lc=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function uc(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function dc(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function fc(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||dc(e))}function pc(e){let t=[],n=[];return Array.from(e.querySelectorAll(lc)).forEach((e,r)=>{let i=uc(e);i===-1||!fc(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function mc(){return!0}function hc(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=pc,isEnabled:o=mc,open:s}=e,c=F.useRef(!1),l=F.useRef(null),u=F.useRef(null),d=F.useRef(null),f=F.useRef(null),p=F.useRef(!1),m=F.useRef(null),h=Vs(os(t),m),g=F.useRef(null);F.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),F.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=oc(Xo(m.current)),t=cc(m.current)??m.current;return ic(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),F.useEffect(()=>{if(!s||!m.current)return;let e=Xo(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&oc(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=oc(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(ic(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=oc(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,L.jsxs)(F.Fragment,{children:[(0,L.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),F.cloneElement(t,{ref:h,onFocus:_}),(0,L.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function J(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function gc(e){return typeof e==`function`?e():e}var _c=F.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=F.useState(null),s=Vs(F.isValidElement(n)?os(n):null,t);if(ei(()=>{i||o(gc(r)||document.body)},[r,i]),ei(()=>{if(a&&!i)return J(t,a),()=>{J(t,null)}},[t,a,i]),i){if(F.isValidElement(n)){let e={ref:s};return F.cloneElement(n,e)}return n}return a&&_s.createPortal(n,a)}),vc=Ri;function yc(e,t,n){return e===void 0||Go(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function bc(e,t,n){return typeof e==`function`?e(t,n):e}function xc(e,t=[]){if(e===void 0)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]==`function`&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Sc(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function Cc(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=R(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=xc({...i,...r}),s=Sc(r),c=Sc(i),l=t(o),u=R(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function wc(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=bc(d[e],i),{props:{component:h,...g},internalRef:_}=Cc({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=Vs(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,yc(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}var Tc={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Ec={opacity:0,visibility:`hidden`},Dc=F.forwardRef(function(e,t){let n=ho(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:g=r,..._}=e,v=F.useRef(null),y=Hs(v,os(o),t),b=Rs(v,d),x=Rs(v,(e,t)=>{Ls(e);let r=Bs({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=Rs(v,u),C=Rs(v,m),w=Rs(v,e=>{let t=Bs({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=Rs(v,e=>{e.style.transition=``,p&&p(e)});return(0,L.jsx)(Cs,{appear:a,in:c,nodeRef:v,onEnter:x,onEntered:S,onEntering:b,onExit:w,onExited:T,onExiting:C,addEndListener:e=>{i&&i(v.current,e)},timeout:g,..._,children:(e,{ownerState:t,...n})=>{let r=zs(e,c,Tc,Ec,h,o.props.style);return F.cloneElement(o,{style:r,ref:y,...n})}})});function Oc(e){return zr(`MuiBackdrop`,e)}Br(`MuiBackdrop`,[`root`,`invisible`]);var kc=e=>{let{classes:t,invisible:n}=e;return ia({root:[`root`,n&&`invisible`]},Oc,t)},Ac=G(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),jc=F.forwardRef(function(e,t){let n=qo({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,components:c={},componentsProps:l={},slotProps:u={},slots:d={},TransitionComponent:f,transitionDuration:p,...m}=n,h={...n,component:a,invisible:o},g=kc(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=wc(`root`,{elementType:Ac,externalForwardedProps:_,className:R(g.root,i),ownerState:h}),[b,x]=wc(`transition`,{elementType:Dc,externalForwardedProps:_,ownerState:h});return(0,L.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,L.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function Mc(e){let t=F.useRef(e);return ei(()=>{t.current=e}),F.useRef((...e)=>(0,t.current)(...e)).current}function Nc(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Pc(e){return typeof e==`function`?e():e}function Fc(e){return e?e.props.hasOwnProperty(`in`):!1}var Ic=()=>{},Lc=new nc;function Rc(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:c,open:l,rootRef:u}=e,d=F.useRef({}),f=F.useRef(null),p=F.useRef(null),m=Vs(p,u),[h,g]=F.useState(!l),_=Fc(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>Xo(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{Lc.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=Mc(()=>{let e=Pc(t)||y().body;Lc.add(b(),e),p.current&&x()}),C=()=>Lc.isTopModal(b()),w=Mc(e=>{f.current=e,e&&(l&&C()?x():p.current&&Ys(p.current,v))}),T=F.useCallback(()=>{Lc.remove(b(),v)},[v]);F.useEffect(()=>()=>{T()},[T]),F.useEffect(()=>{l?S():(!_||!i)&&T()},[l,T,_,i,S]);let E=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!C())&&(n||(t.stopPropagation(),c&&c(t,`escapeKeyDown`)))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=xc(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:l}},getTransitionProps:()=>({onEnter:Nc(()=>{g(!1),a&&a()},s?.props.onEnter??Ic),onExited:Nc(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??Ic)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function zc(e){return zr(`MuiModal`,e)}Br(`MuiModal`,[`root`,`hidden`,`backdrop`]);var Bc=e=>{let{open:t,exited:n,classes:r}=e;return ia({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},zc,r)},Vc=G(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(vc(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),Hc=G(jc,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),Uc=F.forwardRef(function(e,t){let n=qo({name:`MuiModal`,props:e}),{BackdropComponent:r=Hc,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:x,onTransitionEnter:S,onTransitionExited:C,open:w,slotProps:T={},slots:E={},theme:D,...O}=n,ee={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:te,getBackdropProps:k,getTransitionProps:A,portalRef:ne,isTopModal:j,exited:re,hasTransition:ie}=Rc({...ee,rootRef:t}),ae={...ee,exited:re},oe=Bc(ae),M={};if(c.props.tabIndex===void 0&&(M.tabIndex=`-1`),ie){let{onEnter:e,onExited:t}=A();M.onEnter=e,M.onExited=t}let se={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[N,ce]=wc(`root`,{ref:t,elementType:Vc,externalForwardedProps:{...se,...O,component:u},getSlotProps:te,ownerState:ae,className:R(o,oe?.root,!ae.open&&ae.exited&&oe?.hidden)}),[le,ue]=wc(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:se,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>k({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:R(i?.className,oe?.backdrop),ownerState:ae});return!b&&!w&&(!ie||re)?null:(0,L.jsx)(_c,{ref:ne,container:l,disablePortal:g,children:(0,L.jsxs)(N,{...ce,children:[!y&&r?(0,L.jsx)(le,{...ue}):null,(0,L.jsx)(hc,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:j,open:w,children:F.cloneElement(c,M)})]})})});function Wc(e){return zr(`MuiPaper`,e)}Br(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`));var Y=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return ia({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},Wc,i)},Gc=G(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(vc(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),Kc=F.forwardRef(function(e,t){let n=qo({props:e,name:`MuiPaper`}),r=ho(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=Y(u);return(0,L.jsx)(Gc,{as:a,ownerState:u,className:R(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${di(`#fff`,Ya(o))}, ${di(`#fff`,Ya(o))})`}},...l.style}})});function qc(e){return zr(`MuiPopover`,e)}Br(`MuiPopover`,[`root`,`paper`]);var X=Tn;function Jc(e){return zr(`MuiSvgIcon`,e)}Br(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var Yc=e=>{let{color:t,fontSize:n,classes:r}=e;return ia({root:[`root`,t!==`inherit`&&`color${X(t)}`,`fontSize${X(n)}`]},Jc,r)},Xc=G(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${X(n.color)}`],t[`fontSize${X(n.fontSize)}`]]}})(vc(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),Zc=F.forwardRef(function(e,t){let n=qo({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=F.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=Yc(m);return(0,L.jsxs)(Xc,{as:o,className:R(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,L.jsx)(`title`,{children:u}):null]})});Zc.muiName=`SvgIcon`;function Qc(e,t){function n(t,n){return(0,L.jsx)(Zc,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Zc.muiName,F.memo(F.forwardRef(n))}var $c=aa,el=ei,tl=Mi,nl=Mc;function rl(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function il(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{rl(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=R(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=R(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function al(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function ol(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function sl(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function cl(e){return typeof e==`function`?e():e}var ll=e=>{let{classes:t}=e;return ia({root:[`root`],paper:[`paper`]},qc,t)},ul=G(Uc,{name:`MuiPopover`,slot:`Root`})({}),dl=G(Kc,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),fl=F.forwardRef(function(e,t){let n=qo({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,elevation:d=8,marginThreshold:f=16,open:p,PaperProps:m={},slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},TransitionComponent:v,transitionDuration:y=`auto`,TransitionProps:b={},disableScrollLock:x=!1,...S}=n,C=F.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=ll(w),E=F.useCallback(()=>{if(s===`anchorPosition`)return o;let e=cl(i),t=(e&&e.nodeType===1?e:Zo(C.current).body).getBoundingClientRect();return{top:t.top+al(t,a.vertical),left:t.left+ol(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=F.useCallback(e=>({vertical:al(e,_.vertical),horizontal:ol(e,_.horizontal)}),[_.horizontal,_.vertical]),O=F.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:sl(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=$o(cl(i)),d=u.innerHeight-f,p=u.innerWidth-f;if(f!==null&&a<f){let e=a-f;a-=e,n.vertical+=e}else if(f!==null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(f!==null&&o<f){let e=o-f;o-=e,n.horizontal+=e}else if(l>p){let e=l-p;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:sl(n)}},[i,s,E,D,f]),[ee,te]=F.useState(p),k=F.useCallback(()=>{let e=C.current;if(!e)return;let t=O(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,te(!0)},[O]);F.useEffect(()=>(x&&window.addEventListener(`scroll`,k),()=>window.removeEventListener(`scroll`,k)),[i,x,k]);let A=()=>{k()},ne=()=>{te(!1)};F.useEffect(()=>{p&&k()}),F.useImperativeHandle(r,()=>p?{updatePosition:()=>{k()}}:null,[p,k]),F.useEffect(()=>{if(!p)return;let e=Yo(()=>{k()}),t=$o(cl(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,k]);let j=y,re={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[ie,ae]=wc(`transition`,{elementType:Ks,externalForwardedProps:re,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),A()},onExited:t=>{e.onExited?.(t),ne()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!ie.muiSupportAuto&&(j=void 0);let oe=u||(i?Zo(cl(i)).body:void 0),[M,{slots:se,slotProps:N,...ce}]=wc(`root`,{ref:t,elementType:ul,externalForwardedProps:{...re,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:il(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:oe,open:p},ownerState:w,className:R(T.root,l)}),[le,ue]=wc(`paper`,{ref:C,className:T.paper,elementType:dl,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:ee?void 0:{opacity:0}},ownerState:w});return(0,L.jsx)(M,{...ce,...!Go(M)&&{slots:se,slotProps:N,disableScrollLock:x},children:(0,L.jsx)(ie,{...ae,timeout:j,children:(0,L.jsx)(le,{...ue,children:c})})})}),pl={50:`#fce4ec`,100:`#f8bbd0`,200:`#f48fb1`,300:`#f06292`,400:`#ec407a`,500:`#e91e63`,600:`#d81b60`,700:`#c2185b`,800:`#ad1457`,900:`#880e4f`,A100:`#ff80ab`,A200:`#ff4081`,A400:`#f50057`,A700:`#c51162`},ml={50:`#e8eaf6`,100:`#c5cae9`,200:`#9fa8da`,300:`#7986cb`,400:`#5c6bc0`,500:`#3f51b5`,600:`#3949ab`,700:`#303f9f`,800:`#283593`,900:`#1a237e`,A100:`#8c9eff`,A200:`#536dfe`,A400:`#3d5afe`,A700:`#304ffe`},hl=s({background:()=>$,backgroundDark:()=>zl,black:()=>Ql,blueGrey100:()=>ou,blueGrey300:()=>su,blueGrey600:()=>cu,blueGrey900:()=>lu,border:()=>Gl,borderDark:()=>ql,borderGray:()=>Jl,borderLight:()=>Kl,buttonBorder:()=>gu,buttonFocusOutline:()=>au,buttonHoverBg:()=>_u,correct:()=>xl,correctSecondary:()=>Sl,correctTertiary:()=>Cl,correctWithIcon:()=>wl,defaults:()=>Z,disabled:()=>vl,disabledSecondary:()=>yl,disabledText:()=>bl,dropdownBackground:()=>Vl,fadedPrimary:()=>Pl,focusChecked:()=>tu,focusCheckedBorder:()=>nu,focusUnchecked:()=>ru,focusUncheckedBorder:()=>iu,incorrect:()=>Tl,incorrectSecondary:()=>Dl,incorrectWithIcon:()=>El,keyBoardFocusIndicator:()=>hu,keypadButton:()=>uu,keypadButtonHover:()=>pu,keypadButtonOperator:()=>du,keypadButtonOperatorHover:()=>mu,keypadEmptyPlaceholder:()=>fu,missing:()=>Ol,missingWithIcon:()=>kl,primary:()=>Al,primaryDark:()=>Ml,primaryLight:()=>jl,primaryText:()=>Nl,secondary:()=>Fl,secondaryBackground:()=>Bl,secondaryDark:()=>Ll,secondaryLight:()=>Il,secondaryText:()=>Rl,surface:()=>Hl,tableGrid:()=>Yl,tableGridLight:()=>Xl,tableStripe:()=>Zl,tertiary:()=>Ul,tertiaryLight:()=>Wl,text:()=>_l,transparent:()=>eu,v:()=>gl,visualElementsColors:()=>vu,white:()=>$l}),Z={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:pa[500],CORRECT_SECONDARY:pa[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:ua[500],INCORRECT_SECONDARY:la[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:la[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:ml[500],PRIMARY_LIGHT:ml[200],PRIMARY_DARK:ml[800],SECONDARY:pl.A400,SECONDARY_LIGHT:pl[200],SECONDARY_DARK:pl[900],TERTIARY:`#146EB3`,TERTIARY_LIGHT:`#D0E2F0`,BACKGROUND:`rgba(255,255,255,0)`,BACKGROUND_DARK:`#ECEDF1`,DROPDOWN_BACKGROUND:`#E0E1E6`,SECONDARY_BACKGROUND:`rgba(241,241,241,1)`,SURFACE:`#E0E1E6`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#646464`,BORDER_GRAY:`#7E8494`,TABLE_GRID:`black`,TABLE_GRID_LIGHT:`#dfe2e5`,TABLE_STRIPE:`#f6f8fa`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BUTTON_FOCUS_OUTLINE:`#3B82F6`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#C0C3CF`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`,KEYPAD_BUTTON:`rgb(188, 194, 229)`,KEYPAD_BUTTON_OPERATOR:`rgb(255, 159, 192)`,KEYPAD_EMPTY_PLACEHOLDER:`rgba(245, 0, 87, 0.4)`,KEYPAD_BUTTON_HOVER:`rgb(214, 218, 239)`,KEYPAD_BUTTON_OPERATOR_HOVER:`rgb(255, 197, 217)`,KEY_BOARD_FOCUS_INDICATOR:`#2B87FF`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(Z);var gl=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},Q=gl(`pie`),_l=()=>Q(`text`,Z.TEXT),vl=()=>Q(`disabled`,Z.DISABLED),yl=()=>Q(`disabled-secondary`,Z.DISABLED_SECONDARY),bl=()=>Q(`disabled-text`,`text`,Z.DISABLED_TEXT),xl=()=>Q(`correct`,Z.CORRECT),Sl=()=>Q(`correct-secondary`,Z.CORRECT_SECONDARY),Cl=()=>Q(`correct-tertiary`,Z.CORRECT_TERTIARY),wl=()=>Q(`correct-icon`,Z.CORRECT_WITH_ICON),Tl=()=>Q(`incorrect`,Z.INCORRECT),El=()=>Q(`incorrect-icon`,Z.INCORRECT_WITH_ICON),Dl=()=>Q(`incorrect-secondary`,Z.INCORRECT_SECONDARY),Ol=()=>Q(`missing`,Z.MISSING),kl=()=>Q(`missing-icon`,Z.MISSING_WITH_ICON),Al=()=>Q(`primary`,Z.PRIMARY),jl=()=>Q(`primary-light`,Z.PRIMARY_LIGHT),Ml=()=>Q(`primary-dark`,Z.PRIMARY_DARK),Nl=()=>Q(`primary-text`,`text`,Z.TEXT),Pl=()=>Q(`faded-primary`,Z.FADED_PRIMARY),Fl=()=>Q(`secondary`,Z.SECONDARY),Il=()=>Q(`secondary-light`,Z.SECONDARY_LIGHT),Ll=()=>Q(`secondary-dark`,Z.SECONDARY_DARK),Rl=()=>Q(`secondary-text`,`text`,Z.TEXT),$=()=>Q(`background`,Z.BACKGROUND),zl=()=>Q(`background-dark`,Z.BACKGROUND_DARK),Bl=()=>Q(`secondary-background`,Z.SECONDARY_BACKGROUND),Vl=()=>Q(`dropdown-background`,Z.DROPDOWN_BACKGROUND),Hl=()=>Q(`surface`,Z.SURFACE),Ul=()=>Q(`tertiary`,Z.TERTIARY),Wl=()=>Q(`tertiary-light`,Z.TERTIARY_LIGHT),Gl=()=>Q(`border`,Z.BORDER),Kl=()=>Q(`border-light`,Z.BORDER_LIGHT),ql=()=>Q(`border-dark`,Z.BORDER_DARK),Jl=()=>Q(`border-gray`,Z.BORDER_GRAY),Yl=()=>Q(`table-grid`,`text`,Z.TABLE_GRID),Xl=()=>Q(`table-grid-light`,`border-light`,Z.TABLE_GRID_LIGHT),Zl=()=>Q(`table-stripe`,`background-dark`,Z.TABLE_STRIPE),Ql=()=>Q(`black`,Z.BLACK),$l=()=>Q(`white`,Z.WHITE),eu=()=>Z.TRANSPARENT,tu=()=>Q(`focus-checked`,Z.FOCUS_CHECKED),nu=()=>Q(`focus-checked-border`,Z.FOCUS_CHECKED_BORDER),ru=()=>Q(`focus-unchecked`,Z.FOCUS_UNCHECKED),iu=()=>Q(`focus-unchecked-border`,Z.FOCUS_UNCHECKED_BORDER),au=()=>Q(`button-focus-outline`,Z.BUTTON_FOCUS_OUTLINE),ou=()=>Q(`blue-grey-100`,Z.BLUE_GREY100),su=()=>Q(`blue-grey-300`,Z.BLUE_GREY300),cu=()=>Q(`blue-grey-600`,Z.BLUE_GREY600),lu=()=>Q(`blue-grey-900`,Z.BLUE_GREY900),uu=()=>Q(`keypad-button`,Z.KEYPAD_BUTTON),du=()=>Q(`keypad-button-operator`,Z.KEYPAD_BUTTON_OPERATOR),fu=()=>Q(`keypad-empty-placeholder`,Z.KEYPAD_EMPTY_PLACEHOLDER),pu=()=>Q(`keypad-button-hover`,Z.KEYPAD_BUTTON_HOVER),mu=()=>Q(`keypad-button-operator-hover`,Z.KEYPAD_BUTTON_OPERATOR_HOVER),hu=()=>Q(`keyboard-focus-indicator`,Z.KEY_BOARD_FOCUS_INDICATOR),gu=()=>Q(`button-border`,Z.BUTTON_BORDER),_u=()=>Q(`button-hover-bg`,Z.BUTTON_HOVER_BG),vu={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},yu=G(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),bu=G(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${vl()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${xl()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${Tl()})`}}),xu=G(`div`)({"&.feedback-enter":{height:`1px`},"&.feedback-enter-active":{height:`45px`,transition:`height 500ms`},"&.feedback-exit":{height:`45px`},"&.feedback-exit-active":{height:`1px`,transition:`height 200ms`}}),Su=class extends F.Component{static propTypes={correctness:y.string,feedback:y.string};nodeRef=F.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,L.jsx)(Ds,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,L.jsx)(xu,{ref:this.nodeRef,children:(0,L.jsx)(yu,{children:(0,L.jsx)(bu,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,L.jsx)(`div`,{children:(0,L.jsx)(Is,{children:this.renderFeedback()})})}};function Cu(){return()=>{}}var wu=s({Correct:()=>Au,Incorrect:()=>ju,NothingSubmitted:()=>Nu,PartiallyCorrect:()=>Mu}),Tu=Cu(`pie-libs:render-ui:response-indicators`),Eu=G(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),Du=G(fl)({cursor:`pointer`}),Ou=G(`div`)({padding:`0`,borderRadius:`4px`}),ku=(e,t)=>{class n extends F.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Tu(`[handlePopoverOpen]`,e.target),this.setState({anchorEl:e.target})};handlePopoverClose=()=>{this.setState({anchorEl:null})};render(){let{feedback:n}=this.props,{anchorEl:r}=this.state;return(0,L.jsxs)(Eu,{hasFeedback:!!n,children:[(0,L.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,L.jsx)(e,{})}),n&&(0,L.jsx)(Du,{PaperComponent:Ou,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,L.jsx)(Su,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:y.string},n},Au=ku(Po,`correct`),ju=ku(Lo,`incorrect`),Mu=ku(Wo,`partially-correct`),Nu=ku(Vo,`nothing-submitted`);function Pu(e){return zr(`MuiCollapse`,e)}Br(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var Fu=e=>{let{orientation:t,classes:n}=e;return ia({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},Pu,n)},Iu=G(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(vc(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),Lu=G(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Ru=G(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),zu=F.forwardRef(function(e,t){let n=qo({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,orientation:g=`vertical`,slots:_={},slotProps:v={},style:y,timeout:b=Ra.standard,TransitionComponent:x=Cs,...S}=n,C={...n,orientation:g,collapsedSize:o},w=Fu(C),T=ho(),E=as(),D=F.useRef(null),O=F.useRef(),ee=typeof o==`number`?`${o}px`:o,te=g===`horizontal`,k=te?`width`:`height`,A=F.useRef(null),ne=Hs(t,A),j=()=>D.current?D.current[te?`clientWidth`:`clientHeight`]:0,re=Rs(A,(e,t)=>{D.current&&te&&(D.current.style.position=`absolute`),e.style[k]=ee,u&&u(e,t)}),ie=Rs(A,(e,t)=>{let n=j();D.current&&te&&(D.current.style.position=``);let{duration:r,easing:i}=Bs({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[k]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),ae=Rs(A,(e,t)=>{e.style[k]=`auto`,d&&d(e,t)}),oe=Rs(A,e=>{e.style[k]=`${j()}px`,p&&p(e)}),M=Rs(A,m),se=Rs(A,e=>{let t=j(),{duration:n,easing:r}=Bs({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[k]=ee,e.style.transitionTimingFunction=r,h&&h(e)}),N=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(A.current,e)},ce={slots:_,slotProps:v,component:s},[le,ue]=wc(`root`,{ref:ne,className:R(w.root,a),elementType:Iu,externalForwardedProps:ce,ownerState:C,additionalProps:{style:{[te?`minWidth`:`minHeight`]:ee,...y}}}),[de,fe]=wc(`wrapper`,{ref:D,className:w.wrapper,elementType:Lu,externalForwardedProps:ce,ownerState:C}),[pe,me]=wc(`wrapperInner`,{className:w.wrapperInner,elementType:Ru,externalForwardedProps:ce,ownerState:C});return(0,L.jsx)(x,{in:l,onEnter:re,onEntered:ae,onEntering:ie,onExit:oe,onExited:M,onExiting:se,addEndListener:N,nodeRef:A,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,L.jsx)(le,{...ue,className:R(ue.className,{entered:w.entered,exited:!l&&ee===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,L.jsx)(de,{...fe,ownerState:r,children:(0,L.jsx)(pe,{...me,ownerState:r,children:i})})})}})});zu&&(zu.muiSupportAuto=!0);var Bu=`https://cdn.jsdelivr.net/npm/mathjax@4/tex-chtml.js`,Vu=null;function Hu(e){return typeof window>`u`||window.MathJax?.typesetPromise?Promise.resolve():Vu||(Vu=new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[]},tex:{packages:[`base`,`ams`,`autoload`],macros:{parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`}},options:{enableMenu:i,enableExplorer:i,enableAssistiveMml:i},startup:{ready:()=>{window.MathJax?.startup.defaultReady&&(window.MathJax.startup.defaultReady(),t())},defaultReady:()=>{}}};r&&s.tex&&(s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||Bu,c.async=!0,c.onload=()=>{setTimeout(t,100)},c.onerror=()=>{n(Error(`Failed to load MathJax`))},document.head.appendChild(c)}),Vu)}function Uu(){let e=window.MathJax?.startup?.document;if(typeof e?.assistiveMml==`function`)try{e.assistiveMml().updateDocument?.()}catch(e){console.warn(`[mathjax-renderer] Failed to attach assistive MathML:`,e)}}function Wu(e={}){return async t=>{if(await Hu(e),!window.MathJax?.typesetPromise){console.warn(`[mathjax-renderer] MathJax not loaded or missing typesetPromise.`);return}await window.MathJax.typesetPromise([t]),Uu()}}var Gu=`@pie-lib/math-rendering`,Ku=null;function qu(){return Ku||=Wu({accessibility:!0,useSingleDollar:!0}),Ku}function Ju(){if(typeof window>`u`)return null;let e=window[Gu];return typeof e?.renderMath==`function`?e:null}var Yu=async e=>{if(typeof window>`u`)return;let t=typeof e==`string`,n;t?(n=document.createElement(`div`),n.innerHTML=e):n=e||document.body;let r=Ju();return r?await r.renderMath?.(n):await qu()(n),t?n.innerHTML:void 0},Xu=G(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),Zu=G(zu)(({theme:e})=>({paddingTop:e.spacing(2)})),Qu=class extends F.Component{static propTypes={className:y.string,children:y.object,labels:y.shape({visible:y.string,hidden:y.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){Yu(this.root)}componentDidUpdate(){Yu(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,L.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,L.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,L.jsx)(Xu,{children:r})}),(0,L.jsx)(Zu,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}};function $u(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var ed=class e{static create(){return new e}static use(){let t=ts(e.create).current,[n,r]=F.useState(!1);return t.shouldMount=n,t.setShouldMount=r,F.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=nd(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function td(){return ed.use()}function nd(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function rd(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=F.useState(!1),f=R(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=R(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),F.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,L.jsx)(`span`,{className:f,style:p,children:(0,L.jsx)(`span`,{className:m})})}var id=Br(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),ad=550,od=Lt`
|
|
45
|
+
C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});Bo.propTypes={fill:y.string.isRequired};var Vo=class extends F.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Ro,{fill:t})]}),emoji:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),feedback:{check:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),emoji:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),square:{check:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Ro,{fill:t})]}),emoji:(0,L.jsxs)(q,{children:[(0,L.jsx)(zo,{fill:n}),(0,L.jsx)(Bo,{fill:t})]}),open:{check:(0,L.jsx)(q,{children:(0,L.jsx)(Ro,{fill:n})}),emoji:(0,L.jsx)(q,{children:(0,L.jsx)(Bo,{fill:n})})}}}}}render(){let{iconSet:e,category:t,shape:n,open:r}=this.props;return t===void 0?this.icons[e]:n===void 0?this.icons.feedback[e]:r===!0?this.icons.feedback.square.open[e]:this.icons.feedback.square[e]}};Vo.propTypes={iconSet:y.oneOf([`emoji`,`check`,void 0]),shape:y.oneOf([`square`,void 0]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string},Vo.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var Ho=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,L.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,L.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});Ho.propTypes={fill:y.string.isRequired};var Uo=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,L.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,L.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,L.jsx)(`rect`,{x:`10.9`,y:`22.9`,transform:`matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)`,width:`14.3`,height:`3.7`,fill:e})]});Uo.propTypes={fill:y.string.isRequired};var Wo=jo(Ho,Uo);Wo.propTypes={iconSet:y.oneOf([`emoji`,`check`]),shape:y.oneOf([`round`,`square`]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string,size:y.oneOfType([y.string,y.number])},Wo.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function Go(e){return typeof e==`string`}function Ko(){return Pr}function qo(e){return Oi(e)}function Jo(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var Yo=Jo;function Xo(e){return e&&e.ownerDocument||document}var Zo=Xo;function Qo(e){return Xo(e).defaultView||window}var $o=Qo,es={};function ts(e,t){let n=F.useRef(es);return n.current===es&&(n.current=e(t)),n}var ns=[];function rs(e){F.useEffect(e,ns)}var is=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function as(){let e=ts(is.create).current;return rs(e.disposeEffect),e}function os(e){return e?.ref||null}function ss(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function cs(e,t){return cs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cs(e,t)}function ls(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cs(e,t)}function us(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function ds(e,t){e.classList?e.classList.add(t):us(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function fs(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function ps(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=fs(e.className,t):e.setAttribute(`class`,fs(e.className&&e.className.baseVal||``,t))}var ms={disabled:!1},hs=F.createContext(null),gs=function(e){return e.scrollTop},_s=l(h()),vs=`unmounted`,ys=`exited`,bs=`entering`,xs=`entered`,Ss=`exiting`,Cs=function(e){ls(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=ys,r.appearStatus=bs):o=xs:o=t.unmountOnExit||t.mountOnEnter?vs:ys,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:ys}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=bs):(n===`entering`||n===`entered`)&&(t=Ss)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:_s.findDOMNode(this);n&&gs(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:vs})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[_s.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||ms.disabled){this.safeSetState({status:xs},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:bs},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:xs},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:_s.findDOMNode(this);if(!t||ms.disabled){this.safeSetState({status:ys},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:Ss},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:ys},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:_s.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=ss(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return F.createElement(hs.Provider,{value:null},typeof n==`function`?n(e,r):F.cloneElement(F.Children.only(n),r))},t}(F.Component);Cs.contextType=hs,Cs.propTypes={};function ws(){}Cs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ws,onEntering:ws,onEntered:ws,onExit:ws,onExiting:ws,onExited:ws},Cs.UNMOUNTED=vs,Cs.EXITED=ys,Cs.ENTERING=bs,Cs.ENTERED=xs,Cs.EXITING=Ss;var Ts=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return ds(e,t)})},Es=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return ps(e,t)})},Ds=function(e){ls(t,e);function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=e.call.apply(e,[this].concat(r))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&gs(e),r&&(this.appliedClasses[t][n]=r,Ts(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&Es(e,r),i&&Es(e,i),a&&Es(e,a)},n.render=function(){var e=this.props;e.classNames;var t=ss(e,[`classNames`]);return F.createElement(Cs,S({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(F.Component);Ds.defaultProps={classNames:``},Ds.propTypes={};function Os(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function ks(e,t){var n=function(e){return t&&(0,F.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&F.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function As(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function js(e,t,n){return n[t]==null?e.props[t]:n[t]}function Ms(e,t){return ks(e.children,function(n){return(0,F.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:js(n,`appear`,e),enter:js(n,`enter`,e),exit:js(n,`exit`,e)})})}function Ns(e,t,n){var r=ks(e.children),i=As(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,F.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,F.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,F.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:js(o,`exit`,e),enter:js(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,F.cloneElement)(o,{in:!1}):c&&s&&(0,F.isValidElement)(l)&&(i[a]=(0,F.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:js(o,`exit`,e),enter:js(o,`enter`,e)}))}}),i}var Ps=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Fs={component:`div`,childFactory:function(e){return e}},Is=function(e){ls(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(Os(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?Ms(e,r):Ns(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=ks(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=S({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=ss(e,[`component`,`childFactory`]),i=this.state.contextValue,a=Ps(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?F.createElement(hs.Provider,{value:i},a):F.createElement(hs.Provider,{value:i},F.createElement(t,r,a))},t}(F.Component);Is.propTypes={},Is.defaultProps=Fs;var Ls=e=>e.scrollTop;function Rs(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function zs(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function Bs(e,t){let{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function Vs(...e){let t=F.useRef(void 0),n=F.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return F.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var Hs=Vs;function Us(e){return`scale(${e}, ${e**2})`}var Ws={entering:{opacity:1,transform:Us(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:Us(.75)},exited:{opacity:0,transform:Us(.75)}},Gs={opacity:0,transform:Us(.75),visibility:`hidden`},Ks=F.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,easing:a,in:o,onEnter:s,onEntered:c,onEntering:l,onExit:u,onExited:d,onExiting:f,style:p,timeout:m=`auto`,...h}=e,g=as(),_=F.useRef(),v=ho(),y=F.useRef(null),b=Hs(y,os(i),t),x=Rs(y,l),S=Rs(y,(e,t)=>{Ls(e);let{duration:n,delay:r,easing:i}=Bs({style:p,timeout:m,easing:a},{mode:`enter`}),o;m===`auto`?(o=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=o):o=n,e.style.transition=[v.transitions.create(`opacity`,{duration:o,delay:r}),v.transitions.create(`transform`,{duration:o*.666,delay:r,easing:i})].join(`,`),s&&s(e,t)}),C=Rs(y,c),w=Rs(y,f),T=Rs(y,e=>{let{duration:t,delay:n,easing:r}=Bs({style:p,timeout:m,easing:a},{mode:`exit`}),i;m===`auto`?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):i=t,e.style.transition=[v.transitions.create(`opacity`,{duration:i,delay:n}),v.transitions.create(`transform`,{duration:i*.666,delay:n||i*.333,easing:r})].join(`,`),e.style.opacity=0,e.style.transform=Us(.75),u&&u(e)}),E=Rs(y,e=>{e.style.transition=``,d&&d(e)});return(0,L.jsx)(Cs,{appear:r,in:o,nodeRef:y,onEnter:S,onEntered:C,onEntering:x,onExit:T,onExited:E,onExiting:w,addEndListener:e=>{m===`auto`&&g.start(_.current||0,e),n&&n(y.current,e)},timeout:m===`auto`?null:m,...h,children:(e,{ownerState:t,...n})=>{let r=zs(e,o,Ws,Gs,p,i.props.style);return F.cloneElement(i,{style:r,ref:b,...n})}})});Ks&&(Ks.muiSupportAuto=!0);function qs(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Js(e){let t=Xo(e);return t.body===e?Qo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ys(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function Xs(e){return parseFloat(Qo(e).getComputedStyle(e).paddingRight)||0}function Zs(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function Qs(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!Zs(e);t&&n&&Ys(e,i)})}function $s(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function ec(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(Js(r)){let e=qs(Qo(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${Xs(r)+e}px`;let t=Xo(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${Xs(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Xo(r).body;else{let t=r.parentElement,n=Qo(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function tc(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var nc=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Ys(e.modalRef,!1);let r=tc(t);Qs(t,e.mount,e.modalRef,r,!0);let i=$s(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=$s(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=ec(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=$s(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&Ys(e.modalRef,t),Qs(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&Ys(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function rc(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}var ic=rc;function ac(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var oc=ac,sc=`data-mui-focusable`;function cc(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${sc}]`):null}var lc=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function uc(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function dc(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function fc(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||dc(e))}function pc(e){let t=[],n=[];return Array.from(e.querySelectorAll(lc)).forEach((e,r)=>{let i=uc(e);i===-1||!fc(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function mc(){return!0}function hc(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=pc,isEnabled:o=mc,open:s}=e,c=F.useRef(!1),l=F.useRef(null),u=F.useRef(null),d=F.useRef(null),f=F.useRef(null),p=F.useRef(!1),m=F.useRef(null),h=Vs(os(t),m),g=F.useRef(null);F.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),F.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=oc(Xo(m.current)),t=cc(m.current)??m.current;return ic(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),F.useEffect(()=>{if(!s||!m.current)return;let e=Xo(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&oc(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=oc(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(ic(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=oc(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,L.jsxs)(F.Fragment,{children:[(0,L.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),F.cloneElement(t,{ref:h,onFocus:_}),(0,L.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function J(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function gc(e){return typeof e==`function`?e():e}var _c=F.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=F.useState(null),s=Vs(F.isValidElement(n)?os(n):null,t);if(ei(()=>{i||o(gc(r)||document.body)},[r,i]),ei(()=>{if(a&&!i)return J(t,a),()=>{J(t,null)}},[t,a,i]),i){if(F.isValidElement(n)){let e={ref:s};return F.cloneElement(n,e)}return n}return a&&_s.createPortal(n,a)}),vc=Ri;function yc(e,t,n){return e===void 0||Go(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function bc(e,t,n){return typeof e==`function`?e(t,n):e}function xc(e,t=[]){if(e===void 0)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]==`function`&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Sc(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function Cc(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=R(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=xc({...i,...r}),s=Sc(r),c=Sc(i),l=t(o),u=R(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function wc(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=bc(d[e],i),{props:{component:h,...g},internalRef:_}=Cc({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=Vs(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,yc(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}var Tc={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Ec={opacity:0,visibility:`hidden`},Dc=F.forwardRef(function(e,t){let n=ho(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:g=r,..._}=e,v=F.useRef(null),y=Hs(v,os(o),t),b=Rs(v,d),x=Rs(v,(e,t)=>{Ls(e);let r=Bs({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=Rs(v,u),C=Rs(v,m),w=Rs(v,e=>{let t=Bs({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=Rs(v,e=>{e.style.transition=``,p&&p(e)});return(0,L.jsx)(Cs,{appear:a,in:c,nodeRef:v,onEnter:x,onEntered:S,onEntering:b,onExit:w,onExited:T,onExiting:C,addEndListener:e=>{i&&i(v.current,e)},timeout:g,..._,children:(e,{ownerState:t,...n})=>{let r=zs(e,c,Tc,Ec,h,o.props.style);return F.cloneElement(o,{style:r,ref:y,...n})}})});function Oc(e){return zr(`MuiBackdrop`,e)}Br(`MuiBackdrop`,[`root`,`invisible`]);var kc=e=>{let{classes:t,invisible:n}=e;return ia({root:[`root`,n&&`invisible`]},Oc,t)},Ac=G(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),jc=F.forwardRef(function(e,t){let n=qo({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,components:c={},componentsProps:l={},slotProps:u={},slots:d={},TransitionComponent:f,transitionDuration:p,...m}=n,h={...n,component:a,invisible:o},g=kc(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=wc(`root`,{elementType:Ac,externalForwardedProps:_,className:R(g.root,i),ownerState:h}),[b,x]=wc(`transition`,{elementType:Dc,externalForwardedProps:_,ownerState:h});return(0,L.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,L.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function Mc(e){let t=F.useRef(e);return ei(()=>{t.current=e}),F.useRef((...e)=>(0,t.current)(...e)).current}function Nc(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Pc(e){return typeof e==`function`?e():e}function Fc(e){return e?e.props.hasOwnProperty(`in`):!1}var Ic=()=>{},Lc=new nc;function Rc(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:c,open:l,rootRef:u}=e,d=F.useRef({}),f=F.useRef(null),p=F.useRef(null),m=Vs(p,u),[h,g]=F.useState(!l),_=Fc(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>Xo(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{Lc.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=Mc(()=>{let e=Pc(t)||y().body;Lc.add(b(),e),p.current&&x()}),C=()=>Lc.isTopModal(b()),w=Mc(e=>{f.current=e,e&&(l&&C()?x():p.current&&Ys(p.current,v))}),T=F.useCallback(()=>{Lc.remove(b(),v)},[v]);F.useEffect(()=>()=>{T()},[T]),F.useEffect(()=>{l?S():(!_||!i)&&T()},[l,T,_,i,S]);let E=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!C())&&(n||(t.stopPropagation(),c&&c(t,`escapeKeyDown`)))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=xc(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:l}},getTransitionProps:()=>({onEnter:Nc(()=>{g(!1),a&&a()},s?.props.onEnter??Ic),onExited:Nc(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??Ic)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function zc(e){return zr(`MuiModal`,e)}Br(`MuiModal`,[`root`,`hidden`,`backdrop`]);var Bc=e=>{let{open:t,exited:n,classes:r}=e;return ia({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},zc,r)},Vc=G(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(vc(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),Hc=G(jc,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),Uc=F.forwardRef(function(e,t){let n=qo({name:`MuiModal`,props:e}),{BackdropComponent:r=Hc,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:x,onTransitionEnter:S,onTransitionExited:C,open:w,slotProps:T={},slots:E={},theme:D,...O}=n,ee={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:te,getBackdropProps:k,getTransitionProps:A,portalRef:ne,isTopModal:j,exited:re,hasTransition:ie}=Rc({...ee,rootRef:t}),ae={...ee,exited:re},oe=Bc(ae),M={};if(c.props.tabIndex===void 0&&(M.tabIndex=`-1`),ie){let{onEnter:e,onExited:t}=A();M.onEnter=e,M.onExited=t}let se={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[N,ce]=wc(`root`,{ref:t,elementType:Vc,externalForwardedProps:{...se,...O,component:u},getSlotProps:te,ownerState:ae,className:R(o,oe?.root,!ae.open&&ae.exited&&oe?.hidden)}),[le,ue]=wc(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:se,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>k({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:R(i?.className,oe?.backdrop),ownerState:ae});return!b&&!w&&(!ie||re)?null:(0,L.jsx)(_c,{ref:ne,container:l,disablePortal:g,children:(0,L.jsxs)(N,{...ce,children:[!y&&r?(0,L.jsx)(le,{...ue}):null,(0,L.jsx)(hc,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:j,open:w,children:F.cloneElement(c,M)})]})})});function Wc(e){return zr(`MuiPaper`,e)}Br(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`));var Y=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return ia({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},Wc,i)},Gc=G(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(vc(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),Kc=F.forwardRef(function(e,t){let n=qo({props:e,name:`MuiPaper`}),r=ho(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=Y(u);return(0,L.jsx)(Gc,{as:a,ownerState:u,className:R(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${di(`#fff`,Ya(o))}, ${di(`#fff`,Ya(o))})`}},...l.style}})});function qc(e){return zr(`MuiPopover`,e)}Br(`MuiPopover`,[`root`,`paper`]);var X=Tn;function Jc(e){return zr(`MuiSvgIcon`,e)}Br(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var Yc=e=>{let{color:t,fontSize:n,classes:r}=e;return ia({root:[`root`,t!==`inherit`&&`color${X(t)}`,`fontSize${X(n)}`]},Jc,r)},Xc=G(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${X(n.color)}`],t[`fontSize${X(n.fontSize)}`]]}})(vc(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),Zc=F.forwardRef(function(e,t){let n=qo({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=F.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=Yc(m);return(0,L.jsxs)(Xc,{as:o,className:R(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,L.jsx)(`title`,{children:u}):null]})});Zc.muiName=`SvgIcon`;function Qc(e,t){function n(t,n){return(0,L.jsx)(Zc,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Zc.muiName,F.memo(F.forwardRef(n))}var $c=aa,el=ei,tl=Mi,nl=Mc;function rl(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function il(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{rl(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=R(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=R(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function al(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function ol(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function sl(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function cl(e){return typeof e==`function`?e():e}var ll=e=>{let{classes:t}=e;return ia({root:[`root`],paper:[`paper`]},qc,t)},ul=G(Uc,{name:`MuiPopover`,slot:`Root`})({}),dl=G(Kc,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),fl=F.forwardRef(function(e,t){let n=qo({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,elevation:d=8,marginThreshold:f=16,open:p,PaperProps:m={},slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},TransitionComponent:v,transitionDuration:y=`auto`,TransitionProps:b={},disableScrollLock:x=!1,...S}=n,C=F.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=ll(w),E=F.useCallback(()=>{if(s===`anchorPosition`)return o;let e=cl(i),t=(e&&e.nodeType===1?e:Zo(C.current).body).getBoundingClientRect();return{top:t.top+al(t,a.vertical),left:t.left+ol(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=F.useCallback(e=>({vertical:al(e,_.vertical),horizontal:ol(e,_.horizontal)}),[_.horizontal,_.vertical]),O=F.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:sl(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=$o(cl(i)),d=u.innerHeight-f,p=u.innerWidth-f;if(f!==null&&a<f){let e=a-f;a-=e,n.vertical+=e}else if(f!==null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(f!==null&&o<f){let e=o-f;o-=e,n.horizontal+=e}else if(l>p){let e=l-p;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:sl(n)}},[i,s,E,D,f]),[ee,te]=F.useState(p),k=F.useCallback(()=>{let e=C.current;if(!e)return;let t=O(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,te(!0)},[O]);F.useEffect(()=>(x&&window.addEventListener(`scroll`,k),()=>window.removeEventListener(`scroll`,k)),[i,x,k]);let A=()=>{k()},ne=()=>{te(!1)};F.useEffect(()=>{p&&k()}),F.useImperativeHandle(r,()=>p?{updatePosition:()=>{k()}}:null,[p,k]),F.useEffect(()=>{if(!p)return;let e=Yo(()=>{k()}),t=$o(cl(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,k]);let j=y,re={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[ie,ae]=wc(`transition`,{elementType:Ks,externalForwardedProps:re,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),A()},onExited:t=>{e.onExited?.(t),ne()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!ie.muiSupportAuto&&(j=void 0);let oe=u||(i?Zo(cl(i)).body:void 0),[M,{slots:se,slotProps:N,...ce}]=wc(`root`,{ref:t,elementType:ul,externalForwardedProps:{...re,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:il(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:oe,open:p},ownerState:w,className:R(T.root,l)}),[le,ue]=wc(`paper`,{ref:C,className:T.paper,elementType:dl,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:ee?void 0:{opacity:0}},ownerState:w});return(0,L.jsx)(M,{...ce,...!Go(M)&&{slots:se,slotProps:N,disableScrollLock:x},children:(0,L.jsx)(ie,{...ae,timeout:j,children:(0,L.jsx)(le,{...ue,children:c})})})}),pl={50:`#fce4ec`,100:`#f8bbd0`,200:`#f48fb1`,300:`#f06292`,400:`#ec407a`,500:`#e91e63`,600:`#d81b60`,700:`#c2185b`,800:`#ad1457`,900:`#880e4f`,A100:`#ff80ab`,A200:`#ff4081`,A400:`#f50057`,A700:`#c51162`},ml={50:`#e8eaf6`,100:`#c5cae9`,200:`#9fa8da`,300:`#7986cb`,400:`#5c6bc0`,500:`#3f51b5`,600:`#3949ab`,700:`#303f9f`,800:`#283593`,900:`#1a237e`,A100:`#8c9eff`,A200:`#536dfe`,A400:`#3d5afe`,A700:`#304ffe`},hl=s({background:()=>$,backgroundDark:()=>zl,black:()=>Ql,blueGrey100:()=>ou,blueGrey300:()=>su,blueGrey600:()=>cu,blueGrey900:()=>lu,border:()=>Gl,borderDark:()=>ql,borderGray:()=>Jl,borderLight:()=>Kl,buttonBorder:()=>gu,buttonFocusOutline:()=>au,buttonHoverBg:()=>_u,correct:()=>xl,correctSecondary:()=>Sl,correctTertiary:()=>Cl,correctWithIcon:()=>wl,defaults:()=>Z,disabled:()=>vl,disabledSecondary:()=>yl,disabledText:()=>bl,dropdownBackground:()=>Vl,fadedPrimary:()=>Pl,focusChecked:()=>tu,focusCheckedBorder:()=>nu,focusUnchecked:()=>ru,focusUncheckedBorder:()=>iu,incorrect:()=>Tl,incorrectSecondary:()=>Dl,incorrectWithIcon:()=>El,keyBoardFocusIndicator:()=>hu,keypadButton:()=>uu,keypadButtonHover:()=>pu,keypadButtonOperator:()=>du,keypadButtonOperatorHover:()=>mu,keypadEmptyPlaceholder:()=>fu,missing:()=>Ol,missingWithIcon:()=>kl,primary:()=>Al,primaryDark:()=>Ml,primaryLight:()=>jl,primaryText:()=>Nl,secondary:()=>Fl,secondaryBackground:()=>Bl,secondaryDark:()=>Ll,secondaryLight:()=>Il,secondaryText:()=>Rl,surface:()=>Hl,tableGrid:()=>Yl,tableGridLight:()=>Xl,tableStripe:()=>Zl,tertiary:()=>Ul,tertiaryLight:()=>Wl,text:()=>_l,transparent:()=>eu,v:()=>gl,visualElementsColors:()=>vu,white:()=>$l}),Z={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:pa[500],CORRECT_SECONDARY:pa[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:ua[500],INCORRECT_SECONDARY:la[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:la[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:ml[500],PRIMARY_LIGHT:ml[200],PRIMARY_DARK:ml[800],SECONDARY:pl.A400,SECONDARY_LIGHT:pl[200],SECONDARY_DARK:pl[900],TERTIARY:`#146EB3`,TERTIARY_LIGHT:`#D0E2F0`,BACKGROUND:`rgba(255,255,255,0)`,BACKGROUND_DARK:`#ECEDF1`,DROPDOWN_BACKGROUND:`#E0E1E6`,SECONDARY_BACKGROUND:`rgba(241,241,241,1)`,SURFACE:`#E0E1E6`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#646464`,BORDER_GRAY:`#7E8494`,TABLE_GRID:`black`,TABLE_GRID_LIGHT:`#dfe2e5`,TABLE_STRIPE:`#f6f8fa`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BUTTON_FOCUS_OUTLINE:`#3B82F6`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#C0C3CF`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`,KEYPAD_BUTTON:`rgb(188, 194, 229)`,KEYPAD_BUTTON_OPERATOR:`rgb(255, 159, 192)`,KEYPAD_EMPTY_PLACEHOLDER:`rgba(245, 0, 87, 0.4)`,KEYPAD_BUTTON_HOVER:`rgb(214, 218, 239)`,KEYPAD_BUTTON_OPERATOR_HOVER:`rgb(255, 197, 217)`,KEY_BOARD_FOCUS_INDICATOR:`#2B87FF`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(Z);var gl=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},Q=gl(`pie`),_l=()=>Q(`text`,Z.TEXT),vl=()=>Q(`disabled`,Z.DISABLED),yl=()=>Q(`disabled-secondary`,Z.DISABLED_SECONDARY),bl=()=>Q(`disabled-text`,`text`,Z.DISABLED_TEXT),xl=()=>Q(`correct`,Z.CORRECT),Sl=()=>Q(`correct-secondary`,Z.CORRECT_SECONDARY),Cl=()=>Q(`correct-tertiary`,Z.CORRECT_TERTIARY),wl=()=>Q(`correct-icon`,Z.CORRECT_WITH_ICON),Tl=()=>Q(`incorrect`,Z.INCORRECT),El=()=>Q(`incorrect-icon`,Z.INCORRECT_WITH_ICON),Dl=()=>Q(`incorrect-secondary`,Z.INCORRECT_SECONDARY),Ol=()=>Q(`missing`,Z.MISSING),kl=()=>Q(`missing-icon`,Z.MISSING_WITH_ICON),Al=()=>Q(`primary`,Z.PRIMARY),jl=()=>Q(`primary-light`,Z.PRIMARY_LIGHT),Ml=()=>Q(`primary-dark`,Z.PRIMARY_DARK),Nl=()=>Q(`primary-text`,`text`,Z.TEXT),Pl=()=>Q(`faded-primary`,Z.FADED_PRIMARY),Fl=()=>Q(`secondary`,Z.SECONDARY),Il=()=>Q(`secondary-light`,Z.SECONDARY_LIGHT),Ll=()=>Q(`secondary-dark`,Z.SECONDARY_DARK),Rl=()=>Q(`secondary-text`,`text`,Z.TEXT),$=()=>Q(`background`,Z.BACKGROUND),zl=()=>Q(`background-dark`,Z.BACKGROUND_DARK),Bl=()=>Q(`secondary-background`,Z.SECONDARY_BACKGROUND),Vl=()=>Q(`dropdown-background`,Z.DROPDOWN_BACKGROUND),Hl=()=>Q(`surface`,Z.SURFACE),Ul=()=>Q(`tertiary`,Z.TERTIARY),Wl=()=>Q(`tertiary-light`,Z.TERTIARY_LIGHT),Gl=()=>Q(`border`,Z.BORDER),Kl=()=>Q(`border-light`,Z.BORDER_LIGHT),ql=()=>Q(`border-dark`,Z.BORDER_DARK),Jl=()=>Q(`border-gray`,Z.BORDER_GRAY),Yl=()=>Q(`table-grid`,`text`,Z.TABLE_GRID),Xl=()=>Q(`table-grid-light`,`border-light`,Z.TABLE_GRID_LIGHT),Zl=()=>Q(`table-stripe`,`background-dark`,Z.TABLE_STRIPE),Ql=()=>Q(`black`,Z.BLACK),$l=()=>Q(`white`,Z.WHITE),eu=()=>Z.TRANSPARENT,tu=()=>Q(`focus-checked`,Z.FOCUS_CHECKED),nu=()=>Q(`focus-checked-border`,Z.FOCUS_CHECKED_BORDER),ru=()=>Q(`focus-unchecked`,Z.FOCUS_UNCHECKED),iu=()=>Q(`focus-unchecked-border`,Z.FOCUS_UNCHECKED_BORDER),au=()=>Q(`button-focus-outline`,Z.BUTTON_FOCUS_OUTLINE),ou=()=>Q(`blue-grey-100`,Z.BLUE_GREY100),su=()=>Q(`blue-grey-300`,Z.BLUE_GREY300),cu=()=>Q(`blue-grey-600`,Z.BLUE_GREY600),lu=()=>Q(`blue-grey-900`,Z.BLUE_GREY900),uu=()=>Q(`keypad-button`,Z.KEYPAD_BUTTON),du=()=>Q(`keypad-button-operator`,Z.KEYPAD_BUTTON_OPERATOR),fu=()=>Q(`keypad-empty-placeholder`,Z.KEYPAD_EMPTY_PLACEHOLDER),pu=()=>Q(`keypad-button-hover`,Z.KEYPAD_BUTTON_HOVER),mu=()=>Q(`keypad-button-operator-hover`,Z.KEYPAD_BUTTON_OPERATOR_HOVER),hu=()=>Q(`keyboard-focus-indicator`,Z.KEY_BOARD_FOCUS_INDICATOR),gu=()=>Q(`button-border`,Z.BUTTON_BORDER),_u=()=>Q(`button-hover-bg`,Z.BUTTON_HOVER_BG),vu={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},yu=G(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),bu=G(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${vl()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${xl()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${Tl()})`}}),xu=G(`div`)({"&.feedback-enter":{height:`1px`},"&.feedback-enter-active":{height:`45px`,transition:`height 500ms`},"&.feedback-exit":{height:`45px`},"&.feedback-exit-active":{height:`1px`,transition:`height 200ms`}}),Su=class extends F.Component{static propTypes={correctness:y.string,feedback:y.string};nodeRef=F.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,L.jsx)(Ds,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,L.jsx)(xu,{ref:this.nodeRef,children:(0,L.jsx)(yu,{children:(0,L.jsx)(bu,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,L.jsx)(`div`,{children:(0,L.jsx)(Is,{children:this.renderFeedback()})})}};function Cu(){return()=>{}}var wu=s({Correct:()=>Au,Incorrect:()=>ju,NothingSubmitted:()=>Nu,PartiallyCorrect:()=>Mu}),Tu=Cu(`pie-libs:render-ui:response-indicators`),Eu=G(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),Du=G(fl)({cursor:`pointer`}),Ou=G(`div`)({padding:`0`,borderRadius:`4px`}),ku=(e,t)=>{class n extends F.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Tu(`[handlePopoverOpen]`,e.target),this.setState({anchorEl:e.target})};handlePopoverClose=()=>{this.setState({anchorEl:null})};render(){let{feedback:n}=this.props,{anchorEl:r}=this.state;return(0,L.jsxs)(Eu,{hasFeedback:!!n,children:[(0,L.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,L.jsx)(e,{})}),n&&(0,L.jsx)(Du,{PaperComponent:Ou,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,L.jsx)(Su,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:y.string},n},Au=ku(Po,`correct`),ju=ku(Lo,`incorrect`),Mu=ku(Wo,`partially-correct`),Nu=ku(Vo,`nothing-submitted`);function Pu(e){return zr(`MuiCollapse`,e)}Br(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var Fu=e=>{let{orientation:t,classes:n}=e;return ia({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},Pu,n)},Iu=G(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(vc(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),Lu=G(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Ru=G(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),zu=F.forwardRef(function(e,t){let n=qo({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,orientation:g=`vertical`,slots:_={},slotProps:v={},style:y,timeout:b=Ra.standard,TransitionComponent:x=Cs,...S}=n,C={...n,orientation:g,collapsedSize:o},w=Fu(C),T=ho(),E=as(),D=F.useRef(null),O=F.useRef(),ee=typeof o==`number`?`${o}px`:o,te=g===`horizontal`,k=te?`width`:`height`,A=F.useRef(null),ne=Hs(t,A),j=()=>D.current?D.current[te?`clientWidth`:`clientHeight`]:0,re=Rs(A,(e,t)=>{D.current&&te&&(D.current.style.position=`absolute`),e.style[k]=ee,u&&u(e,t)}),ie=Rs(A,(e,t)=>{let n=j();D.current&&te&&(D.current.style.position=``);let{duration:r,easing:i}=Bs({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[k]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),ae=Rs(A,(e,t)=>{e.style[k]=`auto`,d&&d(e,t)}),oe=Rs(A,e=>{e.style[k]=`${j()}px`,p&&p(e)}),M=Rs(A,m),se=Rs(A,e=>{let t=j(),{duration:n,easing:r}=Bs({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[k]=ee,e.style.transitionTimingFunction=r,h&&h(e)}),N=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(A.current,e)},ce={slots:_,slotProps:v,component:s},[le,ue]=wc(`root`,{ref:ne,className:R(w.root,a),elementType:Iu,externalForwardedProps:ce,ownerState:C,additionalProps:{style:{[te?`minWidth`:`minHeight`]:ee,...y}}}),[de,fe]=wc(`wrapper`,{ref:D,className:w.wrapper,elementType:Lu,externalForwardedProps:ce,ownerState:C}),[pe,me]=wc(`wrapperInner`,{className:w.wrapperInner,elementType:Ru,externalForwardedProps:ce,ownerState:C});return(0,L.jsx)(x,{in:l,onEnter:re,onEntered:ae,onEntering:ie,onExit:oe,onExited:M,onExiting:se,addEndListener:N,nodeRef:A,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,L.jsx)(le,{...ue,className:R(ue.className,{entered:w.entered,exited:!l&&ee===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,L.jsx)(de,{...fe,ownerState:r,children:(0,L.jsx)(pe,{...me,ownerState:r,children:i})})})}})});zu&&(zu.muiSupportAuto=!0);var Bu=`https://cdn.jsdelivr.net/npm/mathjax@4/tex-chtml.js`,Vu=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`);function Hu(e){if(typeof window>`u`||window.MathJax?.typesetPromise)return Promise.resolve();let t=globalThis,n=t[Vu];if(n)return n;let r=new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[]},tex:{packages:[`base`,`ams`,`autoload`],macros:{parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`}},options:{enableMenu:i,enableExplorer:i,enableAssistiveMml:i},startup:{ready:()=>{window.MathJax?.startup.defaultReady&&(window.MathJax.startup.defaultReady(),t())},defaultReady:()=>{}}};r&&s.tex&&(s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||Bu,c.async=!0,c.onload=()=>{setTimeout(t,100)},c.onerror=()=>{n(Error(`Failed to load MathJax`))},document.head.appendChild(c)});return t[Vu]=r,r}function Uu(){let e=window.MathJax?.startup?.document;if(typeof e?.assistiveMml==`function`)try{e.assistiveMml().updateDocument?.()}catch(e){console.warn(`[mathjax-renderer] Failed to attach assistive MathML:`,e)}}function Wu(e={}){return async t=>{if(await Hu(e),!window.MathJax?.typesetPromise){console.warn(`[mathjax-renderer] MathJax not loaded or missing typesetPromise.`);return}await window.MathJax.typesetPromise([t]),Uu()}}var Gu=`@pie-lib/math-rendering`,Ku=null;function qu(){return Ku||=Wu({accessibility:!0,useSingleDollar:!0}),Ku}function Ju(){if(typeof window>`u`)return null;let e=window[Gu];return typeof e?.renderMath==`function`?e:null}var Yu=async e=>{if(typeof window>`u`)return;let t=typeof e==`string`,n;t?(n=document.createElement(`div`),n.innerHTML=e):n=e||document.body;let r=Ju();return r?await r.renderMath?.(n):await qu()(n),t?n.innerHTML:void 0},Xu=G(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),Zu=G(zu)(({theme:e})=>({paddingTop:e.spacing(2)})),Qu=class extends F.Component{static propTypes={className:y.string,children:y.object,labels:y.shape({visible:y.string,hidden:y.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){Yu(this.root)}componentDidUpdate(){Yu(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,L.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,L.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,L.jsx)(Xu,{children:r})}),(0,L.jsx)(Zu,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}};function $u(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var ed=class e{static create(){return new e}static use(){let t=ts(e.create).current,[n,r]=F.useState(!1);return t.shouldMount=n,t.setShouldMount=r,F.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=nd(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function td(){return ed.use()}function nd(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function rd(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=F.useState(!1),f=R(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=R(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),F.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,L.jsx)(`span`,{className:f,style:p,children:(0,L.jsx)(`span`,{className:m})})}var id=Br(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),ad=550,od=Lt`
|
|
46
46
|
0% {
|
|
47
47
|
transform: scale(0);
|
|
48
48
|
opacity: 0.1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/multi-trait-rubric",
|
|
3
|
-
"version": "8.1.2-next.
|
|
3
|
+
"version": "8.1.2-next.18",
|
|
4
4
|
"description": "React implementation of multi-trait-rubric element synced from pie-elements",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,27 +9,26 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@emotion/react": "^11.14.0",
|
|
12
|
-
"@emotion/style": "^0.8.0",
|
|
13
12
|
"@mui/icons-material": "^7.3.4",
|
|
14
13
|
"@mui/material": "^7.3.4",
|
|
15
|
-
"@pie-lib/render-ui": "6.2.0-next.
|
|
14
|
+
"@pie-lib/render-ui": "6.2.0-next.46",
|
|
16
15
|
"clsx": "^2.1.1",
|
|
17
16
|
"prop-types": "^15.8.1",
|
|
18
|
-
"@pie-lib/editable-html-tip-tap": "3.0.0-next.
|
|
17
|
+
"@pie-lib/editable-html-tip-tap": "3.0.0-next.40",
|
|
19
18
|
"@pie-element/shared-configure-events": "0.1.1-next.0",
|
|
20
19
|
"@pie-element/shared-lodash": "0.1.1-next.2",
|
|
21
|
-
"@pie-lib/config-ui": "14.0.0-next.
|
|
22
|
-
"@pie-lib/drag": "4.1.0-next.
|
|
20
|
+
"@pie-lib/config-ui": "14.0.0-next.40",
|
|
21
|
+
"@pie-lib/drag": "4.1.0-next.46",
|
|
23
22
|
"debug": "^4.4.3",
|
|
24
23
|
"@dnd-kit/core": "^6.3.1",
|
|
25
24
|
"@pie-element/shared-player-events": "0.1.1-next.1",
|
|
26
|
-
"@pie-element/shared-math-rendering-mathjax": "0.1.1-next.
|
|
25
|
+
"@pie-element/shared-math-rendering-mathjax": "0.1.1-next.2",
|
|
27
26
|
"react": "^18.2.0",
|
|
28
27
|
"react-dom": "^18.2.0"
|
|
29
28
|
},
|
|
30
29
|
"peerDependencies": {
|
|
31
|
-
"react": "^18.0.0",
|
|
32
|
-
"react-dom": "^18.0.0"
|
|
30
|
+
"react": "^18.2.0 || ^19.0.0",
|
|
31
|
+
"react-dom": "^18.2.0 || ^19.0.0"
|
|
33
32
|
},
|
|
34
33
|
"exports": {
|
|
35
34
|
".": {
|
|
@@ -68,7 +67,8 @@
|
|
|
68
67
|
"./runtime-support": {
|
|
69
68
|
"types": "./dist/runtime-support.d.ts",
|
|
70
69
|
"default": "./dist/runtime-support.js"
|
|
71
|
-
}
|
|
70
|
+
},
|
|
71
|
+
"./package.json": "./package.json"
|
|
72
72
|
},
|
|
73
73
|
"type": "module",
|
|
74
74
|
"main": "./dist/index.js",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
],
|
|
82
82
|
"sideEffects": false,
|
|
83
83
|
"scripts": {
|
|
84
|
-
"build": "bun x vite build && bun x vite build --config ../../../tools/vite/element-browser.config.ts && bun x vite build --config vite.config.iife.ts && bun x tsc --emitDeclarationOnly",
|
|
84
|
+
"build": "bun x vite build && bun x vite build --config ../../../tools/vite/element-browser.config.ts && bun x vite build --config ../../../tools/vite/element-browser-editor-runtime.config.ts && bun x vite build --config vite.config.iife.ts && bun x tsc --emitDeclarationOnly",
|
|
85
85
|
"dev": "bun x vite",
|
|
86
86
|
"demo": "bun x vite --mode demo",
|
|
87
87
|
"test": "bun x vitest run"
|
|
@@ -92,6 +92,15 @@
|
|
|
92
92
|
"browserSharedDependencies": {
|
|
93
93
|
"react": "18.2.0",
|
|
94
94
|
"react-dom": "18.2.0"
|
|
95
|
+
},
|
|
96
|
+
"browserEditorRuntime": {
|
|
97
|
+
"name": "@pie-element/shared-editor-runtime",
|
|
98
|
+
"version": "0.1.1-next.0",
|
|
99
|
+
"views": {
|
|
100
|
+
"delivery": "editor-runtime/delivery",
|
|
101
|
+
"author": "editor-runtime/author",
|
|
102
|
+
"controller": "editor-runtime/controller"
|
|
103
|
+
}
|
|
95
104
|
}
|
|
96
105
|
}
|
|
97
106
|
}
|