@pie-element/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/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 +2 -2
- package/dist/browser/{dist-DnvpzjFA.js → dist-P6cQUg1d.js} +219 -215
- package/dist/browser/{dist-DnvpzjFA.js.map → dist-P6cQUg1d.js.map} +1 -1
- package/dist/browser/editor-runtime/assets/Symbola-4c507403.woff2 +0 -0
- package/dist/browser/editor-runtime/author/index.js +23275 -0
- package/dist/browser/editor-runtime/author/index.js.map +1 -0
- package/dist/browser/editor-runtime/controller/index.js +41 -0
- package/dist/browser/editor-runtime/controller/index.js.map +1 -0
- package/dist/browser/editor-runtime/delivery/index.js +53 -0
- package/dist/browser/editor-runtime/delivery/index.js.map +1 -0
- package/dist/browser/editor-runtime/dist-B8zq6W6A.js +102 -0
- package/dist/browser/editor-runtime/dist-B8zq6W6A.js.map +1 -0
- package/dist/browser/editor-runtime/dist-ClPxMBUG.js +9029 -0
- package/dist/browser/editor-runtime/dist-ClPxMBUG.js.map +1 -0
- package/dist/browser/editor-runtime/main-sMMMvQIb.js +154 -0
- package/dist/browser/editor-runtime/main-sMMMvQIb.js.map +1 -0
- package/dist/browser/editor-runtime/print/index.js +35 -0
- package/dist/browser/editor-runtime/print/index.js.map +1 -0
- package/dist/browser/editor-runtime/rolldown-runtime-CHQKHQ89.js +32 -0
- package/dist/browser/{main-DZoAI8Ok.js → main-Dj-7WB-D.js} +2 -2
- package/dist/browser/{main-DZoAI8Ok.js.map → main-Dj-7WB-D.js.map} +1 -1
- package/dist/browser/print/index.js +2 -2
- package/dist/index.iife.js +1 -1
- package/module/print.js +238 -234
- package/module/print.js.map +1 -1
- package/package.json +20 -10
- package/dist/browser/rubric.css +0 -2
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { a as e } from "./rolldown-runtime-CHQKHQ89.js";
|
|
2
|
+
import { H as t, O as n, V as r, bt as i, f as a, k as o, t as s, tt as c } from "./dist-ClPxMBUG.js";
|
|
3
|
+
import l from "react";
|
|
4
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
5
|
+
//#region src/delivery/main.tsx
|
|
6
|
+
var f = /* @__PURE__ */ e(i(), 1);
|
|
7
|
+
function p(e) {
|
|
8
|
+
return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
|
|
9
|
+
}
|
|
10
|
+
function m(e, t) {
|
|
11
|
+
return !e || p(e) ? e : p(e.default) ? e.default : t && p(e[t]) ? e[t] : t && p(e[t]?.default) ? e[t].default : e;
|
|
12
|
+
}
|
|
13
|
+
var h = m(a, "UiLayout") || m(v.UiLayout, "UiLayout"), g = s, _ = g.default, v = _ && typeof _ == "object" ? _ : g, y = c(h)({
|
|
14
|
+
color: n.text(),
|
|
15
|
+
backgroundColor: n.background(),
|
|
16
|
+
"&:not(.MathJax) table": { borderCollapse: "collapse" },
|
|
17
|
+
"&:not(.MathJax) table td, &:not(.MathJax) table th": {
|
|
18
|
+
padding: "8px 12px",
|
|
19
|
+
textAlign: "left"
|
|
20
|
+
},
|
|
21
|
+
"& ul p, & ol p": {
|
|
22
|
+
marginBottom: 0,
|
|
23
|
+
marginTop: 0,
|
|
24
|
+
lineHeight: "normal"
|
|
25
|
+
}
|
|
26
|
+
}), b = c(t)({
|
|
27
|
+
display: "flex",
|
|
28
|
+
flexDirection: "column",
|
|
29
|
+
alignItems: "flex-start",
|
|
30
|
+
padding: "12px 0px"
|
|
31
|
+
}), x = c("div")({ color: n.text() }), S = c("h3")({
|
|
32
|
+
color: n.text(),
|
|
33
|
+
fontSize: "16px",
|
|
34
|
+
fontWeight: "700",
|
|
35
|
+
margin: 0,
|
|
36
|
+
paddingBottom: "6px"
|
|
37
|
+
}), C = c("h4")({
|
|
38
|
+
color: n.text(),
|
|
39
|
+
fontSize: "16px",
|
|
40
|
+
fontWeight: "normal",
|
|
41
|
+
margin: 0,
|
|
42
|
+
paddingBottom: "6px"
|
|
43
|
+
}), w = c("h2")(({ theme: e }) => ({
|
|
44
|
+
display: "flex",
|
|
45
|
+
alignItems: "center",
|
|
46
|
+
cursor: "pointer",
|
|
47
|
+
userSelect: "none",
|
|
48
|
+
fontSize: e.typography.fontSize,
|
|
49
|
+
fontWeight: "500",
|
|
50
|
+
color: n.tertiary(),
|
|
51
|
+
margin: 0
|
|
52
|
+
})), T = c("span")({
|
|
53
|
+
display: "inline-flex",
|
|
54
|
+
transition: "transform 0.2s",
|
|
55
|
+
marginLeft: 2,
|
|
56
|
+
alignSelf: "center"
|
|
57
|
+
}), E = c("h2")({
|
|
58
|
+
position: "absolute",
|
|
59
|
+
width: "1px",
|
|
60
|
+
height: "1px",
|
|
61
|
+
padding: 0,
|
|
62
|
+
margin: "-1px",
|
|
63
|
+
overflow: "hidden",
|
|
64
|
+
clip: "rect(0,0,0,0)",
|
|
65
|
+
border: 0,
|
|
66
|
+
whiteSpace: "nowrap"
|
|
67
|
+
}), D = f.default.shape({
|
|
68
|
+
excludeZero: f.default.bool,
|
|
69
|
+
points: f.default.arrayOf(f.default.string),
|
|
70
|
+
sampleAnswers: f.default.arrayOf(f.default.string),
|
|
71
|
+
animationsDisabled: f.default.bool
|
|
72
|
+
}), O = class extends l.Component {
|
|
73
|
+
dudUrl = "javascript:;";
|
|
74
|
+
constructor(e) {
|
|
75
|
+
super(e), this.state = {
|
|
76
|
+
rubricOpen: !1,
|
|
77
|
+
linkPrefix: "Show"
|
|
78
|
+
}, this.toggleRubric = this.toggleRubric.bind(this);
|
|
79
|
+
}
|
|
80
|
+
static propTypes = {
|
|
81
|
+
model: f.default.object.isRequired,
|
|
82
|
+
animationsDisabled: f.default.bool,
|
|
83
|
+
value: D
|
|
84
|
+
};
|
|
85
|
+
toggleRubric() {
|
|
86
|
+
this.setState({ rubricOpen: !this.state.rubricOpen }), this.setState({ linkPrefix: this.state.rubricOpen ? "Show" : "Hide" });
|
|
87
|
+
}
|
|
88
|
+
shouldRenderPoint = (e, t) => !t.excludeZero || e !== 0;
|
|
89
|
+
render() {
|
|
90
|
+
let { model: e, value: t } = this.props, { animationsDisabled: n } = this.props;
|
|
91
|
+
if (n ||= t.animationsDisabled, t && t.points) {
|
|
92
|
+
let { extraCSSRules: i } = e || {}, { points: a, sampleAnswers: s } = t, c = /* @__PURE__ */ u(r, {
|
|
93
|
+
component: "nav",
|
|
94
|
+
children: a.slice(0).reverse().map((e, n) => {
|
|
95
|
+
n = a.length - n - 1;
|
|
96
|
+
let r = t.excludeZero ? n + 1 : n;
|
|
97
|
+
return /* @__PURE__ */ d(l.Fragment, { children: [/* @__PURE__ */ d(b, { children: [/* @__PURE__ */ u(S, { children: r === 1 ? `${r} PT` : `${r} PTS` }), /* @__PURE__ */ u(x, { dangerouslySetInnerHTML: { __html: e } })] }, `P${n}`), s && s[n] && /* @__PURE__ */ d(b, { children: [/* @__PURE__ */ u(C, { children: "Sample Answer" }), /* @__PURE__ */ u(x, { dangerouslySetInnerHTML: { __html: s[n] } })] }, `S${n}`)] }, n);
|
|
98
|
+
})
|
|
99
|
+
});
|
|
100
|
+
return /* @__PURE__ */ d(y, {
|
|
101
|
+
extraCSSRules: i,
|
|
102
|
+
children: [/* @__PURE__ */ u(E, { children: "Rubric" }), n ? c : /* @__PURE__ */ d(l.Fragment, { children: [/* @__PURE__ */ d(w, {
|
|
103
|
+
id: "rubric-toggle",
|
|
104
|
+
tabIndex: 0,
|
|
105
|
+
role: "button",
|
|
106
|
+
"aria-expanded": this.state.rubricOpen,
|
|
107
|
+
onClick: this.toggleRubric,
|
|
108
|
+
onKeyPress: (e) => {
|
|
109
|
+
(e.key === "Enter" || e.key === " ") && this.toggleRubric();
|
|
110
|
+
},
|
|
111
|
+
children: [
|
|
112
|
+
this.state.linkPrefix,
|
|
113
|
+
" Rubric",
|
|
114
|
+
/* @__PURE__ */ u(T, {
|
|
115
|
+
"aria-hidden": "true",
|
|
116
|
+
children: this.state.rubricOpen ? /* @__PURE__ */ u("svg", {
|
|
117
|
+
width: "20",
|
|
118
|
+
height: "20",
|
|
119
|
+
viewBox: "0 0 24 24",
|
|
120
|
+
fill: "none",
|
|
121
|
+
stroke: "currentColor",
|
|
122
|
+
strokeWidth: "2",
|
|
123
|
+
strokeLinecap: "round",
|
|
124
|
+
strokeLinejoin: "round",
|
|
125
|
+
children: /* @__PURE__ */ u("polyline", { points: "18 15 12 9 6 15" })
|
|
126
|
+
}) : /* @__PURE__ */ u("svg", {
|
|
127
|
+
width: "20",
|
|
128
|
+
height: "20",
|
|
129
|
+
viewBox: "0 0 24 24",
|
|
130
|
+
fill: "none",
|
|
131
|
+
stroke: "currentColor",
|
|
132
|
+
strokeWidth: "2",
|
|
133
|
+
strokeLinecap: "round",
|
|
134
|
+
strokeLinejoin: "round",
|
|
135
|
+
children: /* @__PURE__ */ u("polyline", { points: "6 9 12 15 18 9" })
|
|
136
|
+
})
|
|
137
|
+
})
|
|
138
|
+
]
|
|
139
|
+
}), /* @__PURE__ */ u(o, {
|
|
140
|
+
in: this.state.rubricOpen,
|
|
141
|
+
timeout: {
|
|
142
|
+
enter: 225,
|
|
143
|
+
exit: 195
|
|
144
|
+
},
|
|
145
|
+
children: c
|
|
146
|
+
})] })]
|
|
147
|
+
});
|
|
148
|
+
} else return null;
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
//#endregion
|
|
152
|
+
export { O as t };
|
|
153
|
+
|
|
154
|
+
//# sourceMappingURL=main-sMMMvQIb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main-sMMMvQIb.js","names":[],"sources":["../../../src/delivery/main.tsx"],"sourcesContent":["// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/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 { styled } from '@mui/material/styles';\nimport ListItem from '@mui/material/ListItem';\nimport List from '@mui/material/List';\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;\nimport PropTypes from 'prop-types';\n\nconst StyledUiLayout: any = styled(UiLayout)({\n color: color.text(),\n backgroundColor: color.background(),\n // apply styles to tables to match the rest of the UI\n '&:not(.MathJax) table': {\n borderCollapse: 'collapse',\n },\n '&:not(.MathJax) table td, &:not(.MathJax) table th': {\n padding: '8px 12px',\n textAlign: 'left',\n },\n // reset paragraph margins and line-height inside lists to override client styles\n '& ul p, & ol p': {\n marginBottom: 0,\n marginTop: 0,\n lineHeight: 'normal',\n },\n});\n\nconst StyledListItem: any = styled(ListItem)({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n padding: '12px 0px',\n});\n\nconst Text: any = styled('div')({\n color: color.text(),\n});\n\nconst TitleText: any = styled('h3')({\n color: color.text(),\n fontSize: '16px',\n fontWeight: '700',\n margin: 0,\n paddingBottom: '6px',\n});\n\nconst SampleTitleText: any = styled('h4')({\n color: color.text(),\n fontSize: '16px',\n fontWeight: 'normal',\n margin: 0,\n paddingBottom: '6px',\n});\n\nconst RubricToggle: any = styled('h2')(({ theme }) => ({\n display: 'flex',\n alignItems: 'center',\n cursor: 'pointer',\n userSelect: 'none',\n fontSize: theme.typography.fontSize,\n fontWeight: '500',\n color: color.tertiary(),\n margin: 0,\n}));\n\nconst ChevronStyle: any = styled('span')({\n display: 'inline-flex',\n transition: 'transform 0.2s',\n marginLeft: 2,\n alignSelf: 'center',\n});\n\nconst HiddenScreenReader: any = styled('h2')({\n position: 'absolute',\n width: '1px',\n height: '1px',\n padding: 0,\n margin: '-1px',\n overflow: 'hidden',\n clip: 'rect(0,0,0,0)',\n border: 0,\n whiteSpace: 'nowrap',\n});\n\nexport const RubricType = PropTypes.shape({\n excludeZero: PropTypes.bool,\n points: PropTypes.arrayOf(PropTypes.string),\n sampleAnswers: PropTypes.arrayOf(PropTypes.string),\n animationsDisabled: PropTypes.bool,\n});\n\nclass Rubric extends React.Component {\n dudUrl = 'javascript:;';\n\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 static propTypes = {\n model: PropTypes.object.isRequired,\n animationsDisabled: PropTypes.bool,\n value: RubricType,\n };\n\n toggleRubric() {\n this.setState({ rubricOpen: !this.state.rubricOpen });\n this.setState({ linkPrefix: this.state.rubricOpen ? 'Show' : 'Hide' });\n }\n\n shouldRenderPoint: any = (index, value) => {\n if (!value.excludeZero) {\n return true;\n } else {\n return index !== 0;\n }\n };\n\n render() {\n const { model, value } = this.props;\n let { animationsDisabled } = this.props;\n animationsDisabled = animationsDisabled || value.animationsDisabled;\n\n if (value && value.points) {\n const { extraCSSRules } = model || {};\n const { points, sampleAnswers } = value;\n\n const rubricList = (\n <List component=\"nav\">\n {points\n .slice(0)\n .reverse()\n .map((desc, index) => {\n index = points.length - index - 1;\n const pointsLabel = value.excludeZero ? index + 1 : index;\n\n return (\n <React.Fragment key={index}>\n <StyledListItem key={`P${index}`}>\n <TitleText>\n {pointsLabel === 1 ? `${pointsLabel} PT` : `${pointsLabel} PTS`}\n </TitleText>\n <Text dangerouslySetInnerHTML={{ __html: desc }} />\n </StyledListItem>\n\n {sampleAnswers && sampleAnswers[index] && (\n <StyledListItem key={`S${index}`}>\n <SampleTitleText>\n Sample Answer\n </SampleTitleText>\n <Text dangerouslySetInnerHTML={{ __html: sampleAnswers[index] }} />\n </StyledListItem>\n )}\n </React.Fragment>\n );\n })}\n </List>\n );\n\n return (\n <StyledUiLayout extraCSSRules={extraCSSRules}>\n {/* screen reader only heading for navigation as per PD-5057 */}\n <HiddenScreenReader>Rubric</HiddenScreenReader>\n {!animationsDisabled ? (\n <React.Fragment>\n <RubricToggle\n id={'rubric-toggle'}\n tabIndex={0}\n role=\"button\"\n aria-expanded={this.state.rubricOpen}\n onClick={this.toggleRubric}\n onKeyPress={(e) => {\n if (e.key === 'Enter' || e.key === ' ') this.toggleRubric();\n }}\n >\n {this.state.linkPrefix} Rubric\n <ChevronStyle aria-hidden=\"true\">\n {this.state.rubricOpen ? (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"18 15 12 9 6 15\"></polyline>\n </svg>\n ) : (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"6 9 12 15 18 9\"></polyline>\n </svg>\n )}\n </ChevronStyle>\n </RubricToggle>\n <Collapse in={this.state.rubricOpen} timeout={{ enter: 225, exit: 195 }}>\n {rubricList}\n </Collapse>\n </React.Fragment>\n ) : (\n rubricList\n )}\n </StyledUiLayout>\n );\n } else {\n return null;\n }\n }\n}\n\nexport default Rubric;\n"],"mappings":"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"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { a as e } from "../rolldown-runtime-CHQKHQ89.js";
|
|
2
|
+
import { _ as t, y as n } from "../dist-ClPxMBUG.js";
|
|
3
|
+
import { t as r } from "../main-sMMMvQIb.js";
|
|
4
|
+
import { c as i } from "../dist-B8zq6W6A.js";
|
|
5
|
+
import a from "react";
|
|
6
|
+
import { createRoot as o } from "react-dom/client";
|
|
7
|
+
var s = (0, (/* @__PURE__ */ e(n(), 1)).default)("pie-element:rubric:print"), c = (e, t) => t.role === "instructor" ? (e.value = { ...e }, e.mode = "evaluate", e.animationsDisabled = !0, e) : {}, l = class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(), this._options = null, this._model = null, this._session = [], this._root = null, this._rerender = i(() => {
|
|
10
|
+
if (this._model && this._session) {
|
|
11
|
+
let e = c(this._model, this._options), n = this._options && a.createElement(r, { ...e });
|
|
12
|
+
this._root ||= o(this), this._root.render(n), queueMicrotask(() => {
|
|
13
|
+
s("render complete - render math"), t(this);
|
|
14
|
+
});
|
|
15
|
+
} else s("skip");
|
|
16
|
+
}, 50, {
|
|
17
|
+
leading: !1,
|
|
18
|
+
trailing: !0
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
set options(e) {
|
|
22
|
+
this._options = e;
|
|
23
|
+
}
|
|
24
|
+
set model(e) {
|
|
25
|
+
this._model = e, this._rerender();
|
|
26
|
+
}
|
|
27
|
+
connectedCallback() {}
|
|
28
|
+
disconnectedCallback() {
|
|
29
|
+
this._root && this._root.unmount();
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { l as default };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/print/index.tsx"],"sourcesContent":["// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/rubric/src/print.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 { debounce } from '@pie-element/shared-lodash';\nimport Main from '../delivery/main.js';\nimport { renderMath } from '@pie-element/shared-math-rendering-mathjax';\nimport debug from 'debug';\n\nconst log = debug('pie-element:rubric:print');\n\nconst preparePrintModel = (model, opts) => {\n const instr = opts.role === 'instructor';\n\n if (!instr) {\n return {};\n }\n\n model.value = { ...model };\n model.mode = 'evaluate';\n model.animationsDisabled = true;\n\n return model;\n};\n\nexport default class RubricPrint extends HTMLElement {\n constructor() {\n super();\n this._options = null;\n this._model = null;\n this._session = [];\n this._root = null;\n this._rerender = debounce(\n () => {\n if (this._model && this._session) {\n const printModel = preparePrintModel(this._model, this._options);\n\n const element =\n this._options &&\n React.createElement(Main, {\n ...printModel,\n });\n\n if (!this._root) {\n this._root = createRoot(this);\n }\n this._root.render(element);\n queueMicrotask(() => {\n log('render complete - render math');\n renderMath(this);\n });\n } else {\n log('skip');\n }\n },\n 50,\n { leading: false, trailing: true },\n );\n }\n set options(o) {\n this._options = o;\n }\n\n set model(s) {\n this._model = s;\n this._rerender();\n }\n\n connectedCallback() {}\n\n disconnectedCallback() {\n if (this._root) {\n this._root.unmount();\n }\n }\n}\n"],"mappings":";;;;;;AAiBA,IAAM,KAAA,IAAA,wBAAA,EAAA,CAAA,QAAA,CAAY,0BAA0B,GAEtC,KAAqB,GAAO,MAClB,EAAK,SAAS,gBAM5B,EAAM,QAAQ,EAAE,GAAG,EAAM,GACzB,EAAM,OAAO,YACb,EAAM,qBAAqB,IAEpB,KAPE,CAAC,GAUS,IAArB,cAAyC,YAAY;CACnD,cAAc;EAMZ,AALA,MAAM,GACN,KAAK,WAAW,MAChB,KAAK,SAAS,MACd,KAAK,WAAW,CAAC,GACjB,KAAK,QAAQ,MACb,KAAK,YAAY,QACT;GACJ,IAAI,KAAK,UAAU,KAAK,UAAU;IAChC,IAAM,IAAa,EAAkB,KAAK,QAAQ,KAAK,QAAQ,GAEzD,IACJ,KAAK,YACL,EAAM,cAAc,GAAM,EACxB,GAAG,EACL,CAAC;IAMH,AAJA,AACE,KAAK,UAAQ,EAAW,IAAI,GAE9B,KAAK,MAAM,OAAO,CAAO,GACzB,qBAAqB;KAEnB,AADA,EAAI,+BAA+B,GACnC,EAAW,IAAI;IACjB,CAAC;GACH,OACE,EAAI,MAAM;EAEd,GACA,IACA;GAAE,SAAS;GAAO,UAAU;EAAK,CACnC;CACF;CACA,IAAI,QAAQ,GAAG;EACb,KAAK,WAAW;CAClB;CAEA,IAAI,MAAM,GAAG;EAEX,AADA,KAAK,SAAS,GACd,KAAK,UAAU;CACjB;CAEA,oBAAoB,CAAC;CAErB,uBAAuB;EACrB,AAAI,KAAK,SACP,KAAK,MAAM,QAAQ;CAEvB;AACF"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as __pieBrowserCjsReactRequire from "react";
|
|
2
|
+
const __pieBrowserCjsRequire = (specifier) => {
|
|
3
|
+
switch (specifier) {
|
|
4
|
+
case "react": return __pieBrowserCjsReactRequire;
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
default:
|
|
10
|
+
throw new Error(`Unsupported browser CJS require: ${specifier}`);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
//#region \0rolldown/runtime.js
|
|
14
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => {
|
|
15
|
+
let r = {};
|
|
16
|
+
for (var i in e) t(r, i, {
|
|
17
|
+
get: e[i],
|
|
18
|
+
enumerable: !0
|
|
19
|
+
});
|
|
20
|
+
return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
21
|
+
}, c = (e, i, o, s) => {
|
|
22
|
+
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
23
|
+
get: ((e) => i[e]).bind(null, d),
|
|
24
|
+
enumerable: !(s = n(i, d)) || s.enumerable
|
|
25
|
+
});
|
|
26
|
+
return e;
|
|
27
|
+
}, l = (e, t, n) => (c(e, t, "default"), n && c(n, t, "default")), u = (n, r, a) => (a = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule ? t(a, "default", {
|
|
28
|
+
value: n,
|
|
29
|
+
enumerable: !0
|
|
30
|
+
}) : a, n)), d = __pieBrowserCjsRequire;
|
|
31
|
+
//#endregion
|
|
32
|
+
export { u as a, d as i, s as n, l as r, o as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as e } from "./rolldown-runtime-CWhphoD1.js";
|
|
2
|
-
import { H as t, O as n, V as r, bt as i, f as a, k as o, t as s, tt as c } from "./dist-
|
|
2
|
+
import { H as t, O as n, V as r, bt as i, f as a, k as o, t as s, tt as c } from "./dist-P6cQUg1d.js";
|
|
3
3
|
import l from "react";
|
|
4
4
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
5
5
|
//#region src/delivery/main.tsx
|
|
@@ -151,4 +151,4 @@ var h = m(a, "UiLayout") || m(v.UiLayout, "UiLayout"), g = s, _ = g.default, v =
|
|
|
151
151
|
//#endregion
|
|
152
152
|
export { O as t };
|
|
153
153
|
|
|
154
|
-
//# sourceMappingURL=main-
|
|
154
|
+
//# sourceMappingURL=main-Dj-7WB-D.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main-DZoAI8Ok.js","names":[],"sources":["../../src/delivery/main.tsx"],"sourcesContent":["// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/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 { styled } from '@mui/material/styles';\nimport ListItem from '@mui/material/ListItem';\nimport List from '@mui/material/List';\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;\nimport PropTypes from 'prop-types';\n\nconst StyledUiLayout: any = styled(UiLayout)({\n color: color.text(),\n backgroundColor: color.background(),\n // apply styles to tables to match the rest of the UI\n '&:not(.MathJax) table': {\n borderCollapse: 'collapse',\n },\n '&:not(.MathJax) table td, &:not(.MathJax) table th': {\n padding: '8px 12px',\n textAlign: 'left',\n },\n // reset paragraph margins and line-height inside lists to override client styles\n '& ul p, & ol p': {\n marginBottom: 0,\n marginTop: 0,\n lineHeight: 'normal',\n },\n});\n\nconst StyledListItem: any = styled(ListItem)({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n padding: '12px 0px',\n});\n\nconst Text: any = styled('div')({\n color: color.text(),\n});\n\nconst TitleText: any = styled('h3')({\n color: color.text(),\n fontSize: '16px',\n fontWeight: '700',\n margin: 0,\n paddingBottom: '6px',\n});\n\nconst SampleTitleText: any = styled('h4')({\n color: color.text(),\n fontSize: '16px',\n fontWeight: 'normal',\n margin: 0,\n paddingBottom: '6px',\n});\n\nconst RubricToggle: any = styled('h2')(({ theme }) => ({\n display: 'flex',\n alignItems: 'center',\n cursor: 'pointer',\n userSelect: 'none',\n fontSize: theme.typography.fontSize,\n fontWeight: '500',\n color: color.tertiary(),\n margin: 0,\n}));\n\nconst ChevronStyle: any = styled('span')({\n display: 'inline-flex',\n transition: 'transform 0.2s',\n marginLeft: 2,\n alignSelf: 'center',\n});\n\nconst HiddenScreenReader: any = styled('h2')({\n position: 'absolute',\n width: '1px',\n height: '1px',\n padding: 0,\n margin: '-1px',\n overflow: 'hidden',\n clip: 'rect(0,0,0,0)',\n border: 0,\n whiteSpace: 'nowrap',\n});\n\nexport const RubricType = PropTypes.shape({\n excludeZero: PropTypes.bool,\n points: PropTypes.arrayOf(PropTypes.string),\n sampleAnswers: PropTypes.arrayOf(PropTypes.string),\n animationsDisabled: PropTypes.bool,\n});\n\nclass Rubric extends React.Component {\n dudUrl = 'javascript:;';\n\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 static propTypes = {\n model: PropTypes.object.isRequired,\n animationsDisabled: PropTypes.bool,\n value: RubricType,\n };\n\n toggleRubric() {\n this.setState({ rubricOpen: !this.state.rubricOpen });\n this.setState({ linkPrefix: this.state.rubricOpen ? 'Show' : 'Hide' });\n }\n\n shouldRenderPoint: any = (index, value) => {\n if (!value.excludeZero) {\n return true;\n } else {\n return index !== 0;\n }\n };\n\n render() {\n const { model, value } = this.props;\n let { animationsDisabled } = this.props;\n animationsDisabled = animationsDisabled || value.animationsDisabled;\n\n if (value && value.points) {\n const { extraCSSRules } = model || {};\n const { points, sampleAnswers } = value;\n\n const rubricList = (\n <List component=\"nav\">\n {points\n .slice(0)\n .reverse()\n .map((desc, index) => {\n index = points.length - index - 1;\n const pointsLabel = value.excludeZero ? index + 1 : index;\n\n return (\n <React.Fragment key={index}>\n <StyledListItem key={`P${index}`}>\n <TitleText>\n {pointsLabel === 1 ? `${pointsLabel} PT` : `${pointsLabel} PTS`}\n </TitleText>\n <Text dangerouslySetInnerHTML={{ __html: desc }} />\n </StyledListItem>\n\n {sampleAnswers && sampleAnswers[index] && (\n <StyledListItem key={`S${index}`}>\n <SampleTitleText>\n Sample Answer\n </SampleTitleText>\n <Text dangerouslySetInnerHTML={{ __html: sampleAnswers[index] }} />\n </StyledListItem>\n )}\n </React.Fragment>\n );\n })}\n </List>\n );\n\n return (\n <StyledUiLayout extraCSSRules={extraCSSRules}>\n {/* screen reader only heading for navigation as per PD-5057 */}\n <HiddenScreenReader>Rubric</HiddenScreenReader>\n {!animationsDisabled ? (\n <React.Fragment>\n <RubricToggle\n id={'rubric-toggle'}\n tabIndex={0}\n role=\"button\"\n aria-expanded={this.state.rubricOpen}\n onClick={this.toggleRubric}\n onKeyPress={(e) => {\n if (e.key === 'Enter' || e.key === ' ') this.toggleRubric();\n }}\n >\n {this.state.linkPrefix} Rubric\n <ChevronStyle aria-hidden=\"true\">\n {this.state.rubricOpen ? (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"18 15 12 9 6 15\"></polyline>\n </svg>\n ) : (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"6 9 12 15 18 9\"></polyline>\n </svg>\n )}\n </ChevronStyle>\n </RubricToggle>\n <Collapse in={this.state.rubricOpen} timeout={{ enter: 225, exit: 195 }}>\n {rubricList}\n </Collapse>\n </React.Fragment>\n ) : (\n rubricList\n )}\n </StyledUiLayout>\n );\n } else {\n return null;\n }\n }\n}\n\nexport default Rubric;\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"main-Dj-7WB-D.js","names":[],"sources":["../../src/delivery/main.tsx"],"sourcesContent":["// @ts-nocheck\n/**\n * @synced-from pie-elements/packages/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 { styled } from '@mui/material/styles';\nimport ListItem from '@mui/material/ListItem';\nimport List from '@mui/material/List';\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;\nimport PropTypes from 'prop-types';\n\nconst StyledUiLayout: any = styled(UiLayout)({\n color: color.text(),\n backgroundColor: color.background(),\n // apply styles to tables to match the rest of the UI\n '&:not(.MathJax) table': {\n borderCollapse: 'collapse',\n },\n '&:not(.MathJax) table td, &:not(.MathJax) table th': {\n padding: '8px 12px',\n textAlign: 'left',\n },\n // reset paragraph margins and line-height inside lists to override client styles\n '& ul p, & ol p': {\n marginBottom: 0,\n marginTop: 0,\n lineHeight: 'normal',\n },\n});\n\nconst StyledListItem: any = styled(ListItem)({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n padding: '12px 0px',\n});\n\nconst Text: any = styled('div')({\n color: color.text(),\n});\n\nconst TitleText: any = styled('h3')({\n color: color.text(),\n fontSize: '16px',\n fontWeight: '700',\n margin: 0,\n paddingBottom: '6px',\n});\n\nconst SampleTitleText: any = styled('h4')({\n color: color.text(),\n fontSize: '16px',\n fontWeight: 'normal',\n margin: 0,\n paddingBottom: '6px',\n});\n\nconst RubricToggle: any = styled('h2')(({ theme }) => ({\n display: 'flex',\n alignItems: 'center',\n cursor: 'pointer',\n userSelect: 'none',\n fontSize: theme.typography.fontSize,\n fontWeight: '500',\n color: color.tertiary(),\n margin: 0,\n}));\n\nconst ChevronStyle: any = styled('span')({\n display: 'inline-flex',\n transition: 'transform 0.2s',\n marginLeft: 2,\n alignSelf: 'center',\n});\n\nconst HiddenScreenReader: any = styled('h2')({\n position: 'absolute',\n width: '1px',\n height: '1px',\n padding: 0,\n margin: '-1px',\n overflow: 'hidden',\n clip: 'rect(0,0,0,0)',\n border: 0,\n whiteSpace: 'nowrap',\n});\n\nexport const RubricType = PropTypes.shape({\n excludeZero: PropTypes.bool,\n points: PropTypes.arrayOf(PropTypes.string),\n sampleAnswers: PropTypes.arrayOf(PropTypes.string),\n animationsDisabled: PropTypes.bool,\n});\n\nclass Rubric extends React.Component {\n dudUrl = 'javascript:;';\n\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 static propTypes = {\n model: PropTypes.object.isRequired,\n animationsDisabled: PropTypes.bool,\n value: RubricType,\n };\n\n toggleRubric() {\n this.setState({ rubricOpen: !this.state.rubricOpen });\n this.setState({ linkPrefix: this.state.rubricOpen ? 'Show' : 'Hide' });\n }\n\n shouldRenderPoint: any = (index, value) => {\n if (!value.excludeZero) {\n return true;\n } else {\n return index !== 0;\n }\n };\n\n render() {\n const { model, value } = this.props;\n let { animationsDisabled } = this.props;\n animationsDisabled = animationsDisabled || value.animationsDisabled;\n\n if (value && value.points) {\n const { extraCSSRules } = model || {};\n const { points, sampleAnswers } = value;\n\n const rubricList = (\n <List component=\"nav\">\n {points\n .slice(0)\n .reverse()\n .map((desc, index) => {\n index = points.length - index - 1;\n const pointsLabel = value.excludeZero ? index + 1 : index;\n\n return (\n <React.Fragment key={index}>\n <StyledListItem key={`P${index}`}>\n <TitleText>\n {pointsLabel === 1 ? `${pointsLabel} PT` : `${pointsLabel} PTS`}\n </TitleText>\n <Text dangerouslySetInnerHTML={{ __html: desc }} />\n </StyledListItem>\n\n {sampleAnswers && sampleAnswers[index] && (\n <StyledListItem key={`S${index}`}>\n <SampleTitleText>\n Sample Answer\n </SampleTitleText>\n <Text dangerouslySetInnerHTML={{ __html: sampleAnswers[index] }} />\n </StyledListItem>\n )}\n </React.Fragment>\n );\n })}\n </List>\n );\n\n return (\n <StyledUiLayout extraCSSRules={extraCSSRules}>\n {/* screen reader only heading for navigation as per PD-5057 */}\n <HiddenScreenReader>Rubric</HiddenScreenReader>\n {!animationsDisabled ? (\n <React.Fragment>\n <RubricToggle\n id={'rubric-toggle'}\n tabIndex={0}\n role=\"button\"\n aria-expanded={this.state.rubricOpen}\n onClick={this.toggleRubric}\n onKeyPress={(e) => {\n if (e.key === 'Enter' || e.key === ' ') this.toggleRubric();\n }}\n >\n {this.state.linkPrefix} Rubric\n <ChevronStyle aria-hidden=\"true\">\n {this.state.rubricOpen ? (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"18 15 12 9 6 15\"></polyline>\n </svg>\n ) : (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <polyline points=\"6 9 12 15 18 9\"></polyline>\n </svg>\n )}\n </ChevronStyle>\n </RubricToggle>\n <Collapse in={this.state.rubricOpen} timeout={{ enter: 225, exit: 195 }}>\n {rubricList}\n </Collapse>\n </React.Fragment>\n ) : (\n rubricList\n )}\n </StyledUiLayout>\n );\n } else {\n return null;\n }\n }\n}\n\nexport default Rubric;\n"],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as e } from "../rolldown-runtime-CWhphoD1.js";
|
|
2
|
-
import { _ as t, y as n } from "../dist-
|
|
3
|
-
import { t as r } from "../main-
|
|
2
|
+
import { _ as t, y as n } from "../dist-P6cQUg1d.js";
|
|
3
|
+
import { t as r } from "../main-Dj-7WB-D.js";
|
|
4
4
|
import { c as i } from "../dist-B8zq6W6A.js";
|
|
5
5
|
import a from "react";
|
|
6
6
|
import { createRoot as o } from "react-dom/client";
|
package/dist/index.iife.js
CHANGED
|
@@ -115,7 +115,7 @@ Error generating stack: `+e.message+`
|
|
|
115
115
|
}
|
|
116
116
|
`,Os=F.forwardRef(function(e,t){let{center:n=!1,classes:r={},className:i,...a}=go({props:e,name:`MuiTouchRipple`}),[o,s]=F.useState([]),c=F.useRef(0),l=F.useRef(null);F.useEffect(()=>{l.current&&=(l.current(),null)},[o]);let u=F.useRef(!1),d=ys(),f=F.useRef(null),p=F.useRef(null),m=F.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:i,rippleSize:a,cb:o}=e;s(e=>[...e,(0,L.jsx)(Ds,{classes:{ripple:B(r.ripple,xs.ripple),rippleVisible:B(r.rippleVisible,xs.rippleVisible),ripplePulsate:B(r.ripplePulsate,xs.ripplePulsate),child:B(r.child,xs.child),childLeaving:B(r.childLeaving,xs.childLeaving),childPulsate:B(r.childPulsate,xs.childPulsate)},timeout:Ss,pulsate:t,rippleX:n,rippleY:i,rippleSize:a},c.current)]),c.current+=1,l.current=o},[r]),h=F.useCallback((e={},t={},r=()=>{})=>{let{pulsate:i=!1,center:a=n||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&u.current){u.current=!1;return}e?.type===`touchstart`&&(u.current=!0);let s=o?null:p.current,c=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0},l,h,g;if(a||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)l=Math.round(c.width/2),h=Math.round(c.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;l=Math.round(t-c.left),h=Math.round(n-c.top)}if(a)g=Math.sqrt((2*c.width**2+c.height**2)/3),g%2==0&&(g+=1);else{let e=Math.max(Math.abs((s?s.clientWidth:0)-l),l)*2+2,t=Math.max(Math.abs((s?s.clientHeight:0)-h),h)*2+2;g=Math.sqrt(e**2+t**2)}e?.touches?f.current===null&&(f.current=()=>{m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},d.start(80,()=>{f.current&&=(f.current(),null)})):m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},[n,m,d]),g=F.useCallback(()=>{h({},{pulsate:!0})},[h]),_=F.useCallback((e,t)=>{if(d.clear(),e?.type===`touchend`&&f.current){f.current(),f.current=null,d.start(0,()=>{_(e,t)});return}f.current=null,s(e=>e.length>0?e.slice(1):e),l.current=t},[d]);return F.useImperativeHandle(t,()=>({pulsate:g,start:h,stop:_}),[g,h,_]),(0,L.jsx)(Es,{className:B(xs.root,r.root,i),ref:p,...a,children:(0,L.jsx)(hs,{component:null,exit:!0,children:o})})});function ks(e){return V(`MuiButtonBase`,e)}var As=kr(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),js=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=G({root:[`root`,t&&`disabled`,n&&`focusVisible`]},ks,i);return n&&r&&(a.root+=` ${r}`),a},Ms=q(`button`,{name:`MuiButtonBase`,slot:`Root`})({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,boxSizing:`border-box`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,textDecoration:`none`,color:`inherit`,"&::-moz-focus-inner":{borderStyle:`none`},[`&.${As.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),Ns=F.forwardRef(function(e,t){let n=go({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:f,LinkComponent:p=`a`,onBlur:m,onClick:h,onContextMenu:g,onDragLeave:_,onFocus:v,onFocusVisible:y,onKeyDown:b,onKeyUp:x,onMouseDown:S,onMouseLeave:C,onMouseUp:w,onTouchEnd:T,onTouchMove:E,onTouchStart:D,tabIndex:ee=0,TouchRippleProps:te,touchRippleRef:ne,type:O,...k}=n,A=F.useRef(null),j=Po(),M=yo(j.ref,ne),[re,N]=F.useState(!1);c&&re&&N(!1),F.useImperativeHandle(r,()=>({focusVisible:()=>{N(!0),A.current.focus()}}),[]);let P=j.shouldMount&&!l&&!c;F.useEffect(()=>{re&&d&&!l&&j.pulsate()},[l,d,re,j]);let ie=Ps(j,`start`,S,u),ae=Ps(j,`stop`,g,u),oe=Ps(j,`stop`,_,u),se=Ps(j,`stop`,w,u),ce=Ps(j,`stop`,e=>{re&&e.preventDefault(),C&&C(e)},u),le=Ps(j,`start`,D,u),ue=Ps(j,`stop`,T,u),de=Ps(j,`stop`,E,u),fe=Ps(j,`stop`,e=>{Oo(e.target)||N(!1),m&&m(e)},!1),pe=Ao(e=>{A.current||=e.currentTarget,Oo(e.target)&&(N(!0),y&&y(e)),v&&v(e)}),me=()=>{let e=A.current;return e?e.tagName!==`BUTTON`&&!(e.tagName===`A`&&e.href):s&&s!==`button`},he=Ao(e=>{d&&!e.repeat&&re&&e.key===` `&&j.stop(e,()=>{j.start(e)}),e.target===e.currentTarget&&me()&&e.key===` `&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&me()&&e.key===`Enter`&&!c&&(e.preventDefault(),h&&h(e))}),ge=Ao(e=>{d&&e.key===` `&&re&&!e.defaultPrevented&&j.stop(e,()=>{j.pulsate(e)}),x&&x(e),h&&e.target===e.currentTarget&&me()&&e.key===` `&&!e.defaultPrevented&&!c&&h(e)}),_e=s;_e===`button`&&(k.href||k.to)&&(_e=p);let ve={};if(_e===`button`){let e=!!k.formAction;ve.type=O===void 0&&!e?`button`:O,ve.disabled=c}else!k.href&&!k.to&&(ve.role=`button`),c&&(ve[`aria-disabled`]=c);let ye=yo(t,A),be={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,tabIndex:ee,focusVisible:re},xe=js(be);return(0,L.jsxs)(Ms,{as:_e,className:B(xe.root,o),ownerState:be,onBlur:fe,onClick:h,onContextMenu:ae,onFocus:pe,onKeyDown:he,onKeyUp:ge,onMouseDown:ie,onMouseLeave:ce,onMouseUp:se,onDragLeave:oe,onTouchEnd:ue,onTouchMove:de,onTouchStart:le,ref:ye,tabIndex:c?-1:ee,type:O,...ve,...k,children:[a,P?(0,L.jsx)(Os,{ref:M,center:i,...te}):null]})});function Ps(e,t,n,r=!1){return Ao(i=>(n&&n(i),r||e[t](i),!0))}var Fs=Ur,Is=kr(`MuiListItemButton`,[`root`,`focusVisible`,`dense`,`alignItemsFlexStart`,`disabled`,`divider`,`gutters`,`selected`]);function Ls(e){return V(`MuiListItemSecondaryAction`,e)}kr(`MuiListItemSecondaryAction`,[`root`,`disableGutters`]);var Rs=e=>{let{disableGutters:t,classes:n}=e;return G({root:[`root`,t&&`disableGutters`]},Ls,n)},zs=q(`div`,{name:`MuiListItemSecondaryAction`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:`absolute`,right:16,top:`50%`,transform:`translateY(-50%)`,variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Bs=F.forwardRef(function(e,t){let n=go({props:e,name:`MuiListItemSecondaryAction`}),{className:r,...i}=n,a=F.useContext(Eo),o={...n,disableGutters:a.disableGutters},s=Rs(o);return(0,L.jsx)(zs,{className:B(s.root,r),ownerState:o,ref:t,...i})});Bs.muiName=`ListItemSecondaryAction`;var Vs=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems===`flex-start`&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},Hs=e=>{let{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:a,divider:o,hasSecondaryAction:s}=e;return G({root:[`root`,r&&`dense`,!i&&`gutters`,!a&&`padding`,o&&`divider`,t===`flex-start`&&`alignItemsFlexStart`,s&&`secondaryAction`],container:[`container`],secondaryAction:[`secondaryAction`]},Do,n)},Us=q(`div`,{name:`MuiListItem`,slot:`Root`,overridesResolver:Vs})(J(({theme:e})=>({display:`flex`,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,width:`100%`,boxSizing:`border-box`,textAlign:`left`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${Is.root}`]:{paddingRight:48}}},{props:{alignItems:`flex-start`},style:{alignItems:`flex-start`}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>e.button,style:{transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),Ws=q(`li`,{name:`MuiListItem`,slot:`Container`})({position:`relative`}),Gs=F.forwardRef(function(e,t){let n=go({props:e,name:`MuiListItem`}),{alignItems:r=`center`,children:i,className:a,component:o,components:s={},componentsProps:c={},ContainerComponent:l=`li`,ContainerProps:{className:u,...d}={},dense:f=!1,disableGutters:p=!1,disablePadding:m=!1,divider:h=!1,secondaryAction:g,slotProps:_={},slots:v={},...y}=n,b=F.useContext(Eo),x=F.useMemo(()=>({dense:f||b.dense||!1,alignItems:r,disableGutters:p}),[r,b.dense,f,p]),S=F.useRef(null),C=F.Children.toArray(i),w=C.length&&_o(C[C.length-1],[`ListItemSecondaryAction`]),T={...n,alignItems:r,dense:x.dense,disableGutters:p,disablePadding:m,divider:h,hasSecondaryAction:w},E=Hs(T),D=yo(S,t),[ee,te]=To(`secondaryAction`,{elementType:Bs,externalForwardedProps:{slots:v,slotProps:_},ownerState:T,className:E.secondaryAction}),ne=v.root||s.Root||Us,O=_.root||c.root||{},k={className:B(E.root,O.className,a),...y},A=o||`li`;return w?(A=!k.component&&!o?`div`:A,l===`li`&&(A===`li`?A=`div`:k.component===`li`&&(k.component=`div`)),(0,L.jsx)(Eo.Provider,{value:x,children:(0,L.jsxs)(Ws,{as:l,className:B(E.container,u),ref:D,ownerState:T,...d,children:[(0,L.jsx)(ne,{...O,...!ho(ne)&&{as:A,ownerState:{...T,...O.ownerState}},...k,children:C}),C.pop()]})})):(0,L.jsx)(Eo.Provider,{value:x,children:(0,L.jsxs)(ne,{...O,as:A,ref:D,...!ho(ne)&&{ownerState:{...T,...O.ownerState}},...k,children:[C,g&&(0,L.jsx)(ee,{...te,children:g})]})})});function Ks(e){return V(`MuiList`,e)}kr(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var qs=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return G({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},Ks,t)},Js=q(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Ys=F.forwardRef(function(e,t){let n=go({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=F.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=qs(d);return(0,L.jsx)(Eo.Provider,{value:u,children:(0,L.jsxs)(Js,{as:a,className:B(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),Xs=e=>e.scrollTop;function Zs(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function Qs(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function $s(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}}var Y=vn;function ec(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function tc(e){return V(`MuiSvgIcon`,e)}kr(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var nc=e=>{let{color:t,fontSize:n,classes:r}=e;return G({root:[`root`,t!==`inherit`&&`color${Y(t)}`,`fontSize${Y(n)}`]},tc,r)},rc=q(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${Y(n.color)}`],t[`fontSize${Y(n.fontSize)}`]]}})(J(({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}}]}))),ic=F.forwardRef(function(e,t){let n=go({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=nc(m);return(0,L.jsxs)(rc,{as:o,className:B(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]})});ic.muiName=`SvgIcon`;function ac(e,t){function n(t,n){return(0,L.jsx)(ic,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=ic.muiName,F.memo(F.forwardRef(n))}function oc(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var sc=oc;function cc(e){return e&&e.ownerDocument||document}var lc=cc;function uc(e){return cc(e).defaultView||window}var dc=uc;function fc(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var pc=xi;function X(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function mc(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{X(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=B(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=B(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 hc(e){return V(`MuiCollapse`,e)}kr(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var gc=e=>{let{orientation:t,classes:n}=e;return G({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},hc,n)},_c=q(`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]}})(J(({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`}}]}))),vc=q(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),yc=q(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),bc=F.forwardRef(function(e,t){let n=go({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=Oa.standard,TransitionComponent:x=ns,...S}=n,C={...n,orientation:g,collapsedSize:o},w=gc(C),T=io(),E=ys(),D=F.useRef(null),ee=F.useRef(),te=typeof o==`number`?`${o}px`:o,ne=g===`horizontal`,O=ne?`width`:`height`,k=F.useRef(null),A=yo(t,k),j=()=>D.current?D.current[ne?`clientWidth`:`clientHeight`]:0,M=Zs(k,(e,t)=>{D.current&&ne&&(D.current.style.position=`absolute`),e.style[O]=te,u&&u(e,t)}),re=Zs(k,(e,t)=>{let n=j();D.current&&ne&&(D.current.style.position=``);let{duration:r,easing:i}=$s({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,ee.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[O]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),N=Zs(k,(e,t)=>{e.style[O]=`auto`,d&&d(e,t)}),P=Zs(k,e=>{e.style[O]=`${j()}px`,p&&p(e)}),ie=Zs(k,m),ae=Zs(k,e=>{let t=j(),{duration:n,easing:r}=$s({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,ee.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[O]=te,e.style.transitionTimingFunction=r,h&&h(e)}),oe=e=>{b===`auto`&&E.start(ee.current||0,e),r&&r(k.current,e)},se={slots:_,slotProps:v,component:s},[ce,le]=To(`root`,{ref:A,className:B(w.root,a),elementType:_c,externalForwardedProps:se,ownerState:C,additionalProps:{style:{[ne?`minWidth`:`minHeight`]:te,...y}}}),[ue,de]=To(`wrapper`,{ref:D,className:w.wrapper,elementType:vc,externalForwardedProps:se,ownerState:C}),[fe,pe]=To(`wrapperInner`,{className:w.wrapperInner,elementType:yc,externalForwardedProps:se,ownerState:C});return(0,L.jsx)(x,{in:l,onEnter:M,onEntered:N,onEntering:re,onExit:P,onExited:ie,onExiting:ae,addEndListener:oe,nodeRef:k,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,L.jsx)(ce,{...le,className:B(le.className,{entered:w.entered,exited:!l&&te===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,L.jsx)(ue,{...de,ownerState:r,children:(0,L.jsx)(fe,{...pe,ownerState:r,children:i})})})}})});bc&&(bc.muiSupportAuto=!0);var xc=e=>typeof e==`string`?e:typeof e==`number`?`${e}px`:`30px`,Sc=({size:e,children:t})=>(e=xc(e),(0,L.jsx)(`div`,{style:{height:e,width:e,display:`inline-block`,position:`relative`},children:t}));Sc.propTypes={size:I.number,children:I.oneOfType([I.arrayOf(I.node),I.node]).isRequired};var Cc=({size:e,children:t,sx:n})=>(0,L.jsx)(Sc,{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})});Cc.propTypes={size:I.oneOfType([I.string,I.number]),children:I.oneOfType([I.arrayOf(I.node),I.node]).isRequired,sx:I.object};var wc=({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});wc.propTypes={fill:I.string.isRequired};var Tc=({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});Tc.propTypes={fill:I.string.isRequired};var Ec=({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});Ec.propTypes={fill:I.string.isRequired};var Dc=({fill:e})=>(0,L.jsx)(`circle`,{transform:`translate(-3,0)`,cx:`23`,cy:`20.4`,r:`16`,fill:e});Dc.propTypes={fill:I.string.isRequired};var Oc=({fill:e})=>(0,L.jsx)(`rect`,{x:`3.6`,y:`4.1`,width:`32`,height:`32`,fill:e});Oc.propTypes={fill:I.string.isRequired};var kc=(e,t)=>{class n extends F.Component{static propTypes={iconSet:I.oneOf([`emoji`,`check`]),shape:I.oneOf([`round`,`square`]),category:I.oneOf([`feedback`,void 0]),open:I.bool,size:I.oneOfType([I.number,I.string]),fg:I.string,bg:I.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)(Cc,{size:o,children:u}):(0,L.jsxs)(Cc,{size:o,children:[i===`feedback`?r===`round`?(0,L.jsx)(Ec,{fill:c}):(0,L.jsx)(Tc,{fill:c}):r===`round`?(0,L.jsx)(Dc,{fill:c}):(0,L.jsx)(Oc,{fill:c}),l]})}}return n},Ac=({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
|
|
117
117
|
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})]});Ac.propTypes={fill:I.string.isRequired};var jc=({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});jc.propTypes={fill:I.string.isRequired,x:I.number,y:I.number};var Mc=kc(jc,Ac);Mc.propTypes={iconSet:I.oneOf([`emoji`,`check`]),shape:I.oneOf([`round`,`square`]),category:I.oneOf([`feedback`,void 0]),open:I.bool,fg:I.string,bg:I.string,size:I.oneOfType([I.string,I.number])},Mc.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#f8ffe2`,size:30};var Nc=({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})]});Nc.propTypes={fill:I.string.isRequired};var Pc=({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})]});Pc.propTypes={fill:I.string.isRequired};var Fc=kc(Nc,Pc);Fc.propTypes={iconSet:I.oneOf([`emoji`,`check`]),shape:I.oneOf([`round`,`square`]),category:I.oneOf([`feedback`,void 0]),open:I.bool,fg:I.string,bg:I.string,size:I.oneOfType([I.string,I.number])},Fc.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30};var Ic=({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})]});Ic.propTypes={fill:I.string.isRequired};var Lc=({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});Lc.propTypes={fill:I.string.isRequired};var Rc=({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
|
|
118
|
-
C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});Rc.propTypes={fill:I.string.isRequired};var zc=class extends F.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,L.jsxs)(Cc,{children:[(0,L.jsx)(Lc,{fill:n}),(0,L.jsx)(Ic,{fill:t})]}),emoji:(0,L.jsxs)(Cc,{children:[(0,L.jsx)(Lc,{fill:n}),(0,L.jsx)(Rc,{fill:t})]}),feedback:{check:(0,L.jsxs)(Cc,{children:[(0,L.jsx)(Lc,{fill:n}),(0,L.jsx)(Rc,{fill:t})]}),emoji:(0,L.jsxs)(Cc,{children:[(0,L.jsx)(Lc,{fill:n}),(0,L.jsx)(Rc,{fill:t})]}),square:{check:(0,L.jsxs)(Cc,{children:[(0,L.jsx)(Lc,{fill:n}),(0,L.jsx)(Ic,{fill:t})]}),emoji:(0,L.jsxs)(Cc,{children:[(0,L.jsx)(Lc,{fill:n}),(0,L.jsx)(Rc,{fill:t})]}),open:{check:(0,L.jsx)(Cc,{children:(0,L.jsx)(Ic,{fill:n})}),emoji:(0,L.jsx)(Cc,{children:(0,L.jsx)(Rc,{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]}};zc.propTypes={iconSet:I.oneOf([`emoji`,`check`,void 0]),shape:I.oneOf([`square`,void 0]),category:I.oneOf([`feedback`,void 0]),open:I.bool,fg:I.string,bg:I.string},zc.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var Bc=({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})]});Bc.propTypes={fill:I.string.isRequired};var Vc=({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})]});Vc.propTypes={fill:I.string.isRequired};var Hc=kc(Bc,Vc);Hc.propTypes={iconSet:I.oneOf([`emoji`,`check`]),shape:I.oneOf([`round`,`square`]),category:I.oneOf([`feedback`,void 0]),open:I.bool,fg:I.string,bg:I.string,size:I.oneOfType([I.string,I.number])},Hc.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function Z(e){return e?.ref||null}function Uc(e){return`scale(${e}, ${e**2})`}var Wc={entering:{opacity:1,transform:Uc(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:Uc(.75)},exited:{opacity:0,transform:Uc(.75)}},Gc={opacity:0,transform:Uc(.75),visibility:`hidden`},Kc=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=ys(),_=F.useRef(),v=io(),y=F.useRef(null),b=yo(y,Z(i),t),x=Zs(y,l),S=Zs(y,(e,t)=>{Xs(e);let{duration:n,delay:r,easing:i}=$s({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=Zs(y,c),w=Zs(y,f),T=Zs(y,e=>{let{duration:t,delay:n,easing:r}=$s({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=Uc(.75),u&&u(e)}),E=Zs(y,e=>{e.style.transition=``,d&&d(e)});return(0,L.jsx)(ns,{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=Qs(e,o,Wc,Gc,p,i.props.style);return F.cloneElement(i,{style:r,ref:b,...n})}})});Kc&&(Kc.muiSupportAuto=!0);function qc(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Jc(e){let t=cc(e);return t.body===e?uc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Yc(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function Xc(e){return parseFloat(uc(e).getComputedStyle(e).paddingRight)||0}function Zc(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 Qc(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!Zc(e);t&&n&&Yc(e,i)})}function $c(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function el(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(Jc(r)){let e=qc(uc(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${Xc(r)+e}px`;let t=cc(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${Xc(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=cc(r).body;else{let t=r.parentElement,n=uc(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 tl(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var nl=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&&Yc(e.modalRef,!1);let r=tl(t);Qc(t,e.mount,e.modalRef,r,!0);let i=$c(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=$c(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=el(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=$c(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&&Yc(e.modalRef,t),Qc(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&&Yc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function rl(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 il=rl;function al(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var ol=al,sl=`data-mui-focusable`;function cl(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${sl}]`):null}var ll=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function ul(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 dl(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 fl(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||dl(e))}function pl(e){let t=[],n=[];return Array.from(e.querySelectorAll(ll)).forEach((e,r)=>{let i=ul(e);i===-1||!fl(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 ml(){return!0}function hl(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=pl,isEnabled:o=ml,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=vo(Z(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=ol(cc(m.current)),t=cl(m.current)??m.current;return il(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=cc(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&ol(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=ol(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(il(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=ol(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 gl(e){return typeof e==`function`?e():e}var _l=F.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=F.useState(null),s=vo(F.isValidElement(n)?Z(n):null,t);if(Ur(()=>{i||o(gl(r)||document.body)},[r,i]),Ur(()=>{if(a&&!i)return fc(t,a),()=>{fc(t,null)}},[t,a,i]),i){if(F.isValidElement(n)){let e={ref:s};return F.cloneElement(n,e)}return n}return a&&Xo.createPortal(n,a)}),vl={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},yl={opacity:0,visibility:`hidden`},bl=F.forwardRef(function(e,t){let n=io(),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=yo(v,Z(o),t),b=Zs(v,d),x=Zs(v,(e,t)=>{Xs(e);let r=$s({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=Zs(v,u),C=Zs(v,m),w=Zs(v,e=>{let t=$s({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=Zs(v,e=>{e.style.transition=``,p&&p(e)});return(0,L.jsx)(ns,{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=Qs(e,c,vl,yl,h,o.props.style);return F.cloneElement(o,{style:r,ref:y,...n})}})});function xl(e){return V(`MuiBackdrop`,e)}kr(`MuiBackdrop`,[`root`,`invisible`]);var Sl=e=>{let{classes:t,invisible:n}=e;return G({root:[`root`,n&&`invisible`]},xl,t)},Cl=q(`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`}}]}),wl=F.forwardRef(function(e,t){let n=go({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=Sl(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=To(`root`,{elementType:Cl,externalForwardedProps:_,className:B(g.root,i),ownerState:h}),[b,x]=To(`transition`,{elementType:bl,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 Tl(e){return typeof e==`function`?e():e}function El(e){return e?e.props.hasOwnProperty(`in`):!1}var Dl=()=>{},Ol=new nl;function kl(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=vo(p,u),[h,g]=F.useState(!l),_=El(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>cc(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{Ol.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=ko(()=>{let e=Tl(t)||y().body;Ol.add(b(),e),p.current&&x()}),C=()=>Ol.isTopModal(b()),w=ko(e=>{f.current=e,e&&(l&&C()?x():p.current&&Yc(p.current,v))}),T=F.useCallback(()=>{Ol.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=So(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:ec(()=>{g(!1),a&&a()},s?.props.onEnter??Dl),onExited:ec(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??Dl)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function Al(e){return V(`MuiModal`,e)}kr(`MuiModal`,[`root`,`hidden`,`backdrop`]);var jl=e=>{let{open:t,exited:n,classes:r}=e;return G({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},Al,r)},Ml=q(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(J(({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`}}]}))),Nl=q(wl,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),Pl=F.forwardRef(function(e,t){let n=go({name:`MuiModal`,props:e}),{BackdropComponent:r=Nl,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,...ee}=n,te={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:ne,getBackdropProps:O,getTransitionProps:k,portalRef:A,isTopModal:j,exited:M,hasTransition:re}=kl({...te,rootRef:t}),N={...te,exited:M},P=jl(N),ie={};if(c.props.tabIndex===void 0&&(ie.tabIndex=`-1`),re){let{onEnter:e,onExited:t}=k();ie.onEnter=e,ie.onExited=t}let ae={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[oe,se]=To(`root`,{ref:t,elementType:Ml,externalForwardedProps:{...ae,...ee,component:u},getSlotProps:ne,ownerState:N,className:B(o,P?.root,!N.open&&N.exited&&P?.hidden)}),[ce,le]=To(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:ae,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>O({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:B(i?.className,P?.backdrop),ownerState:N});return!b&&!w&&(!re||M)?null:(0,L.jsx)(_l,{ref:A,container:l,disablePortal:g,children:(0,L.jsxs)(oe,{...se,children:[!y&&r?(0,L.jsx)(ce,{...le}):null,(0,L.jsx)(hl,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:j,open:w,children:F.cloneElement(c,ie)})]})})});function Fl(e){return V(`MuiPaper`,e)}kr(`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 Il=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return G({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},Fl,i)},Ll=q(`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}`]]}})(J(({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)`}}]}))),Rl=F.forwardRef(function(e,t){let n=go({props:e,name:`MuiPaper`}),r=io(),{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=Il(u);return(0,L.jsx)(Ll,{as:a,ownerState:u,className:B(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(${ei(`#fff`,za(o))}, ${ei(`#fff`,za(o))})`}},...l.style}})});function zl(e){return V(`MuiPopover`,e)}kr(`MuiPopover`,[`root`,`paper`]);function Bl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function Vl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function Hl(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function Ul(e){return typeof e==`function`?e():e}var Wl=e=>{let{classes:t}=e;return G({root:[`root`],paper:[`paper`]},zl,t)},Gl=q(Pl,{name:`MuiPopover`,slot:`Root`})({}),Kl=q(Rl,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),ql=F.forwardRef(function(e,t){let n=go({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=Wl(w),E=F.useCallback(()=>{if(s===`anchorPosition`)return o;let e=Ul(i),t=(e&&e.nodeType===1?e:lc(C.current).body).getBoundingClientRect();return{top:t.top+Bl(t,a.vertical),left:t.left+Vl(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=F.useCallback(e=>({vertical:Bl(e,_.vertical),horizontal:Vl(e,_.horizontal)}),[_.horizontal,_.vertical]),ee=F.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:Hl(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=dc(Ul(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:Hl(n)}},[i,s,E,D,f]),[te,ne]=F.useState(p),O=F.useCallback(()=>{let e=C.current;if(!e)return;let t=ee(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,ne(!0)},[ee]);F.useEffect(()=>(x&&window.addEventListener(`scroll`,O),()=>window.removeEventListener(`scroll`,O)),[i,x,O]);let k=()=>{O()},A=()=>{ne(!1)};F.useEffect(()=>{p&&O()}),F.useImperativeHandle(r,()=>p?{updatePosition:()=>{O()}}:null,[p,O]),F.useEffect(()=>{if(!p)return;let e=sc(()=>{O()}),t=dc(Ul(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,O]);let j=y,M={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[re,N]=To(`transition`,{elementType:Kc,externalForwardedProps:M,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),k()},onExited:t=>{e.onExited?.(t),A()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!re.muiSupportAuto&&(j=void 0);let P=u||(i?lc(Ul(i)).body:void 0),[ie,{slots:ae,slotProps:oe,...se}]=To(`root`,{ref:t,elementType:Gl,externalForwardedProps:{...M,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:mc(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:P,open:p},ownerState:w,className:B(T.root,l)}),[ce,le]=To(`paper`,{ref:C,className:T.paper,elementType:Kl,externalForwardedProps:M,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:te?void 0:{opacity:0}},ownerState:w});return(0,L.jsx)(ie,{...se,...!ho(ie)&&{slots:ae,slotProps:oe,disableScrollLock:x},children:(0,L.jsx)(re,{...N,timeout:j,children:(0,L.jsx)(ce,{...le,children:c})})})}),Jl={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`},Yl={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`},Xl=s({background:()=>bu,backgroundDark:()=>xu,black:()=>Pu,blueGrey100:()=>Hu,blueGrey300:()=>Uu,blueGrey600:()=>Wu,blueGrey900:()=>Gu,border:()=>Du,borderDark:()=>ku,borderGray:()=>Au,borderLight:()=>Ou,buttonBorder:()=>Qu,buttonFocusOutline:()=>Vu,buttonHoverBg:()=>$u,correct:()=>nu,correctSecondary:()=>ru,correctTertiary:()=>iu,correctWithIcon:()=>au,defaults:()=>Q,disabled:()=>$l,disabledSecondary:()=>eu,disabledText:()=>tu,dropdownBackground:()=>Cu,fadedPrimary:()=>hu,focusChecked:()=>Lu,focusCheckedBorder:()=>Ru,focusUnchecked:()=>zu,focusUncheckedBorder:()=>Bu,incorrect:()=>ou,incorrectSecondary:()=>cu,incorrectWithIcon:()=>su,keyBoardFocusIndicator:()=>Zu,keypadButton:()=>Ku,keypadButtonHover:()=>Yu,keypadButtonOperator:()=>qu,keypadButtonOperatorHover:()=>Xu,keypadEmptyPlaceholder:()=>Ju,missing:()=>lu,missingWithIcon:()=>uu,primary:()=>du,primaryDark:()=>pu,primaryLight:()=>fu,primaryText:()=>mu,secondary:()=>gu,secondaryBackground:()=>Su,secondaryDark:()=>vu,secondaryLight:()=>_u,secondaryText:()=>yu,surface:()=>wu,tableGrid:()=>ju,tableGridLight:()=>Mu,tableStripe:()=>Nu,tertiary:()=>Tu,tertiaryLight:()=>Eu,text:()=>Ql,transparent:()=>Iu,v:()=>Zl,visualElementsColors:()=>ed,white:()=>Fu}),Q={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:ta[500],CORRECT_SECONDARY:ta[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:Qi[500],INCORRECT_SECONDARY:Zi[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:Zi[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:Yl[500],PRIMARY_LIGHT:Yl[200],PRIMARY_DARK:Yl[800],SECONDARY:Jl.A400,SECONDARY_LIGHT:Jl[200],SECONDARY_DARK:Jl[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(Q);var Zl=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},$=Zl(`pie`),Ql=()=>$(`text`,Q.TEXT),$l=()=>$(`disabled`,Q.DISABLED),eu=()=>$(`disabled-secondary`,Q.DISABLED_SECONDARY),tu=()=>$(`disabled-text`,`text`,Q.DISABLED_TEXT),nu=()=>$(`correct`,Q.CORRECT),ru=()=>$(`correct-secondary`,Q.CORRECT_SECONDARY),iu=()=>$(`correct-tertiary`,Q.CORRECT_TERTIARY),au=()=>$(`correct-icon`,Q.CORRECT_WITH_ICON),ou=()=>$(`incorrect`,Q.INCORRECT),su=()=>$(`incorrect-icon`,Q.INCORRECT_WITH_ICON),cu=()=>$(`incorrect-secondary`,Q.INCORRECT_SECONDARY),lu=()=>$(`missing`,Q.MISSING),uu=()=>$(`missing-icon`,Q.MISSING_WITH_ICON),du=()=>$(`primary`,Q.PRIMARY),fu=()=>$(`primary-light`,Q.PRIMARY_LIGHT),pu=()=>$(`primary-dark`,Q.PRIMARY_DARK),mu=()=>$(`primary-text`,`text`,Q.TEXT),hu=()=>$(`faded-primary`,Q.FADED_PRIMARY),gu=()=>$(`secondary`,Q.SECONDARY),_u=()=>$(`secondary-light`,Q.SECONDARY_LIGHT),vu=()=>$(`secondary-dark`,Q.SECONDARY_DARK),yu=()=>$(`secondary-text`,`text`,Q.TEXT),bu=()=>$(`background`,Q.BACKGROUND),xu=()=>$(`background-dark`,Q.BACKGROUND_DARK),Su=()=>$(`secondary-background`,Q.SECONDARY_BACKGROUND),Cu=()=>$(`dropdown-background`,Q.DROPDOWN_BACKGROUND),wu=()=>$(`surface`,Q.SURFACE),Tu=()=>$(`tertiary`,Q.TERTIARY),Eu=()=>$(`tertiary-light`,Q.TERTIARY_LIGHT),Du=()=>$(`border`,Q.BORDER),Ou=()=>$(`border-light`,Q.BORDER_LIGHT),ku=()=>$(`border-dark`,Q.BORDER_DARK),Au=()=>$(`border-gray`,Q.BORDER_GRAY),ju=()=>$(`table-grid`,`text`,Q.TABLE_GRID),Mu=()=>$(`table-grid-light`,`border-light`,Q.TABLE_GRID_LIGHT),Nu=()=>$(`table-stripe`,`background-dark`,Q.TABLE_STRIPE),Pu=()=>$(`black`,Q.BLACK),Fu=()=>$(`white`,Q.WHITE),Iu=()=>Q.TRANSPARENT,Lu=()=>$(`focus-checked`,Q.FOCUS_CHECKED),Ru=()=>$(`focus-checked-border`,Q.FOCUS_CHECKED_BORDER),zu=()=>$(`focus-unchecked`,Q.FOCUS_UNCHECKED),Bu=()=>$(`focus-unchecked-border`,Q.FOCUS_UNCHECKED_BORDER),Vu=()=>$(`button-focus-outline`,Q.BUTTON_FOCUS_OUTLINE),Hu=()=>$(`blue-grey-100`,Q.BLUE_GREY100),Uu=()=>$(`blue-grey-300`,Q.BLUE_GREY300),Wu=()=>$(`blue-grey-600`,Q.BLUE_GREY600),Gu=()=>$(`blue-grey-900`,Q.BLUE_GREY900),Ku=()=>$(`keypad-button`,Q.KEYPAD_BUTTON),qu=()=>$(`keypad-button-operator`,Q.KEYPAD_BUTTON_OPERATOR),Ju=()=>$(`keypad-empty-placeholder`,Q.KEYPAD_EMPTY_PLACEHOLDER),Yu=()=>$(`keypad-button-hover`,Q.KEYPAD_BUTTON_HOVER),Xu=()=>$(`keypad-button-operator-hover`,Q.KEYPAD_BUTTON_OPERATOR_HOVER),Zu=()=>$(`keyboard-focus-indicator`,Q.KEY_BOARD_FOCUS_INDICATOR),Qu=()=>$(`button-border`,Q.BUTTON_BORDER),$u=()=>$(`button-hover-bg`,Q.BUTTON_HOVER_BG),ed={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},td=q(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),nd=q(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${$l()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${nu()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${ou()})`}}),rd=q(`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`}}),id=class extends F.Component{static propTypes={correctness:I.string,feedback:I.string};nodeRef=F.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,L.jsx)(os,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,L.jsx)(rd,{ref:this.nodeRef,children:(0,L.jsx)(td,{children:(0,L.jsx)(nd,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,L.jsx)(`div`,{children:(0,L.jsx)(hs,{children:this.renderFeedback()})})}};function ad(){return()=>{}}var od=s({Correct:()=>fd,Incorrect:()=>pd,NothingSubmitted:()=>hd,PartiallyCorrect:()=>md}),sd=ad(`pie-libs:render-ui:response-indicators`),cd=q(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),ld=q(ql)({cursor:`pointer`}),ud=q(`div`)({padding:`0`,borderRadius:`4px`}),dd=(e,t)=>{class n extends F.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{sd(`[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)(cd,{hasFeedback:!!n,children:[(0,L.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,L.jsx)(e,{})}),n&&(0,L.jsx)(ld,{PaperComponent:ud,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,L.jsx)(id,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:I.string},n},fd=dd(Mc,`correct`),pd=dd(Fc,`incorrect`),md=dd(Hc,`partially-correct`),hd=dd(zc,`nothing-submitted`),gd=`https://cdn.jsdelivr.net/npm/mathjax@4/tex-chtml.js`,_d=null;function vd(e){return typeof window>`u`||window.MathJax?.typesetPromise?Promise.resolve():_d||(_d=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||gd,c.async=!0,c.onload=()=>{setTimeout(t,100)},c.onerror=()=>{n(Error(`Failed to load MathJax`))},document.head.appendChild(c)}),_d)}function yd(){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 bd(e={}){return async t=>{if(await vd(e),!window.MathJax?.typesetPromise){console.warn(`[mathjax-renderer] MathJax not loaded or missing typesetPromise.`);return}await window.MathJax.typesetPromise([t]),yd()}}var xd=`@pie-lib/math-rendering`,Sd=null;function Cd(){return Sd||=bd({accessibility:!0,useSingleDollar:!0}),Sd}function wd(){if(typeof window>`u`)return null;let e=window[xd];return typeof e?.renderMath==`function`?e:null}var Td=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=wd();return r?await r.renderMath?.(n):await Cd()(n),t?n.innerHTML:void 0},Ed=q(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),Dd=q(bc)(({theme:e})=>({paddingTop:e.spacing(2)})),Od=class extends F.Component{static propTypes={className:I.string,children:I.object,labels:I.shape({visible:I.string,hidden:I.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){Td(this.root)}componentDidUpdate(){Td(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)(Ed,{children:r})}),(0,L.jsx)(Dd,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}};function kd(e){return typeof e.main==`string`}function Ad(e,t=[]){if(!kd(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function jd(e=[]){return([,t])=>t&&Ad(t,e)}function Md(e){return V(`MuiCircularProgress`,e)}kr(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDeterminate`,`circleIndeterminate`,`circleDisableShrink`]);var Nd=44,Pd=kt`
|
|
118
|
+
C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});Rc.propTypes={fill:I.string.isRequired};var zc=class extends F.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,L.jsxs)(Cc,{children:[(0,L.jsx)(Lc,{fill:n}),(0,L.jsx)(Ic,{fill:t})]}),emoji:(0,L.jsxs)(Cc,{children:[(0,L.jsx)(Lc,{fill:n}),(0,L.jsx)(Rc,{fill:t})]}),feedback:{check:(0,L.jsxs)(Cc,{children:[(0,L.jsx)(Lc,{fill:n}),(0,L.jsx)(Rc,{fill:t})]}),emoji:(0,L.jsxs)(Cc,{children:[(0,L.jsx)(Lc,{fill:n}),(0,L.jsx)(Rc,{fill:t})]}),square:{check:(0,L.jsxs)(Cc,{children:[(0,L.jsx)(Lc,{fill:n}),(0,L.jsx)(Ic,{fill:t})]}),emoji:(0,L.jsxs)(Cc,{children:[(0,L.jsx)(Lc,{fill:n}),(0,L.jsx)(Rc,{fill:t})]}),open:{check:(0,L.jsx)(Cc,{children:(0,L.jsx)(Ic,{fill:n})}),emoji:(0,L.jsx)(Cc,{children:(0,L.jsx)(Rc,{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]}};zc.propTypes={iconSet:I.oneOf([`emoji`,`check`,void 0]),shape:I.oneOf([`square`,void 0]),category:I.oneOf([`feedback`,void 0]),open:I.bool,fg:I.string,bg:I.string},zc.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var Bc=({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})]});Bc.propTypes={fill:I.string.isRequired};var Vc=({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})]});Vc.propTypes={fill:I.string.isRequired};var Hc=kc(Bc,Vc);Hc.propTypes={iconSet:I.oneOf([`emoji`,`check`]),shape:I.oneOf([`round`,`square`]),category:I.oneOf([`feedback`,void 0]),open:I.bool,fg:I.string,bg:I.string,size:I.oneOfType([I.string,I.number])},Hc.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function Z(e){return e?.ref||null}function Uc(e){return`scale(${e}, ${e**2})`}var Wc={entering:{opacity:1,transform:Uc(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:Uc(.75)},exited:{opacity:0,transform:Uc(.75)}},Gc={opacity:0,transform:Uc(.75),visibility:`hidden`},Kc=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=ys(),_=F.useRef(),v=io(),y=F.useRef(null),b=yo(y,Z(i),t),x=Zs(y,l),S=Zs(y,(e,t)=>{Xs(e);let{duration:n,delay:r,easing:i}=$s({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=Zs(y,c),w=Zs(y,f),T=Zs(y,e=>{let{duration:t,delay:n,easing:r}=$s({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=Uc(.75),u&&u(e)}),E=Zs(y,e=>{e.style.transition=``,d&&d(e)});return(0,L.jsx)(ns,{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=Qs(e,o,Wc,Gc,p,i.props.style);return F.cloneElement(i,{style:r,ref:b,...n})}})});Kc&&(Kc.muiSupportAuto=!0);function qc(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Jc(e){let t=cc(e);return t.body===e?uc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Yc(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function Xc(e){return parseFloat(uc(e).getComputedStyle(e).paddingRight)||0}function Zc(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 Qc(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!Zc(e);t&&n&&Yc(e,i)})}function $c(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function el(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(Jc(r)){let e=qc(uc(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${Xc(r)+e}px`;let t=cc(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${Xc(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=cc(r).body;else{let t=r.parentElement,n=uc(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 tl(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var nl=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&&Yc(e.modalRef,!1);let r=tl(t);Qc(t,e.mount,e.modalRef,r,!0);let i=$c(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=$c(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=el(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=$c(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&&Yc(e.modalRef,t),Qc(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&&Yc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function rl(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 il=rl;function al(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var ol=al,sl=`data-mui-focusable`;function cl(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${sl}]`):null}var ll=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function ul(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 dl(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 fl(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||dl(e))}function pl(e){let t=[],n=[];return Array.from(e.querySelectorAll(ll)).forEach((e,r)=>{let i=ul(e);i===-1||!fl(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 ml(){return!0}function hl(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=pl,isEnabled:o=ml,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=vo(Z(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=ol(cc(m.current)),t=cl(m.current)??m.current;return il(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=cc(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&ol(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=ol(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(il(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=ol(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 gl(e){return typeof e==`function`?e():e}var _l=F.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=F.useState(null),s=vo(F.isValidElement(n)?Z(n):null,t);if(Ur(()=>{i||o(gl(r)||document.body)},[r,i]),Ur(()=>{if(a&&!i)return fc(t,a),()=>{fc(t,null)}},[t,a,i]),i){if(F.isValidElement(n)){let e={ref:s};return F.cloneElement(n,e)}return n}return a&&Xo.createPortal(n,a)}),vl={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},yl={opacity:0,visibility:`hidden`},bl=F.forwardRef(function(e,t){let n=io(),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=yo(v,Z(o),t),b=Zs(v,d),x=Zs(v,(e,t)=>{Xs(e);let r=$s({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=Zs(v,u),C=Zs(v,m),w=Zs(v,e=>{let t=$s({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=Zs(v,e=>{e.style.transition=``,p&&p(e)});return(0,L.jsx)(ns,{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=Qs(e,c,vl,yl,h,o.props.style);return F.cloneElement(o,{style:r,ref:y,...n})}})});function xl(e){return V(`MuiBackdrop`,e)}kr(`MuiBackdrop`,[`root`,`invisible`]);var Sl=e=>{let{classes:t,invisible:n}=e;return G({root:[`root`,n&&`invisible`]},xl,t)},Cl=q(`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`}}]}),wl=F.forwardRef(function(e,t){let n=go({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=Sl(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=To(`root`,{elementType:Cl,externalForwardedProps:_,className:B(g.root,i),ownerState:h}),[b,x]=To(`transition`,{elementType:bl,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 Tl(e){return typeof e==`function`?e():e}function El(e){return e?e.props.hasOwnProperty(`in`):!1}var Dl=()=>{},Ol=new nl;function kl(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=vo(p,u),[h,g]=F.useState(!l),_=El(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>cc(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{Ol.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=ko(()=>{let e=Tl(t)||y().body;Ol.add(b(),e),p.current&&x()}),C=()=>Ol.isTopModal(b()),w=ko(e=>{f.current=e,e&&(l&&C()?x():p.current&&Yc(p.current,v))}),T=F.useCallback(()=>{Ol.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=So(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:ec(()=>{g(!1),a&&a()},s?.props.onEnter??Dl),onExited:ec(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??Dl)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function Al(e){return V(`MuiModal`,e)}kr(`MuiModal`,[`root`,`hidden`,`backdrop`]);var jl=e=>{let{open:t,exited:n,classes:r}=e;return G({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},Al,r)},Ml=q(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(J(({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`}}]}))),Nl=q(wl,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),Pl=F.forwardRef(function(e,t){let n=go({name:`MuiModal`,props:e}),{BackdropComponent:r=Nl,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,...ee}=n,te={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:ne,getBackdropProps:O,getTransitionProps:k,portalRef:A,isTopModal:j,exited:M,hasTransition:re}=kl({...te,rootRef:t}),N={...te,exited:M},P=jl(N),ie={};if(c.props.tabIndex===void 0&&(ie.tabIndex=`-1`),re){let{onEnter:e,onExited:t}=k();ie.onEnter=e,ie.onExited=t}let ae={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[oe,se]=To(`root`,{ref:t,elementType:Ml,externalForwardedProps:{...ae,...ee,component:u},getSlotProps:ne,ownerState:N,className:B(o,P?.root,!N.open&&N.exited&&P?.hidden)}),[ce,le]=To(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:ae,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>O({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:B(i?.className,P?.backdrop),ownerState:N});return!b&&!w&&(!re||M)?null:(0,L.jsx)(_l,{ref:A,container:l,disablePortal:g,children:(0,L.jsxs)(oe,{...se,children:[!y&&r?(0,L.jsx)(ce,{...le}):null,(0,L.jsx)(hl,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:j,open:w,children:F.cloneElement(c,ie)})]})})});function Fl(e){return V(`MuiPaper`,e)}kr(`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 Il=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return G({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},Fl,i)},Ll=q(`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}`]]}})(J(({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)`}}]}))),Rl=F.forwardRef(function(e,t){let n=go({props:e,name:`MuiPaper`}),r=io(),{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=Il(u);return(0,L.jsx)(Ll,{as:a,ownerState:u,className:B(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(${ei(`#fff`,za(o))}, ${ei(`#fff`,za(o))})`}},...l.style}})});function zl(e){return V(`MuiPopover`,e)}kr(`MuiPopover`,[`root`,`paper`]);function Bl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function Vl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function Hl(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function Ul(e){return typeof e==`function`?e():e}var Wl=e=>{let{classes:t}=e;return G({root:[`root`],paper:[`paper`]},zl,t)},Gl=q(Pl,{name:`MuiPopover`,slot:`Root`})({}),Kl=q(Rl,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),ql=F.forwardRef(function(e,t){let n=go({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=Wl(w),E=F.useCallback(()=>{if(s===`anchorPosition`)return o;let e=Ul(i),t=(e&&e.nodeType===1?e:lc(C.current).body).getBoundingClientRect();return{top:t.top+Bl(t,a.vertical),left:t.left+Vl(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=F.useCallback(e=>({vertical:Bl(e,_.vertical),horizontal:Vl(e,_.horizontal)}),[_.horizontal,_.vertical]),ee=F.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:Hl(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=dc(Ul(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:Hl(n)}},[i,s,E,D,f]),[te,ne]=F.useState(p),O=F.useCallback(()=>{let e=C.current;if(!e)return;let t=ee(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,ne(!0)},[ee]);F.useEffect(()=>(x&&window.addEventListener(`scroll`,O),()=>window.removeEventListener(`scroll`,O)),[i,x,O]);let k=()=>{O()},A=()=>{ne(!1)};F.useEffect(()=>{p&&O()}),F.useImperativeHandle(r,()=>p?{updatePosition:()=>{O()}}:null,[p,O]),F.useEffect(()=>{if(!p)return;let e=sc(()=>{O()}),t=dc(Ul(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,O]);let j=y,M={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[re,N]=To(`transition`,{elementType:Kc,externalForwardedProps:M,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),k()},onExited:t=>{e.onExited?.(t),A()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!re.muiSupportAuto&&(j=void 0);let P=u||(i?lc(Ul(i)).body:void 0),[ie,{slots:ae,slotProps:oe,...se}]=To(`root`,{ref:t,elementType:Gl,externalForwardedProps:{...M,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:mc(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:P,open:p},ownerState:w,className:B(T.root,l)}),[ce,le]=To(`paper`,{ref:C,className:T.paper,elementType:Kl,externalForwardedProps:M,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:te?void 0:{opacity:0}},ownerState:w});return(0,L.jsx)(ie,{...se,...!ho(ie)&&{slots:ae,slotProps:oe,disableScrollLock:x},children:(0,L.jsx)(re,{...N,timeout:j,children:(0,L.jsx)(ce,{...le,children:c})})})}),Jl={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`},Yl={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`},Xl=s({background:()=>bu,backgroundDark:()=>xu,black:()=>Pu,blueGrey100:()=>Hu,blueGrey300:()=>Uu,blueGrey600:()=>Wu,blueGrey900:()=>Gu,border:()=>Du,borderDark:()=>ku,borderGray:()=>Au,borderLight:()=>Ou,buttonBorder:()=>Qu,buttonFocusOutline:()=>Vu,buttonHoverBg:()=>$u,correct:()=>nu,correctSecondary:()=>ru,correctTertiary:()=>iu,correctWithIcon:()=>au,defaults:()=>Q,disabled:()=>$l,disabledSecondary:()=>eu,disabledText:()=>tu,dropdownBackground:()=>Cu,fadedPrimary:()=>hu,focusChecked:()=>Lu,focusCheckedBorder:()=>Ru,focusUnchecked:()=>zu,focusUncheckedBorder:()=>Bu,incorrect:()=>ou,incorrectSecondary:()=>cu,incorrectWithIcon:()=>su,keyBoardFocusIndicator:()=>Zu,keypadButton:()=>Ku,keypadButtonHover:()=>Yu,keypadButtonOperator:()=>qu,keypadButtonOperatorHover:()=>Xu,keypadEmptyPlaceholder:()=>Ju,missing:()=>lu,missingWithIcon:()=>uu,primary:()=>du,primaryDark:()=>pu,primaryLight:()=>fu,primaryText:()=>mu,secondary:()=>gu,secondaryBackground:()=>Su,secondaryDark:()=>vu,secondaryLight:()=>_u,secondaryText:()=>yu,surface:()=>wu,tableGrid:()=>ju,tableGridLight:()=>Mu,tableStripe:()=>Nu,tertiary:()=>Tu,tertiaryLight:()=>Eu,text:()=>Ql,transparent:()=>Iu,v:()=>Zl,visualElementsColors:()=>ed,white:()=>Fu}),Q={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:ta[500],CORRECT_SECONDARY:ta[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:Qi[500],INCORRECT_SECONDARY:Zi[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:Zi[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:Yl[500],PRIMARY_LIGHT:Yl[200],PRIMARY_DARK:Yl[800],SECONDARY:Jl.A400,SECONDARY_LIGHT:Jl[200],SECONDARY_DARK:Jl[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(Q);var Zl=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},$=Zl(`pie`),Ql=()=>$(`text`,Q.TEXT),$l=()=>$(`disabled`,Q.DISABLED),eu=()=>$(`disabled-secondary`,Q.DISABLED_SECONDARY),tu=()=>$(`disabled-text`,`text`,Q.DISABLED_TEXT),nu=()=>$(`correct`,Q.CORRECT),ru=()=>$(`correct-secondary`,Q.CORRECT_SECONDARY),iu=()=>$(`correct-tertiary`,Q.CORRECT_TERTIARY),au=()=>$(`correct-icon`,Q.CORRECT_WITH_ICON),ou=()=>$(`incorrect`,Q.INCORRECT),su=()=>$(`incorrect-icon`,Q.INCORRECT_WITH_ICON),cu=()=>$(`incorrect-secondary`,Q.INCORRECT_SECONDARY),lu=()=>$(`missing`,Q.MISSING),uu=()=>$(`missing-icon`,Q.MISSING_WITH_ICON),du=()=>$(`primary`,Q.PRIMARY),fu=()=>$(`primary-light`,Q.PRIMARY_LIGHT),pu=()=>$(`primary-dark`,Q.PRIMARY_DARK),mu=()=>$(`primary-text`,`text`,Q.TEXT),hu=()=>$(`faded-primary`,Q.FADED_PRIMARY),gu=()=>$(`secondary`,Q.SECONDARY),_u=()=>$(`secondary-light`,Q.SECONDARY_LIGHT),vu=()=>$(`secondary-dark`,Q.SECONDARY_DARK),yu=()=>$(`secondary-text`,`text`,Q.TEXT),bu=()=>$(`background`,Q.BACKGROUND),xu=()=>$(`background-dark`,Q.BACKGROUND_DARK),Su=()=>$(`secondary-background`,Q.SECONDARY_BACKGROUND),Cu=()=>$(`dropdown-background`,Q.DROPDOWN_BACKGROUND),wu=()=>$(`surface`,Q.SURFACE),Tu=()=>$(`tertiary`,Q.TERTIARY),Eu=()=>$(`tertiary-light`,Q.TERTIARY_LIGHT),Du=()=>$(`border`,Q.BORDER),Ou=()=>$(`border-light`,Q.BORDER_LIGHT),ku=()=>$(`border-dark`,Q.BORDER_DARK),Au=()=>$(`border-gray`,Q.BORDER_GRAY),ju=()=>$(`table-grid`,`text`,Q.TABLE_GRID),Mu=()=>$(`table-grid-light`,`border-light`,Q.TABLE_GRID_LIGHT),Nu=()=>$(`table-stripe`,`background-dark`,Q.TABLE_STRIPE),Pu=()=>$(`black`,Q.BLACK),Fu=()=>$(`white`,Q.WHITE),Iu=()=>Q.TRANSPARENT,Lu=()=>$(`focus-checked`,Q.FOCUS_CHECKED),Ru=()=>$(`focus-checked-border`,Q.FOCUS_CHECKED_BORDER),zu=()=>$(`focus-unchecked`,Q.FOCUS_UNCHECKED),Bu=()=>$(`focus-unchecked-border`,Q.FOCUS_UNCHECKED_BORDER),Vu=()=>$(`button-focus-outline`,Q.BUTTON_FOCUS_OUTLINE),Hu=()=>$(`blue-grey-100`,Q.BLUE_GREY100),Uu=()=>$(`blue-grey-300`,Q.BLUE_GREY300),Wu=()=>$(`blue-grey-600`,Q.BLUE_GREY600),Gu=()=>$(`blue-grey-900`,Q.BLUE_GREY900),Ku=()=>$(`keypad-button`,Q.KEYPAD_BUTTON),qu=()=>$(`keypad-button-operator`,Q.KEYPAD_BUTTON_OPERATOR),Ju=()=>$(`keypad-empty-placeholder`,Q.KEYPAD_EMPTY_PLACEHOLDER),Yu=()=>$(`keypad-button-hover`,Q.KEYPAD_BUTTON_HOVER),Xu=()=>$(`keypad-button-operator-hover`,Q.KEYPAD_BUTTON_OPERATOR_HOVER),Zu=()=>$(`keyboard-focus-indicator`,Q.KEY_BOARD_FOCUS_INDICATOR),Qu=()=>$(`button-border`,Q.BUTTON_BORDER),$u=()=>$(`button-hover-bg`,Q.BUTTON_HOVER_BG),ed={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},td=q(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),nd=q(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${$l()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${nu()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${ou()})`}}),rd=q(`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`}}),id=class extends F.Component{static propTypes={correctness:I.string,feedback:I.string};nodeRef=F.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,L.jsx)(os,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,L.jsx)(rd,{ref:this.nodeRef,children:(0,L.jsx)(td,{children:(0,L.jsx)(nd,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,L.jsx)(`div`,{children:(0,L.jsx)(hs,{children:this.renderFeedback()})})}};function ad(){return()=>{}}var od=s({Correct:()=>fd,Incorrect:()=>pd,NothingSubmitted:()=>hd,PartiallyCorrect:()=>md}),sd=ad(`pie-libs:render-ui:response-indicators`),cd=q(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),ld=q(ql)({cursor:`pointer`}),ud=q(`div`)({padding:`0`,borderRadius:`4px`}),dd=(e,t)=>{class n extends F.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{sd(`[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)(cd,{hasFeedback:!!n,children:[(0,L.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,L.jsx)(e,{})}),n&&(0,L.jsx)(ld,{PaperComponent:ud,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,L.jsx)(id,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:I.string},n},fd=dd(Mc,`correct`),pd=dd(Fc,`incorrect`),md=dd(Hc,`partially-correct`),hd=dd(zc,`nothing-submitted`),gd=`https://cdn.jsdelivr.net/npm/mathjax@4/tex-chtml.js`,_d=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`);function vd(e){if(typeof window>`u`||window.MathJax?.typesetPromise)return Promise.resolve();let t=globalThis,n=t[_d];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||gd,c.async=!0,c.onload=()=>{setTimeout(t,100)},c.onerror=()=>{n(Error(`Failed to load MathJax`))},document.head.appendChild(c)});return t[_d]=r,r}function yd(){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 bd(e={}){return async t=>{if(await vd(e),!window.MathJax?.typesetPromise){console.warn(`[mathjax-renderer] MathJax not loaded or missing typesetPromise.`);return}await window.MathJax.typesetPromise([t]),yd()}}var xd=`@pie-lib/math-rendering`,Sd=null;function Cd(){return Sd||=bd({accessibility:!0,useSingleDollar:!0}),Sd}function wd(){if(typeof window>`u`)return null;let e=window[xd];return typeof e?.renderMath==`function`?e:null}var Td=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=wd();return r?await r.renderMath?.(n):await Cd()(n),t?n.innerHTML:void 0},Ed=q(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),Dd=q(bc)(({theme:e})=>({paddingTop:e.spacing(2)})),Od=class extends F.Component{static propTypes={className:I.string,children:I.object,labels:I.shape({visible:I.string,hidden:I.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){Td(this.root)}componentDidUpdate(){Td(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)(Ed,{children:r})}),(0,L.jsx)(Dd,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}};function kd(e){return typeof e.main==`string`}function Ad(e,t=[]){if(!kd(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function jd(e=[]){return([,t])=>t&&Ad(t,e)}function Md(e){return V(`MuiCircularProgress`,e)}kr(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDeterminate`,`circleIndeterminate`,`circleDisableShrink`]);var Nd=44,Pd=kt`
|
|
119
119
|
0% {
|
|
120
120
|
transform: rotate(0deg);
|
|
121
121
|
}
|