@khanacademy/math-input 24.0.0 → 25.0.1

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/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/version.ts","../src/fake-react-native-web/view.tsx","../src/strings.ts","../src/components/i18n-context.tsx","../src/components/input/cursor-styles.ts","../src/components/input/cursor-handle.tsx","../src/components/input/drag-listener.ts","../src/types.ts","../src/components/input/cursor-contexts.ts","../src/utils.ts","../src/components/input/mathquill-instance.ts","../src/components/input/mathquill-helpers.ts","../src/components/key-handlers/handle-backspace.ts","../src/components/key-handlers/handle-arrow.ts","../src/components/key-handlers/handle-exponent.ts","../src/components/key-handlers/handle-jump-out.ts","../src/components/key-handlers/key-translator.ts","../src/components/input/math-wrapper.ts","../src/components/input/scroll-into-view.ts","../src/components/input/math-input.tsx","../src/components/tabbar/icons.tsx","../src/components/tabbar/item.tsx","../src/components/tabbar/tabbar.tsx","../src/data/key-configs.ts","../src/components/keypad/button-assets.tsx","../src/components/keypad/keypad-button.tsx","../src/components/keypad/keypad-pages/extras-page.tsx","../src/components/keypad/utils.ts","../src/components/keypad/keypad-pages/fractions-page.tsx","../src/components/keypad/keypad-pages/geometry-page.tsx","../src/components/keypad/keypad-pages/numbers-page.tsx","../src/components/keypad/keypad-pages/operators-page.tsx","../src/components/keypad/navigation-button.tsx","../src/components/keypad/navigation-pad.tsx","../src/components/keypad/shared-keys.tsx","../src/components/keypad/keypad.tsx","../src/components/aphrodite-css-transition-group/util.ts","../src/components/aphrodite-css-transition-group/transition-child.tsx","../src/components/aphrodite-css-transition-group/index.tsx","../src/components/keypad/mobile-keypad-internals.tsx","../src/components/keypad/mobile-keypad.tsx","../src/components/prop-types.ts"],"sourcesContent":["// This file is processed by a Rollup plugin (replace) to inject the production\n// version number during the release build.\n// In dev, you'll never see the version number.\n\nimport {addLibraryVersionToPerseusDebug} from \"@khanacademy/perseus-utils\";\n\nconst libName = \"@khanacademy/math-input\";\nexport const libVersion = \"__lib_version__\";\n\naddLibraryVersionToPerseusDebug(libName, libVersion);\n","import {StyleSheet, css} from \"aphrodite\";\nimport * as React from \"react\";\n\nimport type {StyleType} from \"@khanacademy/wonder-blocks-core\";\nimport type {CSSProperties} from \"aphrodite\";\n\ntype Props = {\n ariaLabel?: string;\n children?: React.ReactNode;\n // The `dynamicStyle` prop is provided for animating dynamic\n // properties, as creating Aphrodite StyleSheets in animation loops is\n // expensive. `dynamicStyle` should be a raw style object, rather than\n // a StyleSheet.\n dynamicStyle?: CSSProperties;\n // The `extraClassName` prop should almost never be used. It gives the\n // client a way to provide an additional CSS class name, to augment\n // the class name generated by Aphrodite. (Right now, it's only used to\n // disable some externally-applied CSS that would otherwise be far too\n // difficult to override with inline styles.)\n extraClassName?: string;\n numberOfLines?: number;\n onClick?: (arg1: React.SyntheticEvent<HTMLDivElement>) => void;\n onTouchCancel?: (arg1: React.TouchEvent<HTMLDivElement>) => void;\n onTouchEnd?: (arg1: React.TouchEvent<HTMLDivElement>) => void;\n onTouchMove?: (arg1: React.TouchEvent<HTMLDivElement>) => void;\n onTouchStart?: (arg1: React.TouchEvent<HTMLDivElement>) => void;\n role?: string;\n style?: StyleType;\n forwardRef?: React.RefObject<HTMLDivElement>;\n};\n\nclass View extends React.Component<Props> {\n static styles = StyleSheet.create({\n // From: https://github.com/necolas/react-native-web/blob/master/src/components/View/index.js\n // eslint-disable-next-line react-native/no-unused-styles\n initial: {\n alignItems: \"stretch\",\n borderWidth: 0,\n borderStyle: \"solid\",\n boxSizing: \"border-box\",\n display: \"flex\",\n flexBasis: \"auto\",\n flexDirection: \"column\",\n margin: 0,\n padding: 0,\n position: \"relative\",\n // button and anchor reset\n backgroundColor: \"transparent\",\n color: \"inherit\",\n font: \"inherit\",\n textAlign: \"inherit\",\n textDecorationLine: \"none\",\n // list reset\n listStyle: \"none\",\n // fix flexbox bugs\n maxWidth: \"100%\",\n minHeight: 0,\n minWidth: 0,\n },\n });\n\n render(): React.ReactNode {\n const className =\n css(\n View.styles.initial,\n ...(Array.isArray(this.props.style)\n ? this.props.style\n : [this.props.style]),\n ) +\n (this.props.extraClassName ? ` ${this.props.extraClassName}` : \"\");\n\n return (\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events -- TODO(LEMS-2871): Address a11y error\n <div\n className={className}\n style={this.props.dynamicStyle}\n onClick={this.props.onClick}\n onTouchCancel={this.props.onTouchCancel}\n onTouchEnd={this.props.onTouchEnd}\n onTouchMove={this.props.onTouchMove}\n onTouchStart={this.props.onTouchStart}\n aria-label={this.props.ariaLabel}\n role={this.props.role}\n ref={this.props.forwardRef}\n >\n {this.props.children}\n </div>\n );\n }\n}\n\nexport default View;\n","/**\n * The translated strings that are used to render the Math Input.\n */\nexport type MathInputStrings = {\n mathInputBox: string;\n fingerTap: string;\n before: ({obj}: {obj: string}) => string;\n after: ({obj}: {obj: string}) => string;\n \"beginning of\": ({obj}: {obj: string}) => string;\n \"end of\": ({obj}: {obj: string}) => string;\n Baseline: string;\n Superscript: string;\n selected: ({obj}: {obj: string}) => string;\n \"no answer\": string;\n \"nothing selected\": string;\n \"nothing to the right\": string;\n \"nothing to the left\": string;\n \"block is empty\": string;\n \"nothing above\": string;\n labelValue: ({label, value}: {label: string; value: string}) => string;\n plus: string;\n minus: string;\n negative: string;\n times: string;\n divide: string;\n decimal: string;\n percent: string;\n cdot: string;\n equalsSign: string;\n notEqualsSign: string;\n greaterThanSign: string;\n lessThanSign: string;\n greaterThanOrEqualToSign: string;\n lessThanOrEqualSign: string;\n fractionExpressionInNumerator: string;\n fractionExcludingExpression: string;\n customExponent: string;\n square: string;\n cube: string;\n squareRoot: string;\n cubeRoot: string;\n radicalWithCustomRoot: string;\n leftParenthesis: string;\n rightParenthesis: string;\n naturalLog: string;\n logBase10: string;\n logCustomBase: string;\n sine: string;\n sin: string;\n cosine: string;\n cos: string;\n tangent: string;\n tan: string;\n pi: string;\n theta: string;\n upArrow: string;\n rightArrow: string;\n downArrow: string;\n leftArrow: string;\n navOutOfParentheses: string;\n navOutOfExponent: string;\n navOutOfBase: string;\n navIntoNumerator: string;\n navOutOfNumeratorIntoDenominator: string;\n navOutOfDenominator: string;\n delete: string;\n dismiss: string;\n};\n\n/**\n * Untranslated strings used in the math input. To be used by an external\n * translator to produce translated strings, passed in as `MathInputStrings`.\n */\nexport const strings: {\n [key in keyof MathInputStrings]:\n | string\n | {context?: string; message: string}\n | {context?: string; one: string; other: string};\n} = {\n mathInputBox: \"Math input box\",\n fingerTap: \"Tap with one or two fingers to open keyboard\",\n before: \"before %(obj)s\",\n after: \"after %(obj)s\",\n \"beginning of\": \"beginning of %(obj)s\",\n \"end of\": \"end of %(obj)s\",\n Baseline: \"Baseline\",\n Superscript: \"Superscript\",\n selected: \"%(obj)s selected\",\n \"no answer\": \"no answer\",\n \"nothing selected\": \"nothing selected\",\n \"nothing to the right\": \"nothing to the right\",\n \"nothing to the left\": \"nothing to the left\",\n \"block is empty\": \"block is empty\",\n \"nothing above\": \"nothing above\",\n labelValue: \"%(label)s: %(value)s\",\n plus: {\n context: \"A label for a 'plus' sign.\",\n message: \"Plus\",\n },\n minus: {context: \"A label for a 'minus' sign.\", message: \"Minus\"},\n negative: {context: \"A label for a 'negative' sign.\", message: \"Negative\"},\n times: {context: \"A label for a 'multiply' sign.\", message: \"Multiply\"},\n divide: {context: \"A label for a 'divide' sign.\", message: \"Divide\"},\n decimal: {\n context: \"A label for a 'decimal' sign (represented as '.' or ',').\",\n message: \"Decimal\",\n },\n percent: {\n context: \"A label for a 'percent' sign (represented as '%').\",\n message: \"Percent\",\n },\n cdot: {\n context:\n \"A label for a 'centered dot' multiplication sign (represented as '⋅').\",\n message: \"Multiply\",\n },\n equalsSign: {\n context: \"A label for an 'equals' sign (represented as '=').\",\n message: \"Equals sign\",\n },\n notEqualsSign: {\n context: \"A label for a 'not-equals' sign (represented as '≠').\",\n message: \"Not-equals sign\",\n },\n greaterThanSign: {\n context: \"A label for a 'greater than' sign (represented as '>').\",\n message: \"Greater than sign\",\n },\n lessThanSign: {\n context: \"A label for a 'less than' sign (represented as '<').\",\n message: \"Less than sign\",\n },\n greaterThanOrEqualToSign: {\n context:\n \"A label for a 'greater than or equal to' sign (represented as '≥').\",\n message: \"Greater than or equal to sign\",\n },\n lessThanOrEqualSign: {\n context:\n \"A label for a 'less than or equal to' sign (represented as '≤').\",\n message: \"Less than or equal to sign\",\n },\n fractionExpressionInNumerator: {\n context:\n \"A label for a button that creates a new fraction and puts the current expression in the numerator of that fraction.\",\n message: \"Fraction, with current expression in numerator\",\n },\n fractionExcludingExpression: {\n context:\n \"A label for a button that creates a new fraction next to the cursor.\",\n message: \"Fraction, excluding the current expression\",\n },\n customExponent: {\n context:\n \"A label for a button that will allow the user to input a custom exponent.\",\n message: \"Custom exponent\",\n },\n square: {\n context:\n \"A label for a button that will square (take to the second power) some math.\",\n message: \"Square\",\n },\n cube: {\n context:\n \"A label for a button that will cube (take to the third power) some math.\",\n message: \"Cube\",\n },\n squareRoot: {\n context:\n \"A label for a button that will allow the user to input a square root.\",\n message: \"Square root\",\n },\n cubeRoot: {\n context:\n \"A label for a button that will allow the user to input a cube root.\",\n message: \"Cube root\",\n },\n radicalWithCustomRoot: {\n context:\n \"A label for a button that will allow the user to input a radical with a custom root.\",\n message: \"Radical with custom root\",\n },\n leftParenthesis: {\n context:\n \"A label for a button that will allow the user to input a left parenthesis (i.e. '(')\",\n message: \"Left parenthesis\",\n },\n rightParenthesis: {\n context:\n \"A label for a button that will allow the user to input a right parenthesis (i.e. ')')\",\n message: \"Right parenthesis\",\n },\n naturalLog: {\n context:\n \"A label for a button that will allow the user to input a natural logarithm.\",\n message: \"Natural logarithm\",\n },\n logBase10: {\n context:\n \"A label for a button that will allow the user to input a logarithm with base 10.\",\n message: \"Logarithm with base 10\",\n },\n logCustomBase: {\n context:\n \"A label for a button that will allow the user to input a logarithm with a custom base.\",\n message: \"Logarithm with custom base\",\n },\n sine: {\n context:\n \"A label for a button that will allow the user to input a sine function.\",\n message: \"Sine\",\n },\n sin: {\n context:\n \"A label for a button that will allow the user to input a sine function (shorthand version).\",\n message: \"sin\",\n },\n cosine: {\n context:\n \"A label for a button that will allow the user to input a cosine function.\",\n message: \"Cosine\",\n },\n cos: {\n context:\n \"A label for a button that will allow the user to input a cosine function (shorthand version).\",\n message: \"cos\",\n },\n tangent: {\n context:\n \"A label for a button that will allow the user to input a tangent function.\",\n message: \"Tangent\",\n },\n tan: {\n context:\n \"A label for a button that will allow the user to input a tangent function (shorthand version).\",\n message: \"tan\",\n },\n pi: {\n context:\n \"A label for a button that will allow the user to input the mathematical constant pi (i.e., π)\",\n message: \"Pi\",\n },\n theta: {\n context:\n \"A label for a button that will allow the user to input the mathematical constant theta (i.e., θ)\",\n message: \"Theta\",\n },\n upArrow: \"Up arrow\",\n rightArrow: \"Right arrow\",\n downArrow: \"Down arrow\",\n leftArrow: \"Left arrow\",\n navOutOfParentheses: \"Navigate right out of a set of parentheses\",\n navOutOfExponent: \"Navigate right out of an exponent\",\n navOutOfBase: \"Navigate right out of a base\",\n navIntoNumerator: \"Navigate right into the numerator of a fraction\",\n navOutOfNumeratorIntoDenominator:\n \"Navigate right out of the numerator and into the denominator\",\n navOutOfDenominator: \"Navigate right out of the denominator of a fraction\",\n delete: \"Delete\",\n dismiss: {\n context: \"A label for a button that will dismiss/hide a keypad.\",\n message: \"Dismiss\",\n },\n};\n\n/**\n * Mock strings for the Math Input package, to be used for tests and Storybook.\n */\nexport const mockStrings: MathInputStrings = {\n mathInputBox: \"Math input box\",\n fingerTap: \"Tap with one or two fingers to open keyboard\",\n before: ({obj}: {obj: string}) => `before ${obj}`,\n after: ({obj}: {obj: string}) => `after ${obj}`,\n \"beginning of\": ({obj}: {obj: string}) => `beginning of ${obj}`,\n \"end of\": ({obj}: {obj: string}) => `end of ${obj}`,\n Baseline: \"Baseline\",\n Superscript: \"Superscript\",\n selected: ({obj}: {obj: string}) => `${obj} selected`,\n \"no answer\": \"no answer\",\n \"nothing selected\": \"nothing selected\",\n \"nothing to the right\": \"nothing to the right\",\n \"nothing to the left\": \"nothing to the left\",\n \"block is empty\": \"block is empty\",\n \"nothing above\": \"nothing above\",\n labelValue: ({label, value}: {label: string; value: string}) =>\n `${label}: ${value}`,\n plus: \"Plus\",\n minus: \"Minus\",\n negative: \"Negative\",\n times: \"Multiply\",\n divide: \"Divide\",\n decimal: \"Decimal\",\n percent: \"Percent\",\n cdot: \"Multiply\",\n equalsSign: \"Equals sign\",\n notEqualsSign: \"Not-equals sign\",\n greaterThanSign: \"Greater than sign\",\n lessThanSign: \"Less than sign\",\n greaterThanOrEqualToSign: \"Greater than or equal to sign\",\n lessThanOrEqualSign: \"Less than or equal to sign\",\n fractionExpressionInNumerator:\n \"Fraction, with current expression in numerator\",\n fractionExcludingExpression: \"Fraction, excluding the current expression\",\n customExponent: \"Custom exponent\",\n square: \"Square\",\n cube: \"Cube\",\n squareRoot: \"Square root\",\n cubeRoot: \"Cube root\",\n radicalWithCustomRoot: \"Radical with custom root\",\n leftParenthesis: \"Left parenthesis\",\n rightParenthesis: \"Right parenthesis\",\n naturalLog: \"Natural logarithm\",\n logBase10: \"Logarithm with base 10\",\n logCustomBase: \"Logarithm with custom base\",\n sine: \"Sine\",\n sin: \"sin\",\n cosine: \"Cosine\",\n cos: \"cos\",\n tangent: \"Tangent\",\n tan: \"tan\",\n pi: \"Pi\",\n theta: \"Theta\",\n upArrow: \"Up arrow\",\n rightArrow: \"Right arrow\",\n downArrow: \"Down arrow\",\n leftArrow: \"Left arrow\",\n navOutOfParentheses: \"Navigate right out of a set of parentheses\",\n navOutOfExponent: \"Navigate right out of an exponent\",\n navOutOfBase: \"Navigate right out of a base\",\n navIntoNumerator: \"Navigate right into the numerator of a fraction\",\n navOutOfNumeratorIntoDenominator:\n \"Navigate right out of the numerator and into the denominator\",\n navOutOfDenominator: \"Navigate right out of the denominator of a fraction\",\n delete: \"Delete\",\n dismiss: \"Dismiss\",\n};\n","/**\n * MathInputI18nContext provides a way to set the strings and locale that are\n * used inside the Math Input package.\n *\n */\nimport * as React from \"react\";\nimport {useContext} from \"react\";\n\nimport {mockStrings} from \"../strings\";\n\nimport type {MathInputStrings} from \"../strings\";\n\ntype I18nContextType = {\n strings: MathInputStrings;\n locale: string;\n};\n\n// @ts-expect-error - TS2322 - Type 'Context<{ strings: {}; locale: string; }>' is not assignable to type 'Context<I18nContextType>'.\nexport const MathInputI18nContext: React.Context<I18nContextType> =\n React.createContext(\n process.env.NODE_ENV === \"test\" || process.env.STORYBOOK\n ? {\n strings: mockStrings,\n locale: \"en\",\n }\n : // We want to return null here, not an empty object, so that we\n // are will throw an error when attempting to access the\n // undefined locale or strings, making it easier to debug.\n null,\n );\n\ntype Props = React.PropsWithChildren<I18nContextType>;\n\nexport function MathInputI18nContextProvider({\n children,\n strings,\n locale,\n}: Props) {\n return (\n <MathInputI18nContext.Provider value={{strings, locale}}>\n {children}\n </MathInputI18nContext.Provider>\n );\n}\n\nexport const useMathInputI18n = () => useContext(MathInputI18nContext);\n","/**\n * Common parameters used to style components.\n */\nexport const cursorHandleRadiusPx = 11;\n\n// The amount to multiply the radius by to get the distance from the\n// center to the tip of the cursor handle. The cursor is a circle with\n// one quadrant replace with a square. The hypotenuse of the square is\n// 1.045 times the radius of the circle.\nexport const cursorHandleDistanceMultiplier = 1.045;\n","/**\n * Renders the green tear-shaped handle under the cursor.\n */\n\nimport * as React from \"react\";\n\nimport {\n cursorHandleRadiusPx,\n cursorHandleDistanceMultiplier,\n} from \"./cursor-styles\";\n\nconst touchTargetRadiusPx = 2 * cursorHandleRadiusPx;\nconst touchTargetHeightPx = 2 * touchTargetRadiusPx;\nconst touchTargetWidthPx = 2 * touchTargetRadiusPx;\n\nconst cursorRadiusPx = cursorHandleRadiusPx;\nconst cursorHeightPx = cursorHandleDistanceMultiplier * (cursorRadiusPx * 4);\nconst cursorWidthPx = 4 * cursorRadiusPx;\n\ntype Props = {\n animateIntoPosition: boolean;\n onTouchCancel: (arg1: React.TouchEvent<HTMLSpanElement>) => void;\n onTouchEnd: (arg1: React.TouchEvent<HTMLSpanElement>) => void;\n onTouchMove: (arg1: React.TouchEvent<HTMLSpanElement>) => void;\n onTouchStart: (arg1: React.TouchEvent<HTMLSpanElement>) => void;\n visible: boolean;\n x: number;\n y: number;\n};\n\ntype DefaultProps = {\n animateIntoPosition: Props[\"animateIntoPosition\"];\n visible: Props[\"visible\"];\n x: Props[\"x\"];\n y: Props[\"y\"];\n};\n\nclass CursorHandle extends React.Component<Props> {\n static defaultProps: DefaultProps = {\n animateIntoPosition: false,\n visible: false,\n x: 0,\n y: 0,\n };\n\n render(): React.ReactNode {\n const {x, y, animateIntoPosition} = this.props;\n\n const animationStyle = animateIntoPosition\n ? {\n transitionDuration: \"100ms\",\n transitionProperty: \"transform\",\n }\n : {};\n const transformString = `translate(${x}px, ${y}px)`;\n\n const outerStyle = {\n position: \"absolute\",\n // This is essentially webapp's interactiveComponent + 1.\n // TODO(charlie): Pull in those styles somehow to avoid breakages.\n zIndex: 4,\n left: -touchTargetWidthPx / 2,\n top: 0,\n transform: transformString,\n width: touchTargetWidthPx,\n height: touchTargetHeightPx,\n // Touch events that start on the cursor shouldn't be allowed to\n // produce page scrolls.\n touchAction: \"none\",\n ...animationStyle,\n } as const;\n\n return (\n <span\n style={outerStyle}\n onTouchStart={this.props.onTouchStart}\n onTouchMove={this.props.onTouchMove}\n onTouchEnd={this.props.onTouchEnd}\n onTouchCancel={this.props.onTouchCancel}\n >\n <svg\n fill=\"none\"\n width={cursorWidthPx}\n height={cursorHeightPx}\n viewBox={`0 0 ${cursorWidthPx} ${cursorHeightPx}`}\n >\n <filter\n id=\"math-input_cursor\"\n colorInterpolationFilters=\"sRGB\"\n filterUnits=\"userSpaceOnUse\"\n height={cursorHeightPx * 0.87} // ~40\n width={cursorWidthPx * 0.82} // ~36\n x=\"4\"\n y=\"0\"\n >\n <feFlood floodOpacity=\"0\" result=\"BackgroundImageFix\" />\n <feColorMatrix\n in=\"SourceAlpha\"\n type=\"matrix\"\n values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"\n />\n <feOffset dy=\"4\" />\n <feGaussianBlur stdDeviation=\"4\" />\n <feColorMatrix\n type=\"matrix\"\n values=\"0 0 0 0 0.129412 0 0 0 0 0.141176 0 0 0 0 0.172549 0 0 0 0.08 0\"\n />\n <feBlend\n in2=\"BackgroundImageFix\"\n mode=\"normal\"\n result=\"effect1_dropShadow\"\n />\n <feBlend\n in=\"SourceGraphic\"\n in2=\"effect1_dropShadow\"\n mode=\"normal\"\n result=\"shape\"\n />\n </filter>\n <g filter=\"url(#math-input_cursor)\">\n <path\n d=\"m22 4-7.07 7.0284c-1.3988 1.3901-2.3515 3.1615-2.7376 5.09-.3861 1.9284-.1883 3.9274.5685 5.7441s2.0385 3.3694 3.6831 4.4619c1.6445 1.0925 3.5781 1.6756 5.556 1.6756s3.9115-.5831 5.556-1.6756c1.6446-1.0925 2.9263-2.6452 3.6831-4.4619s.9546-3.8157.5685-5.7441c-.3861-1.9285-1.3388-3.6999-2.7376-5.09z\"\n fill=\"#1865f2\"\n />\n </g>\n <path\n d=\"m14.9301 10.4841 7.0699-7.06989 7.0699 7.06989.0001.0001c1.3988 1.3984 2.3515 3.1802 2.7376 5.1201s.1883 3.9507-.5685 5.7782c-.7568 1.8274-2.0385 3.3894-3.6831 4.4883-1.6445 1.099-3.5781 1.6855-5.556 1.6855s-3.9115-.5865-5.556-1.6855c-1.6446-1.0989-2.9263-2.6609-3.6831-4.4883-.7568-1.8275-.9546-3.8383-.5685-5.7782s1.3388-3.7217 2.7376-5.1201z\"\n stroke=\"#fff\"\n strokeWidth=\"2\"\n />\n </svg>\n </span>\n );\n }\n}\n\nexport default CursorHandle;\n","/**\n * A gesture recognizer that detects 'drags', crudely defined as either scrolls\n * or touches that move a sufficient distance.\n */\n\n// The 'slop' factor, after which we consider the use to be dragging. The value\n// is taken from the Android SDK. It won't be robust to page zoom and the like,\n// but it should be good enough for our purposes.\nconst touchSlopPx = 8;\n\nclass DragListener {\n _scrollListener: () => void;\n _moveListener: (evt: TouchEvent) => void;\n _endAndCancelListener: (evt: TouchEvent) => void;\n\n constructor(onDrag, initialEvent) {\n // We detect drags in two ways. First, by listening for the window\n // scroll event (we consider any legitimate scroll to be a drag).\n this._scrollListener = () => {\n onDrag();\n };\n\n // And second, by listening for touch moves and tracking the each\n // finger's displacement. This allows us to track, e.g., when the user\n // scrolls within an individual view.\n const touchLocationsById = {};\n for (let i = 0; i < initialEvent.changedTouches.length; i++) {\n const touch = initialEvent.changedTouches[i];\n touchLocationsById[touch.identifier] = [\n touch.clientX,\n touch.clientY,\n ];\n }\n\n this._moveListener = (evt) => {\n for (let i = 0; i < evt.changedTouches.length; i++) {\n const touch = evt.changedTouches[i];\n const initialTouchLocation =\n touchLocationsById[touch.identifier];\n if (initialTouchLocation) {\n const touchLocation = [touch.clientX, touch.clientY];\n const dx = touchLocation[0] - initialTouchLocation[0];\n const dy = touchLocation[1] - initialTouchLocation[1];\n\n const squaredDist = dx * dx + dy * dy;\n const squaredTouchSlop = touchSlopPx * touchSlopPx;\n\n if (squaredDist > squaredTouchSlop) {\n onDrag();\n }\n }\n }\n };\n\n // Clean-up any terminated gestures, since some browsers reuse\n // identifiers.\n this._endAndCancelListener = (evt) => {\n for (let i = 0; i < evt.changedTouches.length; i++) {\n delete touchLocationsById[evt.changedTouches[i].identifier];\n }\n };\n }\n\n attach() {\n window.addEventListener(\"scroll\", this._scrollListener);\n window.addEventListener(\"touchmove\", this._moveListener);\n window.addEventListener(\"touchend\", this._endAndCancelListener);\n window.addEventListener(\"touchcancel\", this._endAndCancelListener);\n }\n\n detach() {\n window.removeEventListener(\"scroll\", this._scrollListener);\n window.removeEventListener(\"touchmove\", this._moveListener);\n window.removeEventListener(\"touchend\", this._endAndCancelListener);\n window.removeEventListener(\"touchcancel\", this._endAndCancelListener);\n }\n}\n\nexport default DragListener;\n","import type {CursorContext} from \"./components/input/cursor-contexts\";\nimport type {KeyType} from \"./enums\";\nimport type {\n KeypadConfiguration,\n KeypadContextRendererInterface,\n KeypadKey,\n} from \"@khanacademy/perseus-core\";\nimport type * as React from \"react\";\nimport type ReactDOM from \"react-dom\";\n\nexport enum MathFieldActionType {\n WRITE = \"write\",\n CMD = \"cmd\",\n KEYSTROKE = \"keystroke\",\n MQ_END = 0,\n}\n\ntype IconConfig = {\n data: string;\n};\n\nexport type KeyConfig = {\n id: KeypadKey;\n type: KeyType;\n icon: IconConfig;\n ariaLabel: string;\n};\n\nexport type KeyHandler = (key: KeypadKey) => Cursor;\n\nexport type Cursor = {\n context: (typeof CursorContext)[keyof typeof CursorContext];\n};\n\nexport type ClickKeyCallback = (\n key: KeypadKey,\n event?: React.SyntheticEvent,\n) => void;\n\nexport type KeypadPageType =\n | \"Geometry\"\n | \"Operators\"\n | \"Numbers\"\n | \"Fractions\"\n | \"Extras\"\n | \"Dismiss\";\n\nexport interface KeypadAPI {\n activate: () => void;\n dismiss: () => void;\n configure: (configuration: KeypadConfiguration, cb: () => void) => void;\n setCursor: (cursor: Cursor) => void;\n setKeyHandler: (keyHandler: KeyHandler) => void;\n getDOMNode: () => ReturnType<typeof ReactDOM.findDOMNode>;\n}\n\nexport type KeypadContextType = {\n setKeypadActive: (keypadActive: boolean) => void;\n keypadActive: boolean;\n setKeypadElement: (keypadElement?: KeypadAPI) => void;\n keypadElement: KeypadAPI | null | undefined;\n setRenderer: (\n renderer?: KeypadContextRendererInterface | null | undefined,\n ) => void;\n renderer: KeypadContextRendererInterface | null | undefined;\n setScrollableElement: (\n scrollableElement?: HTMLElement | null | undefined,\n ) => void;\n scrollableElement: HTMLElement | null | undefined;\n};\n","/**\n * Enum that defines the various contexts in which a cursor can exist. The\n * active context is determined first by looking at the cursor's siblings (e.g.,\n * for the `BEFORE_FRACTION` context), and then at its direct parent. Though a\n * cursor could in theory be nested in multiple contexts, we only care about the\n * immediate context.\n *\n * TODO(charlie): Add a context to represent being inside of a radical. Right\n * now, we show the dismiss button rather than allowing the user to jump out of\n * the radical.\n */\n\nexport enum CursorContext {\n // The cursor is not in any of the other viable contexts.\n NONE = \"NONE\",\n\n // The cursor is within a set of parentheses.\n IN_PARENS = \"IN_PARENS\",\n\n // The cursor is within a superscript (e.g., an exponent).\n IN_SUPER_SCRIPT = \"IN_SUPER_SCRIPT\",\n\n // The cursor is within a subscript (e.g., the base of a custom logarithm).\n IN_SUB_SCRIPT = \"IN_SUB_SCRIPT\",\n\n // The cursor is in the numerator of a fraction.\n IN_NUMERATOR = \"IN_NUMERATOR\",\n\n // The cursor is in the denominator of a fraction.\n IN_DENOMINATOR = \"IN_DENOMINATOR\",\n\n // The cursor is sitting before a fraction; that is, the cursor is within\n // what looks to be a mixed number preceding a fraction. This will only be\n // the case when the only math between the cursor and the fraction to its\n // write is non-leaf math (numbers and variables).\n BEFORE_FRACTION = \"BEFORE_FRACTION\",\n}\n","const CDOT_ONLY = [\n \"az\",\n \"cs\",\n \"da\",\n \"de\",\n \"hu\",\n \"hy\",\n \"kk\",\n \"ky\",\n \"lt\",\n \"lv\",\n \"nb\",\n \"sk\",\n \"sr\",\n \"sv\",\n \"uz\",\n];\nconst TIMES_ONLY = [\"fr\", \"tr\", \"pt-pt\"];\n\n/**\n * convertDotToTimes (aka `times`) is an option the content creators have to\n * use × (TIMES) rather than · (CDOT) for multiplication (for younger learners).\n * Some locales _only_ use one or the other for all multiplication regardless\n * of age.\n *\n * convertDotToTimesByLocale overrides convertDotToTimes for those locales.\n *\n * @param {boolean} convertDotToTimes - the setting set by content creators\n * @returns {boolean} - true to convert to × (TIMES), false to use · (CDOT)\n */\nexport function convertDotToTimesByLocale(\n locale: string,\n convertDotToTimes: boolean,\n): boolean {\n if (CDOT_ONLY.includes(locale)) {\n return false;\n }\n\n if (TIMES_ONLY.includes(locale)) {\n return true;\n }\n\n return convertDotToTimes;\n}\n\n/**\n * Use this to avoid running code that should not run in Jest.\n **/\nexport const inJest =\n typeof process !== \"undefined\" && !!process?.env?.JEST_WORKER_ID;\n// Explicitly checking for undefined because Cypress throws an error\n","import {SpeechRuleEngine} from \"@khanacademy/mathjax-renderer\";\nimport MathQuill from \"mathquill\";\n\nimport {inJest} from \"../../utils\";\n\nimport type {\n MathQuillInterface,\n MathFieldConfig,\n MathFieldInterface,\n} from \"./mathquill-types\";\nimport type {MathInputStrings} from \"../../strings\";\n\n// We only need one MathQuill instance (referred to as MQ in the docs)\n// and that contains some MQ constants and the MathField constructor\nexport const mathQuillInstance: MathQuillInterface = MathQuill.getInterface(3);\n\nconst createBaseConfig = (): MathFieldConfig => ({\n // LaTeX commands that, when typed, are immediately replaced by the\n // appropriate symbol. This does not include ln, log, or any of the\n // trig functions; those are always interpreted as commands.\n autoCommands: \"pi theta phi sqrt nthroot\",\n // Most of these autoOperatorNames are simply the MathQuill defaults.\n // We have to list them all in order to add the `sen` operator (see\n // comment below).\n autoOperatorNames: [\n \"arccos\",\n \"arcsin\",\n \"arctan\",\n \"arctg\",\n \"arg\",\n \"cos\",\n \"cosec\",\n \"cossec\",\n \"cosh\",\n \"cot\",\n \"cotg\",\n \"coth\",\n \"csc\",\n \"ctg\",\n \"deg\",\n \"det\",\n \"dim\",\n \"exp\",\n \"gcd\",\n \"hom\",\n \"inf\",\n \"ker\",\n \"lg\",\n \"lim\",\n \"liminf\",\n \"limsup\",\n \"ln\",\n \"log\",\n \"max\",\n \"min\",\n \"Pr\",\n \"projlim\",\n \"sec\",\n // sen is used instead of sin in e.g. Portuguese\n \"sen\",\n \"sin\",\n \"sinh\",\n \"sup\",\n \"tan\",\n \"tanh\",\n \"tg\",\n ].join(\" \"),\n\n // Pop the cursor out of super/subscripts on arithmetic operators\n // or (in)equalities.\n charsThatBreakOutOfSupSub: \"+-*/=<>≠≤≥\",\n\n // Prevent excessive super/subscripts or fractions from being\n // created without operands, e.g. when somebody holds down a key\n supSubsRequireOperand: true,\n\n // The name of this option is somewhat misleading, as tabbing in\n // MathQuill breaks you out of a nested context (fraction/script)\n // if you're in one, but moves focus to the next input if you're\n // not. Spaces (with this option enabled) are just ignored in the\n // latter case.\n //\n // TODO(alex): In order to allow inputting mixed numbers, we will\n // have to accept spaces in certain cases. The desired behavior is\n // still to escape nested contexts if currently in one, but to\n // insert a space if not (we don't expect mixed numbers in nested\n // contexts). We should also limit to one consecutive space.\n spaceBehavesLikeTab: true,\n});\n\n/**\n * Creates a new [MathField](http://docs.mathquill.com/en/latest/Api_Methods/#mqmathfieldhtml_element-config)\n * instance within the given `container`.\n *\n * An optional configuration callback can be provided to customize\n * the created MathField. A default configuration is passed to this\n * callback which can then be adjusted as needed. The configuration\n * returned from this callback is used to create the MathField.\n * This allows callers to do minimal configuration as only configs\n * that vary from the default need to be provided.\n */\nexport function createMathField(\n container: HTMLDivElement | HTMLSpanElement,\n locale: string,\n strings: MathInputStrings,\n configCallback?: (baseConfig: MathFieldConfig) => MathFieldConfig,\n): MathFieldInterface {\n const baseConfig = createBaseConfig();\n const config = configCallback ? configCallback(baseConfig) : baseConfig;\n\n const mathField = mathQuillInstance\n .MathField(container, config)\n .setAriaLabel(strings.mathInputBox)\n .setAriaStringsOverrideMap({\n before: (obj) => strings.before({obj}),\n after: (obj) => strings.after({obj}),\n \"beginning of\": (obj) => strings[\"beginning of\"]({obj}),\n \"end of\": (obj) => strings[\"end of\"]({obj}),\n Baseline: strings.Baseline,\n Superscript: strings.Superscript,\n selected: (obj) => strings.selected({obj}),\n \"no answer\": strings[\"no answer\"],\n \"nothing selected\": strings[\"nothing selected\"],\n \"nothing to the right\": strings[\"nothing to the right\"],\n \"nothing to the left\": strings[\"nothing to the left\"],\n \"block is empty\": strings[\"block is empty\"],\n \"nothing above\": strings[\"nothing above\"],\n labelValue: (label, value) => strings.labelValue({label, value}),\n }) as MathFieldInterface;\n\n // We should avoid running SpeechRuleEngine.setup() in Jest. It makes an\n // HTTP request to fetch non-english speech rules, and cannot be easily\n // mocked in consuming packages now that we do not bundle source code.\n // When it eventually times out, it will cause arbitrary test failures.\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n !inJest &&\n SpeechRuleEngine.setup(locale).then((SRE) =>\n mathField.setMathspeakOverride(SRE.texToSpeech),\n );\n\n return mathField;\n}\n","import {MathFieldActionType} from \"../../types\";\n\nimport {CursorContext} from \"./cursor-contexts\";\nimport {mathQuillInstance} from \"./mathquill-instance\";\n\nimport type {MathFieldInterface} from \"./mathquill-types\";\n\nconst Numerals = [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"];\nconst GreekLetters = [\"\\\\theta\", \"\\\\pi\"];\nconst Letters = [\n \"A\",\n \"B\",\n \"C\",\n \"D\",\n \"E\",\n \"F\",\n \"G\",\n \"H\",\n \"I\",\n \"J\",\n \"K\",\n \"L\",\n \"M\",\n \"N\",\n \"O\",\n \"P\",\n \"Q\",\n \"R\",\n \"S\",\n \"T\",\n \"U\",\n \"V\",\n \"W\",\n \"X\",\n \"Y\",\n \"Z\",\n];\n\n// We only consider numerals, variables, and Greek Letters to be proper\n// leaf nodes.\nconst ValidLeaves = [\n ...Numerals,\n ...GreekLetters,\n ...Letters.map((letter) => letter.toLowerCase()),\n ...Letters.map((letter) => letter.toUpperCase()),\n];\n\nconst mqNodeHasClass = (node: any, className: string): boolean =>\n node._el && (node._el as HTMLElement).classList.contains(className);\n\nexport function isFraction(node): boolean {\n return mqNodeHasClass(node, \"mq-fraction\");\n}\n\nfunction isNumerator(node): boolean {\n return mqNodeHasClass(node, \"mq-numerator\");\n}\n\nfunction isDenominator(node): boolean {\n return mqNodeHasClass(node, \"mq-denominator\");\n}\n\nfunction isSubScript(node): boolean {\n // NOTE(charlie): MyScript has a structure whereby its superscripts seem\n // to be represented as a parent node with 'mq-sup-only' containing a\n // single child with 'mq-sup'.\n return (\n mqNodeHasClass(node, \"mq-sub-only\") || mqNodeHasClass(node, \"mq-sub\")\n );\n}\n\nfunction isSuperScript(node): boolean {\n // NOTE(charlie): MyScript has a structure whereby its superscripts seem\n // to be represented as a parent node with 'mq-sup-only' containing a\n // single child with 'mq-sup'.\n return (\n mqNodeHasClass(node, \"mq-sup-only\") || mqNodeHasClass(node, \"mq-sup\")\n );\n}\n\nexport function isParens(node): boolean {\n return node && node.ctrlSeq === \"\\\\left(\";\n}\n\nfunction isLeaf(node): boolean {\n return node && node.ctrlSeq && ValidLeaves.includes(node.ctrlSeq.trim());\n}\n\nexport function isSquareRoot(node): boolean {\n return node.blocks && mqNodeHasClass(node.blocks[0], \"mq-sqrt-stem\");\n}\n\nexport function isNthRoot(node): boolean {\n return node.blocks && mqNodeHasClass(node.blocks[0], \"mq-nthroot\");\n}\n\nexport function isNthRootIndex(node): boolean {\n return mqNodeHasClass(node, \"mq-nthroot\");\n}\n\nexport function isInsideLogIndex(cursor): boolean {\n const grandparent = cursor.parent.parent;\n\n if (grandparent && mqNodeHasClass(grandparent, \"mq-supsub\")) {\n const command = maybeFindCommandBeforeParens(grandparent);\n\n if (command && command.name === \"\\\\log\") {\n return true;\n }\n }\n\n return false;\n}\n\nexport function isInsideEmptyNode(cursor): boolean {\n return (\n cursor[mathQuillInstance.L] === MathFieldActionType.MQ_END &&\n cursor[mathQuillInstance.R] === MathFieldActionType.MQ_END\n );\n}\n\nexport function selectNode(node, cursor) {\n cursor.insLeftOf(node);\n cursor.startSelection();\n cursor.insRightOf(node);\n cursor.select();\n cursor.endSelection();\n}\n\n/**\n * Return the start node, end node, and full name of the command of which\n * the initial node is a part, or `null` if the node is not part of a\n * command.\n *\n * @param {node} initialNode - the node to included as part of the command\n * @returns {null|object} - `null` or an object containing the start node\n * (`startNode`), end node (`endNode`), and full\n * name (`name`) of the command\n */\nexport function maybeFindCommand(initialNode) {\n if (!initialNode) {\n return null;\n }\n\n // MathQuill stores commands as separate characters so that\n // users can delete commands one character at a time. We iterate over\n // the nodes from right to left until we hit a sequence starting with a\n // '\\\\', which signifies the start of a command; then we iterate from\n // left to right until we hit a '\\\\left(', which signifies the end of a\n // command. If we encounter any character that doesn't belong in a\n // command, we return null. We match a single character at a time.\n // Ex) ['\\\\l', 'o', 'g ', '\\\\left(', ...]\n const commandCharRegex = /^[a-z]$/;\n const commandStartRegex = /^\\\\[a-z]$/;\n const commandEndSeq = \"\\\\left(\";\n\n // Note: We allowlist the set of valid commands, since relying solely on\n // a command being prefixed with a backslash leads to undesired\n // behavior. For example, Greek symbols, left parentheses, and square\n // roots all get treated as commands.\n const validCommands = [\"\\\\log\", \"\\\\ln\", \"\\\\cos\", \"\\\\sin\", \"\\\\tan\"];\n\n let name = \"\";\n let startNode;\n let endNode;\n\n // Collect the portion of the command from the current node, leftwards\n // until the start of the command.\n let node = initialNode;\n while (node !== 0) {\n const ctrlSeq = node.ctrlSeq.trim();\n if (commandCharRegex.test(ctrlSeq)) {\n name = ctrlSeq + name;\n } else if (commandStartRegex.test(ctrlSeq)) {\n name = ctrlSeq + name;\n startNode = node;\n break;\n } else {\n break;\n }\n\n node = node[mathQuillInstance.L];\n }\n\n // If we hit the start of a command, then grab the rest of it by\n // iterating rightwards to compute the full name of the command, along\n // with its terminal node.\n if (startNode) {\n // Next, iterate from the start to the right.\n node = initialNode[mathQuillInstance.R];\n while (node !== 0) {\n const ctrlSeq = node.ctrlSeq.trim();\n if (commandCharRegex.test(ctrlSeq)) {\n // If we have a single character, add it to the command\n // name.\n name = name + ctrlSeq;\n } else if (ctrlSeq === commandEndSeq) {\n // If we hit the command end delimiter (the left\n // parentheses surrounding its arguments), stop.\n endNode = node;\n break;\n }\n\n node = node[mathQuillInstance.R];\n }\n if (validCommands.includes(name)) {\n return {name, startNode, endNode};\n } else {\n return null;\n }\n } else {\n return null;\n }\n}\n\n/**\n * Return the start node, end node, and full name of the command to the left\n * of `\\\\left(`, or `null` if there is no command.\n *\n * @param {node} leftParenNode - node where .ctrlSeq == `\\\\left(`\n * @returns {null|object} - `null` or an object containing the start node\n * (`startNode`), end node (`endNode`), and full\n * name (`name`) of the command\n */\nexport function maybeFindCommandBeforeParens(leftParenNode) {\n return maybeFindCommand(leftParenNode[mathQuillInstance.L]);\n}\n\nexport function getCursorContext(\n mathField?: MathFieldInterface,\n): (typeof CursorContext)[keyof typeof CursorContext] {\n if (!mathField) {\n return CursorContext.NONE;\n }\n\n // First, try to find any fraction to the right, unimpeded.\n const cursor = mathField.cursor();\n let visitor = cursor;\n while (visitor[mathQuillInstance.R] !== MathFieldActionType.MQ_END) {\n if (isFraction(visitor[mathQuillInstance.R])) {\n return CursorContext.BEFORE_FRACTION;\n } else if (!isLeaf(visitor[mathQuillInstance.R])) {\n break;\n }\n visitor = visitor[mathQuillInstance.R];\n }\n\n // If that didn't work, check if the parent or grandparent is a special\n // context, so that we can jump outwards.\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions\n if (isParens(cursor.parent && cursor.parent.parent)) {\n return CursorContext.IN_PARENS;\n } else if (isNumerator(cursor.parent)) {\n return CursorContext.IN_NUMERATOR;\n } else if (isDenominator(cursor.parent)) {\n return CursorContext.IN_DENOMINATOR;\n } else if (isSubScript(cursor.parent)) {\n return CursorContext.IN_SUB_SCRIPT;\n } else if (isSuperScript(cursor.parent)) {\n return CursorContext.IN_SUPER_SCRIPT;\n } else {\n return CursorContext.NONE;\n }\n}\n","import {MathFieldActionType} from \"../../types\";\nimport {\n isFraction,\n isSquareRoot,\n isNthRoot,\n isNthRootIndex,\n isInsideLogIndex,\n isInsideEmptyNode,\n selectNode,\n maybeFindCommandBeforeParens,\n} from \"../input/mathquill-helpers\";\nimport {mathQuillInstance} from \"../input/mathquill-instance\";\n\nimport type {MathFieldInterface} from \"../input/mathquill-types\";\nimport type MathQuill from \"mathquill\";\n\nfunction handleBackspaceInNthRoot(\n mathField: MathFieldInterface,\n cursor: MathQuill.Cursor,\n) {\n const isAtLeftEnd =\n cursor[mathQuillInstance.L] === MathFieldActionType.MQ_END;\n\n const isRootEmpty = isInsideEmptyNode(cursor.parent.parent.blocks[0].ends);\n\n if (isAtLeftEnd) {\n selectNode(cursor.parent.parent, cursor);\n\n if (isRootEmpty) {\n mathField.keystroke(\"Backspace\");\n }\n } else {\n mathField.keystroke(\"Backspace\");\n }\n}\n\nfunction handleBackspaceInRootIndex(\n mathField: MathFieldInterface,\n cursor: MathQuill.Cursor,\n) {\n if (isInsideEmptyNode(cursor)) {\n // When deleting the index in a nthroot, we change from the nthroot\n // to a sqrt, e.g. \\sqrt[|]{35x-5} => |\\sqrt{35x-5}. If there's no\n // content under the root, then we delete the whole thing.\n\n const grandparent = cursor.parent.parent;\n const latex = grandparent.latex();\n const reinsertionPoint = grandparent[mathQuillInstance.L];\n\n selectNode(grandparent, cursor);\n\n const rootIsEmpty =\n (grandparent.blocks[1]._el as HTMLElement).textContent === \"\";\n\n if (rootIsEmpty) {\n // If there is not content under the root then simply delete\n // the whole thing.\n mathField.keystroke(\"Backspace\");\n } else {\n // Replace the nthroot with a sqrt if there was content under\n // the root.\n\n // Start by deleting the selection.\n mathField.keystroke(\"Backspace\");\n\n // Replace the nth-root with a sqrt.\n mathField.write(latex.replace(/^\\\\sqrt\\[\\]/, \"\\\\sqrt\"));\n\n // Adjust the cursor to be to the left the sqrt.\n if (reinsertionPoint === MathFieldActionType.MQ_END) {\n mathField.moveToLeftEnd();\n } else {\n cursor.insRightOf(reinsertionPoint);\n }\n }\n } else {\n if (cursor[mathQuillInstance.L] !== MathFieldActionType.MQ_END) {\n // If the cursor is not at the leftmost position inside the\n // root's index, delete a character.\n mathField.keystroke(\"Backspace\");\n } else {\n // TODO(kevinb) verify that we want this behavior after testing\n // Do nothing because we haven't completely deleted the\n // index of the radical.\n }\n }\n}\n\nfunction handleBackspaceInLogIndex(\n mathField: MathFieldInterface,\n cursor: MathQuill.Cursor,\n) {\n if (isInsideEmptyNode(cursor)) {\n const grandparent = cursor.parent.parent;\n const command = maybeFindCommandBeforeParens(grandparent);\n\n cursor.insLeftOf(command?.startNode);\n cursor.startSelection();\n\n if (grandparent[mathQuillInstance.R] !== MathFieldActionType.MQ_END) {\n cursor.insRightOf(grandparent[mathQuillInstance.R]);\n } else {\n cursor.insRightOf(grandparent);\n }\n\n cursor.select();\n cursor.endSelection();\n const isLogBodyEmpty =\n grandparent[mathQuillInstance.R]._el.textContent === \"\";\n\n if (isLogBodyEmpty) {\n // If there's no content inside the log's parens then delete the\n // whole thing.\n mathField.keystroke(\"Backspace\");\n }\n } else {\n mathField.keystroke(\"Backspace\");\n }\n}\n\nfunction handleBackspaceInsideParens(\n mathField: MathFieldInterface,\n cursor: MathQuill.Cursor,\n) {\n // Handle situations when the cursor is inside parens or a\n // command that uses parens, e.g. \\log() or \\tan()\n //\n // MathQuill represents log(x+1) in roughly the following way\n // [l, o, g, \\\\left[parent:[x, +, 1]]]\n //\n // If the cursor is inside the parentheses it's next to one of:\n // x, +, or 1. This makes sub_sub_expr its parent and sub_expr\n // it's parent.\n //\n // Interestingly parent doesn't have any nodes to the left or\n // right of it (even though the corresponding DOM node has\n // ( and ) characters on either side.\n //\n // The grandparent's ctrlSeq is `\\\\left(`. The `\\\\right)` isn't\n // stored anywhere. NOTE(kevinb): I believe this is because\n // MathQuill knows what the close paren should be and does the\n // right thing at render time.\n //\n // This conditional branch handles the following cases:\n // - \\log(x+1|) => \\log(x+|)\n // - \\log(|x+1) => |\\log(x+1)|\n // - \\log(|) => |\n\n if (cursor[mathQuillInstance.L] !== MathFieldActionType.MQ_END) {\n // This command contains math and there's some math to\n // the left of the cursor that we should delete normally\n // before doing anything special.\n mathField.keystroke(\"Backspace\");\n return;\n }\n\n const grandparent = cursor.parent.parent;\n\n // If the cursors is inside the parens at the start but the command\n // has a subscript as is the case in log_n then move the cursor into\n // the subscript, e.g. \\log_{5}(|x+1) => \\log_{5|}(x+1)\n\n if (grandparent[mathQuillInstance.L].sub) {\n // if there is a subscript\n if (grandparent[mathQuillInstance.L].sub._el.textContent) {\n // and it contains text\n // move the cursor to the right end of the subscript\n cursor.insAtRightEnd(grandparent[mathQuillInstance.L].sub);\n return;\n }\n }\n\n // Determine if the parens are empty before we modify the\n // cursor's position.\n const isEmpty = isInsideEmptyNode(cursor);\n\n // Insert the cursor to the left of the command if there is one\n // or before the '\\\\left(` if there isn't\n const command = maybeFindCommandBeforeParens(grandparent);\n\n cursor.insLeftOf((command && command.startNode) || grandparent);\n cursor.startSelection();\n cursor.insRightOf(grandparent);\n cursor.select();\n cursor.endSelection();\n\n // Delete the selection, but only if the parens were empty to\n // begin with.\n if (isEmpty) {\n mathField.keystroke(\"Backspace\");\n }\n}\n\nfunction handleBackspaceAfterLigaturedSymbol(mathField: MathFieldInterface) {\n mathField.keystroke(\"Backspace\");\n mathField.keystroke(\"Backspace\");\n}\n\n/**\n * Selects and deletes part of the expression based on the cursor location.\n * See inline comments for precise behavior of different cases.\n */\nfunction handleBackspace(mathField: MathFieldInterface) {\n const cursor = mathField.cursor();\n if (!cursor.selection) {\n const parent = cursor.parent;\n const grandparent = parent.parent;\n const leftNode = cursor[mathQuillInstance.L];\n\n if (isFraction(leftNode)) {\n selectNode(leftNode, cursor);\n } else if (isSquareRoot(leftNode)) {\n selectNode(leftNode, cursor);\n } else if (isNthRoot(leftNode)) {\n selectNode(leftNode, cursor);\n } else if (isNthRootIndex(parent)) {\n handleBackspaceInRootIndex(mathField, cursor);\n } else if (grandparent.ctrlSeq === \"\\\\left(\") {\n handleBackspaceInsideParens(mathField, cursor);\n } else if (isInsideLogIndex(cursor)) {\n handleBackspaceInLogIndex(mathField, cursor);\n } else if (\n leftNode.ctrlSeq === \"\\\\ge \" ||\n leftNode.ctrlSeq === \"\\\\le \"\n ) {\n handleBackspaceAfterLigaturedSymbol(mathField);\n } else if (\n isNthRoot(grandparent) &&\n leftNode === MathFieldActionType.MQ_END\n ) {\n handleBackspaceInNthRoot(mathField, cursor);\n } else {\n mathField.keystroke(\"Backspace\");\n }\n } else {\n mathField.keystroke(\"Backspace\");\n }\n}\n\nexport default handleBackspace;\n","import {MathFieldActionType} from \"../../types\";\nimport {\n maybeFindCommand,\n maybeFindCommandBeforeParens,\n} from \"../input/mathquill-helpers\";\nimport {mathQuillInstance} from \"../input/mathquill-instance\";\n\nimport type {MathFieldInterface} from \"../input/mathquill-types\";\nimport type {KeypadKey} from \"@khanacademy/perseus-core\";\nimport type MathQuill from \"mathquill\";\n\nfunction handleLeftArrow(\n mathField: MathFieldInterface,\n cursor: MathQuill.Cursor,\n) {\n // If we're inside a function, and just after the left parentheses, we\n // need to skip the entire function name, rather than move the cursor\n // inside of it. For example, when hitting left from within the\n // parentheses in `cos()`, we want to place the cursor to the left of\n // the entire expression, rather than between the `s` and the left\n // parenthesis.\n // From the cursor's perspective, this requires that our left node is\n // the ActionType.MQ_END node, that our grandparent is the left parenthesis, and\n // the nodes to the left of our grandparent comprise a valid function\n // name.\n if (cursor[mathQuillInstance.L] === MathFieldActionType.MQ_END) {\n const parent = cursor.parent;\n const grandparent = parent.parent;\n if (grandparent.ctrlSeq === \"\\\\left(\") {\n const command = maybeFindCommandBeforeParens(grandparent);\n if (command) {\n cursor.insLeftOf(command.startNode);\n return;\n }\n }\n }\n\n // Otherwise, we default to the standard MathQull left behavior.\n mathField.keystroke(\"Left\");\n}\n\nfunction handleRightArrow(\n mathField: MathFieldInterface,\n cursor: MathQuill.Cursor,\n) {\n const command = maybeFindCommand(cursor[mathQuillInstance.R]);\n if (command) {\n // Similarly, if a function is to our right, then we need to place\n // the cursor at the start of its parenthetical content, which is\n // done by putting it to the left of ites parentheses and then\n // moving right once.\n cursor.insLeftOf(command.endNode);\n mathField.keystroke(\"Right\");\n } else {\n // Otherwise, we default to the standard MathQull right behavior.\n mathField.keystroke(\"Right\");\n }\n}\n\nexport default function handleArrow(\n mathField: MathFieldInterface,\n key: KeypadKey,\n) {\n const cursor = mathField.cursor();\n\n if (key === \"LEFT\") {\n handleLeftArrow(mathField, cursor);\n } else if (key === \"RIGHT\") {\n handleRightArrow(mathField, cursor);\n }\n}\n","import {MathFieldActionType} from \"../../types\";\nimport {mathQuillInstance} from \"../input/mathquill-instance\";\n\nimport type {MathFieldInterface} from \"../input/mathquill-types\";\nimport type {KeypadKey} from \"@khanacademy/perseus-core\";\n\nconst ArithmeticOperators = [\"+\", \"-\", \"\\\\cdot\", \"\\\\times\", \"\\\\div\"];\nconst EqualityOperators = [\"=\", \"\\\\neq\", \"<\", \"\\\\leq\", \">\", \"\\\\geq\"];\n\nexport default function handleExponent(\n mathField: MathFieldInterface,\n key: KeypadKey,\n) {\n const cursor = mathField.cursor();\n // If there's an invalid operator preceding the cursor (anything that\n // knowingly cannot be raised to a power), add an empty set of\n // parentheses and apply the exponent to that.\n const invalidPrefixes = [...ArithmeticOperators, ...EqualityOperators];\n\n const precedingNode = cursor[mathQuillInstance.L];\n const shouldPrefixWithParens =\n precedingNode === MathFieldActionType.MQ_END ||\n invalidPrefixes.includes(precedingNode.ctrlSeq.trim());\n if (shouldPrefixWithParens) {\n mathField.write(\"\\\\left(\\\\right)\");\n }\n\n // Insert the appropriate exponent operator.\n switch (key) {\n case \"EXP\":\n mathField.cmd(\"^\");\n break;\n\n case \"EXP_2\":\n case \"EXP_3\":\n mathField.write(`^${key === \"EXP_2\" ? 2 : 3}`);\n\n // If we enter a square or a cube, we should leave the cursor\n // within the newly inserted parens, if they exist. This takes\n // exactly four left strokes, since the cursor by default would\n // end up to the right of the exponent.\n if (shouldPrefixWithParens) {\n mathField.keystroke(\"Left\");\n mathField.keystroke(\"Left\");\n mathField.keystroke(\"Left\");\n mathField.keystroke(\"Left\");\n }\n break;\n\n default:\n throw new Error(`Invalid exponent key: ${key}`);\n }\n}\n","import {MathFieldActionType} from \"../../types\";\nimport {CursorContext} from \"../input/cursor-contexts\";\nimport {\n isFraction,\n isParens,\n getCursorContext,\n} from \"../input/mathquill-helpers\";\nimport {mathQuillInstance} from \"../input/mathquill-instance\";\n\nimport type {MathFieldInterface} from \"../input/mathquill-types\";\nimport type {KeypadKey} from \"@khanacademy/perseus-core\";\n\nconst KeysForJumpContext = {\n [CursorContext.IN_PARENS]: \"JUMP_OUT_PARENTHESES\",\n [CursorContext.IN_SUPER_SCRIPT]: \"JUMP_OUT_EXPONENT\",\n [CursorContext.IN_SUB_SCRIPT]: \"JUMP_OUT_BASE\",\n [CursorContext.BEFORE_FRACTION]: \"JUMP_INTO_NUMERATOR\",\n [CursorContext.IN_NUMERATOR]: \"JUMP_OUT_NUMERATOR\",\n [CursorContext.IN_DENOMINATOR]: \"JUMP_OUT_DENOMINATOR\",\n};\n\n/**\n * Advances the cursor to the next logical position.\n */\nfunction handleJumpOut(mathField: MathFieldInterface, key: KeypadKey): void {\n const cursor = mathField.cursor();\n const context = getCursorContext(mathField);\n\n // Validate that the current cursor context matches the key's intent.\n if (KeysForJumpContext[context] !== key) {\n // If we don't have a valid cursor context, yet the user was able\n // to trigger a jump-out key, that's a broken invariant. Rather\n // than throw an error (which would kick the user out of the\n // exercise), we do nothing, as a fallback strategy. The user can\n // still move the cursor manually.\n return;\n }\n\n switch (context) {\n case CursorContext.IN_PARENS:\n // Insert at the end of the parentheses, and then navigate right\n // once more to get 'beyond' the parentheses.\n cursor.insRightOf(cursor.parent.parent);\n mathField.keystroke(\"Right\");\n break;\n\n case CursorContext.BEFORE_FRACTION:\n // Find the nearest fraction to the right of the cursor.\n let fractionNode;\n let visitor = cursor;\n while (\n visitor[mathQuillInstance.R] !== MathFieldActionType.MQ_END\n ) {\n if (isFraction(visitor[mathQuillInstance.R])) {\n fractionNode = visitor[mathQuillInstance.R];\n }\n visitor = visitor[mathQuillInstance.R];\n }\n\n // Jump into it!\n cursor.insLeftOf(fractionNode);\n mathField.keystroke(\"Right\");\n break;\n\n case CursorContext.IN_NUMERATOR:\n // HACK(charlie): I can't find a better way to do this. The goal\n // is to place the cursor at the start of the matching\n // denominator. So, we identify the appropriate node, and\n // continue rightwards until we find ourselves inside of it.\n // It's possible that there are cases in which we don't reach\n // the denominator, though I can't think of any.\n const siblingDenominator = cursor.parent.parent.blocks[1];\n while (cursor.parent !== siblingDenominator) {\n mathField.keystroke(\"Right\");\n }\n break;\n\n case CursorContext.IN_DENOMINATOR:\n cursor.insRightOf(cursor.parent.parent);\n break;\n\n case CursorContext.IN_SUB_SCRIPT:\n // Insert just beyond the superscript.\n cursor.insRightOf(cursor.parent.parent);\n\n // Navigate right once more, if we're right before parens. This\n // is to handle the standard case in which the subscript is the\n // base of a custom log.\n if (isParens(cursor[mathQuillInstance.R])) {\n mathField.keystroke(\"Right\");\n }\n break;\n\n case CursorContext.IN_SUPER_SCRIPT:\n // Insert just beyond the superscript.\n cursor.insRightOf(cursor.parent.parent);\n break;\n\n default:\n throw new Error(\n `Attempted to 'Jump Out' from node, but found no ` +\n `appropriate cursor context: ${context}`,\n );\n }\n}\n\nexport default handleJumpOut;\n","import {getDecimalSeparator} from \"@khanacademy/perseus-core\";\n\nimport {MathFieldActionType} from \"../../types\";\nimport {mathQuillInstance} from \"../input/mathquill-instance\";\n\nimport handleArrow from \"./handle-arrow\";\nimport handleExponent from \"./handle-exponent\";\nimport handleJumpOut from \"./handle-jump-out\";\n\nimport type {\n MathFieldInterface,\n MathFieldUpdaterCallback,\n} from \"../input/mathquill-types\";\nimport type {KeypadKey} from \"@khanacademy/perseus-core\";\n\nfunction buildGenericCallback(\n str: string,\n type: MathFieldActionType = MathFieldActionType.WRITE,\n): MathFieldUpdaterCallback {\n return function (mathQuill: MathFieldInterface) {\n switch (type) {\n case MathFieldActionType.WRITE: {\n mathQuill.write(str);\n return;\n }\n case MathFieldActionType.CMD: {\n mathQuill.cmd(str);\n return;\n }\n case MathFieldActionType.KEYSTROKE: {\n mathQuill.keystroke(str);\n return;\n }\n }\n };\n}\n\n/**\n * This lets us use translated functions\n * (like tg->tan and sen->sin) when we know it's safe to.\n * This lets us progressively support translations without needing\n * to support every language all at once.\n *\n * @param {string} command - the translated command/function to check\n * @param {string[]} supportedTranslations - list of translations we support\n * @param {string} defaultCommand - what to fallback to if the command isn't supported\n */\nfunction buildTranslatableFunctionCallback(\n command: string,\n supportedTranslations: string[],\n defaultCommand: string,\n) {\n const cmd = supportedTranslations.includes(command)\n ? command\n : defaultCommand;\n return function (mathField: MathFieldInterface) {\n mathField.write(`${cmd}\\\\left(\\\\right)`);\n mathField.keystroke(\"Left\");\n };\n}\n\nfunction buildNormalFunctionCallback(command: string) {\n return function (mathField: MathFieldInterface) {\n mathField.write(`\\\\${command}\\\\left(\\\\right)`);\n mathField.keystroke(\"Left\");\n };\n}\n\ntype KeyTranslatorStrings = {\n sin: string;\n cos: string;\n tan: string;\n};\n\nexport const getKeyTranslator = (\n locale: string,\n strings: KeyTranslatorStrings,\n): Record<KeypadKey, MathFieldUpdaterCallback> => ({\n EXP: handleExponent,\n EXP_2: handleExponent,\n EXP_3: handleExponent,\n\n JUMP_OUT_PARENTHESES: handleJumpOut,\n JUMP_OUT_EXPONENT: handleJumpOut,\n JUMP_OUT_BASE: handleJumpOut,\n JUMP_INTO_NUMERATOR: handleJumpOut,\n JUMP_OUT_NUMERATOR: handleJumpOut,\n JUMP_OUT_DENOMINATOR: handleJumpOut,\n\n LEFT: handleArrow,\n RIGHT: handleArrow,\n\n LOG: buildNormalFunctionCallback(\"log\"),\n LN: buildNormalFunctionCallback(\"ln\"),\n\n COS: buildNormalFunctionCallback(strings.cos),\n SIN: buildTranslatableFunctionCallback(strings.sin, [\"sin\", \"sen\"], \"sin\"),\n TAN: buildTranslatableFunctionCallback(strings.tan, [\"tan\", \"tg\"], \"tan\"),\n\n CDOT: buildGenericCallback(\"\\\\cdot\"),\n DECIMAL: buildGenericCallback(getDecimalSeparator(locale)),\n DIVIDE: buildGenericCallback(\"\\\\div\"),\n EQUAL: buildGenericCallback(\"=\"),\n GEQ: buildGenericCallback(\"\\\\geq\"),\n GT: buildGenericCallback(\">\"),\n LEQ: buildGenericCallback(\"\\\\leq\"),\n LT: buildGenericCallback(\"<\"),\n MINUS: buildGenericCallback(\"-\"),\n NEGATIVE: buildGenericCallback(\"-\"),\n NEQ: buildGenericCallback(\"\\\\neq\"),\n PERCENT: buildGenericCallback(\"%\"),\n PERIOD: buildGenericCallback(\".\"),\n PLUS: buildGenericCallback(\"+\"),\n TIMES: buildGenericCallback(\"\\\\times\"),\n\n // The `FRAC_EXCLUSIVE` variant is handled manually, since we may need to do\n // some additional navigation depending on the cursor position.\n FRAC_INCLUSIVE: buildGenericCallback(\"/\", MathFieldActionType.CMD),\n FRAC: buildGenericCallback(\"\\\\frac\", MathFieldActionType.CMD),\n LEFT_PAREN: buildGenericCallback(\"(\", MathFieldActionType.CMD),\n RIGHT_PAREN: buildGenericCallback(\")\", MathFieldActionType.CMD),\n SQRT: buildGenericCallback(\"sqrt\", MathFieldActionType.CMD),\n PI: buildGenericCallback(\"pi\", MathFieldActionType.CMD),\n THETA: buildGenericCallback(\"theta\", MathFieldActionType.CMD),\n RADICAL: buildGenericCallback(\"nthroot\", MathFieldActionType.CMD),\n\n BACKSPACE: buildGenericCallback(\"Backspace\", MathFieldActionType.KEYSTROKE),\n UP: buildGenericCallback(\"Up\", MathFieldActionType.KEYSTROKE),\n DOWN: buildGenericCallback(\"Down\", MathFieldActionType.KEYSTROKE),\n\n CUBE_ROOT: (mathQuill) => {\n mathQuill.write(\"\\\\sqrt[3]{}\");\n mathQuill.keystroke(\"Left\"); // under the root\n },\n\n FRAC_EXCLUSIVE: (mathQuill) => {\n const cursor = mathQuill.cursor();\n // If there's nothing to the left of the cursor, then we want to\n // leave the cursor to the left of the fraction after creating it.\n const shouldNavigateLeft =\n cursor[mathQuillInstance.L] === MathFieldActionType.MQ_END;\n mathQuill.cmd(\"\\\\frac\");\n if (shouldNavigateLeft) {\n mathQuill.keystroke(\"Left\");\n }\n },\n\n LOG_N: (mathQuill) => {\n mathQuill.write(\"log_{ }\\\\left(\\\\right)\");\n mathQuill.keystroke(\"Left\"); // into parentheses\n mathQuill.keystroke(\"Left\"); // out of parentheses\n mathQuill.keystroke(\"Left\"); // into index\n },\n\n // These need to be overwritten by the consumer\n // if they're going to be used\n DISMISS: () => {},\n\n NUM_0: buildGenericCallback(\"0\"),\n NUM_1: buildGenericCallback(\"1\"),\n NUM_2: buildGenericCallback(\"2\"),\n NUM_3: buildGenericCallback(\"3\"),\n NUM_4: buildGenericCallback(\"4\"),\n NUM_5: buildGenericCallback(\"5\"),\n NUM_6: buildGenericCallback(\"6\"),\n NUM_7: buildGenericCallback(\"7\"),\n NUM_8: buildGenericCallback(\"8\"),\n NUM_9: buildGenericCallback(\"9\"),\n a: buildGenericCallback(\"a\"),\n b: buildGenericCallback(\"b\"),\n c: buildGenericCallback(\"c\"),\n d: buildGenericCallback(\"d\"),\n e: buildGenericCallback(\"e\"),\n f: buildGenericCallback(\"f\"),\n g: buildGenericCallback(\"g\"),\n h: buildGenericCallback(\"h\"),\n i: buildGenericCallback(\"i\"),\n j: buildGenericCallback(\"j\"),\n k: buildGenericCallback(\"k\"),\n l: buildGenericCallback(\"l\"),\n m: buildGenericCallback(\"m\"),\n n: buildGenericCallback(\"n\"),\n o: buildGenericCallback(\"o\"),\n p: buildGenericCallback(\"p\"),\n q: buildGenericCallback(\"q\"),\n r: buildGenericCallback(\"r\"),\n s: buildGenericCallback(\"s\"),\n t: buildGenericCallback(\"t\"),\n u: buildGenericCallback(\"u\"),\n v: buildGenericCallback(\"v\"),\n w: buildGenericCallback(\"w\"),\n x: buildGenericCallback(\"x\"),\n y: buildGenericCallback(\"y\"),\n z: buildGenericCallback(\"z\"),\n A: buildGenericCallback(\"A\"),\n B: buildGenericCallback(\"B\"),\n C: buildGenericCallback(\"C\"),\n D: buildGenericCallback(\"D\"),\n E: buildGenericCallback(\"E\"),\n F: buildGenericCallback(\"F\"),\n G: buildGenericCallback(\"G\"),\n H: buildGenericCallback(\"H\"),\n I: buildGenericCallback(\"I\"),\n J: buildGenericCallback(\"J\"),\n K: buildGenericCallback(\"K\"),\n L: buildGenericCallback(\"L\"),\n M: buildGenericCallback(\"M\"),\n N: buildGenericCallback(\"N\"),\n O: buildGenericCallback(\"O\"),\n P: buildGenericCallback(\"P\"),\n Q: buildGenericCallback(\"Q\"),\n R: buildGenericCallback(\"R\"),\n S: buildGenericCallback(\"S\"),\n T: buildGenericCallback(\"T\"),\n U: buildGenericCallback(\"U\"),\n V: buildGenericCallback(\"V\"),\n W: buildGenericCallback(\"W\"),\n X: buildGenericCallback(\"X\"),\n Y: buildGenericCallback(\"Y\"),\n Z: buildGenericCallback(\"Z\"),\n});\n","// Notes about MathQuill\n//\n// MathQuill's stores its layout as nested linked lists. Each node in the\n// list has MQ.L '-1' and MQ.R '1' properties that define links to\n// the left and right nodes respectively. They also have\n//\n// ctrlSeq: contains the latex code snippet that defines that node.\n// jQ: jQuery object for the DOM node(s) for this MathQuill node.\n// ends: pointers to the nodes at the ends of the container.\n// parent: parent node.\n// blocks: an array containing one or more nodes that make up the node.\n// sub?: subscript node if there is one as is the case in log_n\n//\n// All of the code below is super fragile. Please be especially careful\n// when upgrading MathQuill.\n\nimport handleBackspace from \"../key-handlers/handle-backspace\";\nimport {getKeyTranslator} from \"../key-handlers/key-translator\";\n\nimport {getCursorContext, maybeFindCommand} from \"./mathquill-helpers\";\nimport {createMathField, mathQuillInstance} from \"./mathquill-instance\";\n\nimport type {\n MathFieldInterface,\n MathFieldUpdaterCallback,\n} from \"./mathquill-types\";\nimport type {MathInputStrings} from \"../../strings\";\nimport type {KeypadKey} from \"@khanacademy/perseus-core\";\n\n/**\n * This file contains a wrapper around MathQuill so that we can provide a\n * more regular interface for the functionality we need while insulating us\n * from MathQuill changes.\n */\nclass MathWrapper {\n mathField: MathFieldInterface; // MathQuill MathField input\n callbacks: any;\n mobileKeyTranslator: Record<KeypadKey, MathFieldUpdaterCallback>;\n\n constructor(\n mathFieldMount,\n ariaLabel: string,\n strings: MathInputStrings,\n locale: string,\n callbacks = {},\n ) {\n this.mathField = createMathField(\n mathFieldMount,\n locale,\n strings,\n () => {\n return {\n // use a span instead of a textarea so that we don't bring up the\n // native keyboard on mobile when selecting the input\n substituteTextarea: function () {\n return document.createElement(\"span\");\n },\n };\n },\n );\n this.mathField?.setAriaLabel(ariaLabel);\n\n this.callbacks = callbacks;\n\n this.mobileKeyTranslator = {\n ...getKeyTranslator(locale, strings),\n // note(Matthew): our mobile backspace logic is really complicated\n // and for some reason doesn't really work in the desktop experience.\n // So we default to the basic backspace functionality in the\n // key translator and overwrite it with the complicated logic here\n // until we can unify the experiences (if we even want to).\n // https://khanacademy.atlassian.net/browse/LC-906\n BACKSPACE: handleBackspace,\n };\n }\n\n focus() {\n // HACK(charlie): We shouldn't reaching into MathQuill internals like\n // this, but it's the easiest way to allow us to manage the focus state\n // ourselves.\n this.mathField.cursor().show();\n\n // Set MathQuill's internal state to reflect the focus, otherwise it\n // will consistently try to hide the cursor on key-press and introduce\n // layout jank.\n this.mathField.focus();\n }\n\n blur() {\n this.mathField.cursor().hide();\n this.mathField.blur();\n }\n\n /**\n * Handle a key press and return the resulting cursor state.\n *\n * @param {Key} key - an enum representing the key that was pressed\n * @returns {object} a cursor object, consisting of a cursor context\n */\n pressKey(key: KeypadKey) {\n const cursor = this.getCursor();\n const translator = this.mobileKeyTranslator[key];\n\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions\n if (translator) {\n translator(this.mathField, key);\n }\n\n if (!cursor.selection) {\n // don't show the cursor for selections\n cursor.show();\n }\n\n if (this.callbacks.onSelectionChanged) {\n this.callbacks.onSelectionChanged(cursor.selection);\n }\n\n // NOTE(charlie): It's insufficient to do this as an `edited` handler\n // on the MathField, as that handler isn't triggered on navigation\n // events.\n return {\n context: this.contextForCursor(),\n };\n }\n\n /**\n * Place the cursor beside the node located at the given coordinates.\n *\n * @param {number} x - the x coordinate in the viewport\n * @param {number} y - the y coordinate in the viewport\n * @param {Node} hitNode - the node next to which the cursor should be\n * placed; if provided, the coordinates will be used\n * to determine on which side of the node the cursor\n * should be placed\n */\n setCursorPosition(x: number, y: number, hitNode: HTMLElement) {\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions\n const el = hitNode || document.elementFromPoint(x, y);\n\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions\n if (el) {\n const cursor = this.getCursor();\n\n if (el.hasAttribute(\"mq-root-block\")) {\n // If we're in the empty area place the cursor at the right\n // end of the expression.\n cursor.insAtRightEnd(this.mathField.controller().root);\n } else {\n // Otherwise place beside the element at x, y.\n const controller = this.mathField.controller();\n\n const pageX = x - document.body.scrollLeft;\n const pageY = y - document.body.scrollTop;\n controller.seek(el, pageX, pageY).cursor.startSelection();\n\n // Unless that would leave us mid-command, in which case, we\n // need to adjust and place the cursor inside the parens\n // following the command.\n const command = maybeFindCommand(cursor[mathQuillInstance.L]);\n if (command && command.endNode) {\n // NOTE(charlie): endNode should definitely be \\left(.\n cursor.insLeftOf(command.endNode);\n this.mathField.keystroke(\"Right\");\n }\n }\n\n if (this.callbacks.onCursorMove) {\n this.callbacks.onCursorMove({\n context: this.contextForCursor(),\n });\n }\n }\n }\n\n // note(Matthew): extracted this logic to share it elsewhere,\n // but it's part of the public MathWrapper API\n getCursor() {\n return this.mathField.cursor();\n }\n\n // note(Matthew): extracted this logic to keep this file focused,\n // but it's part of the public MathWrapper API\n contextForCursor() {\n return getCursorContext(this.mathField);\n }\n\n getSelection() {\n return this.getCursor().selection;\n }\n\n getContent() {\n return this.mathField.latex();\n }\n\n setContent(latex: string) {\n this.mathField.latex(latex);\n }\n\n isEmpty() {\n const cursor = this.getCursor();\n return cursor.parent.id === 1 && cursor[1] === 0 && cursor[-1] === 0;\n }\n}\n\nexport default MathWrapper;\n","/**\n * A single function used to scroll a DOM node into view, optionally taking into\n * account that it may be obscured by the custom keypad. The logic makes the\n * strong assumption that the keypad will be anchored to the bottom of the page\n * in calculating its height, as this method may be called before the keypad has\n * animated into view.\n *\n * TODO(charlie): Move this scroll logic out of our components and into a higher\n * level in the component tree--perhaps even into webapp, beyond Perseus.\n */\n\n// HACK(charlie): This should be injected by webapp somehow.\n// TODO(charlie): Add a link to the webapp location as soon as the footer\n// has settled down.\nconst toolbarHeightPx = 60;\n\nexport const scrollIntoView = (containerNode, keypadNode) => {\n // TODO(charlie): There's no need for us to be reading the keypad bounds\n // here, since they're pre-determined by logic in the store. We should\n // instead pass around an object that knows the bounds.\n const containerBounds = containerNode.getBoundingClientRect();\n const containerBottomPx = containerBounds.bottom;\n const containerTopPx = containerBounds.top;\n\n // Get the element that scrolls the document.\n const scrollNode = document.scrollingElement;\n\n const desiredMarginPx = 16;\n\n if (keypadNode) {\n // NOTE(charlie): We can't use the bounding rect of the keypad,\n // as it is likely in the process of animating in. Instead, to\n // calculate its top, we make the strong assumption that the\n // keypad will end up anchored at the bottom of the page, but above the\n // toolbar, and use its height, which is known at this point. Note that,\n // in the native apps (where the toolbar is rendered natively), this\n // will result in us leaving excess space between the input and the\n // keypad, but that seems okay.\n const pageHeightPx = window.innerHeight;\n const keypadHeightPx = keypadNode.clientHeight;\n const keypadTopPx = pageHeightPx - (keypadHeightPx + toolbarHeightPx);\n\n if (containerBottomPx > keypadTopPx) {\n // If the input would be obscured by the keypad, scroll such that\n // the bottom of the input is just above the top of the keypad,\n // taking care not to scroll the input out of view.\n const scrollOffset = Math.min(\n containerBottomPx - keypadTopPx + desiredMarginPx,\n containerTopPx,\n );\n\n if (scrollNode) {\n scrollNode.scrollTop += scrollOffset;\n }\n return;\n }\n }\n\n // Alternatively, if the input is out of the viewport or nearly out\n // of the viewport, scroll it into view. We can do this regardless\n // of whether the keypad has been provided.\n if (scrollNode && containerTopPx < desiredMarginPx) {\n scrollNode.scrollTop -= containerBounds.height + desiredMarginPx;\n }\n};\n","/* eslint-disable @khanacademy/ts-no-error-suppressions */\nimport {KeypadContext} from \"@khanacademy/keypad-context\";\nimport {color} from \"@khanacademy/wonder-blocks-tokens\";\nimport {entries} from \"@khanacademy/wonder-stuff-core\";\nimport {StyleSheet} from \"aphrodite\";\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\n\nimport {View} from \"../../fake-react-native-web/index\";\nimport {MathInputI18nContext} from \"../i18n-context\";\n\nimport CursorHandle from \"./cursor-handle\";\nimport {\n cursorHandleRadiusPx,\n cursorHandleDistanceMultiplier,\n} from \"./cursor-styles\";\nimport DragListener from \"./drag-listener\";\nimport MathWrapper from \"./math-wrapper\";\nimport {scrollIntoView} from \"./scroll-into-view\";\n\nimport type {Cursor, KeypadAPI, KeypadContextType} from \"../../types\";\n\nconst constrainingFrictionFactor = 0.8;\n\ntype Props = {\n keypadElement?: KeypadAPI;\n ariaLabel: string;\n onBlur: () => void;\n onChange: (value: string, callback: any) => void;\n onFocus: () => void;\n style: any;\n value: string;\n};\n\ntype DefaultProps = {\n style: Props[\"style\"];\n value: Props[\"value\"];\n};\n\ntype HandleState = {\n animateIntoPosition?: boolean;\n visible: boolean;\n x?: number;\n y?: number;\n};\n\ntype State = {\n // Whether the input is currently the focused element.\n focused: boolean;\n handle: HandleState;\n // Whether to show the focus style for the input. We are handling this separately, as\n // we want the input to appear focused even when the focus is actually on the keypad.\n showInputFocusStyle: boolean;\n};\n\n// eslint-disable-next-line react/no-unsafe\nclass MathInput extends React.Component<Props, State> {\n static contextType = MathInputI18nContext;\n declare context: React.ContextType<typeof MathInputI18nContext>;\n\n didTouchOutside: boolean | null | undefined;\n didScroll: boolean | null | undefined;\n mathField: any;\n // @ts-expect-error - TS2564 - Property 'recordTouchStartOutside' has no initializer and is not definitely assigned in the constructor.\n recordTouchStartOutside: (arg1: any) => void;\n // @ts-expect-error - TS2564 - Property 'blurOnTouchEndOutside' has no initializer and is not definitely assigned in the constructor.\n blurOnTouchEndOutside: (arg1: any) => void;\n // @ts-expect-error - TS2564 - Property 'blurOnClickOutside' has no initializer and is not definitely assigned in the constructor.\n blurOnClickOutside: (arg1: any) => void;\n dragListener: any;\n inputRef: HTMLDivElement | null | undefined;\n _isMounted: boolean | null | undefined;\n _mathContainer: any;\n // @ts-expect-error - TS2564 - Property '_container' has no initializer and is not definitely assigned in the constructor.\n _container: HTMLDivElement;\n _root: any;\n // @ts-expect-error - TS2564 - Property '_containerBounds' has no initializer and is not definitely assigned in the constructor.\n _containerBounds: ClientRect;\n\n static defaultProps: DefaultProps = {\n style: {},\n value: \"\",\n };\n\n state: State = {\n focused: false,\n showInputFocusStyle: false,\n handle: {\n animateIntoPosition: false,\n visible: false,\n x: 0,\n y: 0,\n },\n };\n\n componentDidMount() {\n this._isMounted = true;\n\n this.mathField = new MathWrapper(\n this._mathContainer,\n this.props.ariaLabel,\n this.context.strings,\n this.context.locale,\n {\n onCursorMove: (cursor: Cursor) => {\n // TODO(charlie): It's not great that there is so much coupling\n // between this keypad and the input behavior. We should wrap\n // this `MathInput` component in an intermediary component\n // that translates accesses on the keypad into vanilla props,\n // to make this input keypad-agnostic.\n this.props.keypadElement?.setCursor(cursor);\n },\n },\n );\n\n this.mathField.setContent(this.props.value);\n\n this._updateInputPadding();\n\n this._container = ReactDOM.findDOMNode(this) as HTMLDivElement;\n this._root = this._container.querySelector(\".mq-root-block\");\n this._root.addEventListener(\"scroll\", this._handleScroll);\n\n const isWithinKeypadBounds = (x: number, y: number): boolean => {\n const bounds = this._getKeypadBounds();\n\n // If there are no bounds, then the keypad is not mounted, so we\n // assume that the event is not within the keypad bounds.\n if (!bounds) {\n return false;\n }\n\n return (\n (bounds.left <= x &&\n bounds.right >= x &&\n bounds.top <= y &&\n bounds.bottom >= y) ||\n bounds.bottom < y\n );\n };\n\n // Record the initial scroll displacement on touch start. This allows\n // us to detect whether a touch event was a scroll and only blur the\n // input on non-scrolls--blurring the input on scroll makes for a\n // frustrating user experience.\n this.recordTouchStartOutside = (evt: any) => {\n if (this.state.focused) {\n // Only blur if the touch is both outside of the input, and\n // above or to the left or right of the keypad (if it has been\n // provided). The reasoning for not blurring when touches occur\n // below the keypad is that the keypad may be anchored above\n // the 'Check answer' bottom bar, in which case, we don't want\n // to dismiss the keypad on check.\n // TODO(charlie): Inject this logic.\n if (!this._container.contains(evt.target)) {\n let touchDidStartInOrBelowKeypad = false;\n if (\n this.props.keypadElement &&\n this.props.keypadElement.getDOMNode()\n ) {\n for (let i = 0; i < evt.changedTouches.length; i++) {\n const [x, y] = [\n evt.changedTouches[i].clientX,\n evt.changedTouches[i].clientY,\n ];\n if (isWithinKeypadBounds(x, y)) {\n touchDidStartInOrBelowKeypad = true;\n break;\n }\n }\n }\n\n if (!touchDidStartInOrBelowKeypad) {\n this.didTouchOutside = true;\n\n if (this.dragListener) {\n this.dragListener.detach();\n }\n\n this.dragListener = new DragListener(() => {\n this.didScroll = true;\n this.dragListener.detach();\n }, evt);\n this.dragListener.attach();\n }\n }\n }\n };\n\n this.blurOnTouchEndOutside = (evt) => {\n // If the user didn't scroll, blur the input.\n // TODO(charlie): Verify that the touch that ended actually started\n // outside the keypad. Right now, you can touch down on the keypad,\n // touch elsewhere, release the finger on the keypad, and trigger a\n // dismissal. This code needs to be generalized to handle\n // multi-touch.\n if (this.state.focused && this.didTouchOutside && !this.didScroll) {\n this.blur();\n this.mathField.blur();\n this.props.onBlur?.();\n }\n\n this.didTouchOutside = false;\n this.didScroll = false;\n\n if (this.dragListener) {\n this.dragListener.detach();\n }\n };\n\n // We want to allow the user to blur the input by clicking outside of it\n // when using ChromeOS third-party browsers that use mobile user agents,\n // but don't actually simulate touch events.\n this.blurOnClickOutside = (evt: any) => {\n if (this.state.focused) {\n if (!this._container.contains(evt.target)) {\n if (\n this.props.keypadElement &&\n this.props.keypadElement.getDOMNode()\n ) {\n const [x, y] = [evt.clientX, evt.clientY];\n\n // We only want to blur if the click is above the keypad,\n // to the left of the keypad, or to the right of the keypad.\n // The reasoning for not blurring for any clicks below the keypad is\n // that the keypad may be anchored above the 'Check answer' bottom bar,\n // in which case we don't want to dismiss the keypad on check.\n if (!isWithinKeypadBounds(x, y)) {\n this.blur();\n this.props.onBlur?.();\n }\n }\n }\n }\n };\n\n window.addEventListener(\"touchstart\", this.recordTouchStartOutside);\n window.addEventListener(\"touchend\", this.blurOnTouchEndOutside);\n window.addEventListener(\"touchcancel\", this.blurOnTouchEndOutside);\n window.addEventListener(\"click\", this.blurOnClickOutside);\n }\n\n componentDidUpdate(prevProps: Props, prevState: State) {\n if (this.mathField.getContent() !== this.props.value) {\n this.mathField.setContent(this.props.value);\n }\n\n if (prevState.focused !== this.state.focused) {\n this._updateInputPadding();\n }\n }\n\n componentWillUnmount() {\n this._isMounted = false;\n\n window.removeEventListener(\"touchstart\", this.recordTouchStartOutside);\n window.removeEventListener(\"touchend\", this.blurOnTouchEndOutside);\n window.removeEventListener(\"touchcancel\", this.blurOnTouchEndOutside);\n window.removeEventListener(\"click\", this.blurOnClickOutside);\n }\n\n _updateInputPadding: () => void = () => {\n this._container = ReactDOM.findDOMNode(this) as HTMLDivElement;\n this._root = this._container.querySelector(\".mq-root-block\");\n\n const padding = this.getInputInnerPadding();\n // NOTE(diedra): This overrides the default 2px padding from Mathquil.\n this._root.style.padding =\n `${padding.paddingTop}px ${padding.paddingRight}px` +\n ` ${padding.paddingBottom}px ${padding.paddingLeft}px`;\n this._root.style.fontSize = `${fontSizePt}pt`;\n };\n\n /** Returns the current bounds of the keypadElement */\n _getKeypadBounds(): DOMRect | null {\n const keypadNode = this.props.keypadElement?.getDOMNode();\n\n // If the keypad is mounted, return its bounds. Otherwise, return null.\n if (keypadNode instanceof Element) {\n return keypadNode.getBoundingClientRect();\n }\n\n return null;\n }\n\n _updateCursorHandle: (arg1?: boolean) => void = (animateIntoPosition) => {\n const containerBounds = this._container.getBoundingClientRect();\n const cursor: any = this._container.querySelector(\".mq-cursor\");\n const cursorBounds = cursor.getBoundingClientRect();\n\n const cursorWidth = cursorBounds.width;\n const gapBelowCursor = 2;\n\n const inputInnerPadding = this.getInputInnerPadding();\n\n // The cursor should never be further right or left than the edge of the\n // container's values.\n const furthestRightCursorBound =\n containerBounds.right -\n cursorWidth -\n inputInnerPadding.paddingRight;\n const furthestLeftCursorBound =\n containerBounds.left + cursorWidth + inputInnerPadding.paddingLeft;\n\n let cursorBoundsLeft = cursorBounds.left;\n if (cursorBounds.left > furthestRightCursorBound) {\n cursorBoundsLeft = furthestRightCursorBound;\n } else if (cursorBounds.left < furthestLeftCursorBound) {\n cursorBoundsLeft = furthestLeftCursorBound;\n }\n\n this.setState({\n handle: {\n visible: true,\n animateIntoPosition,\n // We subtract containerBounds' left/top to correct for the\n // position of the container within the page.\n x: cursorBoundsLeft + cursorWidth / 2 - containerBounds.left,\n y: cursorBounds.bottom + gapBelowCursor - containerBounds.top,\n },\n });\n };\n\n _hideCursorHandle: () => void = () => {\n this.setState({\n handle: {\n visible: false,\n x: 0,\n y: 0,\n },\n });\n };\n\n _handleScroll: () => void = () => {\n // If animateIntoPosition is false, the user is currently manually positioning\n // the cursor. This is important because the user can scroll the input field\n // with the curor handle, and we don't want to override that ability.\n // But we do want to hide the handle is the user is just scrolling the input field\n // normally, because the handle will not move with the scroll.\n if (this.state.handle.animateIntoPosition !== false) {\n this._hideCursorHandle();\n }\n };\n\n blur: () => void = () => {\n this.mathField.blur();\n\n this.setState({\n showInputFocusStyle: false,\n handle: {\n visible: false,\n },\n });\n };\n\n // [Jan 2025] Third: While testing, I've discovered that we likely don't\n // need to be passing setKeypadActive here at all. Removing the parameter\n // still results in the same behavior.\n focus: (setKeypadActive: KeypadContextType[\"setKeypadActive\"]) => void = (\n setKeypadActive,\n ) => {\n // Pass this component's handleKey method to the keypad so it can call\n // it whenever it needs to trigger a keypress action.\n this.props.keypadElement?.setKeyHandler((key) => {\n const cursor = this.mathField.pressKey(key);\n\n // Trigger an `onChange` if the value in the input changed, and hide\n // the cursor handle whenever the user types a key. If the value\n // changed as a result of a keypress, we need to be careful not to\n // call `setState` until after `onChange` has resolved.\n const hideCursor = () => {\n this.setState({\n handle: {\n visible: false,\n },\n });\n };\n const value = this.mathField.getContent();\n if (this.props.value !== value) {\n this.props.onChange(value, hideCursor);\n } else {\n hideCursor();\n }\n\n return cursor;\n });\n\n this.mathField.focus();\n\n this.props?.onFocus();\n setKeypadActive(true);\n\n this.setState({focused: true, showInputFocusStyle: true}, () => {\n // NOTE(charlie): We use `setTimeout` to allow for a layout pass to\n // occur. Otherwise, the keypad is measured incorrectly. Ideally,\n // we'd use requestAnimationFrame here, but it's unsupported on\n // Android Browser 4.3.\n setTimeout(() => {\n if (this._isMounted) {\n // TODO(benkomalo): the keypad is animating at this point,\n // so we can't call _cacheKeypadBounds(), even though\n // it'd be nice to do so. It should probably be the case\n // that the higher level controller tells us when the\n // keypad is settled (then scrollIntoView wouldn't have\n // to make assumptions about that either).\n const maybeKeypadNode =\n this.props.keypadElement?.getDOMNode();\n scrollIntoView(this._container, maybeKeypadNode);\n }\n });\n });\n };\n\n /**\n * Tries to determine which DOM node to place the cursor next to based on\n * where the user drags the cursor handle. If it finds a node it will\n * place the cursor next to it, update the handle to be under the cursor,\n * and return true. If it doesn't find a node, it returns false.\n *\n * It searches for nodes by doing it tests at the following points:\n *\n * (x - dx, y), (x, y), (x + dx, y)\n *\n * If it doesn't find any nodes from the rendered math it will update y\n * by adding dy.\n *\n * The algorithm ends its search when y goes outside the bounds of\n * containerBounds.\n *\n * @param {DOMRect} containerBounds - bounds of the container node\n * @param {number} x - the initial x coordinate in the viewport\n * @param {number} y - the initial y coordinate in the viewport\n * @param {number} dx - horizontal spacing between elementFromPoint calls\n * @param {number} dy - vertical spacing between elementFromPoint calls,\n * sign determines direction.\n * @returns {boolean} - true if a node was hit, false otherwise.\n */\n _findHitNode: (\n arg1: ClientRect,\n arg2: number,\n arg3: number,\n arg4: number,\n arg5: number,\n ) => boolean = (containerBounds, x, y, dx, dy) => {\n while (y >= containerBounds.top && y <= containerBounds.bottom) {\n y += dy;\n\n const points = [\n [x - dx, y],\n [x, y],\n [x + dx, y],\n ];\n\n const elements = points\n // @ts-expect-error - TS2556 - A spread argument must either have a tuple type or be passed to a rest parameter.\n .map((point) => document.elementFromPoint(...point))\n // We exclude the root container itself and any nodes marked\n // as non-leaf which are fractions, parens, and roots. The\n // children of those nodes are included in the list because\n // those are the items we care about placing the cursor next\n // to.\n //\n // MathQuill's mq-non-leaf is not applied to all non-leaf nodes\n // so the naming is a bit confusing. Although fractions are\n // included, neither mq-numerator nor mq-denominator nodes are\n // and neither are subscripts or superscripts.\n .filter(\n (element) =>\n element &&\n this._root.contains(element) &&\n ((!element.classList.contains(\"mq-root-block\") &&\n !element.classList.contains(\"mq-non-leaf\")) ||\n element.classList.contains(\"mq-empty\") ||\n element.classList.contains(\"mq-hasCursor\")),\n );\n\n let hitNode = null;\n\n // Contains only DOMNodes without child elements. These should\n // contain some amount of text though.\n const leafElements: ReadonlyArray<null | HTMLElement> = [];\n\n // Contains only DOMNodes with child elements.\n const nonLeafElements: ReadonlyArray<null | HTMLElement> = [];\n\n let max = 0;\n const counts: {\n [key: string]: number;\n } = {};\n const elementsById: Record<string, any> = {};\n\n for (const element of elements) {\n // @ts-expect-error - TS2531 - Object is possibly 'null'.\n const id = element.getAttribute(\"mathquill-command-id\");\n if (id != null) {\n // @ts-expect-error - TS2345 - Argument of type 'Element | null' is not assignable to parameter of type 'HTMLElement | null'.\n leafElements.push(element);\n\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions\n counts[id] = (counts[id] || 0) + 1;\n elementsById[id] = element;\n } else {\n // @ts-expect-error - TS2345 - Argument of type 'Element | null' is not assignable to parameter of type 'HTMLElement | null'.\n nonLeafElements.push(element);\n }\n }\n\n // When determining which DOMNode to place the cursor beside, we\n // prefer leaf nodes. Hitting a leaf node is a good sign that the\n // cursor is really close to some piece of math that has been\n // rendered because leaf nodes contain text. Non-leaf nodes may\n // contain a lot of whitespace so the cursor may be further away\n // from actual text within the expression.\n //\n // Since we're doing three hit tests per loop it's possible that\n // we hit multiple leaf nodes at the same time. In this case we\n // we prefer the DOMNode with the most hits.\n // TODO(kevinb) consider preferring nodes hit by [x, y].\n for (const [id, count] of entries(counts)) {\n if (count > max) {\n max = count;\n hitNode = elementsById[id];\n }\n }\n\n // It's possible that two non-leaf nodes are right beside each\n // other. We don't bother counting the number of hits for each,\n // b/c this seems like an unlikely situation. Also, ignoring the\n // hit count in the situation should not have serious effects on\n // the overall accuracy of the algorithm.\n if (hitNode == null && nonLeafElements.length > 0) {\n // @ts-expect-error - TS2322 - Type 'HTMLElement | null' is not assignable to type 'null'.\n hitNode = nonLeafElements[0];\n }\n\n if (hitNode !== null) {\n this.mathField.setCursorPosition(x, y, hitNode);\n return true;\n }\n }\n\n return false;\n };\n\n /**\n * Inserts the cursor at the DOM node closest to the given coordinates,\n * based on hit-tests conducted using #_findHitNode.\n *\n * @param {number} x - the x coordinate in the viewport\n * @param {number} y - the y coordinate in the viewport\n */\n _insertCursorAtClosestNode: (arg1: number, arg2: number) => void = (\n x,\n y,\n ) => {\n const cursor = this.mathField.getCursor();\n\n // Pre-emptively check if the input has any child nodes; if not, the\n // input is empty, so we throw the cursor at the start.\n if (!this._root.hasChildNodes()) {\n cursor.insAtLeftEnd(this.mathField.mathField.controller().root);\n return;\n }\n\n // NOTE(diedra): The adding and subtracting of 10 or 15 pixels here accounts\n // for the padding that surrounds the input values.\n if (y > this._containerBounds.bottom) {\n y = this._containerBounds.bottom - 10;\n } else if (y < this._containerBounds.top) {\n y = this._containerBounds.top + 10;\n }\n if (x > this._containerBounds.right) {\n x = this._containerBounds.right - 15;\n } else if (x < this._containerBounds.left) {\n x = this._containerBounds.left + 15;\n }\n\n let dy;\n\n // Vertical spacing between hit tests\n // dy is negative because we're moving upwards.\n dy = -8;\n\n // Horizontal spacing between hit tests\n // Note: This value depends on the font size. If the gap is too small\n // we end up placing the cursor at the end of the expression when we\n // shouldn't.\n const dx = 5;\n\n if (this._findHitNode(this._containerBounds, x, y, dx, dy)) {\n return;\n }\n\n // If we haven't found anything start from the top.\n y = this._containerBounds.top;\n\n // dy is positive b/c we're going downwards.\n dy = 8;\n\n if (this._findHitNode(this._containerBounds, x, y, dx, dy)) {\n return;\n }\n\n const firstChildBounds = this._root.firstChild.getBoundingClientRect();\n const lastChildBounds = this._root.lastChild.getBoundingClientRect();\n\n const left = firstChildBounds.left;\n const right = lastChildBounds.right;\n\n // We've exhausted all of the options. We're likely either to the right\n // or left of all of the math, so we place the cursor at the end to\n // which it's closest.\n if (Math.abs(x - right) < Math.abs(x - left)) {\n cursor.insAtRightEnd(this.mathField.mathField.controller().root);\n } else {\n cursor.insAtLeftEnd(this.mathField.mathField.controller().root);\n }\n // In that event, we need to update the cursor context ourselves.\n this.props.keypadElement?.setCursor({\n context: this.mathField.contextForCursor(),\n });\n };\n\n handleTouchStart = (\n e: React.TouchEvent<HTMLDivElement>,\n keypadActive: KeypadContextType[\"keypadActive\"],\n setKeypadActive: KeypadContextType[\"setKeypadActive\"],\n ): void => {\n e.stopPropagation();\n\n // Hide the cursor handle on touch start, if the handle itself isn't\n // handling the touch event.\n this._hideCursorHandle();\n\n // Cache the container bounds, so as to avoid re-computing. If we don't\n // have any content, then it's not necessary, since the cursor can't be\n // moved anyway.\n if (this.mathField.getContent() !== \"\") {\n this._containerBounds = this._container.getBoundingClientRect();\n\n // Make the cursor visible and set the handle-less cursor's\n // location.\n const touch = e.changedTouches[0];\n this._insertCursorAtClosestNode(touch.clientX, touch.clientY);\n }\n\n // If we're already focused, but the keypad isn't active, activate it.\n if (this.state.focused && !keypadActive) {\n setKeypadActive(true);\n }\n\n // Trigger a focus event, if we're not already focused.\n if (!this.state.focused) {\n this.focus(setKeypadActive);\n }\n\n // If the user clicked on the input using a mouse or tap gesture,\n // we want to set the focus to the inputRef so that the keyUp\n // event will be triggered when the user types on the keyboard.\n // This is necessary to support Chromebooks as they use mobile user\n // agents, do not simulate touch events, and have physical keyboards.\n this.inputRef?.focus();\n };\n\n // We want to allow the user to be able to focus the input via click\n // when using ChromeOS third-party browsers that use mobile user agents,\n // but don't actually simulate touch events.\n handleClick = (\n e: React.MouseEvent<HTMLDivElement>,\n keypadActive: KeypadContextType[\"keypadActive\"],\n setKeypadActive: KeypadContextType[\"setKeypadActive\"],\n ): void => {\n e.stopPropagation();\n\n // Hide the cursor handle on click\n this._hideCursorHandle();\n\n // Cache the container bounds, so as to avoid re-computing. If we don't\n // have any content, then it's not necessary, since the cursor can't be\n // moved anyway.\n if (this.mathField.getContent() !== \"\") {\n this._containerBounds = this._container.getBoundingClientRect();\n\n // Make the cursor visible and set the handle-less cursor's\n // location.\n this._insertCursorAtClosestNode(e.clientX, e.clientY);\n }\n\n // If we're already focused, but the keypad isn't active, activate it.\n if (this.state.focused && !keypadActive) {\n setKeypadActive(true);\n }\n\n // Trigger a focus event, if we're not already focused.\n if (!this.state.focused) {\n this.focus(setKeypadActive);\n }\n\n // If the user clicked on the input using a mouse or tap gesture,\n // we want to set the focus to the inputRef so that the keyUp\n // event will be triggered when the user types on the keyboard.\n // This is necessary to support Chromebooks as they use mobile user\n // agents, do not simulate touch events, and have physical keyboards.\n this.inputRef?.focus();\n };\n\n handleTouchMove: (arg1: React.TouchEvent<HTMLDivElement>) => void = (e) => {\n e.stopPropagation();\n\n // Update the handle-less cursor's location on move, if there's any\n // content in the box. Note that if the user touched outside the keypad\n // (e.g., with a different finger) during this touch interaction, we\n // may have blurred, in which case we should ignore the touch (since\n // the cursor is no longer visible and the input is no longer\n // highlighted).\n if (this.mathField.getContent() !== \"\" && this.state.focused) {\n const touch = e.changedTouches[0];\n this._insertCursorAtClosestNode(touch.clientX, touch.clientY);\n }\n };\n\n handleTouchEnd: (arg1: React.TouchEvent<HTMLDivElement>) => void = (e) => {\n e.stopPropagation();\n\n // And on touch-end, reveal the cursor, unless the input is empty. Note\n // that if the user touched outside the keypad (e.g., with a different\n // finger) during this touch interaction, we may have blurred, in which\n // case we should ignore the touch (since the cursor is no longer\n // visible and the input is no longer highlighted).\n if (this.mathField.getContent() !== \"\" && this.state.focused) {\n this._updateCursorHandle();\n }\n };\n\n /**\n * When a touch starts in the cursor handle, we track it so as to avoid\n * handling any touch events ourself.\n *\n * @param {TouchEvent} e - the raw touch event from the browser\n */\n onCursorHandleTouchStart: (\n arg1: React.TouchEvent<HTMLSpanElement>,\n ) => void = (e) => {\n // NOTE(charlie): The cursor handle is a child of this view, so whenever\n // it receives a touch event, that event would also typically be bubbled\n // up to our own handlers. However, we want the cursor to handle its own\n // touch events, and for this view to only handle touch events that\n // don't affect the cursor. As such, we `stopPropagation` on any touch\n // events that are being handled by the cursor, so as to avoid handling\n // them in our own touch handlers.\n e.stopPropagation();\n\n e.preventDefault();\n\n // Cache the container bounds, so as to avoid re-computing.\n this._containerBounds = this._container.getBoundingClientRect();\n };\n\n _constrainToBound: (\n arg1: number,\n arg2: number,\n arg3: number,\n arg4: number,\n ) => number = (value, min, max, friction) => {\n if (value < min) {\n return min + (value - min) * friction;\n } else if (value > max) {\n return max + (value - max) * friction;\n } else {\n return value;\n }\n };\n\n /**\n * When the user moves the cursor handle update the position of the cursor\n * and the handle.\n *\n * @param {TouchEvent} e - the raw touch event from the browser\n */\n onCursorHandleTouchMove: (arg1: React.TouchEvent<HTMLSpanElement>) => void =\n (e) => {\n e.stopPropagation();\n\n const x = e.changedTouches[0].clientX;\n const y = e.changedTouches[0].clientY;\n\n const relativeX = x - this._containerBounds.left;\n const relativeY =\n y -\n 2 * cursorHandleRadiusPx * cursorHandleDistanceMultiplier -\n this._containerBounds.top;\n\n // We subtract the containerBounds left/top to correct for the\n // MathInput's position on the page. On top of that, we subtract an\n // additional 2 x {height of the cursor} so that the bottom of the\n // cursor tracks the user's finger, to make it visible under their\n // touch.\n this.setState({\n handle: {\n animateIntoPosition: false,\n visible: true,\n // TODO(charlie): Use clientX and clientY to avoid the need for\n // scroll offsets. This likely also means that the cursor\n // detection doesn't work when scrolled, since we're not\n // offsetting those values.\n x: this._constrainToBound(\n relativeX,\n 0,\n this._containerBounds.width,\n constrainingFrictionFactor,\n ),\n y: this._constrainToBound(\n relativeY,\n 0,\n this._containerBounds.height,\n constrainingFrictionFactor,\n ),\n },\n });\n\n // Use a y-coordinate that's just above where the user is actually\n // touching because they're dragging the handle which is a little\n // below where the cursor actually is.\n const distanceAboveFingerToTrySelecting = 22;\n const adjustedY = y - distanceAboveFingerToTrySelecting;\n\n this._insertCursorAtClosestNode(x, adjustedY);\n };\n\n /**\n * When the user releases the cursor handle, animate it back into place.\n *\n * @param {TouchEvent} e - the raw touch event from the browser\n */\n onCursorHandleTouchEnd: (arg1: React.TouchEvent<HTMLSpanElement>) => void =\n (e) => {\n e.stopPropagation();\n\n this._updateCursorHandle(true);\n };\n\n /**\n * If the gesture is cancelled mid-drag, simply hide it.\n *\n * @param {TouchEvent} e - the raw touch event from the browser\n */\n onCursorHandleTouchCancel: (\n arg1: React.TouchEvent<HTMLSpanElement>,\n ) => void = (e) => {\n e.stopPropagation();\n\n this._updateCursorHandle(true);\n };\n\n domKeyToMathQuillKey: (arg1: string) => string | null | undefined = (\n key,\n ) => {\n const keyMap = {\n \"+\": \"PLUS\",\n \"-\": \"MINUS\",\n \"*\": \"TIMES\",\n \"/\": \"DIVIDE\",\n \".\": \"DECIMAL\",\n \"%\": \"PERCENT\",\n \"=\": \"EQUAL\",\n \">\": \"GT\",\n \"<\": \"LT\",\n \"^\": \"EXP\",\n } as const;\n\n // Numbers\n if ([\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"].includes(key)) {\n return `NUM_${key}`;\n }\n\n // Movement keys\n else if (key === \"Backspace\") {\n return \"BACKSPACE\";\n }\n\n // Operators\n else if (key in keyMap) {\n return keyMap[key];\n }\n\n // The key pressed doesn't map to any of the math input operators\n return null;\n };\n\n handleKeyUp: (arg1: React.KeyboardEvent<HTMLDivElement>) => void = (\n event,\n ) => {\n const mathQuillKey = this.domKeyToMathQuillKey(event.key);\n\n if (mathQuillKey) {\n this.mathField.pressKey(mathQuillKey);\n\n // TODO(diedra): If the new value being added is off-screen to the right\n // due to the max-width of the text box, scroll the box to show the newest\n // value\n const value = this.mathField.getContent();\n if (this.props.value !== value) {\n this.mathField.setContent(this.props.value);\n this.props.onChange(value, () => {});\n this._hideCursorHandle();\n }\n }\n };\n\n getBorderWidthPx: () => number = () => {\n // TODO(diedra): Move these to the common style package.\n const normalBorderWidthPx = 1;\n const focusedBorderWidthPx = 2;\n\n return this.state.focused ? focusedBorderWidthPx : normalBorderWidthPx;\n };\n\n // Calculate the appropriate padding based on the border width (which is\n // considered 'padding', since we're using 'border-box') and the fact\n // that MathQuill automatically applies 2px of padding to the inner\n // input.\n getInputInnerPadding: () => {\n paddingTop: number;\n paddingRight: number;\n paddingBottom: number;\n paddingLeft: number;\n } = () => {\n const paddingInset = totalDesiredPadding - this.getBorderWidthPx();\n\n // Now, translate that to the appropriate padding for each direction.\n // The complication here is that we want numerals to be centered within\n // the input. However, Symbola (MathQuill's font of choice) renders\n // numerals with approximately 3px of padding below and 1px of padding\n // above (to make room for ascenders and descenders). So we ignore those\n // padding values for the vertical directions.\n const symbolaPaddingBottom = 3;\n const symbolaPaddingTop = 1;\n // We also add a little padding for the cursor to ensure there's no\n // overflow when the input is empty and set to right aligned.\n const cursorPadding = 2;\n const padding = {\n paddingTop: paddingInset - symbolaPaddingTop,\n paddingRight: paddingInset + cursorPadding,\n paddingBottom: paddingInset - symbolaPaddingBottom,\n paddingLeft: paddingInset + cursorPadding,\n } as const;\n\n return padding;\n };\n\n render(): React.ReactNode {\n const {showInputFocusStyle, handle} = this.state;\n const {style} = this.props;\n\n const innerStyle = {\n ...inlineStyles.innerContainer,\n borderWidth: this.getBorderWidthPx(),\n ...(showInputFocusStyle\n ? {\n borderColor: color.blue,\n }\n : {}),\n ...style,\n } as const;\n\n // NOTE(diedra): This label explicitly refers to tapping because this field\n // is currently only seen if the user is using a mobile device.\n // We added the tapping instructions because there is currently a bug where\n // Android users need to use two fingers to tap the input field to make the\n // keyboard appear. It should only require one finger, which is how iOS works.\n // TODO(diedra): Fix the bug that is causing Android to require a two finger tap\n // to the open the keyboard, and then remove the second half of this label.\n const ariaLabel =\n this.context.strings.mathInputBox +\n \" \" +\n this.context.strings.fingerTap;\n\n return (\n <KeypadContext.Consumer>\n {({keypadActive, setKeypadActive}) => (\n <View\n style={styles.input}\n onTouchStart={(e: React.TouchEvent<HTMLDivElement>) => {\n this.handleTouchStart(\n e,\n keypadActive,\n setKeypadActive,\n );\n }}\n onTouchMove={this.handleTouchMove}\n onTouchEnd={this.handleTouchEnd}\n // TODO(LEMS-2656): remove TS suppression\n // @ts-expect-error: Type '(e: React.MouseEvent<HTMLDivElement>) => void' is not assignable to type '(arg1: SyntheticEvent<HTMLDivElement, Event>) => void'.\n onClick={(e: React.MouseEvent<HTMLDivElement>) => {\n this.handleClick(e, keypadActive, setKeypadActive);\n }}\n role={\"textbox\"}\n ariaLabel={ariaLabel}\n >\n {/* NOTE(charlie): This is used purely to namespace the styles in\n overrides.css. */}\n {/* eslint-disable-next-line jsx-a11y/no-static-element-interactions -- TODO(LEMS-2871): Address a11y error */}\n <div\n className=\"keypad-input\"\n // @ts-expect-error - TS2322 - Type 'string' is not assignable to type 'number | undefined'.\n // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex -- TODO(LEMS-2871): Address a11y error\n tabIndex={\"0\"}\n ref={(node) => {\n this.inputRef = node;\n }}\n onFocus={() => {\n this.focus(setKeypadActive);\n }}\n onBlur={this.blur}\n onKeyUp={this.handleKeyUp}\n >\n {/* NOTE(charlie): This element must be styled with inline\n styles rather than with Aphrodite classes, as MathQuill\n modifies the class names on the DOM node. */}\n <div\n ref={(node) => {\n this._mathContainer =\n ReactDOM.findDOMNode(node);\n }}\n style={innerStyle}\n />\n </div>\n {showInputFocusStyle && handle.visible && (\n <CursorHandle\n {...handle}\n onTouchStart={this.onCursorHandleTouchStart}\n onTouchMove={this.onCursorHandleTouchMove}\n onTouchEnd={this.onCursorHandleTouchEnd}\n onTouchCancel={this.onCursorHandleTouchCancel}\n />\n )}\n </View>\n )}\n </KeypadContext.Consumer>\n );\n }\n}\n\nMathInput.contextType = MathInputI18nContext;\n\nconst fontSizePt = 18;\nconst inputMaxWidth = 128;\n\n// The height of numerals in Symbola (rendered at 18pt) is about 20px (though\n// they render at 24px due to padding for ascenders and descenders). We want our\n// box to be laid out such that there's 12px of padding between a numeral and the\n// edge of the input, so we use this 20px number as our 'base height' and\n// account for the ascender and descender padding when computing the additional\n// padding in our `render` method.\nconst numeralHeightPx = 20;\nconst totalDesiredPadding = 12;\nconst minHeightPx = numeralHeightPx + totalDesiredPadding * 2;\nconst minWidthPx = 64;\n\nconst styles = StyleSheet.create({\n input: {\n position: \"relative\",\n display: \"inline-block\",\n verticalAlign: \"middle\",\n maxWidth: inputMaxWidth,\n },\n});\n\nconst inlineStyles = {\n // Styles for the inner, MathQuill-ified input element. It's important that\n // these are done with regular inline styles rather than Aphrodite classes\n // as MathQuill adds CSS class names to the element outside of the typical\n // React flow; assigning a class to the element can thus disrupt MathQuill\n // behavior. For example, if the client provided new styles to be applied\n // on focus and the styles here were applied with Aphrodite, then Aphrodite\n // would merge the provided styles with the base styles here, producing a\n // new CSS class name that we would apply to the element, clobbering any CSS\n // class names that MathQuill had applied itself.\n innerContainer: {\n backgroundColor: \"white\",\n minHeight: minHeightPx,\n minWidth: minWidthPx,\n maxWidth: inputMaxWidth,\n boxSizing: \"border-box\",\n position: \"relative\",\n borderStyle: \"solid\",\n borderColor: color.offBlack50,\n borderRadius: 4,\n color: color.offBlack,\n },\n} as const;\n\nexport default MathInput;\n","import * as React from \"react\";\n\nimport type {KeypadPageType} from \"../../types\";\n\ntype Props = {\n tintColor: string;\n type: KeypadPageType;\n};\n\nconst IconAsset = function ({tintColor, type}: Props): React.ReactElement {\n switch (type) {\n case \"Geometry\": {\n return (\n <svg\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M7.57584 7.09442c.35139-.16458.76626-.11103 1.06434.13737L26.6402 22.2318c.3234.2695.4434.7128.3001 1.1086C26.7969 23.7363 26.421 24 26 24H8c-.55228 0-1-.4477-1-1V8.00001c0-.38802.22446-.74101.57584-.90559zM9 10.1351V17h4c.5523 0 1 .4477 1 1v4h9.238L9 10.1351zM12 22v-3H9v3h3z\"\n fill={tintColor}\n />\n </svg>\n );\n }\n case \"Operators\": {\n return (\n <svg\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M29 6h1v1h-1V6zm-2 0c0-1.10457.8954-2 2-2h1c1.1046 0 2 .89543 2 2v1c0 1.10457-.8954 2-2 2h-1c-1.1046 0-2-.89543-2-2V6zm-15.8682.50386C11.3098 6.19229 11.6411 6 12 6h2c.5523 0 1 .44772 1 1s-.4477 1-1 1h-1.4197l-3.71206 6.4961c-.18297.3202-.52733.5137-.89599.5035-.36865-.0102-.70175-.2225-.86668-.5524l-2-4c-.24699-.49396-.04676-1.09464.44722-1.34163.49397-.24699 1.09465-.04676 1.34164.44722L8.0588 11.8815l3.073-5.37764zM7.70676 16.2925c.39072.3904.39103 1.0235.00069 1.4143-.42202.4224-.86362 1.0235-1.19588 1.659C6.17039 20.0184 6 20.601 6 21c0 .3789.17235.9897.51638 1.6649.33677.661.7685 1.2472 1.15148 1.5908.41106.3689.44528 1.0011.07643 1.4122-.36885.411-1.00109.4452-1.41215.0764-.61604-.5528-1.18431-1.3599-1.5978-2.1715C4.32813 22.7755 3.99999 21.8345 4 21c.00001-.8609.3301-1.7783.73917-2.5608.41798-.7995.97637-1.5684 1.55338-2.146.39033-.3907 1.0235-.391 1.41421-.0007zm3.58644 0c.3908-.3903 1.0239-.39 1.4143.0007.577.5776 1.1353 1.3465 1.5533 2.146C14.6699 19.2217 15 20.1391 15 21c0 .8345-.3281 1.7755-.7343 2.5728-.4135.8116-.9818 1.6187-1.5978 2.1715-.4111.3688-1.0433.3346-1.4122-.0764-.3688-.4111-.3346-1.0433.0764-1.4122.383-.3436.8148-.9298 1.1515-1.5908.344-.6752.5164-1.286.5164-1.6649 0-.399-.1704-.9816-.5116-1.6342-.3322-.6355-.7738-1.2366-1.1959-1.659-.3903-.3908-.39-1.0239.0007-1.4143zm16.6431 1.3564c.1939.5171-.0681 1.0935-.5852 1.2874L21.848 21l5.5031 2.0637c.5171.1939.7791.7703.5852 1.2874-.1939.5171-.7703.7791-1.2874.5852l-8-3C18.2586 21.79 18 21.4168 18 21c0-.4168.2586-.79.6489-.9363l8-3c.5171-.1939 1.0935.0681 1.2874.5852zM21 8v5h3V8h-3zm-1-2c-.5523 0-1 .44772-1 1v7c0 .5523.4477 1 1 1h5c.5523 0 1-.4477 1-1V7c0-.55228-.4477-1-1-1h-5z\"\n fill={tintColor}\n />\n </svg>\n );\n }\n case \"Numbers\": {\n return (\n <svg\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M10.4123 19.5794v1.421H4.71434v-1.421h2.016v-5.558c0-.1213.00233-.245.007-.371.00466-.126.01166-.2543.021-.385l-1.33 1.106c-.09334.07-.18434.1144-.273.133-.08867.0187-.17267.021-.252.007-.07934-.0186-.14934-.0466-.21-.084-.06067-.042-.10734-.084-.14-.126l-.609-.819 3.122-2.646h1.589v8.743h1.75696zm8.3801-.35c.21 0 .3734.0584.49.175.1214.1167.182.2707.182.462v1.134h-7.042v-.63c0-.1213.0257-.252.077-.392.0514-.1446.1377-.2753.259-.392l3.01-3.017c.2567-.2566.483-.5016.679-.735.196-.238.3594-.469.49-.693.1307-.2286.2287-.4596.294-.693.0654-.2333.098-.4783.098-.735 0-.4526-.1166-.7956-.35-1.029-.2333-.238-.5623-.357-.987-.357-.1866 0-.3593.028-.518.084-.154.0514-.294.1237-.42.217-.1213.0934-.2263.203-.315.329-.0886.126-.154.2637-.196.413-.084.2334-.1983.3897-.343.469-.14.0747-.3406.091-.602.049l-1.022-.182c.0747-.4946.2147-.9286.42-1.302.2054-.3733.462-.6836.77-.931.308-.2473.6604-.4316 1.057-.553.3967-.126.8237-.189 1.281-.189.4807 0 .917.0724 1.309.217.3967.14.735.3384 1.015.595.28.252.497.5577.651.917.154.3594.231.756.231 1.19 0 .3734-.0536.7187-.161 1.036-.1073.3174-.2543.6207-.441.91-.182.2847-.3943.5624-.637.833-.2426.2707-.4993.5437-.77.819l-2.156 2.205c.238-.07.4737-.1236.707-.161.2334-.042.4527-.063.658-.063h2.282zm2.6611-5.523c.0747-.4946.2147-.9286.42-1.302.2054-.3733.462-.6836.77-.931.308-.2473.658-.4316 1.05-.553.3967-.126.8237-.189 1.281-.189.4854 0 .9194.07 1.302.21.3874.1354.714.322.98.56.266.238.469.5157.609.833.1447.3174.217.658.217 1.022 0 .322-.035.6067-.105.854-.0653.2427-.1656.455-.301.637-.1306.182-.294.336-.49.462-.1913.126-.413.231-.665.315 1.1667.3827 1.75 1.1597 1.75 2.331 0 .518-.0956.9754-.287 1.372-.1913.392-.448.721-.77.987s-.6976.4667-1.127.602c-.4246.1307-.8703.196-1.337.196-.4946 0-.931-.056-1.309-.168-.378-.112-.7116-.28-1.001-.504-.2846-.224-.5296-.504-.735-.84-.2053-.3406-.385-.7373-.539-1.19l.854-.35c.224-.0933.4317-.119.623-.077.196.042.336.1447.42.308.0934.1774.1914.3407.294.49.1074.1494.2264.28.357.392.1307.1074.2777.1914.441.252.168.0607.3594.091.574.091.2707 0 .5064-.0443.707-.133.2007-.0886.3687-.203.504-.343.1354-.1446.2357-.3056.301-.483.07-.182.105-.3616.105-.539 0-.2333-.021-.4433-.063-.63-.042-.1913-.14-.3523-.294-.483-.1493-.1353-.3733-.238-.672-.308-.294-.0746-.6953-.112-1.204-.112v-1.358c.4247 0 .7724-.035 1.043-.105.2707-.07.483-.168.637-.294.154-.126.259-.2776.315-.455.0607-.1773.091-.371.091-.581 0-.4433-.1166-.7816-.35-1.015-.2286-.2333-.5553-.35-.98-.35-.1866 0-.3593.028-.518.084-.154.0514-.294.1237-.42.217-.1213.0934-.2263.203-.315.329-.0886.126-.154.2637-.196.413-.0886.2334-.203.3897-.343.469-.14.0747-.343.091-.609.049l-1.015-.182z\"\n fill={tintColor}\n />\n </svg>\n );\n }\n case \"Extras\": {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"32\"\n height=\"32\"\n fill=\"none\"\n viewBox=\"0 0 32 32\"\n >\n <g clipPath=\"url(#a)\">\n <path\n fill={tintColor}\n fillRule=\"evenodd\"\n d=\"M6.127 10.454c.224-.032.403-.05.53-.05.591 0 1.137.153 1.63.459.398.239.713.529.94.872l.188-.248.005-.007.006-.006c.619-.703 1.347-1.07 2.178-1.07.691 0 1.269.204 1.71.626.454.403.686.91.686 1.51 0 .533-.156.994-.476 1.37-.312.383-.738.574-1.254.574-.345 0-.643-.101-.878-.317a1.1 1.1 0 0 1-.353-.843c0-.405.11-.76.342-1.051.153-.193.354-.352.596-.479a1.416 1.416 0 0 0-.492-.07c-.195 0-.316.016-.38.035-.53.226-.938.694-1.208 1.445l-.001.003c-.02.05-.085.289-.202.74-.115.443-.275 1.077-.481 1.901-.414 1.641-.633 2.547-.662 2.74l-.002.01a3.423 3.423 0 0 0-.067.673c0 .337.097.581.272.756.176.177.413.272.733.272.6 0 1.15-.247 1.657-.768.518-.549.864-1.146 1.044-1.791l.001-.004a1.2 1.2 0 0 1 .088-.224.368.368 0 0 1 .161-.164.564.564 0 0 1 .198-.056 2.19 2.19 0 0 1 .276-.014c.159 0 .305.016.42.064.059.025.12.063.167.122.05.063.073.137.073.213 0 .023-.004.048-.005.057a12.52 12.52 0 0 1-.046.245l-.004.015c-.281 1.026-.86 1.917-1.73 2.67l-.007.007c-.776.611-1.605.925-2.484.925-1.08 0-1.93-.45-2.53-1.33-.453.605-1.015 1.024-1.685 1.248l-.01.003-.011.002a3.23 3.23 0 0 1-.664.053c-.974 0-1.703-.35-2.13-1.078A2.05 2.05 0 0 1 2 19.437c0-.52.158-.975.478-1.349.326-.38.749-.572 1.252-.572.372 0 .69.091.913.31.224.218.318.531.318.898 0 .327-.078.621-.241.874a1.706 1.706 0 0 1-.707.597l-.018.009c.158.063.331.095.52.095.467 0 .902-.285 1.295-.966l.002-.005c.071-.115.185-.417.341-.938.154-.51.341-1.209.563-2.096v-.002c.095-.364.198-.767.31-1.21.11-.444.188-.78.235-1.014l.002-.013c.058-.216.098-.36.119-.425.077-.42.113-.709.113-.877 0-.342-.092-.588-.254-.762-.159-.171-.384-.267-.704-.267-.652 0-1.217.251-1.704.768l-.002.002A4.215 4.215 0 0 0 3.79 14.28a1.084 1.084 0 0 1-.065.207.41.41 0 0 1-.14.176l-.01.007-.012.006a.35.35 0 0 1-.104.03 1.16 1.16 0 0 1-.095.01 5.04 5.04 0 0 1-.275.006H2.67l-.061-.061c-.109-.11-.204-.247-.204-.41v-.015l.003-.015c.07-.472.335-1.05.768-1.723l.001-.002c.771-1.165 1.754-1.857 2.949-2.042h.002Z\"\n clipRule=\"evenodd\"\n />\n <path\n fill={tintColor}\n d=\"M21.084 10.284c.932-.008 2.301-.013 4.107-.013 1.325 0 2.327.003 3.007.007a75.812 75.812 0 0 1 .99.013c.025 0 .047.002.065.003h.002c.01 0 .04.003.067.01l.01.002.011.004c.201.07.37.183.488.347a.966.966 0 0 1 .169.574c0 .3-.078.568-.248.79-.168.221-.411.377-.708.479h-.002a1.01 1.01 0 0 1-.221.034 8.213 8.213 0 0 1-.35.016c-.29.008-.696.012-1.219.012h-1.39l-.038.223v.001c-.198 1.185-.295 2.156-.295 2.916 0 1.446.251 2.746.75 3.905l.004.007c.059.153.105.284.137.393.03.103.053.205.053.29 0 .359-.16.68-.44.961-.278.296-.63.445-1.041.445-.255 0-.492-.03-.654-.139l-.009-.006-.008-.006c-.126-.101-.236-.274-.338-.477l-.006-.012c-.331-.768-.49-1.722-.49-2.852 0-.595.007-1.002.025-1.212v-.005c.118-1.157.377-2.551.776-4.18v-.002c.024-.096.045-.18.061-.25h-1.948c-.008.038-.02.086-.034.143l-.002.007a35.14 35.14 0 0 0-.146.537c-.05.232-.1.448-.15.648v.001a230.673 230.673 0 0 1-1.312 4.936 41.285 41.285 0 0 1-.411 1.384c-.104.322-.19.557-.256.681-.115.262-.28.473-.5.617-.225.146-.49.212-.783.212-.449 0-.807-.173-1.006-.549l-.006-.011-.005-.012a1.37 1.37 0 0 1-.067-.486v-.326l.346-.745c1.24-2.61 2.136-4.858 2.695-6.747l.002-.008.094-.281h-.463c-.662 0-1.105.025-1.346.07-.198.04-.47.173-.824.43l-.007.005-.007.005c-.366.228-.69.542-.97.947-.044.069-.085.13-.125.18a.651.651 0 0 1-.141.136l-.027.017-.03.01a.8.8 0 0 1-.19.03c-.07.005-.156.008-.258.008-.17 0-.335-.021-.465-.09a.437.437 0 0 1-.216-.546c.014-.042.034-.086.057-.132.047-.093.113-.208.198-.343l.003-.005c1.147-1.745 2.311-2.774 3.508-2.96a2.345 2.345 0 0 1 .158-.015 60.295 60.295 0 0 1 1.369-.026Z\"\n />\n </g>\n <defs>\n <clipPath id=\"a\">\n <path\n fill=\"#fff\"\n d=\"M0 0h28v11.457H0z\"\n transform=\"translate(2 10.271)\"\n />\n </clipPath>\n </defs>\n </svg>\n );\n }\n case \"Dismiss\": {\n return (\n <svg\n width=\"44\"\n height=\"44\"\n viewBox=\"0 0 44 44\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M28.7071 15.2929C28.3166 14.9024 27.6834 14.9024 27.2929 15.2929L22 20.5858L16.7071 15.2929C16.3166 14.9024 15.6834 14.9024 15.2929 15.2929C14.9024 15.6834 14.9024 16.3166 15.2929 16.7071L20.5858 22L15.2929 27.2929C14.9024 27.6834 14.9024 28.3166 15.2929 28.7071C15.6834 29.0976 16.3166 29.0976 16.7071 28.7071L22 23.4142L27.2929 28.7071C27.6834 29.0976 28.3166 29.0976 28.7071 28.7071C29.0976 28.3166 29.0976 27.6834 28.7071 27.2929L23.4142 22L28.7071 16.7071C29.0976 16.3166 29.0976 15.6834 28.7071 15.2929Z\"\n fill={tintColor}\n />\n </svg>\n );\n }\n\n case \"Fractions\":\n // The Fractions keypad is a special one that never displays anything\n // in the tabbar. Ideally, we'd separate the KeypadPageType from the\n // tab bar item types, but that's not easy given how the keypad manages\n // the selected page. For now, we'll just return a dummy SVG to satisfy\n // the types here.\n return (\n <svg\n width=\"44\"\n height=\"44\"\n viewBox=\"0 0 44 44\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n />\n );\n\n default: {\n // Ensure we handle all icon types\n const _: never = type;\n throw new Error(`Invalid icon type: ${type}`);\n }\n }\n};\n\nexport default IconAsset;\n","import Clickable from \"@khanacademy/wonder-blocks-clickable\";\nimport {View} from \"@khanacademy/wonder-blocks-core\";\nimport {color} from \"@khanacademy/wonder-blocks-tokens\";\nimport {StyleSheet} from \"aphrodite\";\nimport * as React from \"react\";\nimport {useEffect, useRef} from \"react\";\n\nimport IconAsset from \"./icons\";\n\nimport type {KeypadPageType} from \"../../types\";\n\nconst styles = StyleSheet.create({\n base: {\n display: \"flex\",\n width: 44,\n height: 38,\n boxSizing: \"border-box\",\n borderRadius: 3,\n border: `1px solid transparent`,\n marginRight: 1,\n marginLeft: 1,\n },\n hovered: {\n border: \"1px solid #1865F2\",\n },\n pressed: {\n background: \"#1B50B3\",\n },\n focused: {\n outline: \"none\",\n border: `2px solid ${color.blue}`,\n },\n innerBox: {\n boxSizing: \"border-box\",\n border: `1px solid transparent`,\n borderRadius: 2,\n display: \"flex\",\n flex: 1,\n justifyContent: \"center\",\n alignItems: \"center\",\n },\n innerBoxPressed: {\n border: `1px solid ${color.white}`,\n },\n activeIndicator: {\n position: \"absolute\",\n boxSizing: \"border-box\",\n bottom: 3,\n width: 36,\n height: 3,\n marginLeft: 3,\n },\n clickable: {\n \":focus\": {\n outline: `none`,\n },\n },\n});\n\nfunction imageTintColor(\n itemState: ItemState,\n hovered: boolean,\n focused: boolean,\n pressed: boolean,\n): string {\n if (itemState === \"disabled\") {\n return color.offBlack64;\n } else if (pressed) {\n return color.white;\n } else if (itemState === \"active\") {\n return color.blue;\n } else if (hovered) {\n return color.blue;\n }\n return color.offBlack64;\n}\n\ntype ItemState = \"active\" | \"inactive\" | \"disabled\";\ntype TabItemProps = {\n onClick: () => void;\n itemState: ItemState;\n itemType: KeypadPageType;\n focus?: boolean;\n role: \"tab\" | \"button\";\n};\n\nfunction TabbarItem(props: TabItemProps): React.ReactElement {\n const {onClick, itemType, itemState, focus, role} = props;\n const tabRef = useRef<{focus: () => void}>(null);\n\n useEffect(() => {\n let timeout;\n if (role === \"tab\" && focus) {\n /**\n * When tabs are within a WonderBlocks Popover component, the\n * manner in which the component is rendered and moved causes\n * focus to snap to the bottom of the page on first focus.\n *\n * This timeout moves around that by delaying the focus enough\n * to wait for the WonderBlock Popover to move to the correct\n * location and scroll the user to the correct location.\n * */\n timeout = setTimeout(() => {\n if (tabRef?.current) {\n // Move element into view when it is focused\n tabRef?.current.focus();\n }\n }, 0);\n }\n\n return () => clearTimeout(timeout);\n }, [role, focus, tabRef]);\n\n return (\n <Clickable\n onClick={onClick}\n disabled={itemState === \"disabled\"}\n aria-label={itemType}\n style={styles.clickable}\n aria-selected={itemState === \"active\"}\n tabIndex={role === \"button\" ? 0 : focus ? 0 : -1}\n role={role}\n ref={tabRef}\n >\n {({hovered, focused, pressed}) => {\n const tintColor = imageTintColor(\n itemState,\n hovered,\n focused,\n pressed,\n );\n\n return (\n <View\n style={[\n styles.base,\n itemState !== \"disabled\" &&\n hovered &&\n styles.hovered,\n focused && styles.focused,\n pressed && styles.pressed,\n ]}\n >\n <View\n style={[\n styles.innerBox,\n pressed && styles.innerBoxPressed,\n ]}\n >\n <IconAsset type={itemType} tintColor={tintColor} />\n </View>\n {itemState === \"active\" && (\n <View\n style={[\n styles.activeIndicator,\n {\n backgroundColor: tintColor,\n },\n ]}\n />\n )}\n </View>\n );\n }}\n </Clickable>\n );\n}\n\nexport default TabbarItem;\n","import {View} from \"@khanacademy/wonder-blocks-core\";\nimport {StyleSheet} from \"aphrodite\";\nimport * as React from \"react\";\nimport {useState} from \"react\";\n\nimport TabbarItem from \"./item\";\n\nimport type {KeypadPageType} from \"../../types\";\nimport type {StyleType} from \"@khanacademy/wonder-blocks-core\";\n\nconst styles = StyleSheet.create({\n tabbar: {\n display: \"flex\",\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n paddingTop: 2,\n paddingBottom: 2,\n },\n pages: {\n display: \"flex\",\n flexDirection: \"row\",\n },\n});\n\ntype Props = {\n items: ReadonlyArray<KeypadPageType>;\n selectedItem: KeypadPageType;\n onClickClose?: () => void;\n onSelectItem: (item: KeypadPageType) => void;\n style?: StyleType;\n};\n\nfunction Tabbar(props: Props): React.ReactElement {\n const {items, onClickClose, selectedItem, onSelectItem, style} = props;\n const selectedIndex = items.indexOf(selectedItem);\n\n const [focus, setFocus] = useState(\n selectedIndex === -1 ? 0 : selectedIndex,\n );\n /**\n * Custom function to handle arrow key navigation for the TabBar for each TabItem.\n * This implementation also circular in that if the user goes past the end of\n * the list they will go back to the beginning and vise versa.\n * This is the recommended pattern per WCAG implementation:\n * https://www.w3.org/WAI/ARIA/apg/patterns/tabs/examples/tabs-manual/\n * @param e - onKeyDown event data.\n */\n const onArrowKeyFocus = (e) => {\n if (e.keyCode === 39) {\n // Right arrow\n setFocus(focus === items.length - 1 ? 0 : focus + 1);\n } else if (e.keyCode === 37) {\n // Left arrow\n setFocus(focus === 0 ? items.length - 1 : focus - 1);\n }\n };\n\n return (\n <View style={[styles.tabbar, style]}>\n {items.length > 0 && (\n <View\n style={[styles.pages]}\n role=\"tablist\"\n onKeyDown={onArrowKeyFocus}\n >\n {items.map((item, index) => (\n <TabbarItem\n role=\"tab\"\n key={`tabbar-item-${item}`}\n itemState={\n item === selectedItem ? \"active\" : \"inactive\"\n }\n itemType={item}\n focus={focus === index}\n onClick={() => {\n onSelectItem(item);\n }}\n />\n ))}\n </View>\n )}\n\n <View>\n {onClickClose && (\n <TabbarItem\n role=\"button\"\n itemState=\"inactive\"\n itemType=\"Dismiss\"\n onClick={onClickClose}\n />\n )}\n </View>\n </View>\n );\n}\n\nexport default Tabbar;\n","/**\n * This file contains configuration settings for the buttons in the keypad.\n */\n\nimport type {KeyType} from \"../enums\";\nimport type {MathInputStrings} from \"../strings\";\nimport type {KeyConfig} from \"../types\";\nimport type {KeypadKey} from \"@khanacademy/perseus-core\";\n\ntype KeyConfigMapper = (args: {\n key: KeypadKey;\n keyType?: KeyType;\n ariaLabel?: string;\n data?: string;\n}) => KeyConfig;\n\nconst getDefaultOperatorFields: KeyConfigMapper = ({\n key,\n keyType = \"OPERATOR\",\n ariaLabel = key,\n data = key,\n}) => ({\n id: key,\n type: keyType,\n ariaLabel,\n icon: {\n data,\n },\n});\n\nconst getDefaultValueFields: KeyConfigMapper = ({\n key,\n keyType = \"VALUE\",\n ariaLabel = key,\n data = key,\n}) => ({\n id: key,\n type: keyType,\n ariaLabel,\n icon: {\n data,\n },\n});\n\nconst getDefaultNumberFields: KeyConfigMapper = ({\n key,\n data = key.replace(\"NUM_\", \"\"),\n keyType = \"VALUE\",\n ariaLabel = data,\n}) => ({\n id: key,\n type: keyType,\n ariaLabel,\n icon: {\n data,\n },\n});\n\nconst KeyConfigs = (\n strings: MathInputStrings,\n): {\n [key in KeypadKey]: KeyConfig;\n} => ({\n // Basic math\n PLUS: {\n ...getDefaultOperatorFields({\n key: \"PLUS\",\n ariaLabel: strings.plus,\n }),\n },\n MINUS: {\n ...getDefaultOperatorFields({\n key: \"MINUS\",\n ariaLabel: strings.minus,\n }),\n },\n NEGATIVE: {\n ...getDefaultOperatorFields({\n key: \"NEGATIVE\",\n ariaLabel: strings.negative,\n }),\n },\n TIMES: {\n ...getDefaultOperatorFields({\n key: \"TIMES\",\n ariaLabel: strings.times,\n }),\n },\n DIVIDE: {\n ...getDefaultOperatorFields({\n key: \"DIVIDE\",\n ariaLabel: strings.divide,\n }),\n },\n DECIMAL: {\n ...getDefaultOperatorFields({\n key: \"DECIMAL\",\n keyType: \"VALUE\",\n ariaLabel: strings.decimal,\n }),\n },\n PERIOD: {\n ...getDefaultOperatorFields({\n key: \"PERIOD\",\n keyType: \"VALUE\",\n ariaLabel: \".\",\n }),\n },\n PERCENT: {\n ...getDefaultOperatorFields({\n key: \"PERCENT\",\n ariaLabel: strings.percent,\n }),\n },\n CDOT: {\n ...getDefaultOperatorFields({\n key: \"CDOT\",\n ariaLabel: strings.cdot,\n }),\n },\n EQUAL: {\n ...getDefaultOperatorFields({\n key: \"EQUAL\",\n ariaLabel: strings.equalsSign,\n }),\n },\n NEQ: {\n ...getDefaultOperatorFields({\n key: \"NEQ\",\n ariaLabel: strings.notEqualsSign,\n }),\n },\n GT: {\n ...getDefaultOperatorFields({\n key: \"GT\",\n ariaLabel: strings.greaterThanSign,\n }),\n },\n LT: {\n ...getDefaultOperatorFields({\n key: \"LT\",\n ariaLabel: strings.lessThanSign,\n }),\n },\n GEQ: {\n ...getDefaultOperatorFields({\n key: \"GEQ\",\n ariaLabel: strings.greaterThanOrEqualToSign,\n }),\n },\n LEQ: {\n ...getDefaultOperatorFields({\n key: \"LEQ\",\n ariaLabel: strings.lessThanOrEqualSign,\n }),\n },\n // mobile native\n FRAC_INCLUSIVE: {\n ...getDefaultOperatorFields({\n key: \"FRAC_INCLUSIVE\",\n ariaLabel: strings.fractionExpressionInNumerator,\n }),\n },\n // mobile native\n FRAC_EXCLUSIVE: {\n ...getDefaultOperatorFields({\n key: \"FRAC_EXCLUSIVE\",\n ariaLabel: strings.fractionExcludingExpression,\n }),\n },\n // mobile web\n FRAC: {\n ...getDefaultOperatorFields({\n key: \"FRAC\",\n ariaLabel: strings.fractionExcludingExpression,\n }),\n },\n EXP: {\n ...getDefaultOperatorFields({\n key: \"EXP\",\n ariaLabel: strings.customExponent,\n }),\n },\n EXP_2: {\n ...getDefaultOperatorFields({\n key: \"EXP_2\",\n ariaLabel: strings.square,\n }),\n },\n EXP_3: {\n ...getDefaultOperatorFields({\n key: \"EXP_3\",\n ariaLabel: strings.cube,\n }),\n },\n SQRT: {\n ...getDefaultOperatorFields({\n key: \"SQRT\",\n ariaLabel: strings.squareRoot,\n }),\n },\n CUBE_ROOT: {\n ...getDefaultOperatorFields({\n key: \"CUBE_ROOT\",\n ariaLabel: strings.cubeRoot,\n }),\n },\n RADICAL: {\n ...getDefaultOperatorFields({\n key: \"RADICAL\",\n ariaLabel: strings.radicalWithCustomRoot,\n }),\n },\n LEFT_PAREN: {\n ...getDefaultOperatorFields({\n key: \"LEFT_PAREN\",\n ariaLabel: strings.leftParenthesis,\n }),\n },\n RIGHT_PAREN: {\n ...getDefaultOperatorFields({\n key: \"RIGHT_PAREN\",\n ariaLabel: strings.rightParenthesis,\n }),\n },\n LN: {\n ...getDefaultOperatorFields({\n key: \"LN\",\n ariaLabel: strings.naturalLog,\n }),\n },\n LOG: {\n ...getDefaultOperatorFields({\n key: \"LOG\",\n ariaLabel: strings.logBase10,\n }),\n },\n LOG_N: {\n ...getDefaultOperatorFields({\n key: \"LOG_N\",\n ariaLabel: strings.logCustomBase,\n }),\n },\n SIN: {\n ...getDefaultOperatorFields({\n key: \"SIN\",\n ariaLabel: strings.sine,\n }),\n },\n COS: {\n ...getDefaultOperatorFields({\n key: \"COS\",\n ariaLabel: strings.cosine,\n }),\n },\n TAN: {\n ...getDefaultOperatorFields({\n key: \"TAN\",\n ariaLabel: strings.tangent,\n }),\n },\n PI: {\n ...getDefaultValueFields({\n key: \"PI\",\n data: \"\\\\pi\",\n ariaLabel: strings.pi,\n }),\n },\n THETA: {\n ...getDefaultValueFields({\n key: \"THETA\",\n data: \"\\\\theta\",\n ariaLabel: strings.theta,\n }),\n },\n // Input navigation\n UP: {\n ...getDefaultOperatorFields({\n key: \"UP\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.upArrow,\n }),\n },\n RIGHT: {\n ...getDefaultOperatorFields({\n key: \"RIGHT\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.rightArrow,\n }),\n },\n DOWN: {\n ...getDefaultOperatorFields({\n key: \"DOWN\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.downArrow,\n }),\n },\n LEFT: {\n ...getDefaultOperatorFields({\n key: \"LEFT\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.leftArrow,\n }),\n },\n JUMP_OUT_PARENTHESES: {\n ...getDefaultOperatorFields({\n key: \"JUMP_OUT_PARENTHESES\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.navOutOfParentheses,\n }),\n },\n JUMP_OUT_EXPONENT: {\n ...getDefaultOperatorFields({\n key: \"JUMP_OUT_EXPONENT\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.navOutOfExponent,\n }),\n },\n JUMP_OUT_BASE: {\n ...getDefaultOperatorFields({\n key: \"JUMP_OUT_BASE\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.navOutOfBase,\n }),\n },\n JUMP_INTO_NUMERATOR: {\n ...getDefaultOperatorFields({\n key: \"JUMP_INTO_NUMERATOR\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.navIntoNumerator,\n }),\n },\n JUMP_OUT_NUMERATOR: {\n ...getDefaultOperatorFields({\n key: \"JUMP_OUT_NUMERATOR\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.navOutOfNumeratorIntoDenominator,\n }),\n },\n JUMP_OUT_DENOMINATOR: {\n ...getDefaultOperatorFields({\n key: \"JUMP_OUT_DENOMINATOR\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.navOutOfDenominator,\n }),\n },\n BACKSPACE: {\n ...getDefaultOperatorFields({\n key: \"BACKSPACE\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.delete,\n }),\n },\n\n // Keypad navigation\n DISMISS: {\n ...getDefaultOperatorFields({\n key: \"DISMISS\",\n keyType: \"KEYPAD_NAVIGATION\",\n ariaLabel: strings.dismiss,\n }),\n },\n\n // NUMBERS\n NUM_0: {\n ...getDefaultNumberFields({\n key: \"NUM_0\",\n }),\n },\n NUM_1: {\n ...getDefaultNumberFields({\n key: \"NUM_1\",\n }),\n },\n NUM_2: {\n ...getDefaultNumberFields({\n key: \"NUM_2\",\n }),\n },\n NUM_3: {\n ...getDefaultNumberFields({\n key: \"NUM_3\",\n }),\n },\n NUM_4: {\n ...getDefaultNumberFields({\n key: \"NUM_4\",\n }),\n },\n NUM_5: {\n ...getDefaultNumberFields({\n key: \"NUM_5\",\n }),\n },\n NUM_6: {\n ...getDefaultNumberFields({\n key: \"NUM_6\",\n }),\n },\n NUM_7: {\n ...getDefaultNumberFields({\n key: \"NUM_7\",\n }),\n },\n NUM_8: {\n ...getDefaultNumberFields({\n key: \"NUM_8\",\n }),\n },\n NUM_9: {\n ...getDefaultNumberFields({\n key: \"NUM_9\",\n }),\n },\n\n // LETTERS\n A: {\n ...getDefaultValueFields({\n key: \"A\",\n }),\n },\n B: {\n ...getDefaultValueFields({\n key: \"B\",\n }),\n },\n C: {\n ...getDefaultValueFields({\n key: \"C\",\n }),\n },\n D: {\n ...getDefaultValueFields({\n key: \"D\",\n }),\n },\n E: {\n ...getDefaultValueFields({\n key: \"E\",\n }),\n },\n F: {\n ...getDefaultValueFields({\n key: \"F\",\n }),\n },\n G: {\n ...getDefaultValueFields({\n key: \"G\",\n }),\n },\n H: {\n ...getDefaultValueFields({\n key: \"H\",\n }),\n },\n I: {\n ...getDefaultValueFields({\n key: \"I\",\n }),\n },\n J: {\n ...getDefaultValueFields({\n key: \"J\",\n }),\n },\n K: {\n ...getDefaultValueFields({\n key: \"K\",\n }),\n },\n L: {\n ...getDefaultValueFields({\n key: \"L\",\n }),\n },\n M: {\n ...getDefaultValueFields({\n key: \"M\",\n }),\n },\n N: {\n ...getDefaultValueFields({\n key: \"N\",\n }),\n },\n O: {\n ...getDefaultValueFields({\n key: \"O\",\n }),\n },\n P: {\n ...getDefaultValueFields({\n key: \"P\",\n }),\n },\n Q: {\n ...getDefaultValueFields({\n key: \"Q\",\n }),\n },\n R: {\n ...getDefaultValueFields({\n key: \"R\",\n }),\n },\n S: {\n ...getDefaultValueFields({\n key: \"S\",\n }),\n },\n T: {\n ...getDefaultValueFields({\n key: \"T\",\n }),\n },\n U: {\n ...getDefaultValueFields({\n key: \"U\",\n }),\n },\n V: {\n ...getDefaultValueFields({\n key: \"V\",\n }),\n },\n W: {\n ...getDefaultValueFields({\n key: \"W\",\n }),\n },\n X: {\n ...getDefaultValueFields({\n key: \"X\",\n }),\n },\n Y: {\n ...getDefaultValueFields({\n key: \"Y\",\n }),\n },\n Z: {\n ...getDefaultValueFields({\n key: \"Z\",\n }),\n },\n a: {\n ...getDefaultValueFields({\n key: \"a\",\n }),\n },\n b: {\n ...getDefaultValueFields({\n key: \"b\",\n }),\n },\n c: {\n ...getDefaultValueFields({\n key: \"c\",\n }),\n },\n d: {\n ...getDefaultValueFields({\n key: \"d\",\n }),\n },\n e: {\n ...getDefaultValueFields({\n key: \"e\",\n }),\n },\n f: {\n ...getDefaultValueFields({\n key: \"f\",\n }),\n },\n g: {\n ...getDefaultValueFields({\n key: \"g\",\n }),\n },\n h: {\n ...getDefaultValueFields({\n key: \"h\",\n }),\n },\n i: {\n ...getDefaultValueFields({\n key: \"i\",\n }),\n },\n j: {\n ...getDefaultValueFields({\n key: \"j\",\n }),\n },\n k: {\n ...getDefaultValueFields({\n key: \"k\",\n }),\n },\n l: {\n ...getDefaultValueFields({\n key: \"l\",\n }),\n },\n m: {\n ...getDefaultValueFields({\n key: \"m\",\n }),\n },\n n: {\n ...getDefaultValueFields({\n key: \"n\",\n }),\n },\n o: {\n ...getDefaultValueFields({\n key: \"o\",\n }),\n },\n p: {\n ...getDefaultValueFields({\n key: \"p\",\n }),\n },\n q: {\n ...getDefaultValueFields({\n key: \"q\",\n }),\n },\n r: {\n ...getDefaultValueFields({\n key: \"r\",\n }),\n },\n s: {\n ...getDefaultValueFields({\n key: \"s\",\n }),\n },\n t: {\n ...getDefaultValueFields({\n key: \"t\",\n }),\n },\n u: {\n ...getDefaultValueFields({\n key: \"u\",\n }),\n },\n v: {\n ...getDefaultValueFields({\n key: \"v\",\n }),\n },\n w: {\n ...getDefaultValueFields({\n key: \"w\",\n }),\n },\n x: {\n ...getDefaultValueFields({\n key: \"x\",\n }),\n },\n y: {\n ...getDefaultValueFields({\n key: \"y\",\n }),\n },\n z: {\n ...getDefaultValueFields({\n key: \"z\",\n }),\n },\n});\n\nexport default KeyConfigs;\n","/*\nThe SVGs in this file should be treated as binary assets. If, in the future,\nwe need to make changes to update the color or size or shape of the glyph\nthen we should take the new asset, copy it, and paste it under the right\nheader.\n\nThis makes it as easy as possible for a designer to make an update to an\nasset.\n\nIn the future it would be great if these were included from files so that\nno copying and pasting is necessary.\n*/\nimport {getDecimalSeparator} from \"@khanacademy/perseus-core\";\nimport * as React from \"react\";\n\nimport {useMathInputI18n} from \"../i18n-context\";\n\nimport type {KeypadKey} from \"@khanacademy/perseus-core\";\n\ntype Props = {id: KeypadKey};\n\nexport default function ButtonAsset({id}: Props): React.ReactNode {\n const {locale, strings} = useMathInputI18n();\n switch (id) {\n case \"NUM_0\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M26.299 20.3598c0 1.512-.164 2.82-.492 3.924-.32 1.104-.764 2.02-1.332 2.748-.568.728-1.236 1.268-2.004 1.62-.768.352-1.596.528-2.484.528-.888 0-1.716-.176-2.484-.528-.768-.352-1.436-.892-2.004-1.62-.56-.728-1-1.644-1.32-2.748-.32-1.104-.48-2.412-.48-3.924s.16-2.82.48-3.924c.32-1.112.76-2.028 1.32-2.748.568-.728 1.236-1.268 2.004-1.62.768-.36 1.596-.54 2.484-.54.888 0 1.716.18 2.484.54.768.352 1.436.892 2.004 1.62.568.72 1.012 1.636 1.332 2.748.328 1.104.492 2.412.492 3.924zm-2.664 0c0-1.28-.104-2.344-.312-3.192-.2-.856-.468-1.54-.804-2.052s-.724-.876-1.164-1.092c-.44-.216-.896-.324-1.368-.324-.48 0-.94.108-1.38.324-.432.216-.816.58-1.152 1.092-.336.512-.604 1.196-.804 2.052-.2.848-.3 1.912-.3 3.192 0 1.28.1 2.348.3 3.204.2.848.468 1.528.804 2.04s.72.876 1.152 1.092c.44.216.9.324 1.38.324.472 0 .928-.108 1.368-.324.44-.216.828-.58 1.164-1.092.336-.512.604-1.192.804-2.04.208-.856.312-1.924.312-3.204z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"NUM_1\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M25.363 27.0441v1.956h-9.42v-1.956h3.6v-10.824c0-.384.012-.776.036-1.176l-2.772 2.34c-.12.096-.244.16-.372.192-.12.024-.236.024-.348 0-.104-.024-.2-.06-.288-.108-.08-.056-.144-.116-.192-.18l-.804-1.128 5.208-4.476h2.1v15.36h3.252z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"NUM_2\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M24.8471 26.5638c.28 0 .5.084.66.252.16.16.24.368.24.624v1.56h-11.688v-.876c0-.176.036-.36.108-.552.072-.192.188-.368.348-.528l5.376-5.388c.456-.456.86-.892 1.212-1.308.36-.416.664-.832.912-1.248.256-.416.448-.836.576-1.26.136-.432.204-.884.204-1.356 0-.456-.072-.856-.216-1.2-.136-.352-.328-.64-.576-.864-.24-.232-.532-.404-.876-.516-.336-.12-.708-.18-1.116-.18-.392 0-.756.056-1.092.168-.328.112-.624.268-.888.468-.256.2-.472.44-.648.72-.168.272-.292.572-.372.9-.12.328-.276.548-.468.66-.184.112-.456.136-.816.072l-1.356-.24c.12-.816.344-1.532.672-2.148.336-.616.756-1.128 1.26-1.536.504-.416 1.08-.728 1.728-.936.656-.216 1.364-.324 2.124-.324.768 0 1.472.116 2.112.348.648.224 1.204.548 1.668.972.472.416.84.924 1.104 1.524.264.6.396 1.276.396 2.028 0 .64-.096 1.232-.288 1.776-.184.544-.436 1.064-.756 1.56s-.696.98-1.128 1.452c-.424.464-.872.936-1.344 1.416l-4.176 4.272c.344-.096.688-.172 1.032-.228.352-.056.684-.084.996-.084h5.076z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"NUM_3\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M14.4552 16.4718c.12-.816.344-1.532.672-2.148.336-.616.756-1.128 1.26-1.536.504-.416 1.08-.728 1.728-.936.656-.216 1.364-.324 2.124-.324.768 0 1.464.112 2.088.336.632.216 1.172.52 1.62.912.456.392.804.86 1.044 1.404.248.544.372 1.14.372 1.788 0 .552-.068 1.04-.204 1.464-.128.416-.316.784-.564 1.104-.24.32-.536.588-.888.804-.352.216-.748.396-1.188.54 1.072.312 1.876.812 2.412 1.5.536.68.804 1.536.804 2.568 0 .832-.156 1.572-.468 2.22-.312.648-.736 1.196-1.272 1.644-.528.448-1.148.792-1.86 1.032-.704.232-1.452.348-2.244.348-.888 0-1.656-.104-2.304-.312-.648-.216-1.208-.52-1.68-.912-.464-.4-.852-.88-1.164-1.44-.312-.56-.576-1.188-.792-1.884l1.116-.468c.296-.128.576-.164.84-.108.272.056.468.204.588.444.128.256.272.532.432.828.16.288.364.556.612.804.256.24.568.444.936.612.376.16.836.24 1.38.24.552 0 1.032-.088 1.44-.264.416-.184.76-.416 1.032-.696.28-.288.488-.608.624-.96s.204-.7.204-1.044c0-.432-.052-.828-.156-1.188-.104-.368-.308-.68-.612-.936-.296-.256-.72-.456-1.272-.6-.544-.152-1.26-.228-2.148-.228v-1.86c.728-.008 1.34-.08 1.836-.216.504-.144.904-.336 1.2-.576.304-.248.52-.544.648-.888.136-.344.204-.72.204-1.128 0-.44-.068-.828-.204-1.164-.136-.336-.328-.616-.576-.84-.24-.232-.528-.404-.864-.516-.336-.112-.708-.168-1.116-.168-.392 0-.756.056-1.092.168-.328.112-.624.268-.888.468-.256.2-.472.44-.648.72-.176.272-.304.572-.384.9-.112.328-.264.548-.456.66-.184.112-.456.136-.816.072l-1.356-.24z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"NUM_4\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M21.691 22.616v-6.312c0-.504.036-1.056.108-1.656l-5.808 7.968h5.7zm4.632 0v1.488c0 .144-.048.268-.144.372-.088.104-.224.156-.408.156h-1.836V29h-2.244v-4.368h-7.476c-.184 0-.344-.052-.48-.156-.128-.112-.212-.248-.252-.408l-.264-1.32 8.292-11.04h2.424v10.908h2.388z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"NUM_5\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M17.6591 18.1042c.416-.088.812-.152 1.188-.192.384-.04.752-.06 1.104-.06.904 0 1.7.136 2.388.408.696.264 1.276.632 1.74 1.104.472.472.824 1.028 1.056 1.668.24.632.36 1.32.36 2.064 0 .92-.16 1.756-.48 2.508-.32.752-.764 1.396-1.332 1.932-.568.528-1.24.936-2.016 1.224-.768.288-1.6.432-2.496.432-.528 0-1.032-.052-1.512-.156-.472-.104-.916-.244-1.332-.42-.416-.184-.8-.392-1.152-.624-.352-.24-.668-.488-.948-.744l.792-1.104c.168-.24.392-.36.672-.36.176 0 .368.064.576.192.208.128.448.268.72.42.28.144.608.28.984.408.376.128.824.192 1.344.192.568 0 1.076-.092 1.524-.276.448-.184.824-.44 1.128-.768.312-.336.548-.736.708-1.2.16-.464.24-.972.24-1.524 0-.504-.076-.956-.228-1.356-.144-.4-.364-.74-.66-1.02-.288-.28-.652-.492-1.092-.636-.44-.152-.948-.228-1.524-.228-.424 0-.86.036-1.308.108-.44.072-.888.184-1.344.336l-1.608-.456 1.416-8.256h8.364v1.116c0 .368-.116.668-.348.9-.232.232-.62.348-1.164.348h-5.064l-.696 4.02z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"NUM_6\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M19.975 27.0562c.52 0 .996-.084 1.428-.252.432-.176.8-.416 1.104-.72.312-.304.552-.664.72-1.08.168-.416.252-.868.252-1.356 0-.528-.084-1-.252-1.416-.16-.424-.392-.78-.696-1.068-.296-.288-.656-.508-1.08-.66-.416-.16-.876-.24-1.38-.24-.52 0-.992.088-1.416.264-.416.176-.772.416-1.068.72-.296.304-.524.66-.684 1.068-.16.408-.24.84-.24 1.296 0 .512.072.98.216 1.404.144.424.356.788.636 1.092.28.296.624.528 1.032.696.416.168.892.252 1.428.252zm-.948-8.976c-.128.16-.252.312-.372.456l-.336.432c.368-.208.772-.372 1.212-.492.44-.12.912-.18 1.416-.18.672 0 1.316.112 1.932.336.616.216 1.156.544 1.62.984.472.432.848.972 1.128 1.62.28.64.42 1.38.42 2.22 0 .8-.148 1.548-.444 2.244-.288.696-.696 1.304-1.224 1.824-.528.512-1.164.92-1.908 1.224-.736.296-1.552.444-2.448.444-.896 0-1.704-.144-2.424-.432-.72-.288-1.336-.692-1.848-1.212-.504-.528-.892-1.16-1.164-1.896-.272-.736-.408-1.556-.408-2.46 0-.784.168-1.604.504-2.46.336-.856.856-1.756 1.56-2.7l4.248-5.7c.128-.168.312-.312.552-.432.248-.12.524-.18.828-.18h2.28l-5.124 6.36z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"NUM_7\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M26.083 11.7202v1.14c0 .336-.036.608-.108.816-.072.208-.144.384-.216.528l-6.828 13.896c-.12.256-.292.472-.516.648-.216.168-.504.252-.864.252h-1.86l6.96-13.668c.128-.248.256-.472.384-.672.128-.2.272-.392.432-.576h-8.628c-.16 0-.3-.06-.42-.18-.12-.128-.18-.272-.18-.432v-1.752h11.844z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"NUM_8\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M19.999 27.1518c.52 0 .984-.072 1.392-.216.408-.152.748-.36 1.02-.624.28-.272.492-.592.636-.96.144-.368.216-.768.216-1.2 0-.528-.084-.984-.252-1.368-.16-.384-.388-.7-.684-.948-.288-.256-.632-.444-1.032-.564-.4-.128-.832-.192-1.296-.192-.464 0-.896.064-1.296.192-.4.12-.748.308-1.044.564-.288.248-.516.564-.684.948-.16.384-.24.84-.24 1.368 0 .432.072.832.216 1.2.144.368.352.688.624.96.28.264.624.472 1.032.624.408.144.872.216 1.392.216zm0-13.644c-.472 0-.888.072-1.248.216-.352.144-.644.336-.876.576-.232.24-.408.524-.528.852-.112.32-.168.66-.168 1.02s.048.712.144 1.056c.104.344.264.652.48.924.224.264.516.476.876.636.36.16.8.24 1.32.24s.96-.08 1.32-.24c.36-.16.648-.372.864-.636.224-.272.384-.58.48-.924.104-.344.156-.696.156-1.056 0-.36-.06-.7-.18-1.02-.112-.328-.288-.612-.528-.852-.232-.24-.524-.432-.876-.576-.352-.144-.764-.216-1.236-.216zm2.724 6.48c1.064.328 1.86.848 2.388 1.56.536.712.804 1.596.804 2.652 0 .76-.144 1.448-.432 2.064-.288.616-.692 1.14-1.212 1.572-.52.432-1.144.768-1.872 1.008-.72.232-1.52.348-2.4.348-.88 0-1.684-.116-2.412-.348-.72-.24-1.34-.576-1.86-1.008-.52-.432-.924-.956-1.212-1.572-.288-.616-.432-1.304-.432-2.064 0-1.056.264-1.94.792-2.652.536-.712 1.336-1.232 2.4-1.56-.864-.344-1.516-.844-1.956-1.5-.432-.656-.648-1.444-.648-2.364 0-.648.128-1.252.384-1.812s.616-1.044 1.08-1.452c.472-.416 1.036-.74 1.692-.972.656-.24 1.38-.36 2.172-.36.792 0 1.512.12 2.16.36.656.232 1.216.556 1.68.972.472.408.836.892 1.092 1.452.264.56.396 1.164.396 1.812 0 .92-.22 1.708-.66 2.364-.432.656-1.08 1.156-1.944 1.5z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"NUM_9\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M16.735 16.8558c0 1.024.272 1.812.816 2.364.552.544 1.32.816 2.304.816.528 0 .992-.084 1.392-.252.408-.168.752-.392 1.032-.672.28-.288.492-.62.636-.996.144-.384.216-.792.216-1.224 0-.504-.08-.952-.24-1.344-.152-.4-.372-.74-.66-1.02-.28-.28-.616-.492-1.008-.636-.392-.152-.82-.228-1.284-.228-.488 0-.928.08-1.32.24-.392.16-.728.384-1.008.672-.28.28-.496.616-.648 1.008-.152.384-.228.808-.228 1.272zm4.428 5.364c.16-.2.308-.388.444-.564.136-.184.264-.368.384-.552-.416.296-.88.524-1.392.684-.512.152-1.056.228-1.632.228-.624 0-1.224-.104-1.8-.312-.576-.216-1.088-.532-1.536-.948-.448-.424-.808-.944-1.08-1.56-.264-.624-.396-1.34-.396-2.148 0-.76.14-1.476.42-2.148.288-.672.688-1.256 1.2-1.752.512-.504 1.124-.9 1.836-1.188.712-.288 1.5-.432 2.364-.432.856 0 1.632.14 2.328.42.696.272 1.288.66 1.776 1.164.488.496.864 1.092 1.128 1.788.264.688.396 1.448.396 2.28 0 .52-.048 1.012-.144 1.476-.088.464-.22.916-.396 1.356-.168.432-.376.86-.624 1.284-.24.416-.512.84-.816 1.272l-4.068 5.832c-.12.176-.3.32-.54.432-.232.112-.496.168-.792.168h-2.364l5.304-6.78z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"DECIMAL\":\n case \"PERIOD\":\n // Different locales use different symbols for the decimal separator\n // (, vs .)\n if (id === \"DECIMAL\" && getDecimalSeparator(locale) !== \".\") {\n // comma decimal separator\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n data-testid=\"comma-decimal\"\n >\n <path\n d=\"M11.5559 25.3544C11.8679 24.661 12.1799 23.933 12.4919 23.1704C12.8039 22.425 13.0986 21.6884 13.3759 20.9604C13.6706 20.2324 13.9219 19.5737 14.1299 18.9844H16.6259L16.7299 19.2704C16.4526 19.877 16.1232 20.5357 15.7419 21.2464C15.3606 21.9397 14.9619 22.633 14.5459 23.3264C14.1299 24.037 13.7139 24.713 13.2979 25.3544H11.5559Z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n }\n // period / US decimal separator\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n data-testid=\"period-decimal\"\n >\n <path\n d=\"M18.3401 27.512c0-.232.04-.448.12-.648.088-.208.204-.388.348-.54.152-.152.328-.272.528-.36.208-.088.428-.132.66-.132.232 0 .448.044.648.132.208.088.388.208.54.36.152.152.272.332.36.54.088.2.132.416.132.648 0 .24-.044.46-.132.66-.088.2-.208.376-.36.528-.152.152-.332.268-.54.348-.2.088-.416.132-.648.132-.232 0-.452-.044-.66-.132-.2-.08-.376-.196-.528-.348-.144-.152-.26-.328-.348-.528-.08-.2-.12-.42-.12-.66z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"PLUS\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12 20c0-.5523.4477-1 1-1h14c.5523 0 1 .4477 1 1s-.4477 1-1 1H13c-.5523 0-1-.4477-1-1z\"\n fill=\"#21242C\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M20 28c-.5523 0-1-.4477-1-1V13c0-.5523.4477-1 1-1s1 .4477 1 1v14c0 .5523-.4477 1-1 1z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"MINUS\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12 20c0-.5523.4477-1 1-1h14c.5523 0 1 .4477 1 1s-.4477 1-1 1H13c-.5523 0-1-.4477-1-1z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"TIMES\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M14.3432 14.3428c.3905-.3905 1.0237-.3905 1.4142 0l9.8995 9.8995c.3905.3906.3905 1.0237 0 1.4143-.3905.3905-1.0237.3905-1.4142 0l-9.8995-9.8995c-.3905-.3906-.3905-1.0237 0-1.4143z\"\n fill=\"#21242C\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M14.3431 25.6573c-.3905-.3905-.3905-1.0237 0-1.4142l9.8995-9.8995c.3905-.3905 1.0237-.3905 1.4142 0 .3905.3905.3905 1.0237 0 1.4142l-9.8995 9.8995c-.3905.3905-1.0237.3905-1.4142 0z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"CDOT\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g clipPath=\"url(#clip0_874_41555)\">\n <circle cx=\"20\" cy=\"20\" r=\"1.5\" fill=\"#21242C\" />\n </g>\n <defs>\n <clipPath id=\"clip0_874_41555\">\n <path\n fill=\"#fff\"\n transform=\"translate(18.5 18.5)\"\n d=\"M0 0h3v3H0z\"\n />\n </clipPath>\n </defs>\n </svg>\n );\n case \"DIVIDE\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M20 16c.8284 0 1.5-.6716 1.5-1.5S20.8284 13 20 13s-1.5.6716-1.5 1.5.6716 1.5 1.5 1.5zm-8 4c0-.5523.4477-1 1-1h14c.5523 0 1 .4477 1 1s-.4477 1-1 1H13c-.5523 0-1-.4477-1-1zm9.5 5.5c0 .8284-.6716 1.5-1.5 1.5s-1.5-.6716-1.5-1.5.6716-1.5 1.5-1.5 1.5.6716 1.5 1.5z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n\n case \"LEFT_PAREN\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M22.6402 9.2318c.4243.35357.4816.9841.128 1.4084-4.6909 5.6292-4.6909 13.0905 0 18.7196.3536.4243.2963 1.0549-.128 1.4084-.4243.3536-1.0549.2963-1.4084-.128-5.3091-6.3708-5.3091-14.9095 0-21.28036.3535-.42428.9841-.4816 1.4084-.12804z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"RIGHT_PAREN\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M18.3598 9.2318c.4243-.35356 1.0549-.29624 1.4084.12804 5.3091 6.37086 5.3091 14.90956 0 21.28036-.3535.4243-.9841.4816-1.4084.128-.4242-.3535-.4816-.9841-.128-1.4084 4.691-5.6291 4.691-13.0904 0-18.7196-.3536-.4243-.2962-1.05483.128-1.4084z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n\n case \"BACKSPACE\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10 20l6-6h12.1716v12H16l-6-6zm-1.41421-1.4142l6.00001-6C14.9609 12.2107 15.4696 12 16 12h12.1716c1.1045 0 2 .8954 2 2v12c0 1.1046-.8955 2-2 2H16c-.5304 0-1.0391-.2107-1.4142-.5858l-6.00001-6c-.78105-.781-.78105-2.0474 0-2.8284zm13.87871-1.2929l-1.2929 1.2929-1.2929-1.2929c-.3905-.3905-1.0237-.3905-1.4142 0-.3905.3905-.3905 1.0237 0 1.4142L19.7574 20l-1.2929 1.2929c-.3905.3905-.3905 1.0237 0 1.4142.3905.3905 1.0237.3905 1.4142 0l1.2929-1.2929 1.2929 1.2929c.3905.3905 1.0237.3905 1.4142 0 .3906-.3905.3906-1.0237 0-1.4142L22.5858 20l1.2929-1.2929c.3906-.3905.3906-1.0237 0-1.4142-.3905-.3905-1.0237-.3905-1.4142 0z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"DISMISS\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n fill=\"currentColor\"\n viewBox=\"0 0 256 256\"\n >\n <path\n // flip to point down\n transform=\"scale(1,-1) translate(0, -260)\"\n d=\"M205.66,125.66a8,8,0,0,1-11.32,0L128,59.31,61.66,125.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,125.66Z\"\n />\n </svg>\n );\n // TODO: figure out what the difference is and what we need for what\n case \"FRAC_INCLUSIVE\":\n case \"FRAC_EXCLUSIVE\":\n case \"FRAC\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M16 10C16 9.44772 16.4477 9 17 9H23C23.5523 9 24 9.44772 24 10V16C24 16.5523 23.5523 17 23 17H17C16.4477 17 16 16.5523 16 16V10ZM18 11H22V15H18V11ZM14 20C14 19.4477 14.4477 19 15 19H25C25.5523 19 26 19.4477 26 20C26 20.5523 25.5523 21 25 21H15C14.4477 21 14 20.5523 14 20ZM17 23C16.4477 23 16 23.4477 16 24V30C16 30.5523 16.4477 31 17 31H23C23.5523 31 24 30.5523 24 30V24C24 23.4477 23.5523 23 23 23H17ZM22 25H18V29H22V25Z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"NEGATIVE\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12.9571 13.2929c.3905.3905.3905 1.0237 0 1.4142C11.6871 15.9771 11 17.9485 11 20c0 2.0515.6871 4.0229 1.9571 5.2929.3905.3905.3905 1.0237 0 1.4142-.3905.3905-1.0237.3905-1.4142 0C9.81292 24.9771 9 22.4485 9 20c0-2.4485.81292-4.9771 2.5429-6.7071.3905-.3905 1.0237-.3905 1.4142 0zM14 20c0-.5523.4477-1 1-1h10c.5523 0 1 .4477 1 1s-.4477 1-1 1H15c-.5523 0-1-.4477-1-1zm14.4571-6.7071c-.3905-.3905-1.0237-.3905-1.4142 0-.3905.3905-.3905 1.0237 0 1.4142C28.3129 15.9771 29 17.9485 29 20c0 2.0515-.6871 4.0229-1.9571 5.2929-.3905.3905-.3905 1.0237 0 1.4142.3905.3905 1.0237.3905 1.4142 0C30.1871 24.9771 31 22.4485 31 20c0-2.4485-.8129-4.9771-2.5429-6.7071z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"RADICAL\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M9 9a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1V9Zm2 1h4v4h-4v-4Zm12 2a1 1 0 0 0-.841.46l-8.174 12.714-3.153-4.729a1 1 0 0 0-1.664 1.11l4 6a1 1 0 0 0 1.673-.014L23.546 14H30a1 1 0 1 0 0-2h-7Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"SQRT\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M22.159 12.46A1 1 0 0 1 23 12h7a1 1 0 1 1 0 2h-6.454l-8.705 13.54a1 1 0 0 1-1.673.015l-4-6a1 1 0 0 1 1.664-1.11l3.153 4.73 8.174-12.716Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"CUBE_ROOT\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M9.684 9.246a3.052 3.052 0 0 0-.33 1.023l.798.143c.209.033.368.02.478-.038.11-.063.2-.186.27-.369a1.05 1.05 0 0 1 .154-.324c.07-.1.152-.186.247-.259.1-.073.21-.13.33-.17.125-.044.26-.066.407-.066.334 0 .59.091.77.275.184.183.275.449.275.797 0 .165-.024.317-.071.457a.746.746 0 0 1-.248.357 1.297 1.297 0 0 1-.5.231 3.359 3.359 0 0 1-.82.083v1.067c.4 0 .715.029.946.088.235.055.41.135.528.242a.674.674 0 0 1 .231.38c.033.146.05.31.05.494 0 .14-.028.28-.083.424a1.116 1.116 0 0 1-.632.649c-.158.07-.343.104-.556.104-.169 0-.319-.024-.45-.071a1.197 1.197 0 0 1-.347-.198 1.738 1.738 0 0 1-.28-.308 3.794 3.794 0 0 1-.232-.385.457.457 0 0 0-.33-.242.809.809 0 0 0-.49.06l-.67.275c.12.356.262.668.423.935.162.264.354.484.578.66.227.176.49.308.786.396.297.088.64.132 1.029.132a3.55 3.55 0 0 0 1.05-.154c.338-.106.633-.264.886-.473a2.3 2.3 0 0 0 .605-.775c.15-.312.225-.671.225-1.078 0-.92-.458-1.531-1.375-1.832a2.24 2.24 0 0 0 .523-.247 1.47 1.47 0 0 0 .621-.864 2.47 2.47 0 0 0 .083-.67c0-.287-.057-.555-.17-.804a1.9 1.9 0 0 0-.48-.654 2.254 2.254 0 0 0-.77-.44c-.3-.11-.641-.165-1.022-.165-.36 0-.695.05-1.007.148a2.47 2.47 0 0 0-.825.435 2.42 2.42 0 0 0-.605.731ZM23 12a1 1 0 0 0-.841.46l-8.174 12.714-3.153-4.729a1 1 0 0 0-1.664 1.11l4 6a1 1 0 0 0 1.673-.014L23.546 14H30a1 1 0 1 0 0-2h-7Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"EXP\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M28 8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1V8Zm2 1h4v4h-4V9Zm-16 4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H15a1 1 0 0 1-1-1V13Zm2 1h8v12h-8V14Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"EXP_2\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M33.58 13.746a.52.52 0 0 0-.386-.137h-1.793c-.161 0-.334.016-.517.05a4.09 4.09 0 0 0-.555.126l1.694-1.733c.212-.216.414-.43.605-.643.19-.213.357-.431.5-.655a3.22 3.22 0 0 0 .347-.715c.084-.25.126-.52.126-.814 0-.34-.06-.653-.181-.935a2.033 2.033 0 0 0-.512-.72 2.293 2.293 0 0 0-.797-.468 2.952 2.952 0 0 0-1.029-.17c-.36 0-.695.05-1.006.148a2.43 2.43 0 0 0-.83.435 2.42 2.42 0 0 0-.606.731 3.049 3.049 0 0 0-.33 1.023l.803.143c.205.033.363.02.473-.038.114-.063.204-.186.27-.369a1.05 1.05 0 0 1 .154-.324 1.18 1.18 0 0 1 .247-.259c.1-.073.21-.13.33-.17.125-.044.26-.066.407-.066.334 0 .592.093.776.28.183.183.275.453.275.809 0 .201-.026.394-.077.577a2.407 2.407 0 0 1-.231.545 4.17 4.17 0 0 1-.385.544 9.098 9.098 0 0 1-.534.578l-2.365 2.37a.897.897 0 0 0-.264.616V15h5.533v-.89a.48.48 0 0 0-.143-.364ZM14 13a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H15a1 1 0 0 1-1-1V13Zm2 1h8v12h-8V14Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"EXP_3\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M28.684 8.246a3.049 3.049 0 0 0-.33 1.023l.798.143c.209.033.368.02.478-.038.11-.063.2-.186.27-.369a1.05 1.05 0 0 1 .154-.324 1.18 1.18 0 0 1 .247-.259c.1-.073.21-.13.33-.17.125-.044.26-.066.407-.066.334 0 .59.091.77.275.183.183.275.449.275.797 0 .165-.024.317-.071.457a.746.746 0 0 1-.248.357 1.298 1.298 0 0 1-.5.231 3.36 3.36 0 0 1-.82.083v1.067c.4 0 .715.029.946.088.235.055.41.135.528.242a.674.674 0 0 1 .231.38c.033.146.05.31.05.494 0 .14-.028.28-.083.424a1.118 1.118 0 0 1-.632.649c-.158.07-.343.104-.556.104-.169 0-.319-.024-.45-.071a1.195 1.195 0 0 1-.347-.198 1.738 1.738 0 0 1-.28-.308 3.794 3.794 0 0 1-.232-.385.457.457 0 0 0-.33-.242.809.809 0 0 0-.49.06l-.67.275c.12.356.262.668.423.935.161.264.354.484.578.66.227.176.49.308.786.396.297.088.64.132 1.029.132.366 0 .716-.051 1.05-.154.337-.106.633-.264.886-.473a2.3 2.3 0 0 0 .605-.775c.15-.312.225-.671.225-1.078 0-.92-.458-1.531-1.375-1.832a2.24 2.24 0 0 0 .523-.247 1.471 1.471 0 0 0 .621-.863 2.47 2.47 0 0 0 .083-.672c0-.286-.057-.554-.17-.803a1.9 1.9 0 0 0-.48-.654 2.254 2.254 0 0 0-.77-.44c-.3-.11-.641-.165-1.022-.165-.36 0-.695.05-1.007.148a2.47 2.47 0 0 0-.825.435 2.42 2.42 0 0 0-.605.731ZM14 13a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H15a1 1 0 0 1-1-1V13Zm2 1h8v12h-8V14Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"TAN\":\n return strings.tan;\n case \"COS\":\n return strings.cos;\n case \"SIN\":\n return strings.sin;\n case \"EQUAL\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M12 17a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H13a1 1 0 0 1-1-1Zm0 6a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H13a1 1 0 0 1-1-1Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"GT\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M12.058 14.664a1 1 0 0 1 1.278-.605l14 5a1 1 0 0 1 0 1.883l-14 5a1 1 0 1 1-.672-1.884L24.027 20l-11.363-4.058a1 1 0 0 1-.606-1.278Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"LT\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M27.942 14.664a1 1 0 0 1-.606 1.278L15.973 20l11.363 4.058a1 1 0 0 1-.672 1.884l-14-5a1 1 0 0 1 0-1.884l14-5a1 1 0 0 1 1.278.606Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"GEQ\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M12 29a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H13a1 1 0 0 1-1-1Zm.058-14.336a1 1 0 0 1 1.278-.605l14 5a1 1 0 0 1 0 1.883l-14 5a1 1 0 1 1-.672-1.884L24.027 20l-11.363-4.058a1 1 0 0 1-.606-1.278Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"LEQ\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M12 29a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H13a1 1 0 0 1-1-1Zm15.942-14.336a1 1 0 0 1-.606 1.278L15.973 20l11.363 4.058a1 1 0 0 1-.672 1.884l-14-5a1 1 0 0 1 0-1.884l14-5a1 1 0 0 1 1.278.606Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"NEQ\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M12 17a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H13a1 1 0 0 1-1-1Zm0 6a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H13a1 1 0 0 1-1-1Z\"\n clipRule=\"evenodd\"\n />\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M16 26.928a1 1 0 0 1-.366-1.366l7-12.125a1 1 0 0 1 1.732 1l-7 12.125a1 1 0 0 1-1.366.366Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"LN\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M16.976 14.112V26H15V14.112h1.976Zm3.817 4.688a5.19 5.19 0 0 1 .52-.456 3.195 3.195 0 0 1 1.248-.592 3.16 3.16 0 0 1 .768-.088c.448 0 .845.078 1.192.232.346.15.634.363.864.64.234.272.41.6.528.984.122.379.184.798.184 1.256V26H24.12v-5.224c0-.501-.115-.888-.344-1.16-.23-.277-.579-.416-1.048-.416-.342 0-.662.078-.96.232a3.439 3.439 0 0 0-.848.632V26h-1.976v-8.208h1.208c.256 0 .424.12.504.36l.136.648Z\"\n />\n </svg>\n );\n case \"LOG\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M12.203 14.112V26h-1.976V14.112h1.976Zm5.6 3.552c.608 0 1.16.099 1.656.296.502.198.928.478 1.28.84.358.363.632.806.824 1.328.192.523.288 1.107.288 1.752 0 .651-.096 1.238-.288 1.76a3.741 3.741 0 0 1-.824 1.336 3.528 3.528 0 0 1-1.28.848 4.445 4.445 0 0 1-1.656.296 4.53 4.53 0 0 1-1.672-.296 3.616 3.616 0 0 1-1.288-.848 3.896 3.896 0 0 1-.824-1.336 5.076 5.076 0 0 1-.288-1.76c0-.645.096-1.229.288-1.752a3.81 3.81 0 0 1 .824-1.328 3.669 3.669 0 0 1 1.288-.84 4.53 4.53 0 0 1 1.672-.296Zm0 6.936c.683 0 1.187-.229 1.512-.688.331-.458.496-1.13.496-2.016 0-.885-.165-1.56-.496-2.024-.325-.464-.829-.696-1.512-.696-.693 0-1.208.235-1.544.704-.33.464-.496 1.136-.496 2.016 0 .88.166 1.552.496 2.016.336.459.851.688 1.544.688Zm8.493-2.904c.246 0 .459-.032.64-.096.182-.069.331-.162.448-.28.123-.117.214-.258.272-.424.064-.165.096-.346.096-.544 0-.405-.122-.725-.368-.96-.24-.24-.602-.36-1.088-.36-.485 0-.85.12-1.096.36-.24.235-.36.555-.36.96 0 .192.03.371.088.536.064.166.155.31.272.432.123.118.275.211.456.28.187.064.4.096.64.096Zm2.232 4.672c0-.16-.048-.29-.144-.392a.914.914 0 0 0-.392-.232 2.716 2.716 0 0 0-.584-.128 8.987 8.987 0 0 0-.704-.056 32.107 32.107 0 0 0-.768-.04 8.959 8.959 0 0 1-.768-.064 1.908 1.908 0 0 0-.536.432.89.89 0 0 0-.096.976.93.93 0 0 0 .344.328c.16.091.366.16.616.208.251.054.558.08.92.08.368 0 .686-.029.952-.088a2.09 2.09 0 0 0 .656-.232.954.954 0 0 0 .384-.352.84.84 0 0 0 .12-.44Zm1.968-8.296v.736c0 .235-.141.379-.424.432l-.736.136c.112.283.168.592.168.928a2.414 2.414 0 0 1-.92 1.936c-.288.23-.629.408-1.024.536a4.17 4.17 0 0 1-1.264.184c-.16 0-.314-.008-.464-.024a5.807 5.807 0 0 1-.44-.064c-.256.155-.384.328-.384.52 0 .166.075.288.224.368.155.075.358.128.608.16.251.032.536.054.856.064.32.006.648.022.984.048.336.027.664.075.984.144.32.064.606.168.856.312.251.144.451.342.6.592.155.246.232.563.232.952 0 .363-.09.715-.272 1.056a2.773 2.773 0 0 1-.776.912c-.336.267-.752.48-1.248.64-.49.166-1.05.248-1.68.248-.618 0-1.157-.061-1.616-.184-.458-.117-.84-.277-1.144-.48a2.037 2.037 0 0 1-.68-.688 1.623 1.623 0 0 1-.224-.816c0-.384.115-.704.344-.96.235-.261.555-.469.96-.624a1.377 1.377 0 0 1-.52-.448c-.128-.186-.192-.432-.192-.736 0-.122.022-.248.064-.376.048-.133.115-.264.2-.392.091-.128.203-.248.336-.36a2.2 2.2 0 0 1 .472-.312 2.621 2.621 0 0 1-.984-.896c-.234-.373-.352-.81-.352-1.312 0-.405.08-.77.24-1.096.166-.33.392-.61.68-.84a3.11 3.11 0 0 1 1.032-.536c.4-.122.835-.184 1.304-.184.352 0 .683.038.992.112.31.07.592.174.848.312h2.36Z\"\n />\n </svg>\n );\n case \"LOG_N\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M12.203 14.112V26h-1.976V14.112h1.976Zm5.6 3.552c.608 0 1.16.099 1.656.296.502.198.928.478 1.28.84.358.363.632.806.824 1.328.192.523.288 1.107.288 1.752 0 .651-.096 1.238-.288 1.76a3.741 3.741 0 0 1-.824 1.336 3.528 3.528 0 0 1-1.28.848 4.445 4.445 0 0 1-1.656.296 4.53 4.53 0 0 1-1.672-.296 3.616 3.616 0 0 1-1.288-.848 3.896 3.896 0 0 1-.824-1.336 5.076 5.076 0 0 1-.288-1.76c0-.645.096-1.229.288-1.752a3.81 3.81 0 0 1 .824-1.328 3.669 3.669 0 0 1 1.288-.84 4.53 4.53 0 0 1 1.672-.296Zm0 6.936c.683 0 1.187-.229 1.512-.688.331-.458.496-1.13.496-2.016 0-.885-.165-1.56-.496-2.024-.325-.464-.829-.696-1.512-.696-.693 0-1.208.235-1.544.704-.33.464-.496 1.136-.496 2.016 0 .88.166 1.552.496 2.016.336.459.851.688 1.544.688Zm8.493-2.904c.246 0 .459-.032.64-.096.182-.069.331-.162.448-.28.123-.117.214-.258.272-.424.064-.165.096-.346.096-.544 0-.405-.122-.725-.368-.96-.24-.24-.602-.36-1.088-.36-.485 0-.85.12-1.096.36-.24.235-.36.555-.36.96 0 .192.03.371.088.536.064.166.155.31.272.432.123.118.275.211.456.28.187.064.4.096.64.096Zm2.232 4.672c0-.16-.048-.29-.144-.392a.914.914 0 0 0-.392-.232 2.716 2.716 0 0 0-.584-.128 8.987 8.987 0 0 0-.704-.056 32.107 32.107 0 0 0-.768-.04 8.959 8.959 0 0 1-.768-.064 1.908 1.908 0 0 0-.536.432.89.89 0 0 0-.096.976.93.93 0 0 0 .344.328c.16.091.366.16.616.208.251.054.558.08.92.08.368 0 .686-.029.952-.088a2.09 2.09 0 0 0 .656-.232.954.954 0 0 0 .384-.352.84.84 0 0 0 .12-.44Zm1.968-8.296v.736c0 .235-.141.379-.424.432l-.736.136c.112.283.168.592.168.928a2.414 2.414 0 0 1-.92 1.936c-.288.23-.629.408-1.024.536a4.17 4.17 0 0 1-1.264.184c-.16 0-.314-.008-.464-.024a5.807 5.807 0 0 1-.44-.064c-.256.155-.384.328-.384.52 0 .166.075.288.224.368.155.075.358.128.608.16.251.032.536.054.856.064.32.006.648.022.984.048.336.027.664.075.984.144.32.064.606.168.856.312.251.144.451.342.6.592.155.246.232.563.232.952 0 .363-.09.715-.272 1.056a2.773 2.773 0 0 1-.776.912c-.336.267-.752.48-1.248.64-.49.166-1.05.248-1.68.248-.618 0-1.157-.061-1.616-.184-.458-.117-.84-.277-1.144-.48a2.037 2.037 0 0 1-.68-.688 1.623 1.623 0 0 1-.224-.816c0-.384.115-.704.344-.96.235-.261.555-.469.96-.624a1.377 1.377 0 0 1-.52-.448c-.128-.186-.192-.432-.192-.736 0-.122.022-.248.064-.376.048-.133.115-.264.2-.392.091-.128.203-.248.336-.36a2.2 2.2 0 0 1 .472-.312 2.621 2.621 0 0 1-.984-.896c-.234-.373-.352-.81-.352-1.312 0-.405.08-.77.24-1.096.166-.33.392-.61.68-.84a3.11 3.11 0 0 1 1.032-.536c.4-.122.835-.184 1.304-.184.352 0 .683.038.992.112.31.07.592.174.848.312h2.36Z\"\n />\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M32 26a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1h-6Zm5 2h-4v4h4v-4Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"PERCENT\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n d=\"M24.447 11.106a1 1 0 0 1 .447 1.341l-8 16a1 1 0 1 1-1.788-.894l8-16a1 1 0 0 1 1.341-.447ZM15 13a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-4 2a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm12 10a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm2-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"PI\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M23.7918 25.0379c0 .2947-.13.572-.39.832-.2426.26-.546.39-.91.39-.26 0-.442-.0346-.546-.104-.0866-.0693-.182-.208-.286-.416-.3293-.7626-.494-1.7246-.494-2.886 0-.624.0087-1.04.026-1.248.1214-1.196.39-2.6433.806-4.342.0867-.3466.13-.5373.13-.572h-2.548l-.026.104c0 .0174-.0173.0954-.052.234-.0346.1214-.0866.312-.156.572-.052.2427-.104.468-.156.676-1.144 4.4547-1.8286 6.8814-2.054 7.28-.208.4854-.5806.728-1.118.728-.3986 0-.676-.1473-.832-.442-.0346-.0866-.052-.2253-.052-.416v-.286l.338-.728c1.3-2.7386 2.2447-5.1046 2.834-7.098l.208-.624h-.832c-.6933 0-1.1786.026-1.456.078-.26.052-.5806.2167-.962.494-.416.26-.78.6154-1.092 1.066-.0866.1387-.156.2254-.208.26-.052.0174-.182.026-.39.026-.3293 0-.494-.0866-.494-.26 0-.0693.0867-.2426.26-.52 1.196-1.82 2.366-2.8166 3.51-2.99.1214-.0346 2.0714-.052 5.85-.052 2.7734 0 4.1947.0087 4.264.026.3467.1214.52.364.52.728 0 .5374-.2773.9014-.832 1.092-.104.0347-.702.052-1.794.052h-1.664l-.078.442c-.208 1.248-.312 2.2794-.312 3.094 0 1.5427.2687 2.938.806 4.186.1214.312.182.52.182.624z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"THETA\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M22.2 10.696h.208a2.26 2.26 0 0 1 .312-.026c.936.087 1.664.511 2.184 1.274.676 1.023 1.014 2.418 1.014 4.186 0 .468-.017.84-.052 1.118-.225 2.305-.823 4.463-1.794 6.474-.59 1.23-1.282 2.305-2.08 3.224-.78.919-1.551 1.569-2.314 1.95-.537.243-1.005.364-1.404.364h-.182c-.762 0-1.395-.269-1.898-.806-.918-.97-1.378-2.522-1.378-4.654 0-.832.087-1.707.26-2.626.641-3.467 1.95-6.3 3.926-8.502 1.058-1.161 2.123-1.82 3.198-1.976Zm1.664 3.588c0-1.768-.46-2.652-1.378-2.652-.572 0-1.161.373-1.768 1.118-.866 1.092-1.603 2.652-2.21 4.68-.346 1.092-.52 1.733-.52 1.924.85.017 1.69.026 2.522.026l2.522-.026c.087-.087.243-.763.468-2.028.243-1.265.364-2.28.364-3.042Zm-1.248 6.734.13-.442h-5.07l-.026.182c-.537 2.15-.806 3.753-.806 4.81 0 1.179.208 1.993.624 2.444.19.208.442.312.754.312.694 0 1.421-.563 2.184-1.69.815-1.196 1.552-3.068 2.21-5.616Z\"\n />\n </svg>\n );\n\n case \"a\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M27.781 24.022c.156 0 .26.009.312.026a.18.18 0 0 1 .13.052c.035.035.052.087.052.156 0 .052-.026.182-.078.39-.381 1.456-.85 2.462-1.404 3.016a2.573 2.573 0 0 1-.832.546 2.776 2.776 0 0 1-.624.052c-1.092 0-1.855-.425-2.288-1.274-.087-.225-.13-.33-.13-.312-.017-.017-.052-.008-.104.026l-.104.104c-.832.78-1.655 1.257-2.47 1.43-.104.017-.32.026-.65.026-1.144 0-2.089-.477-2.834-1.43-.52-.762-.78-1.733-.78-2.912 0-.277.009-.468.026-.572a7.916 7.916 0 0 1 1.066-3.172c.607-1.023 1.326-1.846 2.158-2.47 1.005-.78 2.063-1.17 3.172-1.17.867 0 1.647.425 2.34 1.274.277-.52.676-.78 1.196-.78a.93.93 0 0 1 .598.208.64.64 0 0 1 .26.52c0 .226-.33 1.62-.988 4.186-.641 2.548-.962 3.978-.962 4.29 0 .728.243 1.092.728 1.092.156-.017.33-.095.52-.234.364-.346.72-1.178 1.066-2.496.104-.347.19-.529.26-.546.035-.017.121-.026.26-.026h.104Zm-9.594 1.222c0 .624.13 1.127.39 1.508.277.382.676.572 1.196.572.503 0 1.04-.208 1.612-.624.208-.139.485-.398.832-.78.364-.381.58-.641.65-.78.035-.07.269-.997.702-2.782.45-1.785.676-2.747.676-2.886 0-.208-.095-.503-.286-.884-.381-.745-.927-1.118-1.638-1.118-.693 0-1.309.295-1.846.884a6.274 6.274 0 0 0-1.196 2.028 20.753 20.753 0 0 0-1.066 4.264c0 .052-.009.148-.026.286v.312Z\"\n />\n </svg>\n );\n case \"b\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M18.74 10.242c.018 0 .642-.043 1.873-.13 1.248-.104 1.88-.156 1.898-.156.208 0 .312.078.312.234 0 .156-.295 1.395-.884 3.718-.139.59-.295 1.196-.468 1.82a60.807 60.807 0 0 1-.364 1.404l-.104.494c0 .052.052.026.156-.078a4.832 4.832 0 0 1 1.976-.988c.208-.035.424-.052.65-.052.225 0 .442.017.65.052.901.208 1.62.676 2.158 1.404.537.728.806 1.647.806 2.756 0 1.941-.685 3.692-2.054 5.252-1.352 1.543-2.825 2.314-4.42 2.314-.503 0-.98-.113-1.43-.338-1.352-.607-2.028-1.89-2.028-3.848 0-.503.052-.997.156-1.482 0-.017.433-1.794 1.3-5.33l1.326-5.304c.035-.243-.026-.39-.182-.442-.139-.07-.381-.104-.728-.104h-.286c-.364 0-.572-.026-.624-.078-.104-.087-.113-.295-.026-.624.07-.243.13-.381.182-.416.052-.052.104-.078.156-.078Zm6.423 9.308c0-1.387-.529-2.08-1.586-2.08-.035 0-.096.009-.182.026h-.13c-.902.19-1.75.815-2.548 1.872a1.501 1.501 0 0 0-.13.156l-.078.104c0 .017-.156.641-.468 1.872a96.026 96.026 0 0 0-.494 2.08 7.731 7.731 0 0 0-.156 1.456c0 .832.208 1.456.624 1.872.277.277.624.416 1.04.416.572 0 1.152-.277 1.742-.832.433-.399.78-.884 1.04-1.456.277-.59.563-1.5.858-2.73.312-1.248.468-2.167.468-2.756Z\"\n />\n </svg>\n );\n case \"c\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M26.932 24.854c.07 0 .182.087.338.26.173.156.26.268.26.338 0 .156-.269.476-.806.962-1.075.97-2.435 1.577-4.082 1.82-.381.034-.72.052-1.014.052-1.855 0-3.146-.763-3.874-2.288a4.598 4.598 0 0 1-.494-2.132c0-.797.165-1.612.494-2.444.503-1.3 1.317-2.4 2.444-3.302 1.144-.919 2.357-1.448 3.64-1.586.104-.017.269-.026.494-.026.607 0 1.17.095 1.69.286.97.416 1.456 1.075 1.456 1.976 0 .537-.165.98-.494 1.326-.33.33-.745.494-1.248.494-.33 0-.59-.087-.78-.26-.19-.19-.286-.45-.286-.78 0-.295.087-.58.26-.858.173-.277.399-.477.676-.598.139-.087.234-.13.286-.13.07 0 .009-.06-.182-.182-.33-.19-.789-.286-1.378-.286-.52 0-1.014.121-1.482.364-.364.156-.737.425-1.118.806a5.29 5.29 0 0 0-1.092 1.612c-.277.624-.555 1.517-.832 2.678-.19.814-.286 1.465-.286 1.95 0 .797.225 1.395.676 1.794.399.416.936.624 1.612.624.26 0 .529-.018.806-.052 1.63-.243 2.964-.962 4.004-2.158.156-.174.26-.26.312-.26Z\"\n />\n </svg>\n );\n case \"d\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M26.634 10.112c.26-.017.555-.035.884-.052.33-.035.572-.06.728-.078.173-.017.269-.026.286-.026.208 0 .312.07.312.208 0 .121-.641 2.747-1.924 7.878a2094.732 2094.732 0 0 0-1.924 7.8 2.156 2.156 0 0 0-.026.39c0 .728.243 1.092.728 1.092.156-.017.33-.095.52-.234.364-.347.72-1.179 1.066-2.496.104-.347.19-.529.26-.546.035-.017.121-.026.26-.026h.104c.33 0 .494.07.494.208 0 .07-.026.208-.078.416-.381 1.456-.85 2.461-1.404 3.016a2.572 2.572 0 0 1-.832.546 2.776 2.776 0 0 1-.624.052c-1.092 0-1.855-.425-2.288-1.274-.087-.225-.13-.33-.13-.312-.017-.017-.052-.009-.104.026l-.104.104c-.832.78-1.655 1.257-2.47 1.43-.104.017-.32.026-.65.026-1.144 0-2.089-.477-2.834-1.43-.52-.763-.78-1.733-.78-2.912 0-1.612.59-3.207 1.768-4.784 1.075-1.317 2.27-2.14 3.588-2.47a3.87 3.87 0 0 1 1.066-.156c.953 0 1.681.364 2.184 1.092.087.104.13.139.13.104l.702-2.834c.468-1.837.71-2.8.728-2.886 0-.208-.052-.347-.156-.416-.19-.07-.537-.113-1.04-.13h-.546a1.192 1.192 0 0 1-.182-.208c0-.035.026-.2.078-.494.087-.33.2-.494.338-.494a17.914 17.914 0 0 1 .962-.078l.91-.052Zm-2.236 9.412c-.381-1.37-1.031-2.054-1.95-2.054-.693 0-1.309.295-1.846.884a6.274 6.274 0 0 0-1.196 2.028 20.753 20.753 0 0 0-1.066 4.264c0 .052-.009.147-.026.286v.312c0 .624.13 1.127.39 1.508.277.381.676.572 1.196.572.919 0 1.88-.624 2.886-1.872l.208-.286.702-2.808c.312-1.265.546-2.21.702-2.834Z\"\n />\n </svg>\n );\n case \"e\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M26.5 24.854c.07 0 .182.087.338.26.174.156.26.268.26.338 0 .156-.268.476-.806.962-1.421 1.248-3.094 1.872-5.018 1.872-.953 0-1.76-.234-2.418-.702-.381-.208-.728-.546-1.04-1.014-.572-.867-.858-1.846-.858-2.938 0-.659.07-1.309.208-1.95.364-1.352 1.11-2.505 2.236-3.458 1.144-.954 2.514-1.517 4.108-1.69.018-.017.156-.026.416-.026h.078c.728 0 1.344.165 1.846.494.52.312.858.745 1.014 1.3.018.07.026.225.026.468 0 .312-.017.529-.052.65-.364 1.23-1.308 2.036-2.834 2.418-.85.225-2.01.346-3.484.364-.641 0-.97.017-.988.052 0 .017-.017.13-.052.338-.19.85-.286 1.543-.286 2.08 0 .814.182 1.465.546 1.95.364.468.91.702 1.638.702 1.942 0 3.545-.737 4.81-2.21.156-.174.26-.26.312-.26Zm-.858-6.032c-.104-.901-.693-1.352-1.768-1.352-.606 0-1.23.173-1.872.52-.85.503-1.482 1.291-1.898 2.366-.19.52-.286.806-.286.858 0 .017.174.026.52.026.572 0 1.1-.017 1.586-.052 1.023-.087 1.786-.234 2.288-.442a2.776 2.776 0 0 0 1.248-1.04c.122-.26.182-.555.182-.884Z\"\n />\n </svg>\n );\n case \"f\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M18.695 32.212c.468.104.72.156.754.156.399 0 .745-.364 1.04-1.092.208-.572.84-3.657 1.898-9.256.485-2.617.737-3.935.754-3.952v-.078h-1.222c-.815 0-1.248-.017-1.3-.052-.121-.07-.139-.26-.052-.572.07-.26.113-.399.13-.416.035-.087.104-.13.208-.13.121-.017.529-.026 1.222-.026.832 0 1.248-.009 1.248-.026 0-.035.078-.468.234-1.3.156-.832.26-1.335.312-1.508.364-1.647.91-2.79 1.638-3.432.693-.572 1.413-.858 2.158-.858.624.035 1.144.225 1.56.572.433.347.65.806.65 1.378 0 .503-.156.927-.468 1.274-.312.347-.702.52-1.17.52-.763 0-1.144-.364-1.144-1.092 0-.641.303-1.11.91-1.404l.234-.13c-.312-.104-.572-.156-.78-.156-.503 0-.832.33-.988.988-.139.52-.364 1.655-.676 3.406l-.338 1.716c0 .035.477.052 1.43.052.78 0 1.248.009 1.404.026.156.017.234.078.234.182 0 .19-.06.468-.182.832-.035.087-.121.139-.26.156h-2.834l-.598 3.172c-.641 3.31-1.04 5.313-1.196 6.006-.59 2.617-1.378 4.394-2.366 5.33-.641.555-1.274.832-1.898.832-.624 0-1.144-.173-1.56-.52-.416-.347-.624-.806-.624-1.378 0-.52.156-.962.468-1.326.312-.347.702-.52 1.17-.52.763 0 1.144.364 1.144 1.092 0 .641-.303 1.11-.91 1.404l-.234.13Z\"\n />\n </svg>\n );\n case \"g\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M17.729 29.846c.312 0 .572.095.78.286.208.19.312.442.312.754 0 .468-.174.867-.52 1.196-.122.121-.165.182-.13.182.173.052.693.078 1.56.078.658 0 1.178-.104 1.56-.312.398-.19.771-.486 1.118-.884.346-.381.589-.78.728-1.196.104-.33.242-.867.416-1.612.225-.832.338-1.318.338-1.456a5.177 5.177 0 0 1-2.08 1.066 3.946 3.946 0 0 1-.65.052c-1.127 0-2.02-.39-2.678-1.17-.642-.797-.962-1.794-.962-2.99 0-1.092.251-2.14.754-3.146.797-1.664 1.941-2.869 3.432-3.614.797-.381 1.551-.572 2.262-.572.797 0 1.551.416 2.262 1.248a.854.854 0 0 0 .104-.13c.242-.399.606-.598 1.092-.598a.93.93 0 0 1 .598.208.64.64 0 0 1 .26.52c0 .26-.494 2.357-1.482 6.292-.988 3.935-1.508 5.945-1.56 6.032-.33.936-1.014 1.707-2.054 2.314-1.023.624-2.176.936-3.458.936-1.994 0-3.172-.381-3.536-1.144-.087-.156-.13-.364-.13-.624 0-.45.156-.85.468-1.196.312-.347.71-.52 1.196-.52Zm8.06-10.374c-.139-.45-.278-.798-.416-1.04a1.757 1.757 0 0 0-.598-.65c-.278-.208-.616-.312-1.014-.312a1.1 1.1 0 0 0-.182.026h-.13c-.728.173-1.361.624-1.898 1.352-.486.641-.945 1.811-1.378 3.51-.295 1.178-.442 2.045-.442 2.6 0 1.37.537 2.054 1.612 2.054.988 0 1.941-.607 2.86-1.82l.208-.26a459.483 459.483 0 0 0 1.378-5.46Z\"\n />\n </svg>\n );\n case \"h\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M25.274 28.26c-.676 0-1.23-.2-1.664-.598-.433-.416-.65-.945-.65-1.586 0-.277.087-.659.26-1.144.815-2.097 1.335-3.735 1.56-4.914.052-.26.078-.59.078-.988 0-1.023-.425-1.534-1.274-1.534-.312 0-.537.017-.676.052-1.162.243-2.184 1.075-3.068 2.496l-.182.338-.884 3.51c-.555 2.253-.876 3.484-.962 3.692-.226.468-.607.702-1.144.702-.208 0-.416-.07-.624-.208a.56.56 0 0 1-.286-.494c0-.208 1.274-5.408 3.822-15.6 0-.208-.052-.347-.156-.416-.19-.07-.537-.113-1.04-.13h-.546a1.192 1.192 0 0 1-.182-.208c0-.035.026-.2.078-.494.086-.33.2-.494.338-.494.017 0 .641-.043 1.872-.13 1.248-.104 1.88-.156 1.898-.156.208 0 .312.078.312.234 0 .19-.312 1.5-.936 3.926-.659 2.565-.988 3.874-.988 3.926 0 .035.06-.009.182-.13 1.023-.936 2.15-1.404 3.38-1.404.953 0 1.716.234 2.288.702.572.468.858 1.153.858 2.054 0 .399-.026.728-.078.988-.156.884-.633 2.418-1.43 4.602-.312.85-.468 1.465-.468 1.846.017.243.06.407.13.494.07.087.2.13.39.13.485 0 .936-.26 1.352-.78.433-.537.771-1.248 1.014-2.132.052-.19.104-.303.156-.338.052-.035.19-.052.416-.052.33.052.502.121.52.208 0 .017-.035.147-.104.39-.277 1.023-.72 1.863-1.326 2.522-.59.745-1.335 1.118-2.236 1.118Z\"\n />\n </svg>\n );\n case \"i\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M22.302 12.4c0-.399.165-.763.495-1.092.329-.33.71-.494 1.143-.494.313 0 .572.104.78.312.226.208.338.468.338.78 0 .381-.173.745-.52 1.092-.346.347-.727.52-1.143.52-.313 0-.572-.104-.78-.312-.208-.208-.313-.477-.313-.806Zm-.598 15.886c-.675 0-1.221-.2-1.637-.598-.416-.399-.625-.936-.625-1.612 0-.295.018-.494.052-.598 0-.035.4-1.1 1.197-3.198.797-2.115 1.196-3.19 1.196-3.224.086-.277.13-.59.13-.936 0-.416-.148-.624-.442-.624h-.052c-.416 0-.815.2-1.197.598-.554.572-.962 1.387-1.221 2.444a.427.427 0 0 1-.027.104.307.307 0 0 1-.052.078l-.026.026c-.017.017-.052.026-.104.026h-.675c-.105-.104-.157-.182-.157-.234 0-.052.026-.173.078-.364.451-1.49 1.11-2.53 1.977-3.12.468-.364.97-.546 1.508-.546.693 0 1.265.2 1.716.598.45.399.675.936.675 1.612 0 .225-.043.485-.13.78-.017.035-.416 1.1-1.196 3.198l-1.17 3.146c-.086.381-.13.659-.13.832 0 .433.148.65.442.65.243 0 .46-.052.65-.156.763-.364 1.361-1.274 1.794-2.73.053-.208.096-.33.13-.364.052-.035.2-.052.442-.052.156 0 .26.009.313.026.069 0 .12.017.155.052.035.035.052.095.052.182 0 .07-.026.182-.078.338-.329.988-.806 1.846-1.43 2.574-.606.728-1.325 1.092-2.157 1.092Z\"\n />\n </svg>\n );\n case \"j\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M24.365 12.504c0-.45.164-.84.494-1.17.329-.347.719-.52 1.17-.52.294 0 .537.095.728.286.208.173.329.407.364.702 0 .468-.156.875-.468 1.222-.312.33-.702.494-1.17.494-.312 0-.572-.087-.78-.26a1.059 1.059 0 0 1-.338-.754Zm-.234 5.72c0-.503-.226-.754-.676-.754-.191 0-.39.035-.598.104-.468.156-.928.485-1.378.988-.434.503-.798 1.118-1.092 1.846a1.45 1.45 0 0 1-.078.182.454.454 0 0 0-.052.13l-.078.026a.492.492 0 0 1-.156.026h-.598c-.14-.139-.156-.32-.052-.546.52-1.248 1.196-2.201 2.028-2.86.589-.468 1.187-.745 1.794-.832h.208c.12-.017.225-.026.312-.026.416.017.797.104 1.144.26.45.277.78.572.988.884.225.295.338.728.338 1.3v.416l-1.274 5.174c-.884 3.467-1.352 5.27-1.404 5.408-.278.745-.754 1.404-1.43 1.976a5.47 5.47 0 0 1-2.21 1.222 5.448 5.448 0 0 1-1.274.156c-.676 0-1.222-.147-1.638-.442-.416-.295-.624-.728-.624-1.3 0-.485.173-.893.52-1.222.346-.33.736-.494 1.17-.494.329 0 .589.095.78.286.208.19.312.45.312.78 0 .624-.278 1.1-.832 1.43.086.017.208.026.364.026.589 0 1.126-.251 1.612-.754a4.877 4.877 0 0 0 1.118-1.69l.286-1.092c.19-.745.416-1.647.676-2.704.277-1.075.554-2.158.832-3.25.277-1.092.51-2.054.702-2.886.19-.85.286-1.343.286-1.482 0-.121-.01-.217-.026-.286Z\"\n />\n </svg>\n );\n case \"k\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M18.783 10.242c.017 0 .641-.043 1.872-.13 1.248-.104 1.88-.156 1.898-.156.208 0 .312.07.312.208 0 .121-.434 1.933-1.3 5.434-.867 3.432-1.3 5.209-1.3 5.33.33-.208.598-.381.806-.52.208-.156.372-.286.494-.39.121-.121.416-.407.884-.858 1.04-1.04 1.768-1.69 2.184-1.95.693-.468 1.352-.702 1.976-.702.52 0 .927.173 1.222.52.312.347.468.806.468 1.378 0 .624-.148 1.135-.442 1.534-.295.381-.71.572-1.248.572a1.24 1.24 0 0 1-.832-.286c-.208-.19-.312-.442-.312-.754 0-.433.147-.797.442-1.092a1.703 1.703 0 0 1 1.04-.546l.182-.052c-.208-.208-.416-.312-.624-.312-.59 0-1.283.295-2.08.884-.33.26-.832.728-1.508 1.404a29.066 29.066 0 0 1-1.768 1.612c.814.19 1.37.338 1.664.442.832.33 1.386.78 1.664 1.352.156.312.234.65.234 1.014 0 .225-.052.598-.156 1.118-.087.52-.13.85-.13.988 0 .693.234 1.04.702 1.04.312 0 .598-.13.858-.39.433-.433.823-1.335 1.17-2.704.034-.139.208-.208.52-.208.242 0 .381.017.416.052.104.07.112.251.026.546-.468 1.577-1.066 2.643-1.794 3.198-.434.312-.858.468-1.274.468-.798 0-1.439-.234-1.924-.702-.468-.485-.702-1.127-.702-1.924a5.2 5.2 0 0 1 .078-.728c.052-.33.078-.563.078-.702 0-.225-.052-.442-.156-.65-.226-.433-.65-.771-1.274-1.014-.572-.19-.97-.286-1.196-.286H19.9c-.226.85-.442 1.673-.65 2.47a99.07 99.07 0 0 1-.442 1.794 9.4 9.4 0 0 1-.234.91 1.231 1.231 0 0 1-.468.572c-.226.173-.468.26-.728.26-.208 0-.416-.07-.624-.208a.56.56 0 0 1-.286-.494c0-.173.32-1.56.962-4.16.641-2.6 1.274-5.157 1.898-7.67l.962-3.77c.034-.243-.026-.39-.182-.442-.139-.07-.382-.104-.728-.104h-.286c-.364 0-.572-.026-.624-.078-.104-.087-.113-.295-.026-.624.07-.243.13-.381.182-.416.052-.052.104-.078.156-.078Z\"\n />\n </svg>\n );\n case \"l\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M21.69 28.286c-.78 0-1.404-.217-1.872-.65-.468-.45-.702-1.066-.702-1.846 0-.208.009-.355.026-.442l3.328-13.364a.24.24 0 0 0 0-.156.426.426 0 0 1-.026-.13c0-.035-.017-.06-.052-.078a.408.408 0 0 0-.104-.078c-.017-.017-.052-.026-.104-.026a.426.426 0 0 0-.13-.026.445.445 0 0 0-.182-.026.761.761 0 0 0-.182-.026h-.39c-.416 0-.659-.06-.728-.182-.017-.052 0-.2.052-.442.087-.33.165-.511.234-.546.052-.017.693-.07 1.924-.156a121.23 121.23 0 0 1 1.95-.156c.208 0 .312.07.312.208 0 .19-.633 2.79-1.898 7.8s-1.915 7.635-1.95 7.878c0 .035-.009.113-.026.234v.234c0 .503.121.823.364.962a.72.72 0 0 0 .312.052.986.986 0 0 0 .312-.078c.485-.277.919-1.161 1.3-2.652.104-.347.19-.529.26-.546.035-.017.121-.026.26-.026h.104c.312.087.477.165.494.234 0 .121-.07.425-.208.91-.139.468-.269.84-.39 1.118-.485 1.127-1.11 1.777-1.872 1.95a2.243 2.243 0 0 1-.416.052Z\"\n />\n </svg>\n );\n case \"m\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M13.395 28.286a.968.968 0 0 1-.624-.208.597.597 0 0 1-.26-.52c0-.226.33-1.647.988-4.264.676-2.67 1.014-4.065 1.014-4.186.052-.26.078-.494.078-.702 0-.624-.217-.936-.65-.936-.156 0-.33.06-.52.182-.416.33-.832 1.291-1.248 2.886a.427.427 0 0 1-.026.104.301.301 0 0 1-.052.078l-.026.026c-.018.017-.052.026-.104.026h-.676c-.104-.104-.156-.182-.156-.234 0-.226.121-.659.364-1.3.347-1.005.728-1.707 1.144-2.106.416-.416.875-.624 1.378-.624 1.092 0 1.854.39 2.288 1.17.19.33.286.572.286.728 0 .035.009.052.026.052l.286-.286c1.057-1.11 2.28-1.664 3.666-1.664 1.681 0 2.695.71 3.042 2.132l.026.078.208-.26c.641-.763 1.386-1.317 2.236-1.664a4.865 4.865 0 0 1 1.638-.286c.953 0 1.716.234 2.288.702.572.468.858 1.152.858 2.054 0 .399-.026.728-.078.988-.156.884-.633 2.418-1.43 4.602-.312.832-.468 1.447-.468 1.846.017.242.06.407.13.494.07.087.2.13.39.13.485 0 .936-.26 1.352-.78.433-.538.771-1.248 1.014-2.132.052-.19.104-.303.156-.338.052-.035.19-.052.416-.052.33.052.503.121.52.208 0 .017-.035.147-.104.39-.45 1.612-1.265 2.747-2.444 3.406-.312.156-.685.234-1.118.234-.659 0-1.222-.208-1.69-.624-.416-.485-.624-.997-.624-1.534 0-.33.121-.815.364-1.456.762-2.028 1.248-3.57 1.456-4.628.052-.26.078-.59.078-.988 0-1.023-.425-1.534-1.274-1.534-.312 0-.538.017-.676.052-1.213.26-2.245 1.118-3.094 2.574l-.182.312-.858 3.484c-.572 2.27-.901 3.492-.988 3.666-.226.468-.598.702-1.118.702-.416 0-.694-.174-.832-.52l-.026-.078a.398.398 0 0 1-.052-.156c0-.19.294-1.43.884-3.718.138-.555.277-1.127.416-1.716.156-.607.277-1.092.364-1.456.104-.381.156-.59.156-.624.052-.26.078-.59.078-.988 0-1.023-.425-1.534-1.274-1.534-.312 0-.538.017-.676.052-1.213.26-2.245 1.118-3.094 2.574l-.182.312-.858 3.484c-.572 2.27-.901 3.492-.988 3.666-.226.468-.598.702-1.118.702Z\"\n />\n </svg>\n );\n case \"n\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M17.013 28.286a.968.968 0 0 1-.624-.208.596.596 0 0 1-.26-.52c0-.226.33-1.638.988-4.238.659-2.6 1.005-4.013 1.04-4.238a4.07 4.07 0 0 0 .026-.598c0-.676-.208-1.014-.624-1.014-.399 0-.763.32-1.092.962-.19.364-.373.91-.546 1.638a8.959 8.959 0 0 0-.156.546c-.035.104-.2.156-.494.156h-.364c-.104-.104-.156-.182-.156-.234 0-.07.043-.252.13-.546.52-2.046 1.317-3.19 2.392-3.432.139-.035.286-.052.442-.052 1.023 0 1.76.39 2.21 1.17.19.33.286.572.286.728 0 .035.009.052.026.052l.286-.286c1.075-1.11 2.28-1.664 3.614-1.664.953 0 1.716.234 2.288.702.572.468.858 1.152.858 2.054 0 .399-.026.728-.078.988-.173.988-.65 2.505-1.43 4.55-.312.832-.468 1.447-.468 1.846 0 .45.147.676.442.676.59 0 1.092-.312 1.508-.936a7.04 7.04 0 0 0 .988-2.158c.035-.139.208-.208.52-.208.33.052.503.121.52.208 0 .017-.035.147-.104.39-.45 1.612-1.265 2.747-2.444 3.406-.312.156-.685.234-1.118.234-.659 0-1.222-.208-1.69-.624-.416-.485-.624-.997-.624-1.534 0-.33.121-.815.364-1.456.763-2.028 1.248-3.57 1.456-4.628.052-.26.078-.59.078-.988 0-1.023-.425-1.534-1.274-1.534-.312 0-.537.017-.676.052-1.213.26-2.245 1.118-3.094 2.574l-.182.312-.858 3.484c-.572 2.27-.901 3.492-.988 3.666-.225.468-.598.702-1.118.702Z\"\n />\n </svg>\n );\n case \"o\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M23.152 16.534h.364c.555 0 .902.009 1.04.026 1.092.19 1.95.676 2.575 1.456.623.78.936 1.786.936 3.016 0 1.023-.27 2.046-.806 3.068a7.88 7.88 0 0 1-2.756 3.042c-1.18.763-2.375 1.144-3.588 1.144-1.214 0-2.193-.347-2.939-1.04-.745-.693-1.204-1.603-1.378-2.73a4.113 4.113 0 0 1-.026-.572c0-.45.026-.814.078-1.092.156-.884.494-1.742 1.014-2.574a8.9 8.9 0 0 1 1.82-2.158c1.18-.919 2.401-1.447 3.666-1.586Zm-4.316 8.346c0 .745.2 1.344.599 1.794.416.434.953.65 1.612.65.311 0 .623-.052.936-.156 1.265-.416 2.21-1.37 2.834-2.86.38-.936.693-2.106.936-3.51.017-.104.026-.372.026-.806 0-1.681-.711-2.522-2.133-2.522-1.091 0-2.053.503-2.886 1.508-.572.694-1.04 1.699-1.404 3.016-.346 1.265-.52 2.227-.52 2.886Z\"\n />\n </svg>\n );\n case \"p\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M16.216 20.772c-.104-.104-.156-.182-.156-.234 0-.139.113-.546.338-1.222.33-1.005.72-1.733 1.17-2.184.416-.416.875-.624 1.378-.624 1.3 0 2.132.555 2.496 1.664l.26-.234c.78-.728 1.586-1.188 2.418-1.378.208-.035.425-.052.65-.052.225 0 .442.017.65.052.901.208 1.62.676 2.158 1.404.537.71.806 1.62.806 2.73 0 .815-.165 1.698-.494 2.652a8.628 8.628 0 0 1-1.924 3.016c-.85.85-1.777 1.43-2.782 1.742a4.732 4.732 0 0 1-1.248.156 3.04 3.04 0 0 1-1.014-.156 2.818 2.818 0 0 1-1.144-.91l-.13-.13c-.017.017-.208.771-.572 2.262-.364 1.49-.546 2.244-.546 2.262v.078c.017.035.035.06.052.078a.2.2 0 0 0 .078.026c.035.017.07.026.104.026a.429.429 0 0 0 .13.026h.182c.07.017.13.026.182.026h1.092c.087.121.13.2.13.234.017.035 0 .19-.052.468-.052.208-.104.338-.156.39-.052.07-.165.104-.338.104-.277 0-.737-.009-1.378-.026a55.471 55.471 0 0 0-1.404-.026c-1.213 0-1.985.017-2.314.052h-.208c-.121-.121-.182-.217-.182-.286 0-.07.035-.217.104-.442.052-.226.095-.356.13-.39l.104-.078h.52c.59-.017.927-.121 1.014-.312.052-.104.58-2.176 1.586-6.214 1.023-4.039 1.551-6.18 1.586-6.422.017-.087.026-.208.026-.364 0-.71-.217-1.066-.65-1.066a.761.761 0 0 0-.52.182c-.416.33-.832 1.291-1.248 2.886a.427.427 0 0 1-.026.104.301.301 0 0 1-.052.078l-.026.026c-.017.017-.052.026-.104.026h-.676Zm9.932-1.222c0-1.387-.529-2.08-1.586-2.08a1.1 1.1 0 0 0-.182.026h-.13c-.901.19-1.75.815-2.548 1.872a1.523 1.523 0 0 0-.13.156l-.078.104c0 .017-.035.147-.104.39a38.14 38.14 0 0 1-.286 1.118c-.121.52-.234.97-.338 1.352-.45 1.837-.676 2.79-.676 2.86.121.416.234.72.338.91.381.71.91 1.066 1.586 1.066.555 0 1.066-.19 1.534-.572.468-.399.858-.91 1.17-1.534.312-.59.633-1.56.962-2.912.312-1.248.468-2.167.468-2.756Z\"\n />\n </svg>\n );\n case \"q\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M23.01 32.992h-1.43c-.59.017-1.022.026-1.3.026-.26 0-.39-.07-.39-.208 0-.035.009-.096.026-.182a.601.601 0 0 0 .052-.208c.07-.278.13-.442.182-.494.07-.052.243-.078.52-.078.832 0 1.335-.06 1.508-.182.104-.07.347-.858.728-2.366.347-1.404.529-2.115.546-2.132 0-.017-.06.009-.182.078a5.075 5.075 0 0 1-1.95.988c-.104.017-.32.026-.65.026-1.144 0-2.089-.477-2.834-1.43-.52-.763-.78-1.733-.78-2.912 0-.277.009-.468.026-.572a7.916 7.916 0 0 1 1.066-3.172c.607-1.023 1.326-1.846 2.158-2.47 1.005-.78 2.063-1.17 3.172-1.17.988 0 1.785.45 2.392 1.352.416-.416.694-.668.832-.754.59-.416.988-.624 1.196-.624.174 0 .26.07.26.208 0 .156-.598 2.626-1.794 7.41-1.23 4.922-1.846 7.418-1.846 7.488 0 .139.295.216.884.234h.936c.087.121.13.19.13.208.017.035 0 .2-.052.494-.07.225-.156.39-.26.494h-.338c-.537-.035-1.473-.052-2.808-.052Zm2.34-13.468c-.381-1.37-1.031-2.054-1.95-2.054-.693 0-1.308.295-1.846.884a6.274 6.274 0 0 0-1.196 2.028 20.755 20.755 0 0 0-1.066 4.264c0 .052-.009.147-.026.286v.312c0 .624.13 1.127.39 1.508.277.381.676.572 1.196.572.919 0 1.88-.624 2.886-1.872l.208-.286.702-2.808c.312-1.265.546-2.21.702-2.834Z\"\n />\n </svg>\n );\n case \"r\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M18.943 28.286a.968.968 0 0 1-.624-.208.596.596 0 0 1-.26-.52c0-.226.346-1.716 1.04-4.472.693-2.756 1.04-4.29 1.04-4.602 0-.676-.226-1.014-.676-1.014a.72.72 0 0 0-.494.182c-.416.33-.832 1.291-1.248 2.886a.427.427 0 0 1-.026.104.304.304 0 0 1-.052.078l-.026.026c-.018.017-.052.026-.104.026h-.676c-.104-.104-.156-.182-.156-.234 0-.139.112-.546.338-1.222.329-1.005.719-1.733 1.17-2.184.416-.416.875-.624 1.378-.624.676 0 1.23.165 1.664.494.381.295.632.598.754.91a.64.64 0 0 0 .078.182c.017 0 .086-.07.208-.208.641-.71 1.378-1.153 2.21-1.326.104-.017.329-.026.676-.026.641 0 1.161.182 1.56.546.398.364.598.858.598 1.482 0 .554-.156 1.022-.468 1.404-.295.364-.694.546-1.196.546-.33 0-.607-.096-.832-.286-.208-.19-.312-.442-.312-.754 0-.85.485-1.404 1.456-1.664-.382-.226-.694-.338-.936-.338-.364 0-.711.087-1.04.26-.572.277-1.118.832-1.638 1.664a3.45 3.45 0 0 0-.39.858c-.087.295-.382 1.447-.884 3.458-.59 2.427-.928 3.718-1.014 3.874-.226.468-.598.702-1.118.702Z\"\n />\n </svg>\n );\n case \"s\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M18.974 23.84c.33 0 .59.095.78.286.208.19.312.442.312.754 0 .294-.086.58-.26.858a1.505 1.505 0 0 1-.65.624 3.46 3.46 0 0 1-.364.13l-.104.052c-.017 0-.017.008 0 .026.052.087.208.2.468.338.503.26 1.162.39 1.976.39 1.317 0 2.245-.425 2.782-1.274.26-.434.39-.832.39-1.196 0-.555-.286-.97-.858-1.248-.156-.104-.59-.225-1.3-.364a28.175 28.175 0 0 0-.416-.078 1.515 1.515 0 0 0-.364-.078 7.27 7.27 0 0 0-.26-.078 3.629 3.629 0 0 0-.26-.078 1.156 1.156 0 0 0-.208-.104 5.875 5.875 0 0 0-.26-.182c-.71-.503-1.066-1.213-1.066-2.132 0-.97.355-1.846 1.066-2.626.797-.901 1.907-1.352 3.328-1.352 1.681 0 2.695.59 3.042 1.768.035.087.052.251.052.494 0 .485-.13.884-.39 1.196-.26.294-.607.442-1.04.442-.277 0-.503-.078-.676-.234-.173-.156-.26-.373-.26-.65 0-.572.26-.988.78-1.248.139-.07.217-.104.234-.104.052 0 .043-.044-.026-.13-.416-.382-1.014-.572-1.794-.572-.676 0-1.248.19-1.716.572a1.823 1.823 0 0 0-.702 1.482c0 .312.13.59.39.832.173.156.615.312 1.326.468.798.173 1.318.32 1.56.442.815.364 1.36.97 1.638 1.82.035.104.06.33.078.676 0 .59-.147 1.204-.442 1.846-.85 1.768-2.444 2.652-4.784 2.652-1.854 0-3.024-.538-3.51-1.612a2.13 2.13 0 0 1-.182-.91c0-.537.156-.988.468-1.352.33-.364.737-.546 1.222-.546Z\"\n />\n </svg>\n );\n case \"t\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M17.979 17.99c-.122-.121-.182-.208-.182-.26 0-.07.026-.208.078-.416.069-.225.112-.346.13-.364.034-.087.112-.13.234-.13.138-.017.58-.026 1.326-.026h1.378l.494-2.08c.364-1.404.572-2.158.624-2.262.208-.485.606-.728 1.196-.728a.945.945 0 0 1 .572.234c.173.139.26.32.26.546 0 .208-.165.945-.494 2.21-.07.295-.156.624-.26.988-.087.347-.156.607-.208.78l-.052.26c0 .035.433.052 1.3.052H25.7c.121.122.182.217.182.286 0 .382-.113.685-.338.91h-2.782l-.936 3.77c-.642 2.583-.971 3.943-.988 4.082a2.157 2.157 0 0 0-.026.39c0 .728.234 1.092.702 1.092.121 0 .225-.009.312-.026.866-.156 1.655-.85 2.366-2.08a5.56 5.56 0 0 0 .468-.962c.034-.104.078-.165.13-.182.052-.035.182-.052.39-.052.346 0 .52.07.52.208 0 .035-.035.139-.104.312-.191.555-.503 1.118-.936 1.69-.416.555-.841.997-1.274 1.326-.642.486-1.326.728-2.054.728-.624 0-1.162-.156-1.612-.468a2.445 2.445 0 0 1-.884-1.274c-.035-.139-.052-.372-.052-.702v-.468l.91-3.64c.606-2.444.918-3.675.936-3.692 0-.035-.442-.052-1.326-.052h-1.326Z\"\n />\n </svg>\n );\n case \"u\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M26.598 16.794a.87.87 0 0 1 .598.208c.174.121.26.303.26.546l-1.976 8.268a2.36 2.36 0 0 0-.026.416c0 .728.243 1.092.728 1.092.4-.052.737-.382 1.014-.988.191-.399.416-1.1.676-2.106.035-.139.208-.208.52-.208.156 0 .26.009.312.026.052 0 .096.017.13.052.035.034.052.086.052.156 0 .052-.026.182-.078.39-.52 2.045-1.265 3.232-2.236 3.562a2.77 2.77 0 0 1-.624.052c-1.144 0-1.932-.486-2.366-1.456a4.683 4.683 0 0 0-.312.286c-.866.797-1.75 1.196-2.652 1.196-.762 0-1.438-.156-2.028-.468-.71-.416-1.152-1.066-1.326-1.95a7.492 7.492 0 0 1-.026-.806c0-.416.018-.737.052-.962.122-.745.52-2.02 1.196-3.822.382-1.023.572-1.733.572-2.132 0-.243-.026-.408-.078-.494-.034-.104-.13-.156-.286-.156h-.13c-.398 0-.78.182-1.144.546-.554.554-.979 1.386-1.274 2.496a.423.423 0 0 1-.026.104.299.299 0 0 1-.052.078l-.026.026c-.017.017-.052.026-.104.026h-.676c-.104-.104-.156-.182-.156-.234 0-.052.026-.174.078-.364.347-1.196.884-2.14 1.612-2.834.607-.555 1.231-.832 1.872-.832.728 0 1.31.208 1.742.624.434.398.65.918.65 1.56 0 .346-.156.927-.468 1.742-.71 1.906-1.135 3.32-1.274 4.238a5.18 5.18 0 0 0-.026.598c0 .659.104 1.161.312 1.508.208.347.59.52 1.144.52.728 0 1.387-.312 1.976-.936.347-.347.564-.624.65-.832.035-.07.364-1.387.988-3.952.52-2.08.832-3.293.936-3.64.104-.364.226-.615.364-.754.295-.26.607-.39.936-.39Z\"\n />\n </svg>\n );\n case \"v\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M21.956 28.286c-1.109 0-1.993-.277-2.652-.832-.641-.572-.962-1.404-.962-2.496 0-.312.018-.607.052-.884.156-.832.564-2.106 1.222-3.822l.416-1.248a2.8 2.8 0 0 0 .156-.884c0-.433-.164-.65-.494-.65-.121 0-.26.026-.416.078-.884.312-1.551 1.309-2.002 2.99a.422.422 0 0 1-.026.104.299.299 0 0 1-.052.078l-.026.026c-.017.017-.052.026-.104.026h-.676c-.104-.104-.156-.182-.156-.234 0-.052.026-.182.078-.39.416-1.37 1.058-2.392 1.924-3.068a2.554 2.554 0 0 1 1.612-.546c.676 0 1.231.19 1.664.572.434.381.65.884.65 1.508 0 .295-.026.52-.078.676 0 .121-.13.503-.39 1.144-.797 2.167-1.222 3.71-1.274 4.628 0 .468.044.85.13 1.144.226.745.772 1.118 1.638 1.118.468 0 .884-.139 1.248-.416 1.075-.71 1.968-2.349 2.678-4.914.139-.485.208-.884.208-1.196 0-.763-.338-1.447-1.014-2.054-.225-.208-.338-.442-.338-.702 0-.399.156-.754.468-1.066.33-.33.694-.494 1.092-.494.416 0 .737.2.962.598.226.381.338.84.338 1.378 0 .607-.173 1.603-.52 2.99-.329 1.335-.745 2.496-1.248 3.484-1.092 2.236-2.461 3.354-4.108 3.354Z\"\n />\n </svg>\n );\n case \"w\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M24.368 16.794c.243 0 .45.07.624.208.174.121.26.303.26.546 0 .225-.26 1.335-.78 3.328-.502 1.993-.771 3.137-.806 3.432-.034.19-.052.494-.052.91 0 .503.044.884.13 1.144.104.243.286.46.546.65a1.88 1.88 0 0 0 1.066.312c1.23 0 2.21-1.057 2.938-3.172.399-1.04.668-1.993.806-2.86.018-.087.026-.217.026-.39 0-.867-.312-1.56-.936-2.08-.277-.225-.416-.503-.416-.832 0-.399.165-.745.494-1.04.33-.312.694-.468 1.092-.468a.2.2 0 0 1 .078.026h.104c.728.19 1.092.832 1.092 1.924 0 .555-.164 1.551-.494 2.99-.346 1.317-.676 2.383-.988 3.198-.85 2.15-1.993 3.363-3.432 3.64a3.324 3.324 0 0 1-.494.026c-.78 0-1.464-.13-2.054-.39-.59-.277-1.005-.659-1.248-1.144-.381.503-.771.884-1.17 1.144-.381.26-.884.39-1.508.39-1.161 0-2.097-.277-2.808-.832-.693-.555-1.04-1.378-1.04-2.47 0-.468.018-.78.052-.936.104-.693.494-1.95 1.17-3.77.382-1.023.572-1.733.572-2.132 0-.243-.026-.407-.078-.494-.034-.104-.13-.156-.286-.156h-.13c-.398 0-.78.182-1.144.546-.554.555-.98 1.387-1.274 2.496a.422.422 0 0 1-.026.104.299.299 0 0 1-.052.078l-.026.026c-.017.017-.052.026-.104.026h-.676c-.104-.104-.156-.182-.156-.234 0-.052.026-.173.078-.364.174-.52.338-.936.494-1.248.642-1.3 1.465-2.08 2.47-2.34.104-.035.304-.052.598-.052.71 0 1.274.208 1.69.624.416.399.624.91.624 1.534 0 .347-.156.927-.468 1.742-.762 2.045-1.178 3.493-1.248 4.342v.338c0 .693.165 1.24.494 1.638.33.381.806.572 1.43.572.746 0 1.404-.529 1.976-1.586l.13-.234v-.598c.035-.503.06-.797.078-.884a170.904 170.904 0 0 1 1.144-4.706c.278-1.092.45-1.699.52-1.82.226-.468.598-.702 1.118-.702Z\"\n />\n </svg>\n );\n case \"x\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M16.069 20.772c-.104-.104-.156-.2-.156-.286.069-.468.337-1.066.805-1.794.815-1.23 1.838-1.942 3.069-2.132a4.23 4.23 0 0 1 .546-.052c.606 0 1.16.156 1.664.468.52.312.892.702 1.117 1.17l.416-.546c.642-.728 1.378-1.092 2.21-1.092.711 0 1.283.208 1.716.624a1.9 1.9 0 0 1 .677 1.482c0 .537-.156.988-.468 1.352-.295.364-.694.546-1.197.546-.329 0-.598-.096-.805-.286-.209-.19-.313-.442-.313-.754 0-.798.434-1.344 1.3-1.638 0-.017-.095-.078-.285-.182-.174-.104-.425-.156-.755-.156-.225 0-.39.017-.494.052-.658.277-1.143.85-1.456 1.716-.052.139-.303 1.11-.753 2.912-.451 1.785-.694 2.79-.729 3.016-.052.26-.078.52-.078.78 0 .416.122.745.364.988.243.242.564.364.963.364.727 0 1.386-.304 1.976-.91.589-.624.988-1.309 1.196-2.054.052-.174.104-.269.155-.286.052-.035.191-.052.416-.052.33 0 .494.07.494.208 0 .017-.017.113-.052.286-.294 1.075-.9 2.01-1.82 2.808-.814.641-1.672.962-2.574.962-1.213 0-2.131-.546-2.756-1.638-.502.78-1.143 1.3-1.924 1.56a3.32 3.32 0 0 1-.675.052c-1.006 0-1.716-.356-2.133-1.066a2.013 2.013 0 0 1-.26-1.04c0-.52.156-.962.468-1.326a1.505 1.505 0 0 1 1.196-.546c.746 0 1.119.364 1.119 1.092 0 .641-.304 1.11-.91 1.404a1.256 1.256 0 0 0-.13.078 1.005 1.005 0 0 0-.13.052.2.2 0 0 1-.078.026l-.078.026c0 .052.13.13.39.234.207.087.433.13.675.13.624 0 1.162-.39 1.613-1.17.19-.312.528-1.439 1.014-3.38.104-.399.216-.84.337-1.326.122-.486.209-.858.26-1.118.07-.26.113-.416.13-.468.087-.468.13-.806.13-1.014 0-.416-.112-.745-.337-.988-.226-.243-.538-.364-.936-.364-.78 0-1.456.303-2.029.91a4.835 4.835 0 0 0-1.195 2.054c-.035.156-.078.251-.13.286-.035.017-.174.026-.416.026h-.364Z\"\n />\n </svg>\n );\n case \"y\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M27.639 16.794c.242 0 .45.07.624.208.173.121.26.295.26.52 0 .225-.425 2.045-1.274 5.46-.85 3.415-1.335 5.287-1.456 5.616a6.657 6.657 0 0 1-1.352 2.34 6.756 6.756 0 0 1-2.132 1.716c-.936.45-1.812.676-2.626.676-1.317 0-2.21-.416-2.678-1.248-.174-.243-.26-.59-.26-1.04 0-.59.165-1.049.494-1.378.364-.33.745-.494 1.144-.494.762 0 1.144.364 1.144 1.092 0 .641-.303 1.11-.91 1.404a1.01 1.01 0 0 1-.13.052c-.052.035-.095.06-.13.078a.2.2 0 0 1-.078.026l-.078.026c.052.104.234.217.546.338.277.104.555.156.832.156h.208c.294 0 .52-.017.676-.052.659-.19 1.282-.633 1.872-1.326.59-.694 1.04-1.525 1.352-2.496.19-.572.286-.91.286-1.014 0-.018-.017-.009-.052.026a1.168 1.168 0 0 0-.156.104 3.534 3.534 0 0 1-2.132.702c-.884 0-1.612-.208-2.184-.624-.572-.416-.945-1.014-1.118-1.794a7.464 7.464 0 0 1-.026-.806c0-.416.017-.737.052-.962.121-.745.52-2.02 1.196-3.822.381-1.023.572-1.733.572-2.132 0-.243-.026-.408-.078-.494-.035-.104-.13-.156-.286-.156h-.13c-.399 0-.78.182-1.144.546-.555.554-.98 1.386-1.274 2.496a.427.427 0 0 1-.026.104.304.304 0 0 1-.052.078l-.026.026c-.018.017-.052.026-.104.026h-.676c-.104-.104-.156-.182-.156-.234 0-.052.026-.174.078-.364.364-1.213.91-2.158 1.638-2.834.59-.555 1.204-.832 1.846-.832.728 0 1.309.2 1.742.598.433.398.65.953.65 1.664-.035.33-.06.511-.078.546 0 .104-.13.477-.39 1.118-.71 1.924-1.136 3.336-1.274 4.238a5.157 5.157 0 0 0-.026.598c0 .659.104 1.161.312 1.508.208.347.59.52 1.144.52.398 0 .771-.104 1.118-.312.364-.208.633-.408.806-.598.19-.208.424-.486.702-.832 0-.018.043-.19.13-.52.086-.347.208-.858.364-1.534l.494-1.924c.659-2.6 1.023-3.96 1.092-4.082.225-.468.598-.702 1.118-.702Z\"\n />\n </svg>\n );\n case \"z\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M17.023 28.286c-.104-.104-.156-.182-.156-.234 0-.07.052-.182.156-.338.277-.52.728-1.153 1.352-1.898.728-.832 1.967-2.046 3.718-3.64 1.335-1.213 2.236-2.063 2.704-2.548.208-.277.269-.416.182-.416-.208 0-.667-.096-1.378-.286-.763-.19-1.309-.286-1.638-.286-.503 0-.927.087-1.274.26-.347.156-.563.364-.65.624-.243.139-.407.216-.494.234-.364 0-.546-.07-.546-.208 0-.087.026-.208.078-.364a4.135 4.135 0 0 1 1.118-1.742c.52-.485 1.092-.78 1.716-.884.208-.035.355-.052.442-.052.26 0 .503.052.728.156.225.104.39.208.494.312.121.087.303.251.546.494.537.52.997.78 1.378.78.156 0 .277-.017.364-.052.295-.139.676-.598 1.144-1.378.121-.19.208-.286.26-.286.052-.017.173-.026.364-.026h.338c.104.104.156.173.156.208 0 .07-.078.242-.234.52a14.514 14.514 0 0 1-1.248 1.69c-.78.919-2.01 2.132-3.692 3.64-1.387 1.23-2.331 2.123-2.834 2.678l-.312.312.39.026c.381 0 .875.078 1.482.234.884.225 1.49.338 1.82.338.693 0 1.309-.165 1.846-.494.555-.347.91-.78 1.066-1.3.07-.156.13-.252.182-.286.052-.035.182-.052.39-.052.347 0 .52.087.52.26 0 .017-.017.095-.052.234a5.683 5.683 0 0 1-1.43 2.418 4.579 4.579 0 0 1-2.392 1.326 2.865 2.865 0 0 1-.442.026c-.295 0-.563-.06-.806-.182-.243-.121-.58-.381-1.014-.78-.364-.364-.633-.59-.806-.676-.139-.087-.33-.13-.572-.13-.763 0-1.447.52-2.054 1.56-.087.139-.277.208-.572.208h-.338Z\"\n />\n </svg>\n );\n case \"A\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M13.342 30c-.121-.122-.182-.217-.182-.286 0-.07.026-.217.078-.442.07-.225.121-.355.156-.39l.104-.078h.364c1.213-.052 2.097-.485 2.652-1.3.104-.104 1.673-2.748 4.706-7.93 3.05-5.2 4.593-7.826 4.628-7.878.087-.156.165-.243.234-.26.087-.035.286-.052.598-.052h.442c.104.156.156.242.156.26l.728 8.398c.485 5.598.745 8.424.78 8.476.087.19.65.286 1.69.286.19 0 .32.009.39.026.087 0 .147.017.182.052.052.034.078.095.078.182 0 .035-.026.156-.078.364-.052.26-.104.424-.156.494-.035.052-.147.078-.338.078-.312 0-.832-.009-1.56-.026a73.87 73.87 0 0 0-1.716-.026c-1.63 0-2.695.017-3.198.052h-.312a1.188 1.188 0 0 1-.182-.208c0-.052.026-.217.078-.494.07-.225.121-.364.156-.416l.104-.078h.52c.936-.035 1.49-.182 1.664-.442l-.312-3.9h-6.188l-.884 1.508c-.624 1.04-.945 1.603-.962 1.69a.877.877 0 0 0-.104.39c0 .433.399.684 1.196.754.33 0 .494.087.494.26 0 .087-.026.208-.078.364-.052.242-.104.398-.156.468-.052.07-.165.104-.338.104-.295 0-.763-.009-1.404-.026a58.722 58.722 0 0 0-1.456-.026c-1.23 0-2.02.017-2.366.052h-.208Zm12.324-6.76c0-.19-.113-1.543-.338-4.056-.208-2.514-.32-3.779-.338-3.796l-.702 1.118c-.277.468-.823 1.395-1.638 2.782l-2.34 3.952 2.678.026c1.785 0 2.678-.009 2.678-.026Z\"\n />\n </svg>\n );\n case \"B\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M19.624 13.672c0-.017-.009-.035-.026-.052-.018-.034-.044-.052-.078-.052l-.104-.052a.363.363 0 0 0-.156-.026.766.766 0 0 0-.182-.026h-.442a.79.79 0 0 0-.234-.026h-.26c-.416 0-.668-.008-.754-.026a.237.237 0 0 1-.182-.156c-.035-.052-.026-.208.026-.468.086-.312.164-.485.234-.52.017-.017 1.144-.026 3.38-.026 4.489 0 6.855.017 7.098.052 1.196.173 2.132.59 2.808 1.248.693.659 1.04 1.43 1.04 2.314a3.5 3.5 0 0 1-.494 1.768c-.382.694-.997 1.326-1.846 1.898a7.429 7.429 0 0 1-2.626 1.118l-.26.078c1.144.156 2.062.555 2.756 1.196.71.641 1.066 1.439 1.066 2.392 0 1.248-.572 2.418-1.716 3.51-1.335 1.283-2.921 2.002-4.758 2.158-.122.017-1.95.026-5.486.026-3.467 0-5.226-.017-5.278-.052a.247.247 0 0 1-.104-.208c0-.121.017-.242.052-.364.086-.33.173-.511.26-.546.069-.017.199-.026.39-.026h.156c.468 0 .988-.026 1.56-.078.242-.052.407-.156.494-.312.052-.07.676-2.479 1.872-7.228 1.196-4.75 1.794-7.254 1.794-7.514Zm9.386 2.184c0-.59-.156-1.092-.468-1.508a2.108 2.108 0 0 0-1.196-.832c-.122-.034-.919-.06-2.392-.078-.347 0-.711.009-1.092.026h-1.248c-.243.018-.399.078-.468.182-.052.07-.347 1.161-.884 3.276-.52 2.115-.789 3.233-.806 3.354h2.106c1.404 0 2.21-.017 2.418-.052a4.935 4.935 0 0 0 2.002-.832c.641-.45 1.135-.988 1.482-1.612.364-.659.546-1.3.546-1.924Zm-1.404 8.19c0-.762-.208-1.395-.624-1.898a2.298 2.298 0 0 0-1.534-.884c-.104-.017-.824-.026-2.158-.026-2.046 0-3.077.009-3.094.026 0 .035-.156.668-.468 1.898-.295 1.23-.59 2.453-.884 3.666l-.468 1.82c0 .07.104.113.312.13.208 0 .91.009 2.106.026 1.542 0 2.374-.008 2.496-.026 1.126-.121 2.123-.624 2.99-1.508.884-.884 1.326-1.959 1.326-3.224Z\"\n />\n </svg>\n );\n case \"C\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M29.633 17.494c0-1.439-.32-2.565-.962-3.38-.624-.832-1.525-1.248-2.704-1.248-.919 0-1.915.217-2.99.65-1.872.797-3.337 2.14-4.394 4.03-.953 1.681-1.551 3.657-1.794 5.928-.017.139-.026.39-.026.754 0 1.976.659 3.397 1.976 4.264.832.59 1.855.884 3.068.884.659 0 1.378-.147 2.158-.442 1.023-.416 1.95-1.1 2.782-2.054.832-.953 1.404-1.993 1.716-3.12.07-.225.121-.355.156-.39.052-.035.19-.052.416-.052.364 0 .546.07.546.208 0 .035-.017.121-.052.26-.416 1.543-1.248 2.93-2.496 4.16s-2.652 2.028-4.212 2.392a7.283 7.283 0 0 1-1.82.234c-1.785 0-3.285-.511-4.498-1.534-1.213-1.023-1.985-2.323-2.314-3.9a7.212 7.212 0 0 1-.182-1.69c0-2.08.65-4.1 1.95-6.058a13.533 13.533 0 0 1 2.886-3.172 11.881 11.881 0 0 1 3.796-2.054c1.023-.312 1.959-.468 2.808-.468.624 0 .988.009 1.092.026 1.04.173 1.915.607 2.626 1.3a8.298 8.298 0 0 1 .468.624c.087.104.139.156.156.156.052 0 .286-.225.702-.676.121-.104.251-.225.39-.364l.416-.416c.139-.156.225-.251.26-.286l.39-.39h.156c.243 0 .364.06.364.182 0 .07-.277 1.257-.832 3.562-.624 2.41-.936 3.623-.936 3.64a.38.38 0 0 1-.13.182c-.052.017-.208.026-.468.026h-.416l-.156-.156c0-.035.017-.19.052-.468.035-.347.052-.728.052-1.144Z\"\n />\n </svg>\n );\n case \"D\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M18.696 13.672c0-.017-.008-.035-.026-.052-.017-.034-.043-.052-.078-.052l-.104-.052a.363.363 0 0 0-.156-.026.765.765 0 0 0-.182-.026h-.442a.79.79 0 0 0-.234-.026h-.26c-.589 0-.91-.06-.962-.182-.017-.052 0-.2.052-.442.087-.33.165-.511.234-.546.035-.017 1.76-.026 5.174-.026 2.895.017 4.516.035 4.862.052.347 0 .694.043 1.04.13 1.37.312 2.462 1.032 3.276 2.158.815 1.127 1.222 2.53 1.222 4.212 0 .867-.104 1.716-.312 2.548-.485 1.959-1.499 3.736-3.042 5.33-1.75 1.803-3.744 2.886-5.98 3.25l-.364.052L17.37 30h-2.886c-1.542 0-2.322-.043-2.34-.13v-.026a.455.455 0 0 1-.052-.13c0-.034.026-.156.078-.364.07-.277.139-.433.208-.468.07-.052.269-.078.598-.078.468 0 .988-.026 1.56-.078.243-.052.408-.156.494-.312.052-.07.676-2.479 1.872-7.228 1.196-4.75 1.794-7.254 1.794-7.514Zm10.816 4.134c0-1.283-.338-2.297-1.014-3.042-.676-.745-1.62-1.178-2.834-1.3H24.52a14.24 14.24 0 0 0-1.69 0h-1.092c-.225.018-.381.095-.468.234-.034.07-.667 2.566-1.898 7.488-1.23 4.923-1.846 7.41-1.846 7.462 0 .07.096.113.286.13h2.002c1.404 0 2.193-.008 2.366-.026 1.647-.26 3.034-.953 4.16-2.08a7.868 7.868 0 0 0 1.534-2.184c.399-.832.772-1.933 1.118-3.302.347-1.37.52-2.496.52-3.38Z\"\n />\n </svg>\n );\n case \"E\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M30.55 18.3c0-.174.026-.52.078-1.04.052-.52.078-.85.078-.988 0-.763-.13-1.343-.39-1.742-.242-.399-.684-.676-1.326-.832-.572-.122-1.898-.182-3.978-.182-1.473.017-2.244.034-2.314.052a.478.478 0 0 0-.26.26 377.68 377.68 0 0 0-.832 3.198c-.52 2.08-.78 3.137-.78 3.172.399.017.815.026 1.248.026h.234c1.127 0 1.933-.07 2.418-.208.503-.156.893-.546 1.17-1.17.104-.19.234-.564.39-1.118a.577.577 0 0 0 .026-.182 1.3 1.3 0 0 0 .026-.156l.052-.104c.018-.035.044-.052.078-.052a.492.492 0 0 1 .156-.026 1.095 1.095 0 0 1 .468 0 .29.29 0 0 1 .13.026c.035.017.052.034.052.052.018 0 .035.026.052.078l.078.078-.858 3.432c-.572 2.305-.884 3.475-.936 3.51-.052.052-.19.078-.416.078-.225 0-.364-.026-.416-.078-.104-.052-.112-.26-.026-.624.122-.45.182-.84.182-1.17 0-.503-.173-.823-.52-.962-.312-.139-1.161-.208-2.548-.208h-1.352c-.104.364-.433 1.655-.988 3.874-.537 2.201-.806 3.32-.806 3.354 0 .07.096.113.286.13.208 0 .902.009 2.08.026 1.63 0 2.704-.017 3.224-.052a6.765 6.765 0 0 0 1.56-.338 4.382 4.382 0 0 0 2.106-1.456c.572-.693 1.188-1.829 1.846-3.406.174-.381.286-.59.338-.624.052-.035.174-.052.364-.052.208 0 .338.017.39.052.104.07.156.165.156.286-1.82 4.402-2.773 6.647-2.86 6.734-.052.035-2.53.052-7.436.052h-6.552c-.624-.017-.944-.06-.962-.13v-.026a.454.454 0 0 1-.052-.13c0-.035.026-.156.078-.364.07-.277.139-.434.208-.468.07-.052.269-.078.598-.078.468 0 .988-.026 1.56-.078.243-.052.408-.156.494-.312.035-.087.65-2.522 1.846-7.306 1.214-4.784 1.82-7.21 1.82-7.28 0-.121-.034-.182-.104-.182-.138-.052-.598-.096-1.378-.13h-.806a1.188 1.188 0 0 1-.182-.208c0-.052.026-.2.078-.442.07-.312.156-.494.26-.546h14.404c.122.121.182.216.182.286 0 .087-.112 1.066-.338 2.938-.225 1.854-.346 2.8-.364 2.834-.034.121-.208.182-.52.182h-.312c-.121-.104-.182-.19-.182-.26Z\"\n />\n </svg>\n );\n case \"F\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M18.456 29.948c-.485 0-1.118.008-1.898.026h-1.664c-.208 0-.338-.044-.39-.13a.454.454 0 0 1-.052-.13c0-.035.026-.156.078-.364.07-.277.14-.434.208-.468.07-.052.27-.078.598-.078.468 0 .988-.026 1.56-.078.243-.052.408-.156.494-.312.035-.087.65-2.522 1.846-7.306 1.214-4.784 1.82-7.21 1.82-7.28 0-.121-.034-.182-.104-.182-.138-.052-.598-.096-1.378-.13h-.806a1.188 1.188 0 0 1-.182-.208c0-.052.026-.2.078-.442.07-.312.156-.494.26-.546h14.014c.122.121.182.216.182.286 0 .087-.112 1.066-.338 2.938-.225 1.854-.346 2.8-.364 2.834-.034.121-.208.182-.52.182h-.312c-.12-.104-.182-.19-.182-.26v-.104a.677.677 0 0 0 .026-.208c.018-.087.026-.174.026-.26.07-.503.104-1.006.104-1.508 0-1.248-.398-2.037-1.196-2.366a3.938 3.938 0 0 0-1.274-.286c-.485-.035-1.473-.052-2.964-.052-1.386.017-2.114.034-2.184.052-.138.052-.225.13-.26.234-.017.017-.312 1.152-.884 3.406l-.832 3.354h1.43c1.04-.018 1.612-.035 1.716-.052.572-.104.988-.286 1.248-.546.364-.312.668-.936.91-1.872a2.488 2.488 0 0 0 .078-.312c0-.035.01-.07.026-.104.018-.052.035-.078.052-.078l.104-.052a.492.492 0 0 1 .156-.026h.52c.122.087.182.173.182.26 0 .052-.277 1.187-.832 3.406-.537 2.218-.823 3.363-.858 3.432-.034.121-.208.182-.52.182h-.312c-.104-.087-.164-.156-.182-.208-.017-.07.01-.226.078-.468.122-.485.182-.901.182-1.248 0-.52-.216-.84-.65-.962-.312-.104-1.04-.156-2.184-.156h-1.43l-.832 3.302c-.554 2.15-.832 3.276-.832 3.38 0 .104.052.173.156.208.208.104.928.156 2.158.156h.65c.104.104.156.182.156.234.018.035 0 .19-.052.468-.069.225-.156.39-.26.494h-.442c-.71-.035-2.019-.052-3.926-.052Z\"\n />\n </svg>\n );\n case \"G\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M20.152 30.572c-2.045 0-3.735-.641-5.07-1.924-1.334-1.3-2.002-3.033-2.002-5.2 0-2.08.65-4.1 1.95-6.058a13.533 13.533 0 0 1 2.886-3.172 11.882 11.882 0 0 1 3.796-2.054c1.023-.312 1.959-.468 2.808-.468.624 0 .988.009 1.092.026 1.04.173 1.916.607 2.626 1.3a8.215 8.215 0 0 1 .468.624c.087.104.139.156.156.156.052 0 .286-.225.702-.676.122-.104.252-.225.39-.364l.416-.416c.139-.156.226-.251.26-.286l.39-.39h.156c.243 0 .364.06.364.182 0 .07-.277 1.257-.832 3.562-.624 2.41-.936 3.623-.936 3.64a.38.38 0 0 1-.13.182c-.052.017-.208.026-.468.026h-.416l-.156-.156c0-.035.018-.19.052-.468.035-.347.052-.728.052-1.144 0-1.439-.32-2.565-.962-3.38-.624-.832-1.525-1.248-2.704-1.248-.918 0-1.915.217-2.99.65-1.733.728-3.12 1.941-4.16 3.64-1.022 1.681-1.69 3.71-2.002 6.084-.034.312-.052.65-.052 1.014 0 .988.174 1.846.52 2.574.815 1.577 2.297 2.427 4.446 2.548h.156c.936 0 1.794-.2 2.574-.598.78-.399 1.318-.91 1.612-1.534.052-.139.182-.615.39-1.43.208-.832.312-1.291.312-1.378 0-.139-.121-.225-.364-.26-.225-.035-.736-.06-1.534-.078h-.962a1.193 1.193 0 0 1-.182-.208c0-.035.026-.2.078-.494.07-.225.156-.39.26-.494h.442c.694.035 1.907.052 3.64.052h1.612a55.257 55.257 0 0 1 1.326-.026c.243 0 .364.07.364.208 0 .052-.017.182-.052.39a1.823 1.823 0 0 0-.052.208.796.796 0 0 1-.052.156c0 .017-.017.052-.052.104a.17.17 0 0 1-.078.078.714.714 0 0 0-.156.026h-.26c-.346 0-.702.026-1.066.078a.468.468 0 0 0-.286.286l-.104.338c-.052.225-.147.59-.286 1.092-.121.485-.234.919-.338 1.3a36.88 36.88 0 0 0-.156.65 76.37 76.37 0 0 0-.13.572 5.985 5.985 0 0 1-.13.442 3.75 3.75 0 0 1-.104.39 2.39 2.39 0 0 1-.078.286 4.933 4.933 0 0 1-.052.234.654.654 0 0 1-.078.156.299.299 0 0 1-.052.078c-.017.017-.043.026-.078.026-.052 0-.104-.026-.156-.078-.156-.087-.372-.277-.65-.572-.26-.312-.433-.555-.52-.728 0-.017-.017-.009-.052.026a1.191 1.191 0 0 0-.156.104c-.572.537-1.326.97-2.262 1.3a8.785 8.785 0 0 1-2.938.494Z\"\n />\n </svg>\n );\n case \"H\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M33.842 12.268c.19 0 .312.018.364.052.052.035.078.104.078.208s-.017.226-.052.364c-.087.295-.173.468-.26.52h-.182a.765.765 0 0 0-.182.026h-.468c-.919.018-1.447.078-1.586.182a.458.458 0 0 0-.182.182c-.052.087-.684 2.548-1.898 7.384-1.196 4.819-1.794 7.254-1.794 7.306 0 .121.035.182.104.182.139.052.607.096 1.404.13h.806c.087.122.13.2.13.234.018.017 0 .174-.052.468-.07.226-.156.39-.26.494h-.39c-.641-.035-1.803-.052-3.484-.052-.433 0-1.022.009-1.768.026h-1.612c-.294 0-.442-.07-.442-.208 0-.017.009-.07.026-.156.018-.104.035-.182.052-.234.087-.33.174-.511.26-.546.07-.017.2-.026.39-.026H23c.468 0 .988-.026 1.56-.078.243-.052.408-.156.494-.312.052-.087.364-1.265.936-3.536.572-2.27.858-3.432.858-3.484 0-.017-1.256-.026-3.77-.026h-3.77l-.858 3.51c-.59 2.323-.884 3.527-.884 3.614 0 .104.026.165.078.182.122.052.598.096 1.43.13h.806c.087.122.13.2.13.234.017.017 0 .174-.052.468-.07.226-.156.39-.26.494h-.39c-.641-.035-1.802-.052-3.484-.052-.433 0-1.022.009-1.768.026h-1.612c-.295 0-.442-.078-.442-.234 0-.034.026-.156.078-.364.087-.33.174-.511.26-.546.07-.017.2-.026.39-.026h.156c.468 0 .988-.026 1.56-.078.243-.052.408-.156.494-.312.052-.07.676-2.479 1.872-7.228 1.196-4.75 1.794-7.254 1.794-7.514 0-.017-.009-.035-.026-.052-.017-.034-.043-.052-.078-.052l-.104-.052a.363.363 0 0 0-.156-.026.765.765 0 0 0-.182-.026h-.442a.79.79 0 0 0-.234-.026h-.26c-.416 0-.667-.008-.754-.026a.238.238 0 0 1-.182-.156c-.034-.052-.026-.208.026-.468.07-.295.148-.468.234-.52.035-.017.182-.026.442-.026.71.035 1.89.052 3.536.052h1.716a78.756 78.756 0 0 1 1.612-.026c.226 0 .355.052.39.156.035.052.026.208-.026.468-.086.295-.173.468-.26.52h-.182a.765.765 0 0 0-.182.026h-.468c-.918.018-1.447.078-1.586.182a.458.458 0 0 0-.182.182c-.052.07-.33 1.136-.832 3.198-.121.45-.251.953-.39 1.508s-.242.962-.312 1.222l-.104.39c0 .035 1.257.052 3.77.052h3.77l.026-.078c0-.052.269-1.118.806-3.198.485-1.993.728-3.06.728-3.198 0-.034-.017-.07-.052-.104-.017-.034-.052-.06-.104-.078a.577.577 0 0 0-.182-.026.79.79 0 0 0-.234-.026h-.286a1.388 1.388 0 0 0-.312-.026h-.312c-.624 0-.936-.087-.936-.26 0-.364.052-.624.156-.78.052-.086.2-.13.442-.13.312 0 .832.009 1.56.026a75.373 75.373 0 0 0 3.874 0 77.95 77.95 0 0 1 1.508-.026Z\"\n />\n </svg>\n );\n case \"I\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M17.392 29.974c-.294 0-.442-.078-.442-.234 0-.034.026-.156.078-.364.087-.33.174-.511.26-.546.052-.017.182-.026.39-.026h.156c1.058 0 1.716-.06 1.976-.182.018 0 .035-.009.052-.026.087-.035.182-.234.286-.598.104-.364.53-2.063 1.274-5.096.208-.78.364-1.395.468-1.846 1.214-4.853 1.82-7.297 1.82-7.332a.458.458 0 0 1-.052-.13c-.173-.104-.788-.156-1.846-.156h-.52c-.104-.087-.164-.156-.182-.208-.017-.07.01-.216.078-.442.052-.26.113-.425.182-.494.052-.035.2-.052.442-.052 1.248.035 2.514.052 3.796.052h1.43c1.11 0 1.742-.017 1.898-.052h.26c.122.121.182.217.182.286 0 .07-.026.19-.078.364-.052.26-.112.425-.182.494-.052.035-.25.052-.598.052-.537 0-1.092.026-1.664.078-.225.052-.39.139-.494.26-.052.07-.39 1.326-1.014 3.77s-1.23 4.88-1.82 7.306l-.884 3.614c0 .139.061.217.182.234.174.052.65.087 1.43.104h.832c.087.122.13.2.13.234.018.017 0 .174-.052.468-.069.226-.156.39-.26.494h-.416c-.64-.035-1.828-.052-3.562-.052-.433 0-1.048.009-1.846.026h-1.69Z\"\n />\n </svg>\n );\n case \"J\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M26.411 13.75c0-.208-.806-.312-2.418-.312h-.65c-.104-.087-.165-.156-.182-.208-.017-.07.009-.234.078-.494.07-.225.156-.39.26-.494h.442c.71.035 1.976.052 3.796.052h1.716a64.884 64.884 0 0 1 1.43-.026c.19 0 .295.043.312.13.035.07.052.113.052.13 0 .035-.026.156-.078.364-.07.277-.139.442-.208.494-.052.035-.208.052-.468.052h-.234c-.763 0-1.196.121-1.3.364-.07.226-.607 2.366-1.612 6.422-1.092 4.299-1.647 6.457-1.664 6.474-.364 1.058-1.083 1.968-2.158 2.73-1.075.763-2.297 1.144-3.666 1.144-1.057 0-1.924-.26-2.6-.78-.659-.537-.988-1.23-.988-2.08 0-.607.173-1.127.52-1.56.364-.45.84-.676 1.43-.676.78 0 1.213.382 1.3 1.144 0 .503-.147.927-.442 1.274a1.783 1.783 0 0 1-1.092.65c-.139.035-.208.07-.208.104 0 .018.06.087.182.208.45.503 1.1.754 1.95.754.659 0 1.3-.286 1.924-.858.641-.59 1.1-1.3 1.378-2.132.07-.208.615-2.375 1.638-6.5 1.04-4.125 1.56-6.249 1.56-6.37Z\"\n />\n </svg>\n );\n case \"K\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M18.378 13.672c0-.017-.009-.035-.026-.052-.018-.034-.044-.052-.078-.052l-.104-.052a.363.363 0 0 0-.156-.026.766.766 0 0 0-.182-.026h-.442a.79.79 0 0 0-.234-.026h-.26c-.59 0-.91-.06-.962-.182-.018-.052 0-.2.052-.442.086-.312.164-.494.234-.546.034-.017.182-.026.442-.026.71.035 1.889.052 3.536.052h1.716a78.746 78.746 0 0 1 1.612-.026c.294 0 .442.07.442.208 0 .087-.026.208-.078.364-.087.347-.165.529-.234.546-.07.035-.347.052-.832.052-.936.018-1.474.078-1.612.182a.457.457 0 0 0-.182.182l-2.106 8.268c.017 0 1.612-1.248 4.784-3.744 3.189-2.496 4.818-3.779 4.888-3.848.242-.242.364-.442.364-.598 0-.26-.217-.407-.65-.442-.278 0-.416-.095-.416-.286 0-.034.026-.156.078-.364a4.2 4.2 0 0 1 .13-.39c.052-.086.199-.13.442-.13.277 0 .736.009 1.378.026.658.018 1.196.026 1.612.026.936 0 1.577-.017 1.924-.052.26-.017.424-.009.494.026.086.018.13.095.13.234 0 .07-.035.217-.104.442-.052.208-.087.32-.104.338-.052.087-.217.13-.494.13a6.474 6.474 0 0 0-3.536 1.326l-.312.208c-.035.018-.928.71-2.678 2.08a486.183 486.183 0 0 0-2.652 2.08l.234.572c.156.381.398.962.728 1.742.329.78.632 1.517.91 2.21 1.3 3.068 1.993 4.654 2.08 4.758.034.035.078.07.13.104.242.174.684.269 1.326.286h.546c.086.122.13.2.13.234.017.017 0 .174-.052.468-.07.226-.156.39-.26.494h-.286a33.632 33.632 0 0 0-2.47-.078c-2.063 0-3.25.026-3.562.078h-.26a1.188 1.188 0 0 1-.182-.208c0-.052.026-.216.078-.494.052-.208.112-.346.182-.416.052-.052.164-.078.338-.078.866 0 1.3-.216 1.3-.65 0-.087-.512-1.343-1.534-3.77l-1.508-3.588-1.768 1.378-1.768 1.378-.598 2.418c-.399 1.595-.598 2.436-.598 2.522 0 .104.026.165.078.182.121.052.598.096 1.43.13h.806c.104.156.156.252.156.286 0 .277-.061.538-.182.78-.087.087-.226.13-.416.13-.295 0-.824-.009-1.586-.026a86.31 86.31 0 0 0-1.976-.026 83.8 83.8 0 0 0-1.924.026h-1.482c-.226 0-.364-.043-.416-.13a.455.455 0 0 1-.052-.13c0-.034.026-.156.078-.364.069-.277.138-.433.208-.468.069-.052.268-.078.598-.078.468 0 .988-.026 1.56-.078.242-.052.407-.156.494-.312.052-.07.676-2.479 1.872-7.228 1.196-4.75 1.794-7.254 1.794-7.514Z\"\n />\n </svg>\n );\n case \"L\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M20.561 13.672c0-.017-.008-.035-.026-.052-.017-.034-.043-.052-.078-.052l-.104-.052a.363.363 0 0 0-.156-.026.765.765 0 0 0-.182-.026h-.442a.79.79 0 0 0-.234-.026h-.26c-.416 0-.667-.008-.754-.026a.238.238 0 0 1-.182-.156c-.034-.052-.026-.208.026-.468.087-.33.165-.502.234-.52.052-.017.182-.026.39-.026a60.53 60.53 0 0 0 3.302.078h1.04c.451-.017.78-.026.988-.026h.936c.382-.017.668-.026.858-.026.208-.017.338-.026.39-.026h.312c.104.104.156.182.156.234.018.035 0 .19-.052.468-.069.243-.147.407-.234.494h-.988c-1.196.018-1.898.095-2.106.234-.12.07-.242.32-.364.754-.12.416-.702 2.696-1.742 6.838a996.167 996.167 0 0 1-1.586 6.448l-.234.936c0 .07.078.113.234.13.156 0 .668.009 1.534.026 1.3 0 2.22-.043 2.756-.13.555-.087 1.162-.32 1.82-.702a4.712 4.712 0 0 0 1.664-1.586c.434-.676.858-1.569 1.274-2.678.122-.346.217-.59.286-.728.087-.052.234-.078.442-.078h.338c.104.156.156.252.156.286 0 .035-.182.546-.546 1.534-.346.988-.719 2.037-1.118 3.146a63.854 63.854 0 0 0-.676 1.898c-.052.104-.095.165-.13.182-.052.035-2.288.052-6.708.052s-6.656-.017-6.708-.052a.247.247 0 0 1-.104-.208c0-.121.018-.242.052-.364.087-.33.174-.511.26-.546.07-.017.2-.026.39-.026h.156c.468 0 .988-.026 1.56-.078.243-.052.408-.156.494-.312.052-.07.676-2.479 1.872-7.228 1.196-4.75 1.794-7.254 1.794-7.514Z\"\n />\n </svg>\n );\n case \"M\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M16.335 30c-.242 0-.667-.009-1.274-.026a54.61 54.61 0 0 0-1.585-.026c-1.249 0-2.02.009-2.315.026-.415.017-.65.009-.701-.026-.105-.035-.157-.113-.157-.234 0-.034.026-.156.079-.364a4.2 4.2 0 0 1 .13-.39c.034-.104.225-.156.572-.156 1.248-.07 2.019-.416 2.314-1.04.069-.104.667-2.427 1.793-6.968 1.144-4.558 1.716-6.942 1.716-7.15 0-.07-.026-.104-.078-.104h-.052c-.173-.052-.623-.086-1.352-.104-.433 0-.693-.008-.78-.026a.314.314 0 0 1-.181-.182c-.018-.07-.01-.19.025-.364.104-.346.182-.537.234-.572.052-.035.936-.052 2.652-.052 1.37 0 2.159.009 2.366.026.226 0 .364.035.416.104.018.07.338 2.514.962 7.332.625 4.802.936 7.22.936 7.254 0 .018.105-.13.313-.442.208-.33.485-.771.832-1.326l1.222-1.924c.468-.728.953-1.49 1.456-2.288.502-.815 1.005-1.62 1.508-2.418l1.43-2.314c.468-.728.875-1.37 1.222-1.924.363-.572.65-1.031.857-1.378l.313-.494.078-.078a.785.785 0 0 0 .104-.078l.155-.052h2.496c1.665 0 2.523.017 2.575.052a.247.247 0 0 1 .103.208c0 .052-.026.19-.078.416a2.99 2.99 0 0 0-.078.364c-.069.104-.39.156-.962.156-.935.018-1.473.078-1.611.182a.457.457 0 0 0-.183.182c-.052.087-.684 2.54-1.898 7.358-1.195 4.819-1.793 7.254-1.793 7.306 0 .121.026.19.078.208.12.052.598.096 1.43.13h.805c.104.156.157.252.157.286 0 .277-.061.538-.182.78-.087.087-.226.13-.417.13-.294 0-.805-.009-1.534-.026a82.147 82.147 0 0 0-1.924-.026c-.537 0-1.16.009-1.872.026h-1.43c-.225 0-.364-.043-.416-.13-.034-.052-.026-.216.026-.494.07-.277.14-.433.209-.468.069-.052.268-.078.598-.078.468 0 .988-.026 1.56-.078.242-.052.407-.156.494-.312.034-.07.363-1.335.988-3.796.623-2.478 1.239-4.931 1.846-7.358.606-2.427.91-3.649.91-3.666-1.526 2.41-3.207 5.088-5.044 8.034l-5.122 8.138c-.157.156-.364.234-.625.234-.26 0-.416-.06-.468-.182-.052-.087-.39-2.565-1.014-7.436-.606-4.87-.962-7.74-1.066-8.606-2.34 9.273-3.51 13.997-3.51 14.17.104.572.729.858 1.872.858h.26c.104.087.165.165.182.234.018.07-.008.226-.078.468-.069.277-.138.433-.207.468-.07.017-.165.026-.287.026Z\"\n />\n </svg>\n );\n case \"N\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M12.76 29.974c-.26 0-.39-.078-.39-.234 0-.052.026-.19.078-.416.07-.225.113-.347.13-.364.035-.104.234-.156.598-.156 1.179-.052 1.942-.39 2.288-1.014.087-.156 1.292-4.914 3.614-14.274-.034-.017-.511-.043-1.43-.078-.52 0-.832-.008-.936-.026a.184.184 0 0 1-.156-.156c-.034-.052-.026-.208.026-.468.087-.312.165-.485.234-.52.035-.017.876-.026 2.522-.026 1.335 0 2.098.009 2.288.026.208 0 .33.043.364.13l1.378 3.25c.919 2.167 1.846 4.35 2.782 6.552.936 2.201 1.413 3.346 1.43 3.432l1.404-5.538c.919-3.657 1.378-5.607 1.378-5.85 0-.45-.554-.72-1.664-.806-.364 0-.563-.06-.598-.182-.034-.052-.026-.19.026-.416.018-.052.035-.113.052-.182a.713.713 0 0 0 .026-.156.299.299 0 0 1 .078-.182l.052-.052a.11.11 0 0 1 .078-.026h.13c.243 0 .676.017 1.3.052a62.89 62.89 0 0 0 1.664.026c.451 0 .962-.008 1.534-.026.59-.017.997-.026 1.222-.026.26 0 .39.087.39.26 0 .07-.034.217-.104.442-.052.208-.086.32-.104.338-.034.087-.225.13-.572.13-1.23.052-2.002.399-2.314 1.04l-3.874 15.34c-.034.121-.216.182-.546.182-.242 0-.39-.017-.442-.052L20.04 14.296c-2.253 9.03-3.38 13.58-3.38 13.65.104.572.728.858 1.872.858h.26c.104.087.165.165.182.234.018.052-.008.208-.078.468-.069.226-.156.39-.26.494h-.338c-.537-.035-1.473-.052-2.808-.052-.346 0-.823.009-1.43.026h-1.3Z\"\n />\n </svg>\n );\n case \"O\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M24.019 11.696h.442c.659 0 1.075.008 1.248.026 1.699.242 3.06.988 4.082 2.236 1.023 1.248 1.534 2.825 1.534 4.732 0 2.34-.754 4.558-2.262 6.656-.988 1.421-2.184 2.574-3.588 3.458-1.82 1.179-3.649 1.768-5.486 1.768-1.855 0-3.397-.59-4.628-1.768-1.317-1.283-1.976-2.999-1.976-5.148 0-.607.009-.997.026-1.17.312-2.375 1.317-4.559 3.016-6.552a16.549 16.549 0 0 1 1.56-1.56c1.924-1.595 3.935-2.488 6.032-2.678Zm4.628 5.928c0-1.317-.303-2.4-.91-3.25-.59-.85-1.413-1.378-2.47-1.586a3.627 3.627 0 0 0-.806-.078 3.99 3.99 0 0 0-.962.104c-1.075.19-2.089.676-3.042 1.456-.399.312-.875.789-1.43 1.43-.797 1.023-1.473 2.34-2.028 3.952-.555 1.595-.832 3.172-.832 4.732 0 1.248.243 2.305.728 3.172.503.866 1.196 1.447 2.08 1.742.45.139.875.208 1.274.208 1.057 0 2.097-.33 3.12-.988 2.063-1.352 3.57-3.57 4.524-6.656.503-1.647.754-3.06.754-4.238Z\"\n />\n </svg>\n );\n case \"P\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M21.121 13.672c0-.017-.009-.035-.026-.052-.017-.034-.043-.052-.078-.052l-.104-.052a.363.363 0 0 0-.156-.026.765.765 0 0 0-.182-.026h-.442a.79.79 0 0 0-.234-.026h-.26c-.433 0-.693-.008-.78-.026a.314.314 0 0 1-.182-.182c-.017-.07-.009-.19.026-.364.104-.346.182-.537.234-.572.052-.035 1.733-.052 5.044-.052 3.293.017 5.053.043 5.278.078 1.023.173 1.872.537 2.548 1.092.693.537 1.144 1.248 1.352 2.132.017.104.026.33.026.676 0 .434-.017.72-.052.858-.208.988-.763 1.924-1.664 2.808-1.196 1.179-2.739 1.924-4.628 2.236-.121.018-1.031.035-2.73.052h-2.47l-.78 3.094c-.52 2.01-.78 3.077-.78 3.198s.026.19.078.208c.121.052.598.096 1.43.13h.806c.104.156.156.252.156.286 0 .277-.06.538-.182.78-.087.087-.225.13-.416.13-.295 0-.823-.009-1.586-.026a86.304 86.304 0 0 0-1.976-.026 83.8 83.8 0 0 0-1.924.026h-1.482c-.225 0-.364-.043-.416-.13a.455.455 0 0 1-.052-.13c0-.034.026-.156.078-.364.07-.277.139-.433.208-.468.07-.052.269-.078.598-.078.468 0 .988-.026 1.56-.078.243-.052.407-.156.494-.312.052-.07.676-2.479 1.872-7.228 1.196-4.75 1.794-7.254 1.794-7.514Zm9.308 1.924c0-.659-.19-1.135-.572-1.43-.381-.312-.927-.537-1.638-.676-.121-.017-.815-.034-2.08-.052-.295 0-.598.009-.91.026h-1.066c-.225.018-.381.095-.468.234a79.01 79.01 0 0 0-.52 2.002c-.295 1.23-.59 2.427-.884 3.588-.295 1.162-.45 1.75-.468 1.768 0 .035.702.052 2.106.052 1.456-.017 2.253-.035 2.392-.052 1.161-.173 2.054-.59 2.678-1.248.468-.468.858-1.308 1.17-2.522.173-.71.26-1.274.26-1.69Z\"\n />\n </svg>\n );\n case \"Q\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M22.09 32.08c0-.19.01-.511.027-.962.034-.433.052-.71.052-.832v-.104l-.39.104c-.797.19-1.526.286-2.184.286-1.837 0-3.371-.59-4.602-1.768-1.318-1.283-1.976-2.999-1.976-5.148 0-.607.008-.997.026-1.17.312-2.375 1.317-4.559 3.016-6.552a16.573 16.573 0 0 1 1.56-1.56c1.924-1.595 3.934-2.488 6.032-2.678h.442c.659 0 1.075.008 1.248.026 1.698.242 3.06.988 4.082 2.236 1.023 1.248 1.534 2.825 1.534 4.732 0 2.322-.72 4.498-2.158 6.526-1.439 2.01-3.137 3.466-5.096 4.368l-.442.208v.13a.2.2 0 0 0 .026.078.489.489 0 0 1 .026.156c.017.07.035.13.052.182.156.676.355 1.144.598 1.404.242.26.633.39 1.17.39a2.86 2.86 0 0 0 1.794-.624c.537-.399.884-.875 1.04-1.43.104-.243.216-.364.338-.364.156 0 .251.078.286.234 0 .104-.06.355-.182.754-.71 2.097-1.673 3.45-2.886 4.056-.433.19-.867.286-1.3.286-.797 0-1.352-.26-1.664-.78-.312-.503-.468-1.23-.468-2.184Zm-1.351-6.11c.624 0 1.135.225 1.534.676.416.45.667 1.092.754 1.924l.338-.234c1.335-.919 2.41-2.193 3.224-3.822.832-1.63 1.378-3.484 1.638-5.564.017-.174.026-.546.026-1.118 0-2.028-.59-3.476-1.768-4.342-.676-.52-1.465-.78-2.366-.78-.832 0-1.681.216-2.548.65-1.56.763-2.86 2.054-3.9 3.874-1.04 1.802-1.69 3.83-1.95 6.084-.018.19-.026.546-.026 1.066 0 1.802.468 3.163 1.404 4.082.416.364.667.546.754.546v-.208c0-.78.303-1.447.91-2.002.624-.555 1.282-.832 1.976-.832Zm-.858 3.562a5.38 5.38 0 0 0 2.34-.546l-.026-.26c-.07-.953-.39-1.525-.962-1.716a3.178 3.178 0 0 0-.494-.052h-.156a.426.426 0 0 0-.104-.026c-.07 0-.182.026-.338.078a1.88 1.88 0 0 0-.91.624c-.26.294-.39.633-.39 1.014 0 .59.346.884 1.04.884Z\"\n />\n </svg>\n );\n case \"R\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M19.598 13.672c0-.017-.009-.035-.026-.052-.018-.034-.044-.052-.078-.052l-.104-.052a.363.363 0 0 0-.156-.026.766.766 0 0 0-.182-.026h-.442a.79.79 0 0 0-.234-.026h-.26c-.416 0-.668-.008-.754-.026a.237.237 0 0 1-.182-.156c-.035-.052-.026-.208.026-.468.086-.312.164-.485.234-.52.034-.017 1.542-.026 4.524-.026 2.981.017 4.593.043 4.836.078 1.577.226 2.773.763 3.588 1.612.641.694.962 1.465.962 2.314 0 .174-.035.434-.104.78-.399 1.543-1.673 2.79-3.822 3.744-.763.295-1.196.442-1.3.442l.182.13c1.161.659 1.742 1.612 1.742 2.86 0 .208-.044.763-.13 1.664a20.47 20.47 0 0 0-.13 2.054c0 .607.06 1.04.182 1.3.121.243.39.364.806.364.242 0 .398-.017.468-.052.658-.26 1.126-.84 1.404-1.742.086-.242.156-.39.208-.442.052-.052.182-.078.39-.078.346 0 .52.104.52.312 0 .312-.208.806-.624 1.482-.52.763-1.127 1.24-1.82 1.43-.139.035-.39.052-.754.052-1.803 0-2.973-.546-3.51-1.638-.156-.277-.243-.624-.26-1.04v-.442l.052-.39c.017-.139.034-.242.052-.312.017-.07.06-.216.13-.442a6.33 6.33 0 0 0 .156-.598c.26-.988.39-1.62.39-1.898 0-.867-.373-1.508-1.118-1.924-.26-.121-.477-.19-.65-.208-.174-.017-.789-.035-1.846-.052H20.17l-.832 3.38c-.572 2.288-.858 3.45-.858 3.484 0 .121.026.19.078.208.121.052.598.096 1.43.13h.806c.086.122.13.2.13.234.017.017 0 .174-.052.468-.07.226-.156.39-.26.494h-.39c-.624-.035-1.76-.052-3.406-.052-.416 0-.997.009-1.742.026h-1.638c-.295 0-.442-.078-.442-.234 0-.034.026-.156.078-.364.086-.33.173-.511.26-.546.069-.017.199-.026.39-.026h.156c.468 0 .988-.026 1.56-.078.242-.052.407-.156.494-.312.052-.07.676-2.479 1.872-7.228 1.196-4.75 1.794-7.254 1.794-7.514Zm8.502.676c-.364-.381-.841-.624-1.43-.728-.59-.121-1.43-.182-2.522-.182a8.5 8.5 0 0 0-.65.026h-.858c-.226.018-.382.095-.468.234-.018.052-.312 1.213-.884 3.484-.572 2.254-.858 3.398-.858 3.432 0 .017.598.026 1.794.026 1.352-.017 2.253-.078 2.704-.182 1.126-.19 1.993-.702 2.6-1.534.277-.398.511-.918.702-1.56.19-.659.286-1.248.286-1.768 0-.537-.139-.953-.416-1.248Z\"\n />\n </svg>\n );\n case \"S\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M28.405 16.48c0-1.179-.303-2.089-.91-2.73-.589-.641-1.447-.962-2.574-.962-.953 0-1.872.39-2.756 1.17-.866.78-1.3 1.707-1.3 2.782 0 .537.13.997.39 1.378.278.381.633.641 1.066.78.052.035.65.208 1.794.52a99.54 99.54 0 0 0 1.768.442c.26.07.59.243.988.52 1.04.745 1.56 1.855 1.56 3.328 0 .45-.069.936-.208 1.456a4.94 4.94 0 0 1-.52 1.43c-1.074 2.132-2.756 3.44-5.044 3.926a5.719 5.719 0 0 1-.884.052c-1.716 0-3.05-.477-4.004-1.43l-.26-.286-.728.806c-.485.537-.754.823-.806.858-.052.035-.138.052-.26.052-.225 0-.338-.07-.338-.208 0-.052.503-2.089 1.508-6.11.035-.104.208-.156.52-.156h.338c.087.087.13.147.13.182.018.017.01.156-.026.416a6.79 6.79 0 0 0-.13 1.326c.07 1.127.477 1.967 1.222 2.522.763.555 1.794.832 3.094.832.174 0 .382-.017.624-.052.815-.19 1.543-.624 2.184-1.3.66-.676 1.075-1.456 1.248-2.34.035-.139.052-.407.052-.806 0-1.11-.45-1.863-1.352-2.262-.104-.017-.728-.173-1.872-.468-1.144-.312-1.742-.485-1.794-.52a3.428 3.428 0 0 1-1.846-1.3c-.45-.659-.676-1.439-.676-2.34 0-.867.243-1.76.728-2.678.503-.936 1.101-1.655 1.794-2.158.884-.763 1.95-1.24 3.198-1.43.07-.017.165-.026.286-.026h.286c1.803 0 3.068.555 3.796 1.664l1.534-1.664h.104a.429.429 0 0 1 .13-.026c.226 0 .338.06.338.182 0 .121-.25 1.179-.754 3.172-.485 1.976-.754 2.99-.806 3.042-.052.052-.19.078-.416.078-.346 0-.52-.078-.52-.234 0-.104.01-.19.026-.26 0-.087.01-.269.026-.546a6.19 6.19 0 0 0 .052-.624Z\"\n />\n </svg>\n );\n case \"T\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M25.198 30c-.468 0-1.248-.009-2.34-.026a165.36 165.36 0 0 0-2.522-.026c-2.236 0-3.657.017-4.264.052h-.39a1.192 1.192 0 0 1-.182-.208c0-.052.026-.217.078-.494.07-.225.156-.39.26-.494h.728c1.04 0 1.742-.026 2.106-.078.295-.017.511-.07.65-.156.017-.017.035-.026.052-.026.087-.052.173-.225.26-.52.087-.312.433-1.673 1.04-4.082.295-1.179.537-2.14.728-2.886 1.213-4.767 1.82-7.202 1.82-7.306 0-.087-.251-.13-.754-.13h-.806c-1.161 0-1.924.052-2.288.156-.745.156-1.309.46-1.69.91-.468.52-.98 1.577-1.534 3.172-.121.381-.208.607-.26.676-.052.07-.173.104-.364.104h-.078c-.225 0-.364-.026-.416-.078-.052-.052-.078-.095-.078-.13 0-.104.26-.936.78-2.496a74.24 74.24 0 0 1 .962-2.86c.104-.33.217-.555.338-.676h12.168c2.323 0 3.484.043 3.484.13v.026l.026.026v.078c0 .104-.156 1.092-.468 2.964-.295 1.872-.45 2.817-.468 2.834 0 .052-.035.095-.104.13-.035.035-.165.052-.39.052h-.26a.424.424 0 0 0-.104-.026l-.078-.078a.781.781 0 0 0-.078-.104c0-.121.026-.355.078-.702.156-.936.234-1.62.234-2.054 0-.399-.052-.728-.156-.988-.104-.26-.225-.46-.364-.598-.121-.139-.355-.243-.702-.312a6.478 6.478 0 0 0-.858-.13 33.843 33.843 0 0 0-1.196-.052c-.797 0-1.309.017-1.534.052-.208.017-.355.078-.442.182-.017.017-.633 2.444-1.846 7.28-1.213 4.819-1.82 7.263-1.82 7.332 0 .121.113.2.338.234.243.07.893.113 1.95.13.59 0 .936.009 1.04.026.121.017.2.07.234.156.017.052 0 .2-.052.442-.07.312-.147.494-.234.546L25.38 30h-.182Z\"\n />\n </svg>\n );\n case \"U\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M17.078 26.36c0 .954.26 1.699.78 2.236.537.52 1.291.78 2.262.78 1.421 0 2.67-.46 3.744-1.378 1.092-.919 1.855-2.028 2.288-3.328 1.699-6.777 2.548-10.253 2.548-10.426 0-.45-.555-.72-1.664-.806-.364 0-.563-.06-.598-.182-.035-.052-.026-.19.026-.416.017-.052.035-.113.052-.182a.706.706 0 0 0 .026-.156.304.304 0 0 1 .078-.182l.052-.052c.017-.017.043-.026.078-.026h.13c.26 0 .71.017 1.352.052a51.568 51.568 0 0 0 3.224 0c.59-.017.997-.026 1.222-.026.26 0 .39.087.39.26 0 .07-.035.217-.104.442-.052.208-.087.32-.104.338-.052.087-.243.13-.572.13-1.23.052-2.002.399-2.314 1.04-.035.087-.468 1.76-1.3 5.018-.71 2.93-1.144 4.654-1.3 5.174-.52 1.543-1.465 2.912-2.834 4.108-1.37 1.196-2.895 1.794-4.576 1.794-1.404 0-2.583-.398-3.536-1.196-.953-.797-1.525-1.837-1.716-3.12a4.412 4.412 0 0 1-.026-.598c0-.399.017-.754.052-1.066.035-.156.269-1.118.702-2.886.45-1.785.884-3.536 1.3-5.252.433-1.716.65-2.643.65-2.782 0-.121-.494-.2-1.482-.234-.416 0-.667-.008-.754-.026a.238.238 0 0 1-.182-.156c-.035-.052-.026-.208.026-.468.07-.295.147-.468.234-.52.035-.017.182-.026.442-.026.71.035 1.89.052 3.536.052h1.716a78.767 78.767 0 0 1 1.612-.026c.225 0 .355.052.39.156.035.052.026.208-.026.468-.087.295-.173.468-.26.52h-.182a.766.766 0 0 0-.182.026h-.468c-.919.018-1.447.078-1.586.182a.458.458 0 0 0-.182.182c-.017.035-.26.954-.728 2.756a431.596 431.596 0 0 0-1.43 5.616c-.468 1.942-.72 3.085-.754 3.432a5.338 5.338 0 0 0-.052.754Z\"\n />\n </svg>\n );\n case \"V\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M15.955 13.438c-.121-.121-.182-.216-.182-.286 0-.138.043-.312.13-.52.087-.208.156-.338.208-.39h.286c.728.052 1.638.078 2.73.078 2.045 0 3.25-.026 3.614-.078H23c.104.104.156.182.156.234.017.035 0 .19-.052.468-.07.243-.147.407-.234.494h-.546c-.381.035-.641.052-.78.052-.503.087-.78.217-.832.39 0 .035.251 2.219.754 6.552.503 4.316.763 6.483.78 6.5l1.898-3.042a950.553 950.553 0 0 0 3.796-6.136 279.681 279.681 0 0 0 1.95-3.198c.087-.173.13-.303.13-.39 0-.399-.39-.641-1.17-.728-.33 0-.494-.087-.494-.26 0-.087.026-.208.078-.364.052-.242.104-.399.156-.468.052-.07.165-.104.338-.104.295 0 .763.009 1.404.026.659.018 1.144.026 1.456.026 1.196 0 1.95-.017 2.262-.052h.182c.121.121.182.217.182.286 0 .312-.078.59-.234.832-.052.052-.2.078-.442.078-.936.052-1.681.33-2.236.832l-.182.182c-.07.087-.113.139-.13.156a.99.99 0 0 1-.182.26c-6.379 10.348-9.62 15.548-9.724 15.6l-.13.078-.468.026c-.312 0-.494-.017-.546-.052-.07-.035-.104-.078-.104-.13-.052-.104-.39-2.877-1.014-8.32-.659-5.512-.997-8.294-1.014-8.346-.104-.19-.546-.286-1.326-.286h-.728Z\"\n />\n </svg>\n );\n case \"W\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M11.232 13.438c-.122-.121-.182-.216-.182-.286 0-.381.112-.684.338-.91h.312a37.18 37.18 0 0 0 2.6.078h.832c.38-.017.667-.026.858-.026h.806c.329-.017.58-.026.754-.026.173-.017.277-.026.312-.026h.26c.104.104.156.182.156.234.017.035 0 .19-.052.468-.07.243-.148.407-.234.494h-.546c-.503.018-.92.07-1.248.156-.26.104-.408.2-.442.286 0 .121.138 2.219.416 6.292.294 4.073.45 6.17.468 6.292 2.704-4.784 4.74-8.372 6.11-10.764l-.052-.962c-.052-.728-.14-1.118-.26-1.17-.104-.07-.468-.112-1.092-.13-.486 0-.746-.06-.78-.182-.035-.052-.026-.19.026-.416.086-.347.164-.537.234-.572.052-.017.32-.017.806 0 .589.035 1.412.052 2.47.052.502 0 1.092-.008 1.768-.026a68.319 68.319 0 0 1 1.456-.026c.294 0 .442.06.442.182 0 .07-.026.226-.078.468-.052.226-.087.347-.104.364-.035.104-.26.156-.676.156-.902.035-1.44.165-1.612.39-.052.052-.07.113-.052.182 0 .208.138 2.28.416 6.214.277 3.918.416 5.98.416 6.188l.052-.078a5.08 5.08 0 0 0 .156-.26c.086-.139.19-.303.312-.494.12-.208.268-.468.442-.78.19-.312.398-.667.624-1.066.225-.399.485-.867.78-1.404l1.014-1.742c2.236-3.934 3.37-5.954 3.406-6.058a.828.828 0 0 0 .052-.234c0-.277-.174-.485-.52-.624a2.459 2.459 0 0 0-1.066-.234c-.243 0-.364-.087-.364-.26 0-.052.017-.165.052-.338a.577.577 0 0 0 .026-.182.713.713 0 0 0 .026-.156l.052-.104a.17.17 0 0 1 .078-.078.29.29 0 0 1 .13-.026.677.677 0 0 1 .208-.026c.312 0 .788.009 1.43.026h1.43c1.144 0 1.88-.017 2.21-.052.242 0 .364.095.364.286 0 .104-.035.26-.104.468-.07.208-.122.33-.156.364-.052.052-.14.078-.26.078-1.092 0-1.933.407-2.522 1.222-.122.19-.191.295-.208.312l-4.394 7.696c-2.912 5.13-4.377 7.705-4.394 7.722-.104.122-.312.182-.624.182-.26 0-.425-.043-.494-.13-.052-.052-.226-2.184-.52-6.396-.278-4.23-.416-6.404-.416-6.526l-.312.468c-.382.642-1.491 2.574-3.328 5.798a403.24 403.24 0 0 1-1.794 3.146l-1.43 2.548c-.312.537-.477.815-.494.832-.104.173-.33.26-.676.26-.33 0-.512-.06-.546-.182 0-.052-.191-2.817-.572-8.294-.382-5.494-.581-8.25-.598-8.268-.035-.156-.122-.251-.26-.286-.14-.052-.477-.086-1.014-.104h-.624Z\"\n />\n </svg>\n );\n case \"X\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M12.326 30c-.277 0-.416-.095-.416-.286 0-.07.026-.208.078-.416.07-.242.13-.381.182-.416.052-.035.217-.06.494-.078 1.491-.052 2.661-.502 3.51-1.352.174-.173 1.18-1.265 3.016-3.276 1.838-2.028 2.748-3.05 2.73-3.068-1.889-4.819-2.877-7.271-2.964-7.358-.156-.19-.702-.294-1.638-.312h-.728a1.188 1.188 0 0 1-.182-.208c0-.052.026-.216.078-.494.07-.225.156-.39.26-.494h.364c.59.035 1.638.052 3.146.052h1.664a75.269 75.269 0 0 1 1.612-.026c.174 0 .286.018.338.052.052.018.078.078.078.182 0 .416-.06.685-.182.806-.034.087-.182.13-.442.13-.658.07-1.109.208-1.352.416l-.052.026c.78 1.907 1.448 3.588 2.002 5.044L25.3 17.39c.815-.884 1.456-1.595 1.924-2.132.382-.398.616-.667.702-.806a.625.625 0 0 0 .104-.416c-.052-.26-.26-.442-.624-.546a1.45 1.45 0 0 1-.338-.052c-.156 0-.268-.035-.338-.104-.069-.07-.069-.268 0-.598.07-.225.156-.39.26-.494h.312c.4.052 1.44.078 3.12.078 1.508 0 2.366-.026 2.574-.078h.208c.122.121.182.217.182.286 0 .139-.043.312-.13.52-.069.208-.13.338-.182.39h-.416c-1.334.052-2.426.425-3.276 1.118-.156.156-.25.243-.286.26a.465.465 0 0 1-.13.13c-.069.07-.849.928-2.34 2.574l-2.262 2.496c0 .018.27.72.806 2.106.555 1.37 1.118 2.765 1.69 4.186.572 1.422.893 2.167.962 2.236.174.156.702.243 1.586.26.607 0 .91.07.91.208 0 .19-.06.468-.182.832-.052.087-.19.13-.416.13h-1.378a68.88 68.88 0 0 0-1.794-.026c-.52 0-1.135.009-1.846.026H23.22c-.225 0-.364-.043-.416-.13-.034-.052-.026-.216.026-.494.07-.26.13-.407.182-.442.052-.052.182-.087.39-.104.312-.017.642-.086.988-.208.295-.139.442-.225.442-.26-.017 0-.424-1.014-1.222-3.042l-1.222-3.068c-.017 0-.84.902-2.47 2.704-1.612 1.785-2.426 2.695-2.444 2.73a.647.647 0 0 0-.208.468c0 .33.252.546.754.65.018 0 .07.009.156.026h.156c.208 0 .312.087.312.26 0 .104-.026.252-.078.442-.052.226-.104.364-.156.416-.052.035-.182.052-.39.052h-1.534a68.47 68.47 0 0 0-1.56-.026c-1.352 0-2.218.017-2.6.052Z\"\n />\n </svg>\n );\n case \"Y\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M29.994 12.294a40.338 40.338 0 0 0 2.912 0c.503-.035.85-.052 1.04-.052.226 0 .338.087.338.26 0 .052-.034.19-.104.416-.052.226-.086.347-.104.364-.034.104-.216.156-.546.156-1.248.087-2.262.52-3.042 1.3-.156.156-1.369 1.569-3.64 4.238l-3.354 3.926-.676 2.704c-.468 1.855-.702 2.825-.702 2.912 0 .19.59.286 1.768.286.295 0 .477.018.546.052.087.017.13.087.13.208 0 .364-.052.624-.156.78-.052.087-.199.13-.442.13h-1.56a82.14 82.14 0 0 0-1.924-.026c-.554 0-1.187.009-1.898.026h-1.482c-.294 0-.442-.06-.442-.182 0-.07.026-.216.078-.442.052-.242.087-.373.104-.39.035-.104.356-.156.962-.156.676-.017 1.118-.052 1.326-.104.226-.052.382-.165.468-.338.052-.086.304-1.022.754-2.808l.65-2.678c-.71-2.028-1.776-5.053-3.198-9.074a.973.973 0 0 0-.494-.286c-.156-.034-.537-.06-1.144-.078-.624 0-.936-.087-.936-.26 0-.035.026-.156.078-.364.07-.312.148-.494.234-.546.035-.017.156-.026.364-.026a45.9 45.9 0 0 0 2.834.078c2.115 0 3.337-.026 3.666-.078h.26c.104.104.156.182.156.234.018.035 0 .19-.052.468-.069.225-.156.39-.26.494h-.312c-.97 0-1.456.113-1.456.338 0 .087.434 1.37 1.3 3.848.867 2.462 1.309 3.7 1.326 3.718l.078-.078c.07-.07.174-.182.312-.338.139-.173.321-.381.546-.624.226-.26.503-.58.832-.962.33-.381.702-.823 1.118-1.326 1.855-2.166 2.843-3.336 2.964-3.51.156-.225.234-.416.234-.572 0-.277-.277-.442-.832-.494-.294 0-.442-.087-.442-.26 0-.035.018-.156.052-.364.052-.26.096-.416.13-.468.052-.07.174-.104.364-.104.243 0 .668.017 1.274.052Z\"\n />\n </svg>\n );\n case \"Z\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M14.634 29.792c0-.26.052-.494.156-.702 0-.017 2.297-2.608 6.89-7.774a4794.75 4794.75 0 0 1 6.942-7.826l-.26-.052h-1.924c-1.56.018-2.41.035-2.548.052-1.317.174-2.349.615-3.094 1.326-.745.71-1.326 1.707-1.742 2.99l-.052.156-.052.156-.052.104v.078l-.026.052c-.052.087-.217.13-.494.13-.295 0-.468-.087-.52-.26l.832-2.808c.139-.45.277-.918.416-1.404.156-.485.269-.858.338-1.118.087-.26.13-.399.13-.416.052-.104.095-.165.13-.182.052-.035 2.08-.052 6.084-.052h6.006c.087.087.13.156.13.208 0 .035-.052.26-.156.676-9.152 10.313-13.737 15.487-13.754 15.522l-.078.078h2.314c1.647-.017 2.54-.034 2.678-.052 1.265-.156 2.262-.529 2.99-1.118.745-.59 1.36-1.517 1.846-2.782.121-.277.26-.676.416-1.196.139-.433.234-.693.286-.78.07-.086.182-.13.338-.13h.104c.364 0 .546.096.546.286 0 .07-.355 1.24-1.066 3.51-.71 2.27-1.11 3.432-1.196 3.484-.052.035-2.14.052-6.266.052-4.108 0-6.18-.017-6.214-.052-.052-.052-.078-.104-.078-.156Z\"\n />\n </svg>\n );\n\n case \"JUMP_OUT_PARENTHESES\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12.9571 13.2929c.3905.3905.3905 1.0237 0 1.4142C11.6871 15.9771 11 17.9485 11 20c0 2.0515.6871 4.0229 1.9571 5.2929.3905.3905.3905 1.0237 0 1.4142-.3905.3905-1.0237.3905-1.4142 0C9.81292 24.9771 9 22.4485 9 20c0-2.4485.81292-4.9771 2.5429-6.7071.3905-.3905 1.0237-.3905 1.4142 0zm4.5858 0c.3905-.3905 1.0237-.3905 1.4142 0C20.6871 15.0229 21.5 17.5515 21.5 20c0 2.4485-.8129 4.9771-2.5429 6.7071-.3905.3905-1.0237.3905-1.4142 0-.3905-.3905-.3905-1.0237 0-1.4142C18.8129 24.0229 19.5 22.0515 19.5 20c0-2.0515-.6871-4.0229-1.9571-5.2929-.3905-.3905-.3905-1.0237 0-1.4142z\"\n fill=\"#21242C\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M25.5429 16.2929c.3905-.3905 1.0237-.3905 1.4142 0l3 3c.3905.3905.3905 1.0237 0 1.4142l-3 3c-.3905.3905-1.0237.3905-1.4142 0-.3905-.3905-.3905-1.0237 0-1.4142L26.8358 21H16.25c-.5523 0-1-.4477-1-1s.4477-1 1-1h10.5858l-1.2929-1.2929c-.3905-.3905-.3905-1.0237 0-1.4142z\"\n fill=\"#1865F2\"\n />\n </svg>\n );\n case \"JUMP_OUT_EXPONENT\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M18.2929 15.2929c.3905-.3905 1.0237-.3905 1.4142 0L26 21.5858V20c0-.5523.4477-1 1-1s1 .4477 1 1v4.003c-.0004.1345-.0273.2627-.0759.3798-.0477.1152-.1178.2234-.2105.3177a.809004.809004 0 01-.0131.0131c-.1797.1765-.4259.2856-.6975.2864H23c-.5523 0-1-.4477-1-1s.4477-1 1-1h1.5858l-6.2929-6.2929c-.3905-.3905-.3905-1.0237 0-1.4142zM31 33c-.5523 0-1-.4477-1-1V16c0-.5523.4477-1 1-1s1 .4477 1 1v16c0 .5523-.4477 1-1 1z\"\n fill=\"#1865F2\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M9 9c-.55228 0-1 .44772-1 1v6c0 .5523.44772 1 1 1h6c.5523 0 1-.4477 1-1v-6c0-.55228-.4477-1-1-1H9zm5 2h-4v4h4v-4z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"JUMP_OUT_BASE\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n style={{display: \"block\", transform: \"scale(1,-1)\"}}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M18.2929 15.2929c.3905-.3905 1.0237-.3905 1.4142 0L26 21.5858V20c0-.5523.4477-1 1-1s1 .4477 1 1v4.003c-.0004.1345-.0273.2627-.0759.3798-.0477.1152-.1178.2234-.2105.3177a.809004.809004 0 01-.0131.0131c-.1797.1765-.4259.2856-.6975.2864H23c-.5523 0-1-.4477-1-1s.4477-1 1-1h1.5858l-6.2929-6.2929c-.3905-.3905-.3905-1.0237 0-1.4142zM31 33c-.5523 0-1-.4477-1-1V16c0-.5523.4477-1 1-1s1 .4477 1 1v16c0 .5523-.4477 1-1 1z\"\n fill=\"#1865F2\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M9 9c-.55228 0-1 .44772-1 1v6c0 .5523.44772 1 1 1h6c.5523 0 1-.4477 1-1v-6c0-.55228-.4477-1-1-1H9zm5 2h-4v4h4v-4z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"JUMP_INTO_NUMERATOR\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M9 11c.55228 0 1 .4477 1 1v16c0 .5523-.44772 1-1 1s-1-.4477-1-1V12c0-.5523.44772-1 1-1zm5 1c0-.5523.4477-1 1-1h3.9998c.0001 0 0 0 0 0 .1356 0 .2651.027.383.0759.1171.0484.2268.1201.3222.2149l.0042.0042c.1931.1942.29.448.2908.702V16c0 .5523-.4477 1-1 1s-1-.4477-1-1v-1.5858l-4.2929 4.2929c-.3905.3905-1.0237.3905-1.4142 0-.3905-.3905-.3905-1.0237 0-1.4142L16.5858 13H15c-.5523 0-1-.4477-1-1z\"\n fill=\"#1865F2\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M23 23c-.5523 0-1 .4477-1 1v6c0 .5523.4477 1 1 1h6c.5523 0 1-.4477 1-1v-6c0-.5523-.4477-1-1-1h-6zm5 2h-4v4h4v-4z\"\n fill=\"#21242C\"\n />\n <g clipPath=\"url(#clip0_874_41680)\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M20 20c0-.5523.4477-1 1-1h10c.5523 0 1 .4477 1 1s-.4477 1-1 1H21c-.5523 0-1-.4477-1-1z\"\n fill=\"#21242C\"\n />\n </g>\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M23 9c-.5523 0-1 .44772-1 1v6c0 .5523.4477 1 1 1h6c.5523 0 1-.4477 1-1v-6c0-.55228-.4477-1-1-1h-6zm5 2h-4v4h4v-4z\"\n fill=\"#1865F2\"\n />\n <defs>\n <clipPath id=\"clip0_874_41680\">\n <path\n fill=\"#fff\"\n transform=\"translate(20 19)\"\n d=\"M0 0h12v2H0z\"\n />\n </clipPath>\n </defs>\n </svg>\n );\n case \"JUMP_OUT_NUMERATOR\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M26 13c.5523 0 1 .4477 1 1v11.5858l1.2929-1.2929c.3905-.3905 1.0237-.3905 1.4142 0 .3905.3905.3905 1.0237 0 1.4142l-3 3c-.3905.3905-1.0237.3905-1.4142 0l-3-3c-.3905-.3905-.3905-1.0237 0-1.4142.3905-.3905 1.0237-.3905 1.4142 0L25 25.5858V14c0-.5523.4477-1 1-1zM13 23c-.5523 0-1 .4477-1 1v6c0 .5523.4477 1 1 1h6c.5523 0 1-.4477 1-1v-6c0-.5523-.4477-1-1-1h-6zm5 2h-4v4h4v-4z\"\n fill=\"#1865F2\"\n />\n <g clipPath=\"url(#clip0_874_41686)\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10 20c0-.5523.4477-1 1-1h10c.5523 0 1 .4477 1 1s-.4477 1-1 1H11c-.5523 0-1-.4477-1-1z\"\n fill=\"#21242C\"\n />\n </g>\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M13 9c-.5523 0-1 .44772-1 1v6c0 .5523.4477 1 1 1h6c.5523 0 1-.4477 1-1v-6c0-.55228-.4477-1-1-1h-6zm5 2h-4v4h4v-4z\"\n fill=\"#21242C\"\n />\n <defs>\n <clipPath id=\"clip0_874_41686\">\n <path\n fill=\"#fff\"\n transform=\"translate(10 19)\"\n d=\"M0 0h12v2H0z\"\n />\n </clipPath>\n </defs>\n </svg>\n );\n\n case \"JUMP_OUT_DENOMINATOR\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M31 11c.5523 0 1 .4477 1 1v16c0 .5523-.4477 1-1 1s-1-.4477-1-1V12c0-.5523.4477-1 1-1zm-9 9c0-.5523.4477-1 1-1h4c.5523 0 1 .4477 1 1v4c0 .5523-.4477 1-1 1s-1-.4477-1-1v-1.5858l-4.2929 4.2929c-.3905.3905-1.0237.3905-1.4142 0-.3905-.3905-.3905-1.0237 0-1.4142L24.5858 21H23c-.5523 0-1-.4477-1-1z\"\n fill=\"#1865F2\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M11 23c-.5523 0-1 .4477-1 1v6c0 .5523.4477 1 1 1h6c.5523 0 1-.4477 1-1v-6c0-.5523-.4477-1-1-1h-6zm5 2h-4v4h4v-4z\"\n fill=\"#21242C\"\n />\n <g clipPath=\"url(#clip0_874_41692)\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M8 20c0-.5523.44772-1 1-1h10c.5523 0 1 .4477 1 1s-.4477 1-1 1H9c-.55228 0-1-.4477-1-1z\"\n fill=\"#21242C\"\n />\n </g>\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M11 9c-.5523 0-1 .44772-1 1v6c0 .5523.4477 1 1 1h6c.5523 0 1-.4477 1-1v-6c0-.55228-.4477-1-1-1h-6zm5 2h-4v4h4v-4z\"\n fill=\"#21242C\"\n />\n <defs>\n <clipPath id=\"clip0_874_41692\">\n <path\n fill=\"#fff\"\n transform=\"translate(8 19)\"\n d=\"M0 0h12v2H0z\"\n />\n </clipPath>\n </defs>\n </svg>\n );\n\n case \"UP\":\n return (\n <svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\">\n <g\n fill=\"none\"\n fillRule=\"evenodd\"\n transform=\"rotate(90 24 24)\"\n >\n <path fill=\"none\" d=\"M0 0h48v48H0z\" />\n <path fill=\"none\" d=\"M12 12h24v24H12z\" />\n <path\n stroke=\"#21242C\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n d=\"M22 18l-6 6 6 6M16 24h16\"\n />\n </g>\n </svg>\n );\n case \"DOWN\":\n return (\n <svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\">\n <g\n fill=\"none\"\n fillRule=\"evenodd\"\n transform=\"rotate(270 24 24)\"\n >\n <path fill=\"none\" d=\"M0 0h48v48H0z\" />\n <path fill=\"none\" d=\"M12 12h24v24H12z\" />\n <path\n stroke=\"#21242C\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n d=\"M22 18l-6 6 6 6M16 24h16\"\n />\n </g>\n </svg>\n );\n case \"LEFT\":\n return (\n <svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\">\n <g fill=\"none\" fillRule=\"evenodd\">\n <path fill=\"none\" d=\"M0 0h48v48H0z\" />\n <path fill=\"none\" d=\"M12 12h24v24H12z\" />\n <path\n stroke=\"#21242C\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n d=\"M22 18l-6 6 6 6M16 24h16\"\n />\n </g>\n </svg>\n );\n case \"RIGHT\":\n return (\n <svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\">\n <g\n fill=\"none\"\n fillRule=\"evenodd\"\n transform=\"rotate(180 24 24)\"\n >\n <path fill=\"none\" d=\"M0 0h48v48H0z\" />\n <path fill=\"none\" d=\"M12 12h24v24H12z\" />\n <path\n stroke=\"#21242C\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n d=\"M22 18l-6 6 6 6M16 24h16\"\n />\n </g>\n </svg>\n );\n default:\n // this line forces an exhaustive check of all keys;\n // if a key is not handled, the compiler will complain.\n const unhandledKey: never = id;\n throw new Error(`Unhandled key: ${unhandledKey}`);\n }\n}\n","import Clickable from \"@khanacademy/wonder-blocks-clickable\";\nimport {View} from \"@khanacademy/wonder-blocks-core\";\nimport {color} from \"@khanacademy/wonder-blocks-tokens\";\nimport {StyleSheet} from \"aphrodite\";\nimport * as React from \"react\";\n\nimport ButtonAsset from \"./button-assets\";\n\nimport type {KeyConfig, ClickKeyCallback} from \"../../types\";\nimport type {StyleType} from \"@khanacademy/wonder-blocks-core\";\n\nexport type KeypadButtonProps = {\n // 0 indexed [x, y] position in keypad CSS grid\n coord: readonly [number, number];\n keyConfig: KeyConfig;\n onClickKey: ClickKeyCallback;\n // Apply action button styles\n action?: boolean;\n // Apply secondary button styles\n secondary?: boolean;\n style?: StyleType;\n};\n\nexport const KeypadButton = ({\n coord,\n keyConfig,\n onClickKey,\n style,\n secondary,\n action,\n}: KeypadButtonProps): React.ReactElement => {\n const tintColor = secondary ? \"#F6F6F7\" : action ? \"#DBDCDD\" : undefined;\n\n return (\n <View\n style={{\n gridColumn: coord[0] + 1,\n gridRow: coord[1] + 1,\n ...style,\n }}\n // Unfortunately the CDOT and TIMES buttons are identical in the DOM\n // apart from the ICON SVG, so we need to use testId.\n testId={keyConfig.id}\n >\n <Clickable\n onClick={(e) => onClickKey(keyConfig.id, e)}\n onMouseDown={(e) =>\n // Prevent the default behavior of forcing the focus to the\n // button when it is clicked. This way, the focus can\n // remain on the input field-- for mouse only. The focus\n // should still shift for keyboard nav.\n // (The focus shift happens on mouse down, not on click.)\n e.preventDefault()\n }\n style={styles.clickable}\n aria-label={keyConfig.ariaLabel}\n >\n {({hovered, focused, pressed}) => {\n return (\n <View style={[styles.outerBoxBase]}>\n <View\n style={[\n styles.base,\n tintColor != null\n ? {background: tintColor}\n : undefined,\n hovered && styles.hovered,\n focused && styles.focused,\n pressed && styles.pressed,\n ]}\n >\n <ButtonAsset id={keyConfig.id} />\n </View>\n </View>\n );\n }}\n </Clickable>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n base: {\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n boxShadow: `0px 1px 0px ${color.offBlack32}`,\n boxSizing: \"border-box\",\n background: color.white,\n borderRadius: 4,\n borderWidth: 2,\n borderStyle: \"solid\",\n borderColor: \"transparent\",\n flex: 1,\n minHeight: 42,\n minWidth: 42,\n padding: 1,\n fontFamily: 'Lato, \"Noto Sans\", sans-serif',\n },\n hovered: {\n borderColor: color.blue,\n padding: 1,\n boxShadow: \"none\",\n },\n focused: {\n borderColor: color.blue,\n padding: 0,\n boxShadow: \"none\",\n },\n pressed: {\n border: \"2px solid #1B50B3\",\n padding: 0,\n background: `linear-gradient(0deg, rgba(24, 101, 242, 0.32), rgba(24, 101, 242, 0.32)), ${color.white}`,\n boxShadow: \"none\",\n },\n outerBoxBase: {\n padding: 1,\n height: \"100%\",\n width: \"100%\",\n boxSizing: \"border-box\",\n borderRadius: 7,\n border: \"2px solid transparent\",\n },\n clickable: {\n width: \"100%\",\n height: \"100%\",\n boxSizing: \"border-box\",\n\n \":focus\": {\n outline: `none`,\n },\n },\n});\n","import * as React from \"react\";\n\nimport KeyConfigs from \"../../../data/key-configs\";\nimport {useMathInputI18n} from \"../../i18n-context\";\nimport {KeypadButton} from \"../keypad-button\";\n\nimport type {ClickKeyCallback} from \"../../../types\";\nimport type {KeypadKey} from \"@khanacademy/perseus-core\";\n\ntype Props = {\n extraKeys: ReadonlyArray<KeypadKey>;\n onClickKey: ClickKeyCallback;\n};\n\nconst columns = 3;\n\nexport default function ExtrasPage(props: Props) {\n const {extraKeys, onClickKey} = props;\n const {strings} = useMathInputI18n();\n const Keys = KeyConfigs(strings);\n return (\n <>\n {extraKeys.map((key, i) => {\n // Map 1D array to Cartesian coordinates\n const coordX = i % columns;\n const coordY = i / columns;\n return (\n <KeypadButton\n key={key}\n keyConfig={Keys[key]}\n onClickKey={onClickKey}\n coord={[coordX, coordY]}\n />\n );\n })}\n </>\n );\n}\n","import Keys from \"../../data/key-configs\";\nimport {CursorContext} from \"../input/cursor-contexts\";\n\nimport type {MathInputStrings} from \"../../strings\";\n\n// This is just a magic number, I just played around with it\n// until the transition from expanded -> regular -> expanded felt natural\nexport const expandedViewThreshold = 500;\n\n// This is a helper function that returns the correct context for the cursor\n// based on the cursorContext prop. It is used in the keypad to determine\n// which key to render as the \"jump out\" key.\nexport function getCursorContextConfig(\n strings: MathInputStrings,\n cursorContext?: (typeof CursorContext)[keyof typeof CursorContext],\n) {\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions\n if (!cursorContext) {\n return null;\n }\n\n switch (cursorContext) {\n case CursorContext.NONE:\n return null;\n case CursorContext.IN_PARENS:\n return Keys(strings).JUMP_OUT_PARENTHESES;\n case CursorContext.IN_SUPER_SCRIPT:\n return Keys(strings).JUMP_OUT_EXPONENT;\n case CursorContext.IN_SUB_SCRIPT:\n return Keys(strings).JUMP_OUT_BASE;\n case CursorContext.IN_NUMERATOR:\n return Keys(strings).JUMP_OUT_NUMERATOR;\n case CursorContext.IN_DENOMINATOR:\n return Keys(strings).JUMP_OUT_DENOMINATOR;\n case CursorContext.BEFORE_FRACTION:\n return Keys(strings).JUMP_INTO_NUMERATOR;\n }\n}\n","import * as React from \"react\";\n\nimport KeyConfigs from \"../../../data/key-configs\";\nimport {useMathInputI18n} from \"../../i18n-context\";\nimport {KeypadButton} from \"../keypad-button\";\nimport {getCursorContextConfig} from \"../utils\";\n\nimport type {ClickKeyCallback} from \"../../../types\";\nimport type {CursorContext} from \"../../input/cursor-contexts\";\n\ntype Props = {\n onClickKey: ClickKeyCallback;\n cursorContext?: (typeof CursorContext)[keyof typeof CursorContext];\n};\n\nexport default function FractionsPage(props: Props) {\n const {onClickKey, cursorContext} = props;\n const {strings} = useMathInputI18n();\n const cursorKeyConfig = getCursorContextConfig(strings, cursorContext);\n // These keys are arranged sequentially so that tabbing follows numerical order. This\n // allows us to visually mimic a keypad without affecting a11y. The visual order of the\n // keys in the keypad is determined by their coordinates, not their order in the DOM.\n const Keys = KeyConfigs(strings);\n return (\n <>\n {/* Row 4 */}\n <KeypadButton\n keyConfig={Keys.NUM_1}\n onClickKey={onClickKey}\n coord={[0, 2]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_2}\n onClickKey={onClickKey}\n coord={[1, 2]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_3}\n onClickKey={onClickKey}\n coord={[2, 2]}\n />\n\n {/* Row 3 */}\n <KeypadButton\n keyConfig={Keys.NUM_4}\n onClickKey={onClickKey}\n coord={[0, 1]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_5}\n onClickKey={onClickKey}\n coord={[1, 1]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_6}\n onClickKey={onClickKey}\n coord={[2, 1]}\n />\n\n {/* Row 2 */}\n <KeypadButton\n keyConfig={Keys.NUM_7}\n onClickKey={onClickKey}\n coord={[0, 0]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_8}\n onClickKey={onClickKey}\n coord={[1, 0]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_9}\n onClickKey={onClickKey}\n coord={[2, 0]}\n />\n\n {/* Row 1 */}\n <KeypadButton\n keyConfig={Keys.NUM_0}\n onClickKey={onClickKey}\n coord={[0, 3]}\n />\n <KeypadButton\n keyConfig={Keys.DECIMAL}\n onClickKey={onClickKey}\n coord={[1, 3]}\n />\n <KeypadButton\n keyConfig={Keys.NEGATIVE}\n onClickKey={onClickKey}\n coord={[2, 3]}\n />\n {/* Side Column */}\n <KeypadButton\n keyConfig={Keys.PERCENT}\n onClickKey={onClickKey}\n coord={[3, 0]}\n secondary\n />\n <KeypadButton\n keyConfig={Keys.PI}\n onClickKey={onClickKey}\n coord={[3, 1]}\n secondary\n />\n <KeypadButton\n keyConfig={Keys.FRAC}\n onClickKey={onClickKey}\n coord={[3, 2]}\n secondary\n />\n {cursorKeyConfig && (\n <KeypadButton\n keyConfig={cursorKeyConfig}\n onClickKey={onClickKey}\n coord={[3, 3]}\n secondary\n />\n )}\n <KeypadButton\n keyConfig={Keys.BACKSPACE}\n onClickKey={onClickKey}\n coord={[4, 3]}\n action\n />\n </>\n );\n}\n","import * as React from \"react\";\n\nimport KeyConfigs from \"../../../data/key-configs\";\nimport {useMathInputI18n} from \"../../i18n-context\";\nimport {KeypadButton} from \"../keypad-button\";\n\nimport type {ClickKeyCallback} from \"../../../types\";\n\ntype Props = {\n onClickKey: ClickKeyCallback;\n};\n\nexport default function GeometryPage(props: Props) {\n const {onClickKey} = props;\n const {strings} = useMathInputI18n();\n const Keys = KeyConfigs(strings);\n\n return (\n <>\n {/* Row 1 */}\n <KeypadButton\n keyConfig={Keys.SIN}\n onClickKey={onClickKey}\n coord={[0, 0]}\n />\n <KeypadButton\n keyConfig={Keys.COS}\n onClickKey={onClickKey}\n coord={[1, 0]}\n />\n <KeypadButton\n keyConfig={Keys.TAN}\n onClickKey={onClickKey}\n coord={[2, 0]}\n />\n </>\n );\n}\n","import * as React from \"react\";\n\nimport KeyConfigs from \"../../../data/key-configs\";\nimport {useMathInputI18n} from \"../../i18n-context\";\nimport {KeypadButton} from \"../keypad-button\";\n\nimport type {ClickKeyCallback} from \"../../../types\";\n\ntype Props = {\n onClickKey: ClickKeyCallback;\n scientific?: boolean;\n};\n\nexport default function NumbersPage({onClickKey, scientific}: Props) {\n const {strings} = useMathInputI18n();\n const Keys = KeyConfigs(strings);\n // These keys are arranged sequentially so that tabbing follows numerical order. This\n // allows us to visually mimic a keypad without affecting a11y. The visual order of the\n // keys in the keypad is determined by their coordinates, not their order in the DOM.\n return (\n <>\n {/* Row 4 */}\n <KeypadButton\n keyConfig={Keys.NUM_1}\n onClickKey={onClickKey}\n coord={[0, 2]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_2}\n onClickKey={onClickKey}\n coord={[1, 2]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_3}\n onClickKey={onClickKey}\n coord={[2, 2]}\n />\n\n {/* Row 3 */}\n <KeypadButton\n keyConfig={Keys.NUM_4}\n onClickKey={onClickKey}\n coord={[0, 1]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_5}\n onClickKey={onClickKey}\n coord={[1, 1]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_6}\n onClickKey={onClickKey}\n coord={[2, 1]}\n />\n\n {/* Row 2 */}\n <KeypadButton\n keyConfig={Keys.NUM_7}\n onClickKey={onClickKey}\n coord={[0, 0]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_8}\n onClickKey={onClickKey}\n coord={[1, 0]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_9}\n onClickKey={onClickKey}\n coord={[2, 0]}\n />\n\n {/* Row 1 */}\n <KeypadButton\n keyConfig={Keys.NUM_0}\n onClickKey={onClickKey}\n coord={[0, 3]}\n />\n <KeypadButton\n keyConfig={Keys.DECIMAL}\n onClickKey={onClickKey}\n coord={[1, 3]}\n />\n <KeypadButton\n keyConfig={Keys.NEGATIVE}\n onClickKey={onClickKey}\n coord={[2, 3]}\n />\n <KeypadButton\n keyConfig={Keys.PERCENT}\n onClickKey={onClickKey}\n coord={[3, 0]}\n secondary\n />\n {scientific && (\n <KeypadButton\n keyConfig={Keys.EXP}\n onClickKey={onClickKey}\n coord={[3, 2]}\n secondary\n />\n )}\n </>\n );\n}\n","import * as React from \"react\";\n\nimport KeyConfigs from \"../../../data/key-configs\";\nimport {useMathInputI18n} from \"../../i18n-context\";\nimport {KeypadButton} from \"../keypad-button\";\n\nimport type {ClickKeyCallback} from \"../../../types\";\n\ntype Props = {\n onClickKey: ClickKeyCallback;\n preAlgebra?: boolean;\n logarithms?: boolean;\n basicRelations?: boolean;\n advancedRelations?: boolean;\n};\n\nexport default function OperatorsPage(props: Props) {\n const {\n onClickKey,\n preAlgebra,\n logarithms,\n basicRelations,\n advancedRelations,\n } = props;\n const {strings} = useMathInputI18n();\n const Keys = KeyConfigs(strings);\n\n return (\n <>\n {/* Row 1 */}\n {preAlgebra && (\n <>\n <KeypadButton\n keyConfig={Keys.EXP_2}\n onClickKey={onClickKey}\n coord={[0, 0]}\n />\n <KeypadButton\n keyConfig={Keys.EXP}\n onClickKey={onClickKey}\n coord={[1, 0]}\n />\n <KeypadButton\n keyConfig={Keys.SQRT}\n onClickKey={onClickKey}\n coord={[2, 0]}\n />\n <KeypadButton\n keyConfig={Keys.RADICAL}\n onClickKey={onClickKey}\n coord={[3, 0]}\n />\n </>\n )}\n\n {/* Row 2 */}\n {logarithms && (\n <>\n <KeypadButton\n keyConfig={Keys.LOG}\n onClickKey={onClickKey}\n coord={[0, 1]}\n />\n <KeypadButton\n keyConfig={Keys.LOG_N}\n onClickKey={onClickKey}\n coord={[1, 1]}\n />\n <KeypadButton\n keyConfig={Keys.LN}\n onClickKey={onClickKey}\n coord={[2, 1]}\n />\n </>\n )}\n\n {/* Row 3 */}\n {basicRelations && (\n <>\n <KeypadButton\n keyConfig={Keys.EQUAL}\n onClickKey={onClickKey}\n coord={[0, 2]}\n />\n <KeypadButton\n keyConfig={Keys.LT}\n onClickKey={onClickKey}\n coord={[1, 2]}\n />\n <KeypadButton\n keyConfig={Keys.GT}\n onClickKey={onClickKey}\n coord={[2, 2]}\n />\n </>\n )}\n\n {/* Row 4 */}\n {advancedRelations && (\n <>\n <KeypadButton\n keyConfig={Keys.NEQ}\n onClickKey={onClickKey}\n coord={[0, 3]}\n />\n <KeypadButton\n keyConfig={Keys.LEQ}\n onClickKey={onClickKey}\n coord={[1, 3]}\n />\n <KeypadButton\n keyConfig={Keys.GEQ}\n onClickKey={onClickKey}\n coord={[2, 3]}\n />\n </>\n )}\n </>\n );\n}\n","import Clickable from \"@khanacademy/wonder-blocks-clickable\";\nimport {View} from \"@khanacademy/wonder-blocks-core\";\nimport {color} from \"@khanacademy/wonder-blocks-tokens\";\nimport {StyleSheet} from \"aphrodite\";\nimport * as React from \"react\";\n\nimport ButtonAsset from \"./button-assets\";\n\nimport type {KeyConfig, ClickKeyCallback} from \"../../types\";\nimport type {KeypadKey} from \"@khanacademy/perseus-core\";\n\ntype KeypadButtonProps = {\n // 0 indexed [x, y] position in keypad CSS grid\n coord: readonly [number, number];\n keyConfig: KeyConfig;\n onClickKey: ClickKeyCallback;\n};\n\nfunction getStyles(key: KeypadKey) {\n switch (key) {\n case \"UP\":\n return styles.up;\n case \"RIGHT\":\n return styles.right;\n case \"DOWN\":\n return styles.down;\n case \"LEFT\":\n return styles.left;\n default:\n throw new Error(`Invalid key: ${key}`);\n }\n}\n\nexport default function NavigationButton({\n coord,\n keyConfig,\n onClickKey,\n}: KeypadButtonProps) {\n const key = keyConfig.id;\n const directionalStyles = getStyles(key);\n\n return (\n <View\n style={{\n gridColumn: coord[0] + 1,\n gridRow: coord[1] + 1,\n }}\n >\n <Clickable\n onClick={(e) => onClickKey(keyConfig.id, e)}\n style={styles.clickable}\n aria-label={keyConfig.ariaLabel}\n >\n {({hovered, focused, pressed}) => (\n <View style={styles.outerBoxBase}>\n <View\n style={[\n styles.base,\n directionalStyles,\n hovered && styles.hovered,\n focused && styles.focused,\n pressed && styles.pressed,\n ]}\n >\n <ButtonAsset id={keyConfig.id} />\n </View>\n </View>\n )}\n </Clickable>\n </View>\n );\n}\n\nconst borderRadiusPx = 4;\n\nconst styles = StyleSheet.create({\n clickable: {\n width: \"100%\",\n height: \"100%\",\n\n \":focus\": {\n outline: `none`,\n },\n },\n outerBoxBase: {\n height: \"100%\",\n width: \"100%\",\n },\n base: {\n boxShadow: `0px 1px 0px ${color.offBlack32}`,\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n background: color.white,\n borderWidth: 2,\n borderColor: color.white,\n },\n up: {\n borderTopLeftRadius: borderRadiusPx,\n borderTopRightRadius: borderRadiusPx,\n },\n right: {\n borderTopRightRadius: borderRadiusPx,\n borderBottomRightRadius: borderRadiusPx,\n },\n down: {\n borderBottomLeftRadius: borderRadiusPx,\n borderBottomRightRadius: borderRadiusPx,\n },\n left: {\n borderTopLeftRadius: borderRadiusPx,\n borderBottomLeftRadius: borderRadiusPx,\n },\n hovered: {\n borderColor: color.blue,\n boxShadow: \"none\",\n },\n focused: {\n borderColor: color.blue,\n boxShadow: \"none\",\n },\n pressed: {\n border: \"2px solid #1B50B3\",\n background: `linear-gradient(0deg, rgba(24, 101, 242, 0.32), rgba(24, 101, 242, 0.32)), ${color.white}`,\n boxShadow: \"none\",\n },\n});\n","import {View} from \"@khanacademy/wonder-blocks-core\";\nimport {color} from \"@khanacademy/wonder-blocks-tokens\";\nimport {StyleSheet} from \"aphrodite\";\nimport * as React from \"react\";\n\nimport KeyConfigs from \"../../data/key-configs\";\nimport {useMathInputI18n} from \"../i18n-context\";\n\nimport NavigationButton from \"./navigation-button\";\n\nimport type {ClickKeyCallback} from \"../../types\";\n\ntype Props = {\n onClickKey: ClickKeyCallback;\n};\n\nexport default function NavigationPad(props: Props) {\n const {onClickKey} = props;\n const {strings} = useMathInputI18n();\n const Keys = KeyConfigs(strings);\n\n return (\n <View style={styles.container}>\n <View style={styles.grid}>\n <NavigationButton\n keyConfig={Keys.UP}\n onClickKey={onClickKey}\n coord={[1, 0]}\n />\n <NavigationButton\n keyConfig={Keys.RIGHT}\n onClickKey={onClickKey}\n coord={[2, 1]}\n />\n <NavigationButton\n keyConfig={Keys.DOWN}\n onClickKey={onClickKey}\n coord={[1, 2]}\n />\n <NavigationButton\n keyConfig={Keys.LEFT}\n onClickKey={onClickKey}\n coord={[0, 1]}\n />\n <View style={styles.spacer} />\n </View>\n </View>\n );\n}\n\nconst styles = StyleSheet.create({\n container: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n padding: \"0 1.5rem\",\n },\n grid: {\n width: 140,\n height: 140,\n display: \"grid\",\n gridTemplateColumns: \"repeat(3, 1fr)\",\n gridTemplateRows: \"repeat(3, 1fr)\",\n },\n spacer: {\n gridColumn: 2,\n gridRow: 2,\n background: color.white,\n },\n});\n","import * as React from \"react\";\n\nimport KeyConfigs from \"../../data/key-configs\";\nimport {convertDotToTimesByLocale} from \"../../utils\";\nimport {useMathInputI18n} from \"../i18n-context\";\n\nimport {KeypadButton} from \"./keypad-button\";\nimport {getCursorContextConfig} from \"./utils\";\n\nimport type {ClickKeyCallback, KeypadPageType} from \"../../types\";\nimport type {CursorContext} from \"../input/cursor-contexts\";\n\ntype Props = {\n onClickKey: ClickKeyCallback;\n selectedPage: KeypadPageType;\n cursorContext?: (typeof CursorContext)[keyof typeof CursorContext];\n convertDotToTimes?: boolean;\n divisionKey?: boolean;\n};\n\nexport default function SharedKeys(props: Props) {\n const {\n onClickKey,\n cursorContext,\n divisionKey,\n convertDotToTimes,\n selectedPage,\n } = props;\n const {strings, locale} = useMathInputI18n();\n const cursorKeyConfig = getCursorContextConfig(strings, cursorContext);\n const Keys = KeyConfigs(strings);\n\n // Fraction position depends on the page\n const fractionCoord: readonly [number, number] =\n selectedPage === \"Numbers\" || selectedPage === \"Operators\"\n ? [3, 1]\n : [3, 0];\n\n return (\n <>\n <KeypadButton\n keyConfig={Keys.FRAC}\n onClickKey={onClickKey}\n coord={fractionCoord}\n secondary\n />\n <KeypadButton\n keyConfig={Keys.PLUS}\n onClickKey={onClickKey}\n coord={[4, 0]}\n secondary\n />\n <KeypadButton\n keyConfig={Keys.MINUS}\n onClickKey={onClickKey}\n coord={[5, 0]}\n secondary\n />\n {/* Row 2 */}\n <KeypadButton\n keyConfig={\n convertDotToTimesByLocale(locale, !!convertDotToTimes)\n ? Keys.TIMES\n : Keys.CDOT\n }\n onClickKey={onClickKey}\n coord={[4, 1]}\n secondary\n />\n {divisionKey && (\n <KeypadButton\n keyConfig={Keys.DIVIDE}\n onClickKey={onClickKey}\n coord={[5, 1]}\n secondary\n />\n )}\n\n {/* Row 3 */}\n <KeypadButton\n keyConfig={Keys.LEFT_PAREN}\n onClickKey={onClickKey}\n coord={[4, 2]}\n secondary\n />\n <KeypadButton\n keyConfig={Keys.RIGHT_PAREN}\n onClickKey={onClickKey}\n coord={[5, 2]}\n secondary\n />\n\n {/* Row 4 */}\n {cursorKeyConfig && (\n <KeypadButton\n keyConfig={cursorKeyConfig}\n onClickKey={onClickKey}\n coord={[4, 3]}\n secondary\n />\n )}\n <KeypadButton\n keyConfig={Keys.BACKSPACE}\n onClickKey={onClickKey}\n coord={[5, 3]}\n secondary\n />\n </>\n );\n}\n","import {View} from \"@khanacademy/wonder-blocks-core\";\nimport {color} from \"@khanacademy/wonder-blocks-tokens\";\nimport {StyleSheet} from \"aphrodite\";\nimport * as React from \"react\";\nimport {useEffect} from \"react\";\n\nimport Tabbar from \"../tabbar\";\n\nimport ExtrasPage from \"./keypad-pages/extras-page\";\nimport FractionsPage from \"./keypad-pages/fractions-page\";\nimport GeometryPage from \"./keypad-pages/geometry-page\";\nimport NumbersPage from \"./keypad-pages/numbers-page\";\nimport OperatorsPage from \"./keypad-pages/operators-page\";\nimport NavigationPad from \"./navigation-pad\";\nimport SharedKeys from \"./shared-keys\";\nimport {expandedViewThreshold} from \"./utils\";\n\nimport type {ClickKeyCallback, KeypadPageType} from \"../../types\";\nimport type {CursorContext} from \"../input/cursor-contexts\";\nimport type {\n AnalyticsEventHandlerFn,\n KeypadKey,\n} from \"@khanacademy/perseus-core\";\n\ntype Props = {\n extraKeys?: ReadonlyArray<KeypadKey>;\n cursorContext?: (typeof CursorContext)[keyof typeof CursorContext];\n showDismiss?: boolean;\n expandedView?: boolean;\n\n convertDotToTimes?: boolean;\n divisionKey?: boolean;\n trigonometry?: boolean;\n preAlgebra?: boolean;\n logarithms?: boolean;\n basicRelations?: boolean;\n advancedRelations?: boolean;\n fractionsOnly?: boolean;\n scientific?: boolean;\n\n onClickKey: ClickKeyCallback;\n onAnalyticsEvent: AnalyticsEventHandlerFn;\n};\n\nfunction getAvailableTabs(props: Props): ReadonlyArray<KeypadPageType> {\n // We don't want to show any available tabs on the fractions keypad\n if (props.fractionsOnly) {\n return [];\n }\n\n const tabs: Array<KeypadPageType> = [\"Numbers\"];\n if (\n // OperatorsButtonSets\n props.preAlgebra ||\n props.logarithms ||\n props.basicRelations ||\n props.advancedRelations\n ) {\n tabs.push(\"Operators\");\n }\n\n if (props.trigonometry) {\n tabs.push(\"Geometry\");\n }\n\n if (props.extraKeys?.length) {\n tabs.push(\"Extras\");\n }\n\n return tabs;\n}\n\n// The main (v2) Keypad. Use this component to present an accessible, onscreen\n// keypad to learners for entering math expressions.\nexport default function Keypad({extraKeys = [], ...props}: Props) {\n // If we're using the Fractions keypad, we want to default select that page\n // Otherwise, we want to default to the Numbers page\n const defaultSelectedPage = props.fractionsOnly ? \"Fractions\" : \"Numbers\";\n const [selectedPage, setSelectedPage] =\n React.useState<KeypadPageType>(defaultSelectedPage);\n const [isMounted, setIsMounted] = React.useState<boolean>(false);\n\n // We don't want any tabs available on mobile fractions keypad\n const availableTabs = getAvailableTabs({...props, extraKeys});\n\n const {\n onClickKey,\n cursorContext,\n convertDotToTimes,\n divisionKey,\n preAlgebra,\n logarithms,\n basicRelations,\n advancedRelations,\n scientific,\n showDismiss,\n onAnalyticsEvent,\n fractionsOnly,\n expandedView,\n } = props;\n\n // Use a different grid for our fraction keypad\n const gridStyle = fractionsOnly\n ? styles.fractionsGrid\n : styles.expressionGrid;\n\n // This useEffect is only used to ensure that we can test the keypad in storybook\n useEffect(() => {\n setSelectedPage(defaultSelectedPage);\n }, [fractionsOnly, defaultSelectedPage]);\n\n useEffect(() => {\n if (!isMounted) {\n onAnalyticsEvent({\n type: \"math-input:keypad-opened\",\n payload: {virtualKeypadVersion: \"MATH_INPUT_KEYPAD_V2\"},\n });\n setIsMounted(true);\n }\n return () => {\n if (isMounted) {\n onAnalyticsEvent({\n type: \"math-input:keypad-closed\",\n payload: {virtualKeypadVersion: \"MATH_INPUT_KEYPAD_V2\"},\n });\n setIsMounted(false);\n }\n };\n }, [onAnalyticsEvent, isMounted]);\n\n return (\n <View style={expandedView ? styles.keypadOuterContainer : null}>\n <View\n style={[\n styles.wrapper,\n expandedView ? styles.expandedWrapper : null,\n ]}\n >\n <Tabbar\n items={availableTabs}\n selectedItem={selectedPage}\n onSelectItem={(newSelectedPage: KeypadPageType) => {\n setSelectedPage(newSelectedPage);\n }}\n onClickClose={\n showDismiss ? () => onClickKey(\"DISMISS\") : undefined\n }\n />\n\n <View style={styles.keypadInnerContainer}>\n <View\n style={[styles.keypadGrid, gridStyle]}\n aria-label=\"Keypad\"\n >\n {selectedPage === \"Fractions\" && (\n <FractionsPage\n onClickKey={onClickKey}\n cursorContext={cursorContext}\n />\n )}\n {selectedPage === \"Numbers\" && (\n <NumbersPage\n onClickKey={onClickKey}\n scientific={scientific}\n />\n )}\n {selectedPage === \"Extras\" && (\n <ExtrasPage\n onClickKey={onClickKey}\n extraKeys={extraKeys}\n />\n )}\n {selectedPage === \"Operators\" && (\n <OperatorsPage\n onClickKey={onClickKey}\n preAlgebra={preAlgebra}\n logarithms={logarithms}\n basicRelations={basicRelations}\n advancedRelations={advancedRelations}\n />\n )}\n {selectedPage === \"Geometry\" && (\n <GeometryPage onClickKey={onClickKey} />\n )}\n {!fractionsOnly && (\n <SharedKeys\n onClickKey={onClickKey}\n cursorContext={cursorContext}\n convertDotToTimes={convertDotToTimes}\n divisionKey={divisionKey}\n selectedPage={selectedPage}\n />\n )}\n </View>\n {expandedView && <NavigationPad onClickKey={onClickKey} />}\n </View>\n </View>\n </View>\n );\n}\n\nconst styles = StyleSheet.create({\n keypadOuterContainer: {\n display: \"flex\",\n alignItems: \"center\",\n },\n wrapper: {\n background: color.white,\n },\n expandedWrapper: {\n borderWidth: \"1px 1px 0 1px\",\n borderColor: color.offBlack32,\n maxWidth: expandedViewThreshold,\n borderRadius: \"3px 3px 0 0\",\n },\n keypadInnerContainer: {\n display: \"flex\",\n flexDirection: \"row\",\n backgroundColor: \"#DBDCDD\",\n },\n keypadGrid: {\n display: \"grid\",\n gridTemplateRows: \"repeat(4, 1fr)\",\n flex: 1,\n },\n expressionGrid: {\n gridTemplateColumns: \"repeat(6, 1fr)\",\n },\n fractionsGrid: {\n gridTemplateColumns: \"repeat(5, 1fr)\",\n },\n});\n","import {entries} from \"@khanacademy/wonder-stuff-core\";\nimport {StyleSheet, css} from \"aphrodite\";\n\nimport type {StyleType} from \"@khanacademy/wonder-blocks-core\";\nimport type {CSSProperties} from \"aphrodite\";\n\nfunction flatten(list?: StyleType): ReadonlyArray<CSSProperties> {\n const result: Array<CSSProperties> = [];\n\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions\n if (!list) {\n return result;\n }\n if (Array.isArray(list)) {\n for (const item of list) {\n result.push(...flatten(item));\n }\n } else {\n result.push(list as any);\n }\n\n return result;\n}\n\nexport function processStyleType(style?: StyleType): {\n className: string;\n style: Record<any, any>;\n} {\n const stylesheetStyles: Array<CSSProperties> = [];\n const inlineStyles: Array<CSSProperties> = [];\n\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions\n if (!style) {\n return {\n style: {},\n className: \"\",\n };\n }\n\n // Check to see if we should inline all the styles for snapshot tests.\n const shouldInlineStyles =\n typeof globalThis !== \"undefined\" &&\n globalThis.SNAPSHOT_INLINE_APHRODITE;\n\n flatten(style).forEach((child) => {\n // Check for aphrodite internal property\n const _definition = (child as any)._definition;\n if (_definition != null) {\n if (shouldInlineStyles) {\n const def: Record<string, any> = {};\n // React 16 complains about invalid keys in inline styles.\n // It doesn't accept kebab-case in media queries and instead\n // prefers camelCase.\n for (const [key, value] of entries(_definition)) {\n // This regex converts all instances of -{lowercaseLetter}\n // to the uppercase version of that letter, without the\n // leading dash.\n def[\n key.replace(/-[a-z]/g, (match) =>\n match[1].toUpperCase(),\n )\n ] = value;\n }\n inlineStyles.push(def);\n } else {\n stylesheetStyles.push(child);\n }\n } else {\n inlineStyles.push(child);\n }\n });\n\n const inlineStylesObject = Object.assign({}, ...inlineStyles);\n\n // TODO(somewhatabstract): When aphrodite no longer puts \"!important\" on\n // all the styles, remove this <ADD JIRA ISSUE HERE IF THIS PASSES REVIEW>\n // If we're not snapshotting styles, let's create a class for the inline\n // styles so that they can apply to the element even with aphrodite's\n // use of !important.\n if (inlineStyles.length > 0 && !shouldInlineStyles) {\n const inlineStylesStyleSheet = StyleSheet.create({\n inlineStyles: inlineStylesObject,\n });\n stylesheetStyles.push(inlineStylesStyleSheet.inlineStyles);\n }\n\n return {\n style: shouldInlineStyles ? inlineStylesObject : {},\n className: css(...stylesheetStyles),\n };\n}\n","import {withActionScheduler} from \"@khanacademy/wonder-blocks-timing\";\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\n\nimport {processStyleType} from \"./util\";\n\nimport type {AnimationStyles} from \"./types\";\nimport type {WithActionSchedulerProps} from \"@khanacademy/wonder-blocks-timing\";\n\ntype ChildProps = {\n transitionStyles: AnimationStyles | (() => AnimationStyles);\n appearTimeout?: number; // default appearTimeout to be the same as enterTimeout\n enterTimeout?: number;\n leaveTimeout?: number;\n children: React.ReactNode;\n in?: boolean; // provided by TransitionGroup\n} & WithActionSchedulerProps;\n\ntype ChildState = {\n // Keeps track of whether we should render our children or not.\n status: \"mounted\" | \"unmounted\";\n};\n\nclass TransitionChild extends React.Component<ChildProps, ChildState> {\n // Each 2-tuple in the queue represents two classnames: one to remove and\n // one to add (in that order).\n classNameQueue: Array<[string, string]>;\n // We keep track of all of the current applied classes so that we can remove\n // them before a new transition starts in the case of the current transition\n // being interrupted.\n appliedClassNames: Set<string>;\n _isMounted = false;\n\n // The use of getDerivedStateFromProps here is to avoid an extra call to\n // setState if the component re-enters. This can happen if TransitionGroup\n // sets `in` from `false` to `true`.\n // eslint-disable-next-line no-restricted-syntax\n static getDerivedStateFromProps(\n {in: nextIn}: ChildProps,\n prevState: ChildState,\n ): Partial<ChildState> | null {\n if (nextIn && prevState.status === \"unmounted\") {\n return {status: \"mounted\"};\n }\n return null;\n }\n\n constructor(props: ChildProps) {\n super(props);\n\n this._isMounted = false;\n this.classNameQueue = [];\n this.appliedClassNames = new Set();\n\n this.state = {\n status: \"mounted\",\n };\n }\n\n componentDidMount() {\n this._isMounted = true;\n\n if (typeof this.props.appearTimeout === \"number\") {\n this.transition(\"appear\", this.props.appearTimeout);\n } else {\n this.transition(\"enter\", this.props.enterTimeout);\n }\n }\n\n componentDidUpdate(oldProps: ChildProps, oldState: ChildState) {\n if (oldProps.in && !this.props.in) {\n this.transition(\"leave\", this.props.leaveTimeout);\n } else if (!oldProps.in && this.props.in) {\n this.transition(\"enter\", this.props.enterTimeout);\n }\n\n if (oldState.status !== \"mounted\" && this.state.status === \"mounted\") {\n // Remove the node from the DOM\n // eslint-disable-next-line react/no-did-update-set-state\n this.setState({status: \"unmounted\"});\n }\n }\n\n // NOTE: This will only get called when the parent TransitionGroup becomes\n // unmounted. This is because that component clones all of its children and\n // keeps them around so that they can be animated when leaving and also so\n // that the can be animated when re-rentering if that occurs.\n componentWillUnmount() {\n this._isMounted = false;\n this.props.schedule.clearAll();\n }\n\n removeAllClasses(node: Element) {\n for (const className of this.appliedClassNames) {\n this.removeClass(node, className);\n }\n }\n\n addClass = (elem: Element, className: string): void => {\n if (className) {\n elem.classList.add(className);\n this.appliedClassNames.add(className);\n }\n };\n\n removeClass = (elem: Element, className: string): void => {\n if (className) {\n elem.classList.remove(className);\n this.appliedClassNames.delete(className);\n }\n };\n\n transition(\n animationType: \"appear\" | \"enter\" | \"leave\",\n duration?: number | null,\n ) {\n const node = ReactDOM.findDOMNode(this);\n\n if (!(node instanceof Element)) {\n return;\n }\n\n // Remove any classes from previous transitions.\n this.removeAllClasses(node);\n\n // A previous transition may still be in progress so clear its timers.\n this.props.schedule.clearAll();\n\n const transitionStyles =\n typeof this.props.transitionStyles === \"function\"\n ? this.props.transitionStyles()\n : this.props.transitionStyles;\n\n const {className} = processStyleType(transitionStyles[animationType]);\n const {className: activeClassName} = processStyleType([\n transitionStyles[animationType],\n transitionStyles[animationType + \"Active\"],\n ]);\n\n // Put the node in the starting position.\n this.addClass(node, className);\n\n // Queue the component to show the \"active\" style.\n this.queueClass(className, activeClassName);\n\n // Unmount the children after the 'leave' transition has completed.\n if (animationType === \"leave\") {\n this.props.schedule.timeout(() => {\n if (this._isMounted) {\n this.setState({status: \"unmounted\"});\n }\n }, duration || 0);\n }\n }\n\n queueClass(removeClassName: string, addClassName: string) {\n this.classNameQueue.push([removeClassName, addClassName]);\n // Queue operation for after the next paint.\n this.props.schedule.timeout(this.flushClassNameQueue, 0);\n }\n\n flushClassNameQueue = () => {\n if (this._isMounted) {\n const node = ReactDOM.findDOMNode(this);\n if (node instanceof Element) {\n this.classNameQueue.forEach(\n ([removeClassName, addClassName]: [any, any]) => {\n // Remove the old class before adding a new class just\n // in case the new class is the same as the old one.\n this.removeClass(node, removeClassName);\n this.addClass(node, addClassName);\n },\n );\n }\n }\n\n // Remove all items in the Array.\n this.classNameQueue.length = 0;\n };\n\n render(): React.ReactNode {\n const {status} = this.state;\n\n if (status === \"unmounted\") {\n return null;\n }\n\n return this.props.children;\n }\n}\n\nexport default withActionScheduler(TransitionChild);\n","/**\n * Aphrodite doesn't play well with CSSTransition from react-transition-group,\n * which assumes that you have CSS classes and it can combine them arbitrarily.\n *\n * There are also some issue with react-transition-group that make it difficult\n * to work. Even if the CSS classes are defined ahead of time it makes no\n * guarantee that the start style will be applied by the browser before the\n * active style is applied. This can cause the first time a transition runs to\n * fail.\n *\n * AphroditeCSSTransitionGroup provides a wrapper around TransitionGroup to\n * address these issues.\n *\n * There are three types of transitions:\n * - appear: the time the child is added to the render tree\n * - enter: whenever the child is added to the render tree after \"appear\". If\n * no \"appear\" transition is specified then the \"enter\" transition will also\n * be used for the first time the child is added to the render tree.\n * - leave: whenever the child is removed from the render tree\n *\n * Each transition type has two states:\n * - base: e.g. css(enter)\n * - active: e.g. css(enter, enterActive)\n *\n * If \"done\" styles are not provided, the \"active\" style will remain on the\n * component after the animation has completed.\n *\n * Usage: TBD\n *\n * Limitations:\n * - This component only supports a single child whereas TransitionGroup supports\n * multiple children.\n * - We ignore inline styles that are provided as part of AnimationStyles.\n *\n * TODOs:\n * - (FEI-3211): Change the API for AphroditeCSSTransitionGroup so that it makes\n * bad states impossible.\n */\nimport * as React from \"react\";\nimport {TransitionGroup} from \"react-transition-group\";\n\nimport TransitionChild from \"./transition-child\";\n\nimport type {AnimationStyles} from \"./types\";\n\ntype Props = {\n // If a function is provided, that function will be called to retrieve the\n // current set of animation styles to be used when animating the children.\n transitionStyle: AnimationStyles | (() => AnimationStyles);\n transitionAppearTimeout?: number;\n transitionEnterTimeout?: number;\n transitionLeaveTimeout?: number;\n children?: React.ReactNode;\n};\n\nclass AphroditeCSSTransitionGroup extends React.Component<Props> {\n render(): React.ReactNode {\n const {children} = this.props;\n return (\n // `component={null}` prevents wrapping each child with a <div>\n // which can muck with certain layouts.\n <TransitionGroup component={null}>\n {React.Children.map(children, (child) => (\n <TransitionChild\n transitionStyles={this.props.transitionStyle}\n appearTimeout={this.props.transitionAppearTimeout}\n enterTimeout={this.props.transitionEnterTimeout}\n leaveTimeout={this.props.transitionLeaveTimeout}\n >\n {child}\n </TransitionChild>\n ))}\n </TransitionGroup>\n );\n }\n}\n\nexport default AphroditeCSSTransitionGroup;\n","import {StyleSheet} from \"aphrodite\";\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\n\nimport {View} from \"../../fake-react-native-web/index\";\nimport AphroditeCssTransitionGroup from \"../aphrodite-css-transition-group\";\n\nimport Keypad from \"./keypad\";\nimport {expandedViewThreshold} from \"./utils\";\n\nimport type {Cursor, KeyHandler, KeypadAPI} from \"../../types\";\nimport type {\n AnalyticsEventHandlerFn,\n KeypadConfiguration,\n KeypadKey,\n} from \"@khanacademy/perseus-core\";\nimport type {StyleType} from \"@khanacademy/wonder-blocks-core\";\n\nconst AnimationDurationInMS = 200;\n\ntype Props = {\n onElementMounted?: (arg1: any) => void;\n onDismiss?: () => void;\n style?: StyleType;\n onAnalyticsEvent: AnalyticsEventHandlerFn;\n setKeypadActive: (keypadActive: boolean) => void;\n keypadActive: boolean;\n};\n\ntype State = {\n containerWidth: number;\n keypadConfig?: KeypadConfiguration;\n keyHandler?: KeyHandler;\n cursor?: Cursor;\n};\n\n/**\n * This is the v2 equivalent of v1's ProvidedKeypad. It follows the same\n * external API so that it can be hot-swapped with the v1 keypad and\n * is responsible for connecting the keypad with MathInput and the Renderer.\n *\n * Ideally this strategy of attaching methods on the class component for\n * other components to call will be replaced props/callbacks since React\n * doesn't support this type of code anymore (functional components\n * can't have methods attached to them).\n */\nclass MobileKeypadInternals\n extends React.Component<Props, State>\n implements KeypadAPI\n{\n _containerRef = React.createRef<HTMLDivElement>();\n _containerResizeObserver: ResizeObserver | null = null;\n _throttleResize = false;\n\n state: State = {\n containerWidth: 0,\n };\n\n componentDidMount() {\n this._resize();\n\n window.addEventListener(\"resize\", this._throttleResizeHandler);\n window.addEventListener(\n \"orientationchange\",\n this._throttleResizeHandler,\n );\n\n // LC-1213: some common older browsers (as of 2023-09-07)\n // don't support ResizeObserver\n if (\"ResizeObserver\" in window) {\n this._containerResizeObserver = new window.ResizeObserver(\n this._throttleResizeHandler,\n );\n\n if (this._containerRef.current) {\n this._containerResizeObserver.observe(\n this._containerRef.current,\n );\n }\n }\n\n this.props.onElementMounted?.({\n activate: this.activate,\n dismiss: this.dismiss,\n configure: this.configure,\n setCursor: this.setCursor,\n setKeyHandler: this.setKeyHandler,\n getDOMNode: this.getDOMNode,\n });\n }\n\n componentWillUnmount() {\n window.removeEventListener(\"resize\", this._throttleResizeHandler);\n window.removeEventListener(\n \"orientationchange\",\n this._throttleResizeHandler,\n );\n this._containerResizeObserver?.disconnect();\n }\n\n _resize = () => {\n const containerWidth = this._containerRef.current?.clientWidth || 0;\n this.setState({containerWidth});\n };\n\n _throttleResizeHandler = () => {\n if (this._throttleResize) {\n return;\n }\n\n this._throttleResize = true;\n\n setTimeout(() => {\n this._resize();\n this._throttleResize = false;\n }, 100);\n };\n\n activate: () => void = () => {\n this.props.setKeypadActive(true);\n };\n\n dismiss: () => void = () => {\n this.props.setKeypadActive(false);\n this.props.onDismiss?.();\n };\n\n configure: (configuration: KeypadConfiguration, cb: () => void) => void = (\n configuration,\n cb,\n ) => {\n this.setState({keypadConfig: configuration});\n\n // TODO(matthewc)[LC-1080]: this was brought in from v1's ProvidedKeypad.\n // We need to investigate whether we still need this.\n // HACK(charlie): In Perseus, triggering a focus causes the keypad to\n // animate into view and re-configure. We'd like to provide the option\n // to re-render the re-configured keypad before animating it into view,\n // to avoid jank in the animation. As such, we support passing a\n // callback into `configureKeypad`. However, implementing this properly\n // would require middleware, etc., so we just hack it on with\n // `setTimeout` for now.\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions\n setTimeout(() => cb && cb());\n };\n\n setCursor: (cursor: Cursor) => void = (cursor) => {\n this.setState({cursor});\n };\n\n setKeyHandler: (keyHandler: KeyHandler) => void = (keyHandler) => {\n this.setState({keyHandler});\n };\n\n getDOMNode: () => ReturnType<typeof ReactDOM.findDOMNode> = () => {\n return ReactDOM.findDOMNode(this);\n };\n\n _handleClickKey(key: KeypadKey) {\n if (key === \"DISMISS\") {\n this.dismiss();\n return;\n }\n\n const cursor = this.state.keyHandler?.(key);\n this.setState({cursor});\n }\n\n render(): React.ReactNode {\n const {keypadActive, style} = this.props;\n const {containerWidth, cursor, keypadConfig} = this.state;\n\n const containerStyle = [\n styles.keypadContainer,\n // styles passed as props\n ...(Array.isArray(style) ? style : [style]),\n ];\n\n const isExpression = keypadConfig?.keypadType === \"EXPRESSION\";\n const convertDotToTimes = keypadConfig?.times;\n\n return (\n <View style={containerStyle} forwardRef={this._containerRef}>\n <AphroditeCssTransitionGroup\n transitionEnterTimeout={AnimationDurationInMS}\n transitionLeaveTimeout={AnimationDurationInMS}\n transitionStyle={{\n enter: {\n transform: \"translate3d(0, 100%, 0)\",\n transition: `${AnimationDurationInMS}ms ease-out`,\n },\n enterActive: {\n transform: \"translate3d(0, 0, 0)\",\n },\n leave: {\n transform: \"translate3d(0, 0, 0)\",\n transition: `${AnimationDurationInMS}ms ease-out`,\n },\n leaveActive: {\n transform: \"translate3d(0, 100%, 0)\",\n },\n }}\n >\n {keypadActive ? (\n <Keypad\n onAnalyticsEvent={this.props.onAnalyticsEvent}\n extraKeys={keypadConfig?.extraKeys}\n onClickKey={(key) => this._handleClickKey(key)}\n cursorContext={cursor?.context}\n fractionsOnly={!isExpression}\n convertDotToTimes={convertDotToTimes}\n divisionKey={isExpression}\n trigonometry={isExpression}\n preAlgebra={isExpression}\n logarithms={isExpression}\n basicRelations={isExpression}\n advancedRelations={isExpression}\n expandedView={\n containerWidth > expandedViewThreshold\n }\n showDismiss\n scientific={\n isExpression && keypadConfig?.scientific\n }\n />\n ) : null}\n </AphroditeCssTransitionGroup>\n </View>\n );\n }\n}\n\nconst styles = StyleSheet.create({\n keypadContainer: {\n bottom: 0,\n left: 0,\n right: 0,\n position: \"fixed\",\n },\n});\n\nexport default MobileKeypadInternals;\n","import {KeypadContext} from \"@khanacademy/keypad-context\";\nimport * as React from \"react\";\n\nimport MobileKeypadInternals from \"./mobile-keypad-internals\";\n\ntype Props = Omit<\n React.ComponentProps<typeof MobileKeypadInternals>,\n \"keypadActive\" | \"setKeypadActive\"\n>;\n\nexport function MobileKeypad(props: Props) {\n return (\n <KeypadContext.Consumer>\n {({keypadActive, setKeypadActive}) => (\n <MobileKeypadInternals\n {...props}\n keypadActive={keypadActive}\n setKeypadActive={setKeypadActive}\n />\n )}\n </KeypadContext.Consumer>\n );\n}\n","/**\n * React PropTypes that may be shared between components.\n */\n\nimport PropTypes from \"prop-types\";\n\n// NOTE(jared): This is no longer guaranteed to be React element\n// @deprecated Use `KeypadAPI` Typescript interface instead.\nexport const keypadElementPropType = PropTypes.shape({\n activate: PropTypes.func.isRequired,\n dismiss: PropTypes.func.isRequired,\n configure: PropTypes.func.isRequired,\n setCursor: PropTypes.func.isRequired,\n setKeyHandler: PropTypes.func.isRequired,\n getDOMNode: PropTypes.func.isRequired,\n});\n"],"names":["libName","libVersion","addLibraryVersionToPerseusDebug","View","React","Component","render","className","css","styles","initial","Array","isArray","props","style","extraClassName","createElement","dynamicStyle","onClick","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","ariaLabel","role","ref","forwardRef","children","StyleSheet","create","alignItems","borderWidth","borderStyle","boxSizing","display","flexBasis","flexDirection","margin","padding","position","backgroundColor","color","font","textAlign","textDecorationLine","listStyle","maxWidth","minHeight","minWidth","mockStrings","mathInputBox","fingerTap","before","obj","after","beginning of","end of","Baseline","Superscript","selected","labelValue","label","value","plus","minus","negative","times","divide","decimal","percent","cdot","equalsSign","notEqualsSign","greaterThanSign","lessThanSign","greaterThanOrEqualToSign","lessThanOrEqualSign","fractionExpressionInNumerator","fractionExcludingExpression","customExponent","square","cube","squareRoot","cubeRoot","radicalWithCustomRoot","leftParenthesis","rightParenthesis","naturalLog","logBase10","logCustomBase","sine","sin","cosine","cos","tangent","tan","pi","theta","upArrow","rightArrow","downArrow","leftArrow","navOutOfParentheses","navOutOfExponent","navOutOfBase","navIntoNumerator","navOutOfNumeratorIntoDenominator","navOutOfDenominator","delete","dismiss","MathInputI18nContext","createContext","process","env","NODE_ENV","STORYBOOK","strings","locale","MathInputI18nContextProvider","Provider","useMathInputI18n","useContext","cursorHandleRadiusPx","cursorHandleDistanceMultiplier","touchTargetRadiusPx","touchTargetHeightPx","touchTargetWidthPx","cursorRadiusPx","cursorHeightPx","cursorWidthPx","CursorHandle","x","y","animateIntoPosition","animationStyle","transitionDuration","transitionProperty","transformString","outerStyle","_extends","zIndex","left","top","transform","width","height","touchAction","fill","viewBox","id","colorInterpolationFilters","filterUnits","floodOpacity","result","in","type","values","dy","stdDeviation","in2","mode","filter","d","stroke","strokeWidth","defaultProps","visible","touchSlopPx","DragListener","constructor","onDrag","initialEvent","_scrollListener","_moveListener","_endAndCancelListener","touchLocationsById","i","changedTouches","length","touch","identifier","clientX","clientY","evt","initialTouchLocation","touchLocation","dx","squaredDist","squaredTouchSlop","attach","window","addEventListener","detach","removeEventListener","MathFieldActionType","CursorContext","CDOT_ONLY","TIMES_ONLY","convertDotToTimesByLocale","convertDotToTimes","includes","inJest","_process","JEST_WORKER_ID","mathQuillInstance","MathQuill","getInterface","createBaseConfig","autoCommands","autoOperatorNames","join","charsThatBreakOutOfSupSub","supSubsRequireOperand","spaceBehavesLikeTab","createMathField","container","configCallback","baseConfig","config","mathField","MathField","setAriaLabel","setAriaStringsOverrideMap","SpeechRuleEngine","setup","then","SRE","setMathspeakOverride","texToSpeech","Numerals","GreekLetters","Letters","ValidLeaves","map","letter","toLowerCase","toUpperCase","mqNodeHasClass","node","_el","classList","contains","isFraction","isNumerator","isDenominator","isSubScript","isSuperScript","isParens","ctrlSeq","isLeaf","trim","isSquareRoot","blocks","isNthRoot","isNthRootIndex","isInsideLogIndex","cursor","grandparent","parent","command","maybeFindCommandBeforeParens","name","isInsideEmptyNode","L","MQ_END","R","selectNode","insLeftOf","startSelection","insRightOf","select","endSelection","maybeFindCommand","initialNode","commandCharRegex","commandStartRegex","commandEndSeq","validCommands","startNode","endNode","test","leftParenNode","getCursorContext","NONE","visitor","BEFORE_FRACTION","IN_PARENS","IN_NUMERATOR","IN_DENOMINATOR","IN_SUB_SCRIPT","IN_SUPER_SCRIPT","handleBackspaceInNthRoot","isAtLeftEnd","isRootEmpty","ends","keystroke","handleBackspaceInRootIndex","latex","reinsertionPoint","rootIsEmpty","textContent","write","replace","moveToLeftEnd","handleBackspaceInLogIndex","isLogBodyEmpty","handleBackspaceInsideParens","sub","insAtRightEnd","isEmpty","handleBackspaceAfterLigaturedSymbol","handleBackspace","selection","leftNode","handleLeftArrow","handleRightArrow","handleArrow","key","ArithmeticOperators","EqualityOperators","handleExponent","invalidPrefixes","precedingNode","shouldPrefixWithParens","cmd","Error","KeysForJumpContext","handleJumpOut","context","fractionNode","siblingDenominator","buildGenericCallback","str","WRITE","mathQuill","CMD","KEYSTROKE","buildTranslatableFunctionCallback","supportedTranslations","defaultCommand","buildNormalFunctionCallback","getKeyTranslator","EXP","EXP_2","EXP_3","JUMP_OUT_PARENTHESES","JUMP_OUT_EXPONENT","JUMP_OUT_BASE","JUMP_INTO_NUMERATOR","JUMP_OUT_NUMERATOR","JUMP_OUT_DENOMINATOR","LEFT","RIGHT","LOG","LN","COS","SIN","TAN","CDOT","DECIMAL","getDecimalSeparator","DIVIDE","EQUAL","GEQ","GT","LEQ","LT","MINUS","NEGATIVE","NEQ","PERCENT","PERIOD","PLUS","TIMES","FRAC_INCLUSIVE","FRAC","LEFT_PAREN","RIGHT_PAREN","SQRT","PI","THETA","RADICAL","BACKSPACE","UP","DOWN","CUBE_ROOT","FRAC_EXCLUSIVE","shouldNavigateLeft","LOG_N","DISMISS","NUM_0","NUM_1","NUM_2","NUM_3","NUM_4","NUM_5","NUM_6","NUM_7","NUM_8","NUM_9","a","b","c","e","f","g","h","j","k","l","m","n","o","p","q","r","s","t","u","v","w","z","A","B","C","D","E","F","G","H","I","J","K","M","N","O","P","Q","S","T","U","V","W","X","Y","Z","MathWrapper","mathFieldMount","callbacks","_this$mathField","mobileKeyTranslator","substituteTextarea","document","focus","show","blur","hide","pressKey","getCursor","translator","onSelectionChanged","contextForCursor","setCursorPosition","hitNode","el","elementFromPoint","hasAttribute","controller","root","pageX","body","scrollLeft","pageY","scrollTop","seek","onCursorMove","getSelection","getContent","setContent","toolbarHeightPx","scrollIntoView","containerNode","keypadNode","containerBounds","getBoundingClientRect","containerBottomPx","bottom","containerTopPx","scrollNode","scrollingElement","desiredMarginPx","pageHeightPx","innerHeight","keypadHeightPx","clientHeight","keypadTopPx","scrollOffset","Math","min","constrainingFrictionFactor","MathInput","args","didTouchOutside","didScroll","recordTouchStartOutside","blurOnTouchEndOutside","blurOnClickOutside","dragListener","inputRef","_isMounted","_mathContainer","_container","_root","_containerBounds","state","focused","showInputFocusStyle","handle","_updateInputPadding","ReactDOM","findDOMNode","querySelector","getInputInnerPadding","paddingTop","paddingRight","paddingBottom","paddingLeft","fontSize","fontSizePt","_updateCursorHandle","cursorBounds","cursorWidth","gapBelowCursor","inputInnerPadding","furthestRightCursorBound","right","furthestLeftCursorBound","cursorBoundsLeft","setState","_hideCursorHandle","_handleScroll","setKeypadActive","_this$props$keypadEle","_this$props","keypadElement","setKeyHandler","hideCursor","onChange","onFocus","setTimeout","_this$props$keypadEle2","maybeKeypadNode","getDOMNode","_findHitNode","points","elements","point","element","nonLeafElements","max","counts","elementsById","getAttribute","push","count","entries","_insertCursorAtClosestNode","_this$props$keypadEle3","hasChildNodes","insAtLeftEnd","firstChildBounds","firstChild","lastChildBounds","lastChild","abs","setCursor","handleTouchStart","keypadActive","_this$inputRef","stopPropagation","handleClick","_this$inputRef2","handleTouchMove","handleTouchEnd","onCursorHandleTouchStart","preventDefault","_constrainToBound","friction","onCursorHandleTouchMove","relativeX","relativeY","distanceAboveFingerToTrySelecting","adjustedY","onCursorHandleTouchEnd","onCursorHandleTouchCancel","domKeyToMathQuillKey","keyMap","handleKeyUp","event","mathQuillKey","getBorderWidthPx","normalBorderWidthPx","focusedBorderWidthPx","paddingInset","totalDesiredPadding","symbolaPaddingBottom","symbolaPaddingTop","cursorPadding","componentDidMount","_this$props$keypadEle4","isWithinKeypadBounds","bounds","_getKeypadBounds","target","touchDidStartInOrBelowKeypad","_this$props$onBlur","_this$props2","onBlur","call","_this$props$onBlur2","_this$props3","componentDidUpdate","prevProps","prevState","componentWillUnmount","_this$props$keypadEle5","Element","innerStyle","inlineStyles","innerContainer","borderColor","blue","KeypadContext","Consumer","input","tabIndex","onKeyUp","contextType","inputMaxWidth","numeralHeightPx","minHeightPx","minWidthPx","verticalAlign","offBlack50","borderRadius","offBlack","IconAsset","tintColor","xmlns","fillRule","clipRule","clipPath","base","border","marginRight","marginLeft","hovered","pressed","background","outline","innerBox","flex","justifyContent","innerBoxPressed","white","activeIndicator","clickable","imageTintColor","itemState","offBlack64","TabbarItem","itemType","tabRef","useRef","useEffect","timeout","current","clearTimeout","Clickable","disabled","tabbar","pages","Tabbar","items","onClickClose","selectedItem","onSelectItem","selectedIndex","indexOf","setFocus","useState","onArrowKeyFocus","keyCode","onKeyDown","item","index","getDefaultOperatorFields","keyType","data","icon","getDefaultValueFields","getDefaultNumberFields","KeyConfigs","ButtonAsset","cx","cy","strokeLinecap","strokeLinejoin","unhandledKey","KeypadButton","coord","keyConfig","onClickKey","secondary","action","undefined","gridColumn","gridRow","testId","onMouseDown","outerBoxBase","boxShadow","offBlack32","fontFamily","columns","ExtrasPage","extraKeys","Keys","Fragment","coordX","coordY","expandedViewThreshold","getCursorContextConfig","cursorContext","FractionsPage","cursorKeyConfig","GeometryPage","NumbersPage","scientific","OperatorsPage","preAlgebra","logarithms","basicRelations","advancedRelations","getStyles","up","down","NavigationButton","directionalStyles","borderRadiusPx","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","NavigationPad","grid","spacer","gridTemplateColumns","gridTemplateRows","SharedKeys","divisionKey","selectedPage","fractionCoord","getAvailableTabs","_props$extraKeys","fractionsOnly","tabs","trigonometry","Keypad","_ref","_objectWithoutPropertiesLoose","_excluded","defaultSelectedPage","setSelectedPage","isMounted","setIsMounted","availableTabs","showDismiss","onAnalyticsEvent","expandedView","gridStyle","fractionsGrid","expressionGrid","payload","virtualKeypadVersion","keypadOuterContainer","wrapper","expandedWrapper","newSelectedPage","keypadInnerContainer","keypadGrid","flatten","list","processStyleType","stylesheetStyles","shouldInlineStyles","globalThis","SNAPSHOT_INLINE_APHRODITE","forEach","child","_definition","def","match","inlineStylesObject","Object","assign","inlineStylesStyleSheet","TransitionChild","getDerivedStateFromProps","nextIn","status","classNameQueue","appliedClassNames","addClass","elem","add","removeClass","remove","flushClassNameQueue","removeClassName","addClassName","Set","appearTimeout","transition","enterTimeout","oldProps","oldState","leaveTimeout","schedule","clearAll","removeAllClasses","animationType","duration","transitionStyles","activeClassName","queueClass","withActionScheduler","AphroditeCSSTransitionGroup","TransitionGroup","component","Children","transitionStyle","transitionAppearTimeout","transitionEnterTimeout","transitionLeaveTimeout","AnimationDurationInMS","MobileKeypadInternals","_containerRef","createRef","_containerResizeObserver","_throttleResize","containerWidth","_resize","_this$_containerRef$c","clientWidth","_throttleResizeHandler","activate","_this$props$onDismiss","onDismiss","configure","configuration","cb","keypadConfig","keyHandler","_this$props$onElement","ResizeObserver","observe","onElementMounted","_this$_containerResiz","disconnect","_handleClickKey","_this$state$keyHandle","_this$state","containerStyle","keypadContainer","isExpression","keypadType","AphroditeCssTransitionGroup","enter","enterActive","leave","leaveActive","MobileKeypad","keypadElementPropType","PropTypes","shape","func","isRequired"],"mappings":";;;;;;;;;;;;;;;;;;;AAMA,MAAMA,OAAO,GAAG,yBAAyB;AAClC,MAAMC,UAAU,GAAG;AAE1BC,+BAA+B,CAACF,OAAO,EAAEC,UAAU,CAAC;;ACsBpD,MAAME,IAAI,SAASC,KAAK,CAACC,SAAS,CAAQ;AA8BtCC,EAAAA,MAAMA,GAAoB;IACtB,MAAMC,SAAS,GACXC,GAAG,CACCL,IAAI,CAACM,MAAM,CAACC,OAAO,EACnB,IAAIC,KAAK,CAACC,OAAO,CAAC,IAAI,CAACC,KAAK,CAACC,KAAK,CAAC,GAC7B,IAAI,CAACD,KAAK,CAACC,KAAK,GAChB,CAAC,IAAI,CAACD,KAAK,CAACC,KAAK,CAAC,CAC5B,CAAC,IACA,IAAI,CAACD,KAAK,CAACE,cAAc,GAAG,CAAA,CAAA,EAAI,IAAI,CAACF,KAAK,CAACE,cAAc,CAAA,CAAE,GAAG,EAAE,CAAC;IAEtE,QAEIX,KA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ACNyI,YAAY,KAAIb,YAAY,IAAZA,IAAAA,GAAAA,MAAAA,GAAAA,YAAY,CAAE5H,UAAU;AAC3C,KACJ,CAAC,GACF,IACqB,CAC3B,CAAC;AAEf;AACJ;AAEA,MAAMztB,MAAM,GAAGmB,UAAU,CAACC,MAAM,CAAC;AAC7B60B,EAAAA,eAAe,EAAE;AACbpY,IAAAA,MAAM,EAAE,CAAC;AACTzV,IAAAA,IAAI,EAAE,CAAC;AACP0Y,IAAAA,KAAK,EAAE,CAAC;AACRhf,IAAAA,QAAQ,EAAE;AACd;AACJ,CAAC,CAAC;;ACrOK,SAAS20B,YAAYA,CAACr2B,KAAY,EAAE;EACvC,OACIT,KAAA,CAAAY,aAAA,CAACwmB,aAAa,CAACC,QAAQ,QAClB,CAAC;IAACxD,YAAY;AAAEpC,IAAAA;GAAgB,KAC7BzhB,KAAA,CAAAY,aAAA,CAAC8zB,qBAAqB,EAAAnsB,QAAA,CAAA,EAAA,EACd9H,KAAK,EAAA;AACTojB,IAAAA,YAAY,EAAEA,YAAa;AAC3BpC,IAAAA,eAAe,EAAEA;AAAgB,GAAA,CACpC,CAEe,CAAC;AAEjC;;MCdasV,qBAAqB,GAAGC,SAAS,CAACC,KAAK,CAAC;AACjD7B,EAAAA,QAAQ,EAAE4B,SAAS,CAACE,IAAI,CAACC,UAAU;AACnC1wB,EAAAA,OAAO,EAAEuwB,SAAS,CAACE,IAAI,CAACC,UAAU;AAClC5B,EAAAA,SAAS,EAAEyB,SAAS,CAACE,IAAI,CAACC,UAAU;AACpCxT,EAAAA,SAAS,EAAEqT,SAAS,CAACE,IAAI,CAACC,UAAU;AACpCtV,EAAAA,aAAa,EAAEmV,SAAS,CAACE,IAAI,CAACC,UAAU;AACxC/U,EAAAA,UAAU,EAAE4U,SAAS,CAACE,IAAI,CAACC;AAC/B,CAAC;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../src/version.ts","../../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js","../src/fake-react-native-web/view.tsx","../src/strings.ts","../src/components/i18n-context.tsx","../src/components/input/cursor-styles.ts","../src/components/input/cursor-handle.tsx","../src/components/input/drag-listener.ts","../src/types.ts","../src/components/input/cursor-contexts.ts","../src/utils.ts","../src/components/input/mathquill-instance.ts","../src/components/input/mathquill-helpers.ts","../src/components/key-handlers/handle-backspace.ts","../src/components/key-handlers/handle-arrow.ts","../src/components/key-handlers/handle-exponent.ts","../src/components/key-handlers/handle-jump-out.ts","../src/components/key-handlers/key-translator.ts","../src/components/input/math-wrapper.ts","../src/components/input/scroll-into-view.ts","../src/components/input/math-input.tsx","../src/components/tabbar/icons.tsx","../src/components/tabbar/item.tsx","../src/components/tabbar/tabbar.tsx","../src/data/key-configs.ts","../src/components/keypad/button-assets.tsx","../src/components/keypad/keypad-button.tsx","../src/components/keypad/keypad-pages/extras-page.tsx","../src/components/keypad/utils.ts","../src/components/keypad/keypad-pages/fractions-page.tsx","../src/components/keypad/keypad-pages/geometry-page.tsx","../src/components/keypad/keypad-pages/numbers-page.tsx","../src/components/keypad/keypad-pages/operators-page.tsx","../src/components/keypad/navigation-button.tsx","../src/components/keypad/navigation-pad.tsx","../src/components/keypad/shared-keys.tsx","../src/components/keypad/keypad.tsx","../src/components/aphrodite-css-transition-group/util.ts","../src/components/aphrodite-css-transition-group/transition-child.tsx","../src/components/aphrodite-css-transition-group/index.tsx","../src/components/keypad/mobile-keypad-internals.tsx","../src/components/keypad/mobile-keypad.tsx","../src/components/prop-types.ts"],"sourcesContent":["// This file is processed by a Rollup plugin (replace) to inject the production\n// version number during the release build.\n// In dev, you'll never see the version number.\n\nimport {addLibraryVersionToPerseusDebug} from \"@khanacademy/perseus-utils\";\n\nconst libName = \"@khanacademy/math-input\";\nexport const libVersion = \"__lib_version__\";\n\naddLibraryVersionToPerseusDebug(libName, libVersion);\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('<anonymous>')) {\n _frame = _frame.replace('<anonymous>', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie. <div {...props} key=\"Hi\" />\n // or <div key=\"Hi\" {...props} /> ). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n // <div {...props} key=\"Hi\" />, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nvar didWarnAboutKeySpread = {};\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n {\n if (hasOwnProperty.call(props, 'key')) {\n var componentName = getComponentNameFromType(type);\n var keys = Object.keys(props).filter(function (k) {\n return k !== 'key';\n });\n var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';\n\n if (!didWarnAboutKeySpread[componentName + beforeExample]) {\n var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';\n\n error('A props object containing a \"key\" prop is being spread into JSX:\\n' + ' let props = %s;\\n' + ' <%s {...props} />\\n' + 'React keys must be passed directly to JSX without using spread:\\n' + ' let props = %s;\\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);\n\n didWarnAboutKeySpread[componentName + beforeExample] = true;\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import {StyleSheet, css} from \"aphrodite\";\nimport * as React from \"react\";\n\nimport type {StyleType} from \"@khanacademy/wonder-blocks-core\";\nimport type {CSSProperties} from \"aphrodite\";\n\ntype Props = {\n ariaLabel?: string;\n children?: React.ReactNode;\n // The `dynamicStyle` prop is provided for animating dynamic\n // properties, as creating Aphrodite StyleSheets in animation loops is\n // expensive. `dynamicStyle` should be a raw style object, rather than\n // a StyleSheet.\n dynamicStyle?: CSSProperties;\n // The `extraClassName` prop should almost never be used. It gives the\n // client a way to provide an additional CSS class name, to augment\n // the class name generated by Aphrodite. (Right now, it's only used to\n // disable some externally-applied CSS that would otherwise be far too\n // difficult to override with inline styles.)\n extraClassName?: string;\n numberOfLines?: number;\n onClick?: (arg1: React.SyntheticEvent<HTMLDivElement>) => void;\n onTouchCancel?: (arg1: React.TouchEvent<HTMLDivElement>) => void;\n onTouchEnd?: (arg1: React.TouchEvent<HTMLDivElement>) => void;\n onTouchMove?: (arg1: React.TouchEvent<HTMLDivElement>) => void;\n onTouchStart?: (arg1: React.TouchEvent<HTMLDivElement>) => void;\n role?: string;\n style?: StyleType;\n forwardRef?: React.RefObject<HTMLDivElement>;\n};\n\nclass View extends React.Component<Props> {\n static styles = StyleSheet.create({\n // From: https://github.com/necolas/react-native-web/blob/master/src/components/View/index.js\n // eslint-disable-next-line react-native/no-unused-styles\n initial: {\n alignItems: \"stretch\",\n borderWidth: 0,\n borderStyle: \"solid\",\n boxSizing: \"border-box\",\n display: \"flex\",\n flexBasis: \"auto\",\n flexDirection: \"column\",\n margin: 0,\n padding: 0,\n position: \"relative\",\n // button and anchor reset\n backgroundColor: \"transparent\",\n color: \"inherit\",\n font: \"inherit\",\n textAlign: \"inherit\",\n textDecorationLine: \"none\",\n // list reset\n listStyle: \"none\",\n // fix flexbox bugs\n maxWidth: \"100%\",\n minHeight: 0,\n minWidth: 0,\n },\n });\n\n render(): React.ReactNode {\n const className =\n css(\n View.styles.initial,\n ...(Array.isArray(this.props.style)\n ? this.props.style\n : [this.props.style]),\n ) +\n (this.props.extraClassName ? ` ${this.props.extraClassName}` : \"\");\n\n return (\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events -- TODO(LEMS-2871): Address a11y error\n <div\n className={className}\n style={this.props.dynamicStyle}\n onClick={this.props.onClick}\n onTouchCancel={this.props.onTouchCancel}\n onTouchEnd={this.props.onTouchEnd}\n onTouchMove={this.props.onTouchMove}\n onTouchStart={this.props.onTouchStart}\n aria-label={this.props.ariaLabel}\n role={this.props.role}\n ref={this.props.forwardRef}\n >\n {this.props.children}\n </div>\n );\n }\n}\n\nexport default View;\n","/**\n * The translated strings that are used to render the Math Input.\n */\nexport type MathInputStrings = {\n mathInputBox: string;\n fingerTap: string;\n before: ({obj}: {obj: string}) => string;\n after: ({obj}: {obj: string}) => string;\n \"beginning of\": ({obj}: {obj: string}) => string;\n \"end of\": ({obj}: {obj: string}) => string;\n Baseline: string;\n Superscript: string;\n selected: ({obj}: {obj: string}) => string;\n \"no answer\": string;\n \"nothing selected\": string;\n \"nothing to the right\": string;\n \"nothing to the left\": string;\n \"block is empty\": string;\n \"nothing above\": string;\n labelValue: ({label, value}: {label: string; value: string}) => string;\n plus: string;\n minus: string;\n negative: string;\n times: string;\n divide: string;\n decimal: string;\n percent: string;\n cdot: string;\n equalsSign: string;\n notEqualsSign: string;\n greaterThanSign: string;\n lessThanSign: string;\n greaterThanOrEqualToSign: string;\n lessThanOrEqualSign: string;\n fractionExpressionInNumerator: string;\n fractionExcludingExpression: string;\n customExponent: string;\n square: string;\n cube: string;\n squareRoot: string;\n cubeRoot: string;\n radicalWithCustomRoot: string;\n leftParenthesis: string;\n rightParenthesis: string;\n naturalLog: string;\n logBase10: string;\n logCustomBase: string;\n sine: string;\n sin: string;\n cosine: string;\n cos: string;\n tangent: string;\n tan: string;\n pi: string;\n theta: string;\n upArrow: string;\n rightArrow: string;\n downArrow: string;\n leftArrow: string;\n navOutOfParentheses: string;\n navOutOfExponent: string;\n navOutOfBase: string;\n navIntoNumerator: string;\n navOutOfNumeratorIntoDenominator: string;\n navOutOfDenominator: string;\n delete: string;\n dismiss: string;\n};\n\n/**\n * Untranslated strings used in the math input. To be used by an external\n * translator to produce translated strings, passed in as `MathInputStrings`.\n */\nexport const strings: {\n [key in keyof MathInputStrings]:\n | string\n | {context?: string; message: string}\n | {context?: string; one: string; other: string};\n} = {\n mathInputBox: \"Math input box\",\n fingerTap: \"Tap with one or two fingers to open keyboard\",\n before: \"before %(obj)s\",\n after: \"after %(obj)s\",\n \"beginning of\": \"beginning of %(obj)s\",\n \"end of\": \"end of %(obj)s\",\n Baseline: \"Baseline\",\n Superscript: \"Superscript\",\n selected: \"%(obj)s selected\",\n \"no answer\": \"no answer\",\n \"nothing selected\": \"nothing selected\",\n \"nothing to the right\": \"nothing to the right\",\n \"nothing to the left\": \"nothing to the left\",\n \"block is empty\": \"block is empty\",\n \"nothing above\": \"nothing above\",\n labelValue: \"%(label)s: %(value)s\",\n plus: {\n context: \"A label for a 'plus' sign.\",\n message: \"Plus\",\n },\n minus: {context: \"A label for a 'minus' sign.\", message: \"Minus\"},\n negative: {context: \"A label for a 'negative' sign.\", message: \"Negative\"},\n times: {context: \"A label for a 'multiply' sign.\", message: \"Multiply\"},\n divide: {context: \"A label for a 'divide' sign.\", message: \"Divide\"},\n decimal: {\n context: \"A label for a 'decimal' sign (represented as '.' or ',').\",\n message: \"Decimal\",\n },\n percent: {\n context: \"A label for a 'percent' sign (represented as '%').\",\n message: \"Percent\",\n },\n cdot: {\n context:\n \"A label for a 'centered dot' multiplication sign (represented as '⋅').\",\n message: \"Multiply\",\n },\n equalsSign: {\n context: \"A label for an 'equals' sign (represented as '=').\",\n message: \"Equals sign\",\n },\n notEqualsSign: {\n context: \"A label for a 'not-equals' sign (represented as '≠').\",\n message: \"Not-equals sign\",\n },\n greaterThanSign: {\n context: \"A label for a 'greater than' sign (represented as '>').\",\n message: \"Greater than sign\",\n },\n lessThanSign: {\n context: \"A label for a 'less than' sign (represented as '<').\",\n message: \"Less than sign\",\n },\n greaterThanOrEqualToSign: {\n context:\n \"A label for a 'greater than or equal to' sign (represented as '≥').\",\n message: \"Greater than or equal to sign\",\n },\n lessThanOrEqualSign: {\n context:\n \"A label for a 'less than or equal to' sign (represented as '≤').\",\n message: \"Less than or equal to sign\",\n },\n fractionExpressionInNumerator: {\n context:\n \"A label for a button that creates a new fraction and puts the current expression in the numerator of that fraction.\",\n message: \"Fraction, with current expression in numerator\",\n },\n fractionExcludingExpression: {\n context:\n \"A label for a button that creates a new fraction next to the cursor.\",\n message: \"Fraction, excluding the current expression\",\n },\n customExponent: {\n context:\n \"A label for a button that will allow the user to input a custom exponent.\",\n message: \"Custom exponent\",\n },\n square: {\n context:\n \"A label for a button that will square (take to the second power) some math.\",\n message: \"Square\",\n },\n cube: {\n context:\n \"A label for a button that will cube (take to the third power) some math.\",\n message: \"Cube\",\n },\n squareRoot: {\n context:\n \"A label for a button that will allow the user to input a square root.\",\n message: \"Square root\",\n },\n cubeRoot: {\n context:\n \"A label for a button that will allow the user to input a cube root.\",\n message: \"Cube root\",\n },\n radicalWithCustomRoot: {\n context:\n \"A label for a button that will allow the user to input a radical with a custom root.\",\n message: \"Radical with custom root\",\n },\n leftParenthesis: {\n context:\n \"A label for a button that will allow the user to input a left parenthesis (i.e. '(')\",\n message: \"Left parenthesis\",\n },\n rightParenthesis: {\n context:\n \"A label for a button that will allow the user to input a right parenthesis (i.e. ')')\",\n message: \"Right parenthesis\",\n },\n naturalLog: {\n context:\n \"A label for a button that will allow the user to input a natural logarithm.\",\n message: \"Natural logarithm\",\n },\n logBase10: {\n context:\n \"A label for a button that will allow the user to input a logarithm with base 10.\",\n message: \"Logarithm with base 10\",\n },\n logCustomBase: {\n context:\n \"A label for a button that will allow the user to input a logarithm with a custom base.\",\n message: \"Logarithm with custom base\",\n },\n sine: {\n context:\n \"A label for a button that will allow the user to input a sine function.\",\n message: \"Sine\",\n },\n sin: {\n context:\n \"A label for a button that will allow the user to input a sine function (shorthand version).\",\n message: \"sin\",\n },\n cosine: {\n context:\n \"A label for a button that will allow the user to input a cosine function.\",\n message: \"Cosine\",\n },\n cos: {\n context:\n \"A label for a button that will allow the user to input a cosine function (shorthand version).\",\n message: \"cos\",\n },\n tangent: {\n context:\n \"A label for a button that will allow the user to input a tangent function.\",\n message: \"Tangent\",\n },\n tan: {\n context:\n \"A label for a button that will allow the user to input a tangent function (shorthand version).\",\n message: \"tan\",\n },\n pi: {\n context:\n \"A label for a button that will allow the user to input the mathematical constant pi (i.e., π)\",\n message: \"Pi\",\n },\n theta: {\n context:\n \"A label for a button that will allow the user to input the mathematical constant theta (i.e., θ)\",\n message: \"Theta\",\n },\n upArrow: \"Up arrow\",\n rightArrow: \"Right arrow\",\n downArrow: \"Down arrow\",\n leftArrow: \"Left arrow\",\n navOutOfParentheses: \"Navigate right out of a set of parentheses\",\n navOutOfExponent: \"Navigate right out of an exponent\",\n navOutOfBase: \"Navigate right out of a base\",\n navIntoNumerator: \"Navigate right into the numerator of a fraction\",\n navOutOfNumeratorIntoDenominator:\n \"Navigate right out of the numerator and into the denominator\",\n navOutOfDenominator: \"Navigate right out of the denominator of a fraction\",\n delete: \"Delete\",\n dismiss: {\n context: \"A label for a button that will dismiss/hide a keypad.\",\n message: \"Dismiss\",\n },\n};\n\n/**\n * Mock strings for the Math Input package, to be used for tests and Storybook.\n */\nexport const mockStrings: MathInputStrings = {\n mathInputBox: \"Math input box\",\n fingerTap: \"Tap with one or two fingers to open keyboard\",\n before: ({obj}: {obj: string}) => `before ${obj}`,\n after: ({obj}: {obj: string}) => `after ${obj}`,\n \"beginning of\": ({obj}: {obj: string}) => `beginning of ${obj}`,\n \"end of\": ({obj}: {obj: string}) => `end of ${obj}`,\n Baseline: \"Baseline\",\n Superscript: \"Superscript\",\n selected: ({obj}: {obj: string}) => `${obj} selected`,\n \"no answer\": \"no answer\",\n \"nothing selected\": \"nothing selected\",\n \"nothing to the right\": \"nothing to the right\",\n \"nothing to the left\": \"nothing to the left\",\n \"block is empty\": \"block is empty\",\n \"nothing above\": \"nothing above\",\n labelValue: ({label, value}: {label: string; value: string}) =>\n `${label}: ${value}`,\n plus: \"Plus\",\n minus: \"Minus\",\n negative: \"Negative\",\n times: \"Multiply\",\n divide: \"Divide\",\n decimal: \"Decimal\",\n percent: \"Percent\",\n cdot: \"Multiply\",\n equalsSign: \"Equals sign\",\n notEqualsSign: \"Not-equals sign\",\n greaterThanSign: \"Greater than sign\",\n lessThanSign: \"Less than sign\",\n greaterThanOrEqualToSign: \"Greater than or equal to sign\",\n lessThanOrEqualSign: \"Less than or equal to sign\",\n fractionExpressionInNumerator:\n \"Fraction, with current expression in numerator\",\n fractionExcludingExpression: \"Fraction, excluding the current expression\",\n customExponent: \"Custom exponent\",\n square: \"Square\",\n cube: \"Cube\",\n squareRoot: \"Square root\",\n cubeRoot: \"Cube root\",\n radicalWithCustomRoot: \"Radical with custom root\",\n leftParenthesis: \"Left parenthesis\",\n rightParenthesis: \"Right parenthesis\",\n naturalLog: \"Natural logarithm\",\n logBase10: \"Logarithm with base 10\",\n logCustomBase: \"Logarithm with custom base\",\n sine: \"Sine\",\n sin: \"sin\",\n cosine: \"Cosine\",\n cos: \"cos\",\n tangent: \"Tangent\",\n tan: \"tan\",\n pi: \"Pi\",\n theta: \"Theta\",\n upArrow: \"Up arrow\",\n rightArrow: \"Right arrow\",\n downArrow: \"Down arrow\",\n leftArrow: \"Left arrow\",\n navOutOfParentheses: \"Navigate right out of a set of parentheses\",\n navOutOfExponent: \"Navigate right out of an exponent\",\n navOutOfBase: \"Navigate right out of a base\",\n navIntoNumerator: \"Navigate right into the numerator of a fraction\",\n navOutOfNumeratorIntoDenominator:\n \"Navigate right out of the numerator and into the denominator\",\n navOutOfDenominator: \"Navigate right out of the denominator of a fraction\",\n delete: \"Delete\",\n dismiss: \"Dismiss\",\n};\n","/**\n * MathInputI18nContext provides a way to set the strings and locale that are\n * used inside the Math Input package.\n *\n */\nimport * as React from \"react\";\nimport {useContext} from \"react\";\n\nimport {mockStrings} from \"../strings\";\n\nimport type {MathInputStrings} from \"../strings\";\n\ntype I18nContextType = {\n strings: MathInputStrings;\n locale: string;\n};\n\n// @ts-expect-error - TS2322 - Type 'Context<{ strings: {}; locale: string; }>' is not assignable to type 'Context<I18nContextType>'.\nexport const MathInputI18nContext: React.Context<I18nContextType> =\n React.createContext(\n process.env.NODE_ENV === \"test\" || process.env.STORYBOOK\n ? {\n strings: mockStrings,\n locale: \"en\",\n }\n : // We want to return null here, not an empty object, so that we\n // are will throw an error when attempting to access the\n // undefined locale or strings, making it easier to debug.\n null,\n );\n\ntype Props = React.PropsWithChildren<I18nContextType>;\n\nexport function MathInputI18nContextProvider({\n children,\n strings,\n locale,\n}: Props) {\n return (\n <MathInputI18nContext.Provider value={{strings, locale}}>\n {children}\n </MathInputI18nContext.Provider>\n );\n}\n\nexport const useMathInputI18n = () => useContext(MathInputI18nContext);\n","/**\n * Common parameters used to style components.\n */\nexport const cursorHandleRadiusPx = 11;\n\n// The amount to multiply the radius by to get the distance from the\n// center to the tip of the cursor handle. The cursor is a circle with\n// one quadrant replace with a square. The hypotenuse of the square is\n// 1.045 times the radius of the circle.\nexport const cursorHandleDistanceMultiplier = 1.045;\n","/**\n * Renders the green tear-shaped handle under the cursor.\n */\n\nimport * as React from \"react\";\n\nimport {\n cursorHandleRadiusPx,\n cursorHandleDistanceMultiplier,\n} from \"./cursor-styles\";\n\nconst touchTargetRadiusPx = 2 * cursorHandleRadiusPx;\nconst touchTargetHeightPx = 2 * touchTargetRadiusPx;\nconst touchTargetWidthPx = 2 * touchTargetRadiusPx;\n\nconst cursorRadiusPx = cursorHandleRadiusPx;\nconst cursorHeightPx = cursorHandleDistanceMultiplier * (cursorRadiusPx * 4);\nconst cursorWidthPx = 4 * cursorRadiusPx;\n\ntype Props = {\n animateIntoPosition: boolean;\n onTouchCancel: (arg1: React.TouchEvent<HTMLSpanElement>) => void;\n onTouchEnd: (arg1: React.TouchEvent<HTMLSpanElement>) => void;\n onTouchMove: (arg1: React.TouchEvent<HTMLSpanElement>) => void;\n onTouchStart: (arg1: React.TouchEvent<HTMLSpanElement>) => void;\n visible: boolean;\n x: number;\n y: number;\n};\n\ntype DefaultProps = {\n animateIntoPosition: Props[\"animateIntoPosition\"];\n visible: Props[\"visible\"];\n x: Props[\"x\"];\n y: Props[\"y\"];\n};\n\nclass CursorHandle extends React.Component<Props> {\n static defaultProps: DefaultProps = {\n animateIntoPosition: false,\n visible: false,\n x: 0,\n y: 0,\n };\n\n render(): React.ReactNode {\n const {x, y, animateIntoPosition} = this.props;\n\n const animationStyle = animateIntoPosition\n ? {\n transitionDuration: \"100ms\",\n transitionProperty: \"transform\",\n }\n : {};\n const transformString = `translate(${x}px, ${y}px)`;\n\n const outerStyle = {\n position: \"absolute\",\n // This is essentially webapp's interactiveComponent + 1.\n // TODO(charlie): Pull in those styles somehow to avoid breakages.\n zIndex: 4,\n left: -touchTargetWidthPx / 2,\n top: 0,\n transform: transformString,\n width: touchTargetWidthPx,\n height: touchTargetHeightPx,\n // Touch events that start on the cursor shouldn't be allowed to\n // produce page scrolls.\n touchAction: \"none\",\n ...animationStyle,\n } as const;\n\n return (\n <span\n style={outerStyle}\n onTouchStart={this.props.onTouchStart}\n onTouchMove={this.props.onTouchMove}\n onTouchEnd={this.props.onTouchEnd}\n onTouchCancel={this.props.onTouchCancel}\n >\n <svg\n fill=\"none\"\n width={cursorWidthPx}\n height={cursorHeightPx}\n viewBox={`0 0 ${cursorWidthPx} ${cursorHeightPx}`}\n >\n <filter\n id=\"math-input_cursor\"\n colorInterpolationFilters=\"sRGB\"\n filterUnits=\"userSpaceOnUse\"\n height={cursorHeightPx * 0.87} // ~40\n width={cursorWidthPx * 0.82} // ~36\n x=\"4\"\n y=\"0\"\n >\n <feFlood floodOpacity=\"0\" result=\"BackgroundImageFix\" />\n <feColorMatrix\n in=\"SourceAlpha\"\n type=\"matrix\"\n values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"\n />\n <feOffset dy=\"4\" />\n <feGaussianBlur stdDeviation=\"4\" />\n <feColorMatrix\n type=\"matrix\"\n values=\"0 0 0 0 0.129412 0 0 0 0 0.141176 0 0 0 0 0.172549 0 0 0 0.08 0\"\n />\n <feBlend\n in2=\"BackgroundImageFix\"\n mode=\"normal\"\n result=\"effect1_dropShadow\"\n />\n <feBlend\n in=\"SourceGraphic\"\n in2=\"effect1_dropShadow\"\n mode=\"normal\"\n result=\"shape\"\n />\n </filter>\n <g filter=\"url(#math-input_cursor)\">\n <path\n d=\"m22 4-7.07 7.0284c-1.3988 1.3901-2.3515 3.1615-2.7376 5.09-.3861 1.9284-.1883 3.9274.5685 5.7441s2.0385 3.3694 3.6831 4.4619c1.6445 1.0925 3.5781 1.6756 5.556 1.6756s3.9115-.5831 5.556-1.6756c1.6446-1.0925 2.9263-2.6452 3.6831-4.4619s.9546-3.8157.5685-5.7441c-.3861-1.9285-1.3388-3.6999-2.7376-5.09z\"\n fill=\"#1865f2\"\n />\n </g>\n <path\n d=\"m14.9301 10.4841 7.0699-7.06989 7.0699 7.06989.0001.0001c1.3988 1.3984 2.3515 3.1802 2.7376 5.1201s.1883 3.9507-.5685 5.7782c-.7568 1.8274-2.0385 3.3894-3.6831 4.4883-1.6445 1.099-3.5781 1.6855-5.556 1.6855s-3.9115-.5865-5.556-1.6855c-1.6446-1.0989-2.9263-2.6609-3.6831-4.4883-.7568-1.8275-.9546-3.8383-.5685-5.7782s1.3388-3.7217 2.7376-5.1201z\"\n stroke=\"#fff\"\n strokeWidth=\"2\"\n />\n </svg>\n </span>\n );\n }\n}\n\nexport default CursorHandle;\n","/**\n * A gesture recognizer that detects 'drags', crudely defined as either scrolls\n * or touches that move a sufficient distance.\n */\n\n// The 'slop' factor, after which we consider the use to be dragging. The value\n// is taken from the Android SDK. It won't be robust to page zoom and the like,\n// but it should be good enough for our purposes.\nconst touchSlopPx = 8;\n\nclass DragListener {\n _scrollListener: () => void;\n _moveListener: (evt: TouchEvent) => void;\n _endAndCancelListener: (evt: TouchEvent) => void;\n\n constructor(onDrag, initialEvent) {\n // We detect drags in two ways. First, by listening for the window\n // scroll event (we consider any legitimate scroll to be a drag).\n this._scrollListener = () => {\n onDrag();\n };\n\n // And second, by listening for touch moves and tracking the each\n // finger's displacement. This allows us to track, e.g., when the user\n // scrolls within an individual view.\n const touchLocationsById = {};\n for (let i = 0; i < initialEvent.changedTouches.length; i++) {\n const touch = initialEvent.changedTouches[i];\n touchLocationsById[touch.identifier] = [\n touch.clientX,\n touch.clientY,\n ];\n }\n\n this._moveListener = (evt) => {\n for (let i = 0; i < evt.changedTouches.length; i++) {\n const touch = evt.changedTouches[i];\n const initialTouchLocation =\n touchLocationsById[touch.identifier];\n if (initialTouchLocation) {\n const touchLocation = [touch.clientX, touch.clientY];\n const dx = touchLocation[0] - initialTouchLocation[0];\n const dy = touchLocation[1] - initialTouchLocation[1];\n\n const squaredDist = dx * dx + dy * dy;\n const squaredTouchSlop = touchSlopPx * touchSlopPx;\n\n if (squaredDist > squaredTouchSlop) {\n onDrag();\n }\n }\n }\n };\n\n // Clean-up any terminated gestures, since some browsers reuse\n // identifiers.\n this._endAndCancelListener = (evt) => {\n for (let i = 0; i < evt.changedTouches.length; i++) {\n delete touchLocationsById[evt.changedTouches[i].identifier];\n }\n };\n }\n\n attach() {\n window.addEventListener(\"scroll\", this._scrollListener);\n window.addEventListener(\"touchmove\", this._moveListener);\n window.addEventListener(\"touchend\", this._endAndCancelListener);\n window.addEventListener(\"touchcancel\", this._endAndCancelListener);\n }\n\n detach() {\n window.removeEventListener(\"scroll\", this._scrollListener);\n window.removeEventListener(\"touchmove\", this._moveListener);\n window.removeEventListener(\"touchend\", this._endAndCancelListener);\n window.removeEventListener(\"touchcancel\", this._endAndCancelListener);\n }\n}\n\nexport default DragListener;\n","import type {CursorContext} from \"./components/input/cursor-contexts\";\nimport type {KeyType} from \"./enums\";\nimport type {\n KeypadConfiguration,\n KeypadContextRendererInterface,\n KeypadKey,\n} from \"@khanacademy/perseus-core\";\nimport type * as React from \"react\";\nimport type ReactDOM from \"react-dom\";\n\nexport enum MathFieldActionType {\n WRITE = \"write\",\n CMD = \"cmd\",\n KEYSTROKE = \"keystroke\",\n MQ_END = 0,\n}\n\ntype IconConfig = {\n data: string;\n};\n\nexport type KeyConfig = {\n id: KeypadKey;\n type: KeyType;\n icon: IconConfig;\n ariaLabel: string;\n};\n\nexport type KeyHandler = (key: KeypadKey) => Cursor;\n\nexport type Cursor = {\n context: (typeof CursorContext)[keyof typeof CursorContext];\n};\n\nexport type ClickKeyCallback = (\n key: KeypadKey,\n event?: React.SyntheticEvent,\n) => void;\n\nexport type KeypadPageType =\n | \"Geometry\"\n | \"Operators\"\n | \"Numbers\"\n | \"Fractions\"\n | \"Extras\"\n | \"Dismiss\";\n\nexport interface KeypadAPI {\n activate: () => void;\n dismiss: () => void;\n configure: (configuration: KeypadConfiguration, cb: () => void) => void;\n setCursor: (cursor: Cursor) => void;\n setKeyHandler: (keyHandler: KeyHandler) => void;\n getDOMNode: () => ReturnType<typeof ReactDOM.findDOMNode>;\n}\n\nexport type KeypadContextType = {\n setKeypadActive: (keypadActive: boolean) => void;\n keypadActive: boolean;\n setKeypadElement: (keypadElement?: KeypadAPI) => void;\n keypadElement: KeypadAPI | null | undefined;\n setRenderer: (\n renderer?: KeypadContextRendererInterface | null | undefined,\n ) => void;\n renderer: KeypadContextRendererInterface | null | undefined;\n setScrollableElement: (\n scrollableElement?: HTMLElement | null | undefined,\n ) => void;\n scrollableElement: HTMLElement | null | undefined;\n};\n","/**\n * Enum that defines the various contexts in which a cursor can exist. The\n * active context is determined first by looking at the cursor's siblings (e.g.,\n * for the `BEFORE_FRACTION` context), and then at its direct parent. Though a\n * cursor could in theory be nested in multiple contexts, we only care about the\n * immediate context.\n *\n * TODO(charlie): Add a context to represent being inside of a radical. Right\n * now, we show the dismiss button rather than allowing the user to jump out of\n * the radical.\n */\n\nexport enum CursorContext {\n // The cursor is not in any of the other viable contexts.\n NONE = \"NONE\",\n\n // The cursor is within a set of parentheses.\n IN_PARENS = \"IN_PARENS\",\n\n // The cursor is within a superscript (e.g., an exponent).\n IN_SUPER_SCRIPT = \"IN_SUPER_SCRIPT\",\n\n // The cursor is within a subscript (e.g., the base of a custom logarithm).\n IN_SUB_SCRIPT = \"IN_SUB_SCRIPT\",\n\n // The cursor is in the numerator of a fraction.\n IN_NUMERATOR = \"IN_NUMERATOR\",\n\n // The cursor is in the denominator of a fraction.\n IN_DENOMINATOR = \"IN_DENOMINATOR\",\n\n // The cursor is sitting before a fraction; that is, the cursor is within\n // what looks to be a mixed number preceding a fraction. This will only be\n // the case when the only math between the cursor and the fraction to its\n // write is non-leaf math (numbers and variables).\n BEFORE_FRACTION = \"BEFORE_FRACTION\",\n}\n","const CDOT_ONLY = [\n \"az\",\n \"cs\",\n \"da\",\n \"de\",\n \"hu\",\n \"hy\",\n \"kk\",\n \"ky\",\n \"lt\",\n \"lv\",\n \"nb\",\n \"sk\",\n \"sr\",\n \"sv\",\n \"uz\",\n];\nconst TIMES_ONLY = [\"fr\", \"tr\", \"pt-pt\"];\n\n/**\n * convertDotToTimes (aka `times`) is an option the content creators have to\n * use × (TIMES) rather than · (CDOT) for multiplication (for younger learners).\n * Some locales _only_ use one or the other for all multiplication regardless\n * of age.\n *\n * convertDotToTimesByLocale overrides convertDotToTimes for those locales.\n *\n * @param {boolean} convertDotToTimes - the setting set by content creators\n * @returns {boolean} - true to convert to × (TIMES), false to use · (CDOT)\n */\nexport function convertDotToTimesByLocale(\n locale: string,\n convertDotToTimes: boolean,\n): boolean {\n if (CDOT_ONLY.includes(locale)) {\n return false;\n }\n\n if (TIMES_ONLY.includes(locale)) {\n return true;\n }\n\n return convertDotToTimes;\n}\n\n/**\n * Use this to avoid running code that should not run in Jest.\n **/\nexport const inJest =\n typeof process !== \"undefined\" && !!process?.env?.JEST_WORKER_ID;\n// Explicitly checking for undefined because Cypress throws an error\n","import {SpeechRuleEngine} from \"@khanacademy/mathjax-renderer\";\nimport MathQuill from \"mathquill\";\n\nimport {inJest} from \"../../utils\";\n\nimport type {\n MathQuillInterface,\n MathFieldConfig,\n MathFieldInterface,\n} from \"./mathquill-types\";\nimport type {MathInputStrings} from \"../../strings\";\n\n// We only need one MathQuill instance (referred to as MQ in the docs)\n// and that contains some MQ constants and the MathField constructor\nexport const mathQuillInstance: MathQuillInterface = MathQuill.getInterface(3);\n\nconst createBaseConfig = (): MathFieldConfig => ({\n // LaTeX commands that, when typed, are immediately replaced by the\n // appropriate symbol. This does not include ln, log, or any of the\n // trig functions; those are always interpreted as commands.\n autoCommands: \"pi theta phi sqrt nthroot\",\n // Most of these autoOperatorNames are simply the MathQuill defaults.\n // We have to list them all in order to add the `sen` operator (see\n // comment below).\n autoOperatorNames: [\n \"arccos\",\n \"arcsin\",\n \"arctan\",\n \"arctg\",\n \"arg\",\n \"cos\",\n \"cosec\",\n \"cossec\",\n \"cosh\",\n \"cot\",\n \"cotg\",\n \"coth\",\n \"csc\",\n \"ctg\",\n \"deg\",\n \"det\",\n \"dim\",\n \"exp\",\n \"gcd\",\n \"hom\",\n \"inf\",\n \"ker\",\n \"lg\",\n \"lim\",\n \"liminf\",\n \"limsup\",\n \"ln\",\n \"log\",\n \"max\",\n \"min\",\n \"Pr\",\n \"projlim\",\n \"sec\",\n // sen is used instead of sin in e.g. Portuguese\n \"sen\",\n \"sin\",\n \"sinh\",\n \"sup\",\n \"tan\",\n \"tanh\",\n \"tg\",\n ].join(\" \"),\n\n // Pop the cursor out of super/subscripts on arithmetic operators\n // or (in)equalities.\n charsThatBreakOutOfSupSub: \"+-*/=<>≠≤≥\",\n\n // Prevent excessive super/subscripts or fractions from being\n // created without operands, e.g. when somebody holds down a key\n supSubsRequireOperand: true,\n\n // The name of this option is somewhat misleading, as tabbing in\n // MathQuill breaks you out of a nested context (fraction/script)\n // if you're in one, but moves focus to the next input if you're\n // not. Spaces (with this option enabled) are just ignored in the\n // latter case.\n //\n // TODO(alex): In order to allow inputting mixed numbers, we will\n // have to accept spaces in certain cases. The desired behavior is\n // still to escape nested contexts if currently in one, but to\n // insert a space if not (we don't expect mixed numbers in nested\n // contexts). We should also limit to one consecutive space.\n spaceBehavesLikeTab: true,\n});\n\n/**\n * Creates a new [MathField](http://docs.mathquill.com/en/latest/Api_Methods/#mqmathfieldhtml_element-config)\n * instance within the given `container`.\n *\n * An optional configuration callback can be provided to customize\n * the created MathField. A default configuration is passed to this\n * callback which can then be adjusted as needed. The configuration\n * returned from this callback is used to create the MathField.\n * This allows callers to do minimal configuration as only configs\n * that vary from the default need to be provided.\n */\nexport function createMathField(\n container: HTMLDivElement | HTMLSpanElement,\n locale: string,\n strings: MathInputStrings,\n configCallback?: (baseConfig: MathFieldConfig) => MathFieldConfig,\n): MathFieldInterface {\n const baseConfig = createBaseConfig();\n const config = configCallback ? configCallback(baseConfig) : baseConfig;\n\n const mathField = mathQuillInstance\n .MathField(container, config)\n .setAriaLabel(strings.mathInputBox)\n .setAriaStringsOverrideMap({\n before: (obj) => strings.before({obj}),\n after: (obj) => strings.after({obj}),\n \"beginning of\": (obj) => strings[\"beginning of\"]({obj}),\n \"end of\": (obj) => strings[\"end of\"]({obj}),\n Baseline: strings.Baseline,\n Superscript: strings.Superscript,\n selected: (obj) => strings.selected({obj}),\n \"no answer\": strings[\"no answer\"],\n \"nothing selected\": strings[\"nothing selected\"],\n \"nothing to the right\": strings[\"nothing to the right\"],\n \"nothing to the left\": strings[\"nothing to the left\"],\n \"block is empty\": strings[\"block is empty\"],\n \"nothing above\": strings[\"nothing above\"],\n labelValue: (label, value) => strings.labelValue({label, value}),\n }) as MathFieldInterface;\n\n // We should avoid running SpeechRuleEngine.setup() in Jest. It makes an\n // HTTP request to fetch non-english speech rules, and cannot be easily\n // mocked in consuming packages now that we do not bundle source code.\n // When it eventually times out, it will cause arbitrary test failures.\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n !inJest &&\n SpeechRuleEngine.setup(locale).then((SRE) =>\n mathField.setMathspeakOverride(SRE.texToSpeech),\n );\n\n return mathField;\n}\n","import {MathFieldActionType} from \"../../types\";\n\nimport {CursorContext} from \"./cursor-contexts\";\nimport {mathQuillInstance} from \"./mathquill-instance\";\n\nimport type {MathFieldInterface} from \"./mathquill-types\";\n\nconst Numerals = [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"];\nconst GreekLetters = [\"\\\\theta\", \"\\\\pi\"];\nconst Letters = [\n \"A\",\n \"B\",\n \"C\",\n \"D\",\n \"E\",\n \"F\",\n \"G\",\n \"H\",\n \"I\",\n \"J\",\n \"K\",\n \"L\",\n \"M\",\n \"N\",\n \"O\",\n \"P\",\n \"Q\",\n \"R\",\n \"S\",\n \"T\",\n \"U\",\n \"V\",\n \"W\",\n \"X\",\n \"Y\",\n \"Z\",\n];\n\n// We only consider numerals, variables, and Greek Letters to be proper\n// leaf nodes.\nconst ValidLeaves = [\n ...Numerals,\n ...GreekLetters,\n ...Letters.map((letter) => letter.toLowerCase()),\n ...Letters.map((letter) => letter.toUpperCase()),\n];\n\nconst mqNodeHasClass = (node: any, className: string): boolean =>\n node._el && (node._el as HTMLElement).classList.contains(className);\n\nexport function isFraction(node): boolean {\n return mqNodeHasClass(node, \"mq-fraction\");\n}\n\nfunction isNumerator(node): boolean {\n return mqNodeHasClass(node, \"mq-numerator\");\n}\n\nfunction isDenominator(node): boolean {\n return mqNodeHasClass(node, \"mq-denominator\");\n}\n\nfunction isSubScript(node): boolean {\n // NOTE(charlie): MyScript has a structure whereby its superscripts seem\n // to be represented as a parent node with 'mq-sup-only' containing a\n // single child with 'mq-sup'.\n return (\n mqNodeHasClass(node, \"mq-sub-only\") || mqNodeHasClass(node, \"mq-sub\")\n );\n}\n\nfunction isSuperScript(node): boolean {\n // NOTE(charlie): MyScript has a structure whereby its superscripts seem\n // to be represented as a parent node with 'mq-sup-only' containing a\n // single child with 'mq-sup'.\n return (\n mqNodeHasClass(node, \"mq-sup-only\") || mqNodeHasClass(node, \"mq-sup\")\n );\n}\n\nexport function isParens(node): boolean {\n return node && node.ctrlSeq === \"\\\\left(\";\n}\n\nfunction isLeaf(node): boolean {\n return node && node.ctrlSeq && ValidLeaves.includes(node.ctrlSeq.trim());\n}\n\nexport function isSquareRoot(node): boolean {\n return node.blocks && mqNodeHasClass(node.blocks[0], \"mq-sqrt-stem\");\n}\n\nexport function isNthRoot(node): boolean {\n return node.blocks && mqNodeHasClass(node.blocks[0], \"mq-nthroot\");\n}\n\nexport function isNthRootIndex(node): boolean {\n return mqNodeHasClass(node, \"mq-nthroot\");\n}\n\nexport function isInsideLogIndex(cursor): boolean {\n const grandparent = cursor.parent.parent;\n\n if (grandparent && mqNodeHasClass(grandparent, \"mq-supsub\")) {\n const command = maybeFindCommandBeforeParens(grandparent);\n\n if (command && command.name === \"\\\\log\") {\n return true;\n }\n }\n\n return false;\n}\n\nexport function isInsideEmptyNode(cursor): boolean {\n return (\n cursor[mathQuillInstance.L] === MathFieldActionType.MQ_END &&\n cursor[mathQuillInstance.R] === MathFieldActionType.MQ_END\n );\n}\n\nexport function selectNode(node, cursor) {\n cursor.insLeftOf(node);\n cursor.startSelection();\n cursor.insRightOf(node);\n cursor.select();\n cursor.endSelection();\n}\n\n/**\n * Return the start node, end node, and full name of the command of which\n * the initial node is a part, or `null` if the node is not part of a\n * command.\n *\n * @param {node} initialNode - the node to included as part of the command\n * @returns {null|object} - `null` or an object containing the start node\n * (`startNode`), end node (`endNode`), and full\n * name (`name`) of the command\n */\nexport function maybeFindCommand(initialNode) {\n if (!initialNode) {\n return null;\n }\n\n // MathQuill stores commands as separate characters so that\n // users can delete commands one character at a time. We iterate over\n // the nodes from right to left until we hit a sequence starting with a\n // '\\\\', which signifies the start of a command; then we iterate from\n // left to right until we hit a '\\\\left(', which signifies the end of a\n // command. If we encounter any character that doesn't belong in a\n // command, we return null. We match a single character at a time.\n // Ex) ['\\\\l', 'o', 'g ', '\\\\left(', ...]\n const commandCharRegex = /^[a-z]$/;\n const commandStartRegex = /^\\\\[a-z]$/;\n const commandEndSeq = \"\\\\left(\";\n\n // Note: We allowlist the set of valid commands, since relying solely on\n // a command being prefixed with a backslash leads to undesired\n // behavior. For example, Greek symbols, left parentheses, and square\n // roots all get treated as commands.\n const validCommands = [\"\\\\log\", \"\\\\ln\", \"\\\\cos\", \"\\\\sin\", \"\\\\tan\"];\n\n let name = \"\";\n let startNode;\n let endNode;\n\n // Collect the portion of the command from the current node, leftwards\n // until the start of the command.\n let node = initialNode;\n while (node !== 0) {\n const ctrlSeq = node.ctrlSeq.trim();\n if (commandCharRegex.test(ctrlSeq)) {\n name = ctrlSeq + name;\n } else if (commandStartRegex.test(ctrlSeq)) {\n name = ctrlSeq + name;\n startNode = node;\n break;\n } else {\n break;\n }\n\n node = node[mathQuillInstance.L];\n }\n\n // If we hit the start of a command, then grab the rest of it by\n // iterating rightwards to compute the full name of the command, along\n // with its terminal node.\n if (startNode) {\n // Next, iterate from the start to the right.\n node = initialNode[mathQuillInstance.R];\n while (node !== 0) {\n const ctrlSeq = node.ctrlSeq.trim();\n if (commandCharRegex.test(ctrlSeq)) {\n // If we have a single character, add it to the command\n // name.\n name = name + ctrlSeq;\n } else if (ctrlSeq === commandEndSeq) {\n // If we hit the command end delimiter (the left\n // parentheses surrounding its arguments), stop.\n endNode = node;\n break;\n }\n\n node = node[mathQuillInstance.R];\n }\n if (validCommands.includes(name)) {\n return {name, startNode, endNode};\n } else {\n return null;\n }\n } else {\n return null;\n }\n}\n\n/**\n * Return the start node, end node, and full name of the command to the left\n * of `\\\\left(`, or `null` if there is no command.\n *\n * @param {node} leftParenNode - node where .ctrlSeq == `\\\\left(`\n * @returns {null|object} - `null` or an object containing the start node\n * (`startNode`), end node (`endNode`), and full\n * name (`name`) of the command\n */\nexport function maybeFindCommandBeforeParens(leftParenNode) {\n return maybeFindCommand(leftParenNode[mathQuillInstance.L]);\n}\n\nexport function getCursorContext(\n mathField?: MathFieldInterface,\n): (typeof CursorContext)[keyof typeof CursorContext] {\n if (!mathField) {\n return CursorContext.NONE;\n }\n\n // First, try to find any fraction to the right, unimpeded.\n const cursor = mathField.cursor();\n let visitor = cursor;\n while (visitor[mathQuillInstance.R] !== MathFieldActionType.MQ_END) {\n if (isFraction(visitor[mathQuillInstance.R])) {\n return CursorContext.BEFORE_FRACTION;\n } else if (!isLeaf(visitor[mathQuillInstance.R])) {\n break;\n }\n visitor = visitor[mathQuillInstance.R];\n }\n\n // If that didn't work, check if the parent or grandparent is a special\n // context, so that we can jump outwards.\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions\n if (isParens(cursor.parent && cursor.parent.parent)) {\n return CursorContext.IN_PARENS;\n } else if (isNumerator(cursor.parent)) {\n return CursorContext.IN_NUMERATOR;\n } else if (isDenominator(cursor.parent)) {\n return CursorContext.IN_DENOMINATOR;\n } else if (isSubScript(cursor.parent)) {\n return CursorContext.IN_SUB_SCRIPT;\n } else if (isSuperScript(cursor.parent)) {\n return CursorContext.IN_SUPER_SCRIPT;\n } else {\n return CursorContext.NONE;\n }\n}\n","import {MathFieldActionType} from \"../../types\";\nimport {\n isFraction,\n isSquareRoot,\n isNthRoot,\n isNthRootIndex,\n isInsideLogIndex,\n isInsideEmptyNode,\n selectNode,\n maybeFindCommandBeforeParens,\n} from \"../input/mathquill-helpers\";\nimport {mathQuillInstance} from \"../input/mathquill-instance\";\n\nimport type {MathFieldInterface} from \"../input/mathquill-types\";\nimport type MathQuill from \"mathquill\";\n\nfunction handleBackspaceInNthRoot(\n mathField: MathFieldInterface,\n cursor: MathQuill.Cursor,\n) {\n const isAtLeftEnd =\n cursor[mathQuillInstance.L] === MathFieldActionType.MQ_END;\n\n const isRootEmpty = isInsideEmptyNode(cursor.parent.parent.blocks[0].ends);\n\n if (isAtLeftEnd) {\n selectNode(cursor.parent.parent, cursor);\n\n if (isRootEmpty) {\n mathField.keystroke(\"Backspace\");\n }\n } else {\n mathField.keystroke(\"Backspace\");\n }\n}\n\nfunction handleBackspaceInRootIndex(\n mathField: MathFieldInterface,\n cursor: MathQuill.Cursor,\n) {\n if (isInsideEmptyNode(cursor)) {\n // When deleting the index in a nthroot, we change from the nthroot\n // to a sqrt, e.g. \\sqrt[|]{35x-5} => |\\sqrt{35x-5}. If there's no\n // content under the root, then we delete the whole thing.\n\n const grandparent = cursor.parent.parent;\n const latex = grandparent.latex();\n const reinsertionPoint = grandparent[mathQuillInstance.L];\n\n selectNode(grandparent, cursor);\n\n const rootIsEmpty =\n (grandparent.blocks[1]._el as HTMLElement).textContent === \"\";\n\n if (rootIsEmpty) {\n // If there is not content under the root then simply delete\n // the whole thing.\n mathField.keystroke(\"Backspace\");\n } else {\n // Replace the nthroot with a sqrt if there was content under\n // the root.\n\n // Start by deleting the selection.\n mathField.keystroke(\"Backspace\");\n\n // Replace the nth-root with a sqrt.\n mathField.write(latex.replace(/^\\\\sqrt\\[\\]/, \"\\\\sqrt\"));\n\n // Adjust the cursor to be to the left the sqrt.\n if (reinsertionPoint === MathFieldActionType.MQ_END) {\n mathField.moveToLeftEnd();\n } else {\n cursor.insRightOf(reinsertionPoint);\n }\n }\n } else {\n if (cursor[mathQuillInstance.L] !== MathFieldActionType.MQ_END) {\n // If the cursor is not at the leftmost position inside the\n // root's index, delete a character.\n mathField.keystroke(\"Backspace\");\n } else {\n // TODO(kevinb) verify that we want this behavior after testing\n // Do nothing because we haven't completely deleted the\n // index of the radical.\n }\n }\n}\n\nfunction handleBackspaceInLogIndex(\n mathField: MathFieldInterface,\n cursor: MathQuill.Cursor,\n) {\n if (isInsideEmptyNode(cursor)) {\n const grandparent = cursor.parent.parent;\n const command = maybeFindCommandBeforeParens(grandparent);\n\n cursor.insLeftOf(command?.startNode);\n cursor.startSelection();\n\n if (grandparent[mathQuillInstance.R] !== MathFieldActionType.MQ_END) {\n cursor.insRightOf(grandparent[mathQuillInstance.R]);\n } else {\n cursor.insRightOf(grandparent);\n }\n\n cursor.select();\n cursor.endSelection();\n const isLogBodyEmpty =\n grandparent[mathQuillInstance.R]._el.textContent === \"\";\n\n if (isLogBodyEmpty) {\n // If there's no content inside the log's parens then delete the\n // whole thing.\n mathField.keystroke(\"Backspace\");\n }\n } else {\n mathField.keystroke(\"Backspace\");\n }\n}\n\nfunction handleBackspaceInsideParens(\n mathField: MathFieldInterface,\n cursor: MathQuill.Cursor,\n) {\n // Handle situations when the cursor is inside parens or a\n // command that uses parens, e.g. \\log() or \\tan()\n //\n // MathQuill represents log(x+1) in roughly the following way\n // [l, o, g, \\\\left[parent:[x, +, 1]]]\n //\n // If the cursor is inside the parentheses it's next to one of:\n // x, +, or 1. This makes sub_sub_expr its parent and sub_expr\n // it's parent.\n //\n // Interestingly parent doesn't have any nodes to the left or\n // right of it (even though the corresponding DOM node has\n // ( and ) characters on either side.\n //\n // The grandparent's ctrlSeq is `\\\\left(`. The `\\\\right)` isn't\n // stored anywhere. NOTE(kevinb): I believe this is because\n // MathQuill knows what the close paren should be and does the\n // right thing at render time.\n //\n // This conditional branch handles the following cases:\n // - \\log(x+1|) => \\log(x+|)\n // - \\log(|x+1) => |\\log(x+1)|\n // - \\log(|) => |\n\n if (cursor[mathQuillInstance.L] !== MathFieldActionType.MQ_END) {\n // This command contains math and there's some math to\n // the left of the cursor that we should delete normally\n // before doing anything special.\n mathField.keystroke(\"Backspace\");\n return;\n }\n\n const grandparent = cursor.parent.parent;\n\n // If the cursors is inside the parens at the start but the command\n // has a subscript as is the case in log_n then move the cursor into\n // the subscript, e.g. \\log_{5}(|x+1) => \\log_{5|}(x+1)\n\n if (grandparent[mathQuillInstance.L].sub) {\n // if there is a subscript\n if (grandparent[mathQuillInstance.L].sub._el.textContent) {\n // and it contains text\n // move the cursor to the right end of the subscript\n cursor.insAtRightEnd(grandparent[mathQuillInstance.L].sub);\n return;\n }\n }\n\n // Determine if the parens are empty before we modify the\n // cursor's position.\n const isEmpty = isInsideEmptyNode(cursor);\n\n // Insert the cursor to the left of the command if there is one\n // or before the '\\\\left(` if there isn't\n const command = maybeFindCommandBeforeParens(grandparent);\n\n cursor.insLeftOf((command && command.startNode) || grandparent);\n cursor.startSelection();\n cursor.insRightOf(grandparent);\n cursor.select();\n cursor.endSelection();\n\n // Delete the selection, but only if the parens were empty to\n // begin with.\n if (isEmpty) {\n mathField.keystroke(\"Backspace\");\n }\n}\n\nfunction handleBackspaceAfterLigaturedSymbol(mathField: MathFieldInterface) {\n mathField.keystroke(\"Backspace\");\n mathField.keystroke(\"Backspace\");\n}\n\n/**\n * Selects and deletes part of the expression based on the cursor location.\n * See inline comments for precise behavior of different cases.\n */\nfunction handleBackspace(mathField: MathFieldInterface) {\n const cursor = mathField.cursor();\n if (!cursor.selection) {\n const parent = cursor.parent;\n const grandparent = parent.parent;\n const leftNode = cursor[mathQuillInstance.L];\n\n if (isFraction(leftNode)) {\n selectNode(leftNode, cursor);\n } else if (isSquareRoot(leftNode)) {\n selectNode(leftNode, cursor);\n } else if (isNthRoot(leftNode)) {\n selectNode(leftNode, cursor);\n } else if (isNthRootIndex(parent)) {\n handleBackspaceInRootIndex(mathField, cursor);\n } else if (grandparent.ctrlSeq === \"\\\\left(\") {\n handleBackspaceInsideParens(mathField, cursor);\n } else if (isInsideLogIndex(cursor)) {\n handleBackspaceInLogIndex(mathField, cursor);\n } else if (\n leftNode.ctrlSeq === \"\\\\ge \" ||\n leftNode.ctrlSeq === \"\\\\le \"\n ) {\n handleBackspaceAfterLigaturedSymbol(mathField);\n } else if (\n isNthRoot(grandparent) &&\n leftNode === MathFieldActionType.MQ_END\n ) {\n handleBackspaceInNthRoot(mathField, cursor);\n } else {\n mathField.keystroke(\"Backspace\");\n }\n } else {\n mathField.keystroke(\"Backspace\");\n }\n}\n\nexport default handleBackspace;\n","import {MathFieldActionType} from \"../../types\";\nimport {\n maybeFindCommand,\n maybeFindCommandBeforeParens,\n} from \"../input/mathquill-helpers\";\nimport {mathQuillInstance} from \"../input/mathquill-instance\";\n\nimport type {MathFieldInterface} from \"../input/mathquill-types\";\nimport type {KeypadKey} from \"@khanacademy/perseus-core\";\nimport type MathQuill from \"mathquill\";\n\nfunction handleLeftArrow(\n mathField: MathFieldInterface,\n cursor: MathQuill.Cursor,\n) {\n // If we're inside a function, and just after the left parentheses, we\n // need to skip the entire function name, rather than move the cursor\n // inside of it. For example, when hitting left from within the\n // parentheses in `cos()`, we want to place the cursor to the left of\n // the entire expression, rather than between the `s` and the left\n // parenthesis.\n // From the cursor's perspective, this requires that our left node is\n // the ActionType.MQ_END node, that our grandparent is the left parenthesis, and\n // the nodes to the left of our grandparent comprise a valid function\n // name.\n if (cursor[mathQuillInstance.L] === MathFieldActionType.MQ_END) {\n const parent = cursor.parent;\n const grandparent = parent.parent;\n if (grandparent.ctrlSeq === \"\\\\left(\") {\n const command = maybeFindCommandBeforeParens(grandparent);\n if (command) {\n cursor.insLeftOf(command.startNode);\n return;\n }\n }\n }\n\n // Otherwise, we default to the standard MathQull left behavior.\n mathField.keystroke(\"Left\");\n}\n\nfunction handleRightArrow(\n mathField: MathFieldInterface,\n cursor: MathQuill.Cursor,\n) {\n const command = maybeFindCommand(cursor[mathQuillInstance.R]);\n if (command) {\n // Similarly, if a function is to our right, then we need to place\n // the cursor at the start of its parenthetical content, which is\n // done by putting it to the left of ites parentheses and then\n // moving right once.\n cursor.insLeftOf(command.endNode);\n mathField.keystroke(\"Right\");\n } else {\n // Otherwise, we default to the standard MathQull right behavior.\n mathField.keystroke(\"Right\");\n }\n}\n\nexport default function handleArrow(\n mathField: MathFieldInterface,\n key: KeypadKey,\n) {\n const cursor = mathField.cursor();\n\n if (key === \"LEFT\") {\n handleLeftArrow(mathField, cursor);\n } else if (key === \"RIGHT\") {\n handleRightArrow(mathField, cursor);\n }\n}\n","import {MathFieldActionType} from \"../../types\";\nimport {mathQuillInstance} from \"../input/mathquill-instance\";\n\nimport type {MathFieldInterface} from \"../input/mathquill-types\";\nimport type {KeypadKey} from \"@khanacademy/perseus-core\";\n\nconst ArithmeticOperators = [\"+\", \"-\", \"\\\\cdot\", \"\\\\times\", \"\\\\div\"];\nconst EqualityOperators = [\"=\", \"\\\\neq\", \"<\", \"\\\\leq\", \">\", \"\\\\geq\"];\n\nexport default function handleExponent(\n mathField: MathFieldInterface,\n key: KeypadKey,\n) {\n const cursor = mathField.cursor();\n // If there's an invalid operator preceding the cursor (anything that\n // knowingly cannot be raised to a power), add an empty set of\n // parentheses and apply the exponent to that.\n const invalidPrefixes = [...ArithmeticOperators, ...EqualityOperators];\n\n const precedingNode = cursor[mathQuillInstance.L];\n const shouldPrefixWithParens =\n precedingNode === MathFieldActionType.MQ_END ||\n invalidPrefixes.includes(precedingNode.ctrlSeq.trim());\n if (shouldPrefixWithParens) {\n mathField.write(\"\\\\left(\\\\right)\");\n }\n\n // Insert the appropriate exponent operator.\n switch (key) {\n case \"EXP\":\n mathField.cmd(\"^\");\n break;\n\n case \"EXP_2\":\n case \"EXP_3\":\n mathField.write(`^${key === \"EXP_2\" ? 2 : 3}`);\n\n // If we enter a square or a cube, we should leave the cursor\n // within the newly inserted parens, if they exist. This takes\n // exactly four left strokes, since the cursor by default would\n // end up to the right of the exponent.\n if (shouldPrefixWithParens) {\n mathField.keystroke(\"Left\");\n mathField.keystroke(\"Left\");\n mathField.keystroke(\"Left\");\n mathField.keystroke(\"Left\");\n }\n break;\n\n default:\n throw new Error(`Invalid exponent key: ${key}`);\n }\n}\n","import {MathFieldActionType} from \"../../types\";\nimport {CursorContext} from \"../input/cursor-contexts\";\nimport {\n isFraction,\n isParens,\n getCursorContext,\n} from \"../input/mathquill-helpers\";\nimport {mathQuillInstance} from \"../input/mathquill-instance\";\n\nimport type {MathFieldInterface} from \"../input/mathquill-types\";\nimport type {KeypadKey} from \"@khanacademy/perseus-core\";\n\nconst KeysForJumpContext = {\n [CursorContext.IN_PARENS]: \"JUMP_OUT_PARENTHESES\",\n [CursorContext.IN_SUPER_SCRIPT]: \"JUMP_OUT_EXPONENT\",\n [CursorContext.IN_SUB_SCRIPT]: \"JUMP_OUT_BASE\",\n [CursorContext.BEFORE_FRACTION]: \"JUMP_INTO_NUMERATOR\",\n [CursorContext.IN_NUMERATOR]: \"JUMP_OUT_NUMERATOR\",\n [CursorContext.IN_DENOMINATOR]: \"JUMP_OUT_DENOMINATOR\",\n};\n\n/**\n * Advances the cursor to the next logical position.\n */\nfunction handleJumpOut(mathField: MathFieldInterface, key: KeypadKey): void {\n const cursor = mathField.cursor();\n const context = getCursorContext(mathField);\n\n // Validate that the current cursor context matches the key's intent.\n if (KeysForJumpContext[context] !== key) {\n // If we don't have a valid cursor context, yet the user was able\n // to trigger a jump-out key, that's a broken invariant. Rather\n // than throw an error (which would kick the user out of the\n // exercise), we do nothing, as a fallback strategy. The user can\n // still move the cursor manually.\n return;\n }\n\n switch (context) {\n case CursorContext.IN_PARENS:\n // Insert at the end of the parentheses, and then navigate right\n // once more to get 'beyond' the parentheses.\n cursor.insRightOf(cursor.parent.parent);\n mathField.keystroke(\"Right\");\n break;\n\n case CursorContext.BEFORE_FRACTION:\n // Find the nearest fraction to the right of the cursor.\n let fractionNode;\n let visitor = cursor;\n while (\n visitor[mathQuillInstance.R] !== MathFieldActionType.MQ_END\n ) {\n if (isFraction(visitor[mathQuillInstance.R])) {\n fractionNode = visitor[mathQuillInstance.R];\n }\n visitor = visitor[mathQuillInstance.R];\n }\n\n // Jump into it!\n cursor.insLeftOf(fractionNode);\n mathField.keystroke(\"Right\");\n break;\n\n case CursorContext.IN_NUMERATOR:\n // HACK(charlie): I can't find a better way to do this. The goal\n // is to place the cursor at the start of the matching\n // denominator. So, we identify the appropriate node, and\n // continue rightwards until we find ourselves inside of it.\n // It's possible that there are cases in which we don't reach\n // the denominator, though I can't think of any.\n const siblingDenominator = cursor.parent.parent.blocks[1];\n while (cursor.parent !== siblingDenominator) {\n mathField.keystroke(\"Right\");\n }\n break;\n\n case CursorContext.IN_DENOMINATOR:\n cursor.insRightOf(cursor.parent.parent);\n break;\n\n case CursorContext.IN_SUB_SCRIPT:\n // Insert just beyond the superscript.\n cursor.insRightOf(cursor.parent.parent);\n\n // Navigate right once more, if we're right before parens. This\n // is to handle the standard case in which the subscript is the\n // base of a custom log.\n if (isParens(cursor[mathQuillInstance.R])) {\n mathField.keystroke(\"Right\");\n }\n break;\n\n case CursorContext.IN_SUPER_SCRIPT:\n // Insert just beyond the superscript.\n cursor.insRightOf(cursor.parent.parent);\n break;\n\n default:\n throw new Error(\n `Attempted to 'Jump Out' from node, but found no ` +\n `appropriate cursor context: ${context}`,\n );\n }\n}\n\nexport default handleJumpOut;\n","import {getDecimalSeparator} from \"@khanacademy/perseus-core\";\n\nimport {MathFieldActionType} from \"../../types\";\nimport {mathQuillInstance} from \"../input/mathquill-instance\";\n\nimport handleArrow from \"./handle-arrow\";\nimport handleExponent from \"./handle-exponent\";\nimport handleJumpOut from \"./handle-jump-out\";\n\nimport type {\n MathFieldInterface,\n MathFieldUpdaterCallback,\n} from \"../input/mathquill-types\";\nimport type {KeypadKey} from \"@khanacademy/perseus-core\";\n\nfunction buildGenericCallback(\n str: string,\n type: MathFieldActionType = MathFieldActionType.WRITE,\n): MathFieldUpdaterCallback {\n return function (mathQuill: MathFieldInterface) {\n switch (type) {\n case MathFieldActionType.WRITE: {\n mathQuill.write(str);\n return;\n }\n case MathFieldActionType.CMD: {\n mathQuill.cmd(str);\n return;\n }\n case MathFieldActionType.KEYSTROKE: {\n mathQuill.keystroke(str);\n return;\n }\n }\n };\n}\n\n/**\n * This lets us use translated functions\n * (like tg->tan and sen->sin) when we know it's safe to.\n * This lets us progressively support translations without needing\n * to support every language all at once.\n *\n * @param {string} command - the translated command/function to check\n * @param {string[]} supportedTranslations - list of translations we support\n * @param {string} defaultCommand - what to fallback to if the command isn't supported\n */\nfunction buildTranslatableFunctionCallback(\n command: string,\n supportedTranslations: string[],\n defaultCommand: string,\n) {\n const cmd = supportedTranslations.includes(command)\n ? command\n : defaultCommand;\n return function (mathField: MathFieldInterface) {\n mathField.write(`${cmd}\\\\left(\\\\right)`);\n mathField.keystroke(\"Left\");\n };\n}\n\nfunction buildNormalFunctionCallback(command: string) {\n return function (mathField: MathFieldInterface) {\n mathField.write(`\\\\${command}\\\\left(\\\\right)`);\n mathField.keystroke(\"Left\");\n };\n}\n\ntype KeyTranslatorStrings = {\n sin: string;\n cos: string;\n tan: string;\n};\n\nexport const getKeyTranslator = (\n locale: string,\n strings: KeyTranslatorStrings,\n): Record<KeypadKey, MathFieldUpdaterCallback> => ({\n EXP: handleExponent,\n EXP_2: handleExponent,\n EXP_3: handleExponent,\n\n JUMP_OUT_PARENTHESES: handleJumpOut,\n JUMP_OUT_EXPONENT: handleJumpOut,\n JUMP_OUT_BASE: handleJumpOut,\n JUMP_INTO_NUMERATOR: handleJumpOut,\n JUMP_OUT_NUMERATOR: handleJumpOut,\n JUMP_OUT_DENOMINATOR: handleJumpOut,\n\n LEFT: handleArrow,\n RIGHT: handleArrow,\n\n LOG: buildNormalFunctionCallback(\"log\"),\n LN: buildNormalFunctionCallback(\"ln\"),\n\n COS: buildNormalFunctionCallback(strings.cos),\n SIN: buildTranslatableFunctionCallback(strings.sin, [\"sin\", \"sen\"], \"sin\"),\n TAN: buildTranslatableFunctionCallback(strings.tan, [\"tan\", \"tg\"], \"tan\"),\n\n CDOT: buildGenericCallback(\"\\\\cdot\"),\n DECIMAL: buildGenericCallback(getDecimalSeparator(locale)),\n DIVIDE: buildGenericCallback(\"\\\\div\"),\n EQUAL: buildGenericCallback(\"=\"),\n GEQ: buildGenericCallback(\"\\\\geq\"),\n GT: buildGenericCallback(\">\"),\n LEQ: buildGenericCallback(\"\\\\leq\"),\n LT: buildGenericCallback(\"<\"),\n MINUS: buildGenericCallback(\"-\"),\n NEGATIVE: buildGenericCallback(\"-\"),\n NEQ: buildGenericCallback(\"\\\\neq\"),\n PERCENT: buildGenericCallback(\"%\"),\n PERIOD: buildGenericCallback(\".\"),\n PLUS: buildGenericCallback(\"+\"),\n TIMES: buildGenericCallback(\"\\\\times\"),\n\n // The `FRAC_EXCLUSIVE` variant is handled manually, since we may need to do\n // some additional navigation depending on the cursor position.\n FRAC_INCLUSIVE: buildGenericCallback(\"/\", MathFieldActionType.CMD),\n FRAC: buildGenericCallback(\"\\\\frac\", MathFieldActionType.CMD),\n LEFT_PAREN: buildGenericCallback(\"(\", MathFieldActionType.CMD),\n RIGHT_PAREN: buildGenericCallback(\")\", MathFieldActionType.CMD),\n SQRT: buildGenericCallback(\"sqrt\", MathFieldActionType.CMD),\n PI: buildGenericCallback(\"pi\", MathFieldActionType.CMD),\n THETA: buildGenericCallback(\"theta\", MathFieldActionType.CMD),\n RADICAL: buildGenericCallback(\"nthroot\", MathFieldActionType.CMD),\n\n BACKSPACE: buildGenericCallback(\"Backspace\", MathFieldActionType.KEYSTROKE),\n UP: buildGenericCallback(\"Up\", MathFieldActionType.KEYSTROKE),\n DOWN: buildGenericCallback(\"Down\", MathFieldActionType.KEYSTROKE),\n\n CUBE_ROOT: (mathQuill) => {\n mathQuill.write(\"\\\\sqrt[3]{}\");\n mathQuill.keystroke(\"Left\"); // under the root\n },\n\n FRAC_EXCLUSIVE: (mathQuill) => {\n const cursor = mathQuill.cursor();\n // If there's nothing to the left of the cursor, then we want to\n // leave the cursor to the left of the fraction after creating it.\n const shouldNavigateLeft =\n cursor[mathQuillInstance.L] === MathFieldActionType.MQ_END;\n mathQuill.cmd(\"\\\\frac\");\n if (shouldNavigateLeft) {\n mathQuill.keystroke(\"Left\");\n }\n },\n\n LOG_N: (mathQuill) => {\n mathQuill.write(\"log_{ }\\\\left(\\\\right)\");\n mathQuill.keystroke(\"Left\"); // into parentheses\n mathQuill.keystroke(\"Left\"); // out of parentheses\n mathQuill.keystroke(\"Left\"); // into index\n },\n\n // These need to be overwritten by the consumer\n // if they're going to be used\n DISMISS: () => {},\n\n NUM_0: buildGenericCallback(\"0\"),\n NUM_1: buildGenericCallback(\"1\"),\n NUM_2: buildGenericCallback(\"2\"),\n NUM_3: buildGenericCallback(\"3\"),\n NUM_4: buildGenericCallback(\"4\"),\n NUM_5: buildGenericCallback(\"5\"),\n NUM_6: buildGenericCallback(\"6\"),\n NUM_7: buildGenericCallback(\"7\"),\n NUM_8: buildGenericCallback(\"8\"),\n NUM_9: buildGenericCallback(\"9\"),\n a: buildGenericCallback(\"a\"),\n b: buildGenericCallback(\"b\"),\n c: buildGenericCallback(\"c\"),\n d: buildGenericCallback(\"d\"),\n e: buildGenericCallback(\"e\"),\n f: buildGenericCallback(\"f\"),\n g: buildGenericCallback(\"g\"),\n h: buildGenericCallback(\"h\"),\n i: buildGenericCallback(\"i\"),\n j: buildGenericCallback(\"j\"),\n k: buildGenericCallback(\"k\"),\n l: buildGenericCallback(\"l\"),\n m: buildGenericCallback(\"m\"),\n n: buildGenericCallback(\"n\"),\n o: buildGenericCallback(\"o\"),\n p: buildGenericCallback(\"p\"),\n q: buildGenericCallback(\"q\"),\n r: buildGenericCallback(\"r\"),\n s: buildGenericCallback(\"s\"),\n t: buildGenericCallback(\"t\"),\n u: buildGenericCallback(\"u\"),\n v: buildGenericCallback(\"v\"),\n w: buildGenericCallback(\"w\"),\n x: buildGenericCallback(\"x\"),\n y: buildGenericCallback(\"y\"),\n z: buildGenericCallback(\"z\"),\n A: buildGenericCallback(\"A\"),\n B: buildGenericCallback(\"B\"),\n C: buildGenericCallback(\"C\"),\n D: buildGenericCallback(\"D\"),\n E: buildGenericCallback(\"E\"),\n F: buildGenericCallback(\"F\"),\n G: buildGenericCallback(\"G\"),\n H: buildGenericCallback(\"H\"),\n I: buildGenericCallback(\"I\"),\n J: buildGenericCallback(\"J\"),\n K: buildGenericCallback(\"K\"),\n L: buildGenericCallback(\"L\"),\n M: buildGenericCallback(\"M\"),\n N: buildGenericCallback(\"N\"),\n O: buildGenericCallback(\"O\"),\n P: buildGenericCallback(\"P\"),\n Q: buildGenericCallback(\"Q\"),\n R: buildGenericCallback(\"R\"),\n S: buildGenericCallback(\"S\"),\n T: buildGenericCallback(\"T\"),\n U: buildGenericCallback(\"U\"),\n V: buildGenericCallback(\"V\"),\n W: buildGenericCallback(\"W\"),\n X: buildGenericCallback(\"X\"),\n Y: buildGenericCallback(\"Y\"),\n Z: buildGenericCallback(\"Z\"),\n});\n","// Notes about MathQuill\n//\n// MathQuill's stores its layout as nested linked lists. Each node in the\n// list has MQ.L '-1' and MQ.R '1' properties that define links to\n// the left and right nodes respectively. They also have\n//\n// ctrlSeq: contains the latex code snippet that defines that node.\n// jQ: jQuery object for the DOM node(s) for this MathQuill node.\n// ends: pointers to the nodes at the ends of the container.\n// parent: parent node.\n// blocks: an array containing one or more nodes that make up the node.\n// sub?: subscript node if there is one as is the case in log_n\n//\n// All of the code below is super fragile. Please be especially careful\n// when upgrading MathQuill.\n\nimport handleBackspace from \"../key-handlers/handle-backspace\";\nimport {getKeyTranslator} from \"../key-handlers/key-translator\";\n\nimport {getCursorContext, maybeFindCommand} from \"./mathquill-helpers\";\nimport {createMathField, mathQuillInstance} from \"./mathquill-instance\";\n\nimport type {\n MathFieldInterface,\n MathFieldUpdaterCallback,\n} from \"./mathquill-types\";\nimport type {MathInputStrings} from \"../../strings\";\nimport type {KeypadKey} from \"@khanacademy/perseus-core\";\n\n/**\n * This file contains a wrapper around MathQuill so that we can provide a\n * more regular interface for the functionality we need while insulating us\n * from MathQuill changes.\n */\nclass MathWrapper {\n mathField: MathFieldInterface; // MathQuill MathField input\n callbacks: any;\n mobileKeyTranslator: Record<KeypadKey, MathFieldUpdaterCallback>;\n\n constructor(\n mathFieldMount,\n ariaLabel: string,\n strings: MathInputStrings,\n locale: string,\n callbacks = {},\n ) {\n this.mathField = createMathField(\n mathFieldMount,\n locale,\n strings,\n () => {\n return {\n // use a span instead of a textarea so that we don't bring up the\n // native keyboard on mobile when selecting the input\n substituteTextarea: function () {\n return document.createElement(\"span\");\n },\n };\n },\n );\n this.mathField?.setAriaLabel(ariaLabel);\n\n this.callbacks = callbacks;\n\n this.mobileKeyTranslator = {\n ...getKeyTranslator(locale, strings),\n // note(Matthew): our mobile backspace logic is really complicated\n // and for some reason doesn't really work in the desktop experience.\n // So we default to the basic backspace functionality in the\n // key translator and overwrite it with the complicated logic here\n // until we can unify the experiences (if we even want to).\n // https://khanacademy.atlassian.net/browse/LC-906\n BACKSPACE: handleBackspace,\n };\n }\n\n focus() {\n // HACK(charlie): We shouldn't reaching into MathQuill internals like\n // this, but it's the easiest way to allow us to manage the focus state\n // ourselves.\n this.mathField.cursor().show();\n\n // Set MathQuill's internal state to reflect the focus, otherwise it\n // will consistently try to hide the cursor on key-press and introduce\n // layout jank.\n this.mathField.focus();\n }\n\n blur() {\n this.mathField.cursor().hide();\n this.mathField.blur();\n }\n\n /**\n * Handle a key press and return the resulting cursor state.\n *\n * @param {Key} key - an enum representing the key that was pressed\n * @returns {object} a cursor object, consisting of a cursor context\n */\n pressKey(key: KeypadKey) {\n const cursor = this.getCursor();\n const translator = this.mobileKeyTranslator[key];\n\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions\n if (translator) {\n translator(this.mathField, key);\n }\n\n if (!cursor.selection) {\n // don't show the cursor for selections\n cursor.show();\n }\n\n if (this.callbacks.onSelectionChanged) {\n this.callbacks.onSelectionChanged(cursor.selection);\n }\n\n // NOTE(charlie): It's insufficient to do this as an `edited` handler\n // on the MathField, as that handler isn't triggered on navigation\n // events.\n return {\n context: this.contextForCursor(),\n };\n }\n\n /**\n * Place the cursor beside the node located at the given coordinates.\n *\n * @param {number} x - the x coordinate in the viewport\n * @param {number} y - the y coordinate in the viewport\n * @param {Node} hitNode - the node next to which the cursor should be\n * placed; if provided, the coordinates will be used\n * to determine on which side of the node the cursor\n * should be placed\n */\n setCursorPosition(x: number, y: number, hitNode: HTMLElement) {\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions\n const el = hitNode || document.elementFromPoint(x, y);\n\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions\n if (el) {\n const cursor = this.getCursor();\n\n if (el.hasAttribute(\"mq-root-block\")) {\n // If we're in the empty area place the cursor at the right\n // end of the expression.\n cursor.insAtRightEnd(this.mathField.controller().root);\n } else {\n // Otherwise place beside the element at x, y.\n const controller = this.mathField.controller();\n\n const pageX = x - document.body.scrollLeft;\n const pageY = y - document.body.scrollTop;\n controller.seek(el, pageX, pageY).cursor.startSelection();\n\n // Unless that would leave us mid-command, in which case, we\n // need to adjust and place the cursor inside the parens\n // following the command.\n const command = maybeFindCommand(cursor[mathQuillInstance.L]);\n if (command && command.endNode) {\n // NOTE(charlie): endNode should definitely be \\left(.\n cursor.insLeftOf(command.endNode);\n this.mathField.keystroke(\"Right\");\n }\n }\n\n if (this.callbacks.onCursorMove) {\n this.callbacks.onCursorMove({\n context: this.contextForCursor(),\n });\n }\n }\n }\n\n // note(Matthew): extracted this logic to share it elsewhere,\n // but it's part of the public MathWrapper API\n getCursor() {\n return this.mathField.cursor();\n }\n\n // note(Matthew): extracted this logic to keep this file focused,\n // but it's part of the public MathWrapper API\n contextForCursor() {\n return getCursorContext(this.mathField);\n }\n\n getSelection() {\n return this.getCursor().selection;\n }\n\n getContent() {\n return this.mathField.latex();\n }\n\n setContent(latex: string) {\n this.mathField.latex(latex);\n }\n\n isEmpty() {\n const cursor = this.getCursor();\n return cursor.parent.id === 1 && cursor[1] === 0 && cursor[-1] === 0;\n }\n}\n\nexport default MathWrapper;\n","/**\n * A single function used to scroll a DOM node into view, optionally taking into\n * account that it may be obscured by the custom keypad. The logic makes the\n * strong assumption that the keypad will be anchored to the bottom of the page\n * in calculating its height, as this method may be called before the keypad has\n * animated into view.\n *\n * TODO(charlie): Move this scroll logic out of our components and into a higher\n * level in the component tree--perhaps even into webapp, beyond Perseus.\n */\n\n// HACK(charlie): This should be injected by webapp somehow.\n// TODO(charlie): Add a link to the webapp location as soon as the footer\n// has settled down.\nconst toolbarHeightPx = 60;\n\nexport const scrollIntoView = (containerNode, keypadNode) => {\n // TODO(charlie): There's no need for us to be reading the keypad bounds\n // here, since they're pre-determined by logic in the store. We should\n // instead pass around an object that knows the bounds.\n const containerBounds = containerNode.getBoundingClientRect();\n const containerBottomPx = containerBounds.bottom;\n const containerTopPx = containerBounds.top;\n\n // Get the element that scrolls the document.\n const scrollNode = document.scrollingElement;\n\n const desiredMarginPx = 16;\n\n if (keypadNode) {\n // NOTE(charlie): We can't use the bounding rect of the keypad,\n // as it is likely in the process of animating in. Instead, to\n // calculate its top, we make the strong assumption that the\n // keypad will end up anchored at the bottom of the page, but above the\n // toolbar, and use its height, which is known at this point. Note that,\n // in the native apps (where the toolbar is rendered natively), this\n // will result in us leaving excess space between the input and the\n // keypad, but that seems okay.\n const pageHeightPx = window.innerHeight;\n const keypadHeightPx = keypadNode.clientHeight;\n const keypadTopPx = pageHeightPx - (keypadHeightPx + toolbarHeightPx);\n\n if (containerBottomPx > keypadTopPx) {\n // If the input would be obscured by the keypad, scroll such that\n // the bottom of the input is just above the top of the keypad,\n // taking care not to scroll the input out of view.\n const scrollOffset = Math.min(\n containerBottomPx - keypadTopPx + desiredMarginPx,\n containerTopPx,\n );\n\n if (scrollNode) {\n scrollNode.scrollTop += scrollOffset;\n }\n return;\n }\n }\n\n // Alternatively, if the input is out of the viewport or nearly out\n // of the viewport, scroll it into view. We can do this regardless\n // of whether the keypad has been provided.\n if (scrollNode && containerTopPx < desiredMarginPx) {\n scrollNode.scrollTop -= containerBounds.height + desiredMarginPx;\n }\n};\n","/* eslint-disable max-lines */\n/* eslint-disable @khanacademy/ts-no-error-suppressions */\nimport {KeypadContext} from \"@khanacademy/keypad-context\";\nimport {color} from \"@khanacademy/wonder-blocks-tokens\";\nimport {entries} from \"@khanacademy/wonder-stuff-core\";\nimport {StyleSheet} from \"aphrodite\";\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\n\nimport {View} from \"../../fake-react-native-web/index\";\nimport {MathInputI18nContext} from \"../i18n-context\";\n\nimport CursorHandle from \"./cursor-handle\";\nimport {\n cursorHandleRadiusPx,\n cursorHandleDistanceMultiplier,\n} from \"./cursor-styles\";\nimport DragListener from \"./drag-listener\";\nimport MathWrapper from \"./math-wrapper\";\nimport {scrollIntoView} from \"./scroll-into-view\";\n\nimport type {Cursor, KeypadAPI, KeypadContextType} from \"../../types\";\n\nconst constrainingFrictionFactor = 0.8;\n\ntype Props = {\n keypadElement?: KeypadAPI;\n ariaLabel: string;\n onBlur: () => void;\n onChange: (value: string, callback: any) => void;\n onFocus: () => void;\n style: any;\n value: string;\n};\n\ntype DefaultProps = {\n style: Props[\"style\"];\n value: Props[\"value\"];\n};\n\ntype HandleState = {\n animateIntoPosition?: boolean;\n visible: boolean;\n x?: number;\n y?: number;\n};\n\ntype State = {\n // Whether the input is currently the focused element.\n focused: boolean;\n handle: HandleState;\n // Whether to show the focus style for the input. We are handling this separately, as\n // we want the input to appear focused even when the focus is actually on the keypad.\n showInputFocusStyle: boolean;\n};\n\n// eslint-disable-next-line react/no-unsafe\nclass MathInput extends React.Component<Props, State> {\n static contextType = MathInputI18nContext;\n declare context: React.ContextType<typeof MathInputI18nContext>;\n\n didTouchOutside: boolean | null | undefined;\n didScroll: boolean | null | undefined;\n mathField: any;\n // @ts-expect-error - TS2564 - Property 'recordTouchStartOutside' has no initializer and is not definitely assigned in the constructor.\n recordTouchStartOutside: (arg1: any) => void;\n // @ts-expect-error - TS2564 - Property 'blurOnTouchEndOutside' has no initializer and is not definitely assigned in the constructor.\n blurOnTouchEndOutside: (arg1: any) => void;\n // @ts-expect-error - TS2564 - Property 'blurOnClickOutside' has no initializer and is not definitely assigned in the constructor.\n blurOnClickOutside: (arg1: any) => void;\n dragListener: any;\n inputRef: HTMLDivElement | null | undefined;\n _isMounted: boolean | null | undefined;\n _mathContainer: any;\n // @ts-expect-error - TS2564 - Property '_container' has no initializer and is not definitely assigned in the constructor.\n _container: HTMLDivElement;\n _root: any;\n // @ts-expect-error - TS2564 - Property '_containerBounds' has no initializer and is not definitely assigned in the constructor.\n _containerBounds: ClientRect;\n\n static defaultProps: DefaultProps = {\n style: {},\n value: \"\",\n };\n\n state: State = {\n focused: false,\n showInputFocusStyle: false,\n handle: {\n animateIntoPosition: false,\n visible: false,\n x: 0,\n y: 0,\n },\n };\n\n componentDidMount() {\n this._isMounted = true;\n\n this.mathField = new MathWrapper(\n this._mathContainer,\n this.props.ariaLabel,\n this.context.strings,\n this.context.locale,\n {\n onCursorMove: (cursor: Cursor) => {\n // TODO(charlie): It's not great that there is so much coupling\n // between this keypad and the input behavior. We should wrap\n // this `MathInput` component in an intermediary component\n // that translates accesses on the keypad into vanilla props,\n // to make this input keypad-agnostic.\n this.props.keypadElement?.setCursor(cursor);\n },\n },\n );\n\n this.mathField.setContent(this.props.value);\n\n this._updateInputPadding();\n\n this._container = ReactDOM.findDOMNode(this) as HTMLDivElement;\n this._root = this._container.querySelector(\".mq-root-block\");\n this._root.addEventListener(\"scroll\", this._handleScroll);\n\n const isWithinKeypadBounds = (x: number, y: number): boolean => {\n const bounds = this._getKeypadBounds();\n\n // If there are no bounds, then the keypad is not mounted, so we\n // assume that the event is not within the keypad bounds.\n if (!bounds) {\n return false;\n }\n\n return (\n (bounds.left <= x &&\n bounds.right >= x &&\n bounds.top <= y &&\n bounds.bottom >= y) ||\n bounds.bottom < y\n );\n };\n\n // Record the initial scroll displacement on touch start. This allows\n // us to detect whether a touch event was a scroll and only blur the\n // input on non-scrolls--blurring the input on scroll makes for a\n // frustrating user experience.\n this.recordTouchStartOutside = (evt: any) => {\n if (this.state.focused) {\n // Only blur if the touch is both outside of the input, and\n // above or to the left or right of the keypad (if it has been\n // provided). The reasoning for not blurring when touches occur\n // below the keypad is that the keypad may be anchored above\n // the 'Check answer' bottom bar, in which case, we don't want\n // to dismiss the keypad on check.\n // TODO(charlie): Inject this logic.\n if (!this._container.contains(evt.target)) {\n let touchDidStartInOrBelowKeypad = false;\n if (\n this.props.keypadElement &&\n this.props.keypadElement.getDOMNode()\n ) {\n for (let i = 0; i < evt.changedTouches.length; i++) {\n const [x, y] = [\n evt.changedTouches[i].clientX,\n evt.changedTouches[i].clientY,\n ];\n if (isWithinKeypadBounds(x, y)) {\n touchDidStartInOrBelowKeypad = true;\n break;\n }\n }\n }\n\n if (!touchDidStartInOrBelowKeypad) {\n this.didTouchOutside = true;\n\n if (this.dragListener) {\n this.dragListener.detach();\n }\n\n this.dragListener = new DragListener(() => {\n this.didScroll = true;\n this.dragListener.detach();\n }, evt);\n this.dragListener.attach();\n }\n }\n }\n };\n\n this.blurOnTouchEndOutside = (evt) => {\n // If the user didn't scroll, blur the input.\n // TODO(charlie): Verify that the touch that ended actually started\n // outside the keypad. Right now, you can touch down on the keypad,\n // touch elsewhere, release the finger on the keypad, and trigger a\n // dismissal. This code needs to be generalized to handle\n // multi-touch.\n if (this.state.focused && this.didTouchOutside && !this.didScroll) {\n this.blur();\n this.mathField.blur();\n this.props.onBlur?.();\n }\n\n this.didTouchOutside = false;\n this.didScroll = false;\n\n if (this.dragListener) {\n this.dragListener.detach();\n }\n };\n\n // We want to allow the user to blur the input by clicking outside of it\n // when using ChromeOS third-party browsers that use mobile user agents,\n // but don't actually simulate touch events.\n this.blurOnClickOutside = (evt: any) => {\n if (this.state.focused) {\n if (!this._container.contains(evt.target)) {\n if (\n this.props.keypadElement &&\n this.props.keypadElement.getDOMNode()\n ) {\n const [x, y] = [evt.clientX, evt.clientY];\n\n // We only want to blur if the click is above the keypad,\n // to the left of the keypad, or to the right of the keypad.\n // The reasoning for not blurring for any clicks below the keypad is\n // that the keypad may be anchored above the 'Check answer' bottom bar,\n // in which case we don't want to dismiss the keypad on check.\n if (!isWithinKeypadBounds(x, y)) {\n this.blur();\n this.props.onBlur?.();\n }\n }\n }\n }\n };\n\n window.addEventListener(\"touchstart\", this.recordTouchStartOutside);\n window.addEventListener(\"touchend\", this.blurOnTouchEndOutside);\n window.addEventListener(\"touchcancel\", this.blurOnTouchEndOutside);\n window.addEventListener(\"click\", this.blurOnClickOutside);\n }\n\n componentDidUpdate(prevProps: Props, prevState: State) {\n if (this.mathField.getContent() !== this.props.value) {\n this.mathField.setContent(this.props.value);\n }\n\n if (prevState.focused !== this.state.focused) {\n this._updateInputPadding();\n }\n }\n\n componentWillUnmount() {\n this._isMounted = false;\n\n window.removeEventListener(\"touchstart\", this.recordTouchStartOutside);\n window.removeEventListener(\"touchend\", this.blurOnTouchEndOutside);\n window.removeEventListener(\"touchcancel\", this.blurOnTouchEndOutside);\n window.removeEventListener(\"click\", this.blurOnClickOutside);\n }\n\n _updateInputPadding: () => void = () => {\n this._container = ReactDOM.findDOMNode(this) as HTMLDivElement;\n this._root = this._container.querySelector(\".mq-root-block\");\n\n const padding = this.getInputInnerPadding();\n // NOTE(diedra): This overrides the default 2px padding from Mathquil.\n this._root.style.padding =\n `${padding.paddingTop}px ${padding.paddingRight}px` +\n ` ${padding.paddingBottom}px ${padding.paddingLeft}px`;\n this._root.style.fontSize = `${fontSizePt}pt`;\n };\n\n /** Returns the current bounds of the keypadElement */\n _getKeypadBounds(): DOMRect | null {\n const keypadNode = this.props.keypadElement?.getDOMNode();\n\n // If the keypad is mounted, return its bounds. Otherwise, return null.\n if (keypadNode instanceof Element) {\n return keypadNode.getBoundingClientRect();\n }\n\n return null;\n }\n\n _updateCursorHandle: (arg1?: boolean) => void = (animateIntoPosition) => {\n const containerBounds = this._container.getBoundingClientRect();\n const cursor: any = this._container.querySelector(\".mq-cursor\");\n const cursorBounds = cursor.getBoundingClientRect();\n\n const cursorWidth = cursorBounds.width;\n const gapBelowCursor = 2;\n\n const inputInnerPadding = this.getInputInnerPadding();\n\n // The cursor should never be further right or left than the edge of the\n // container's values.\n const furthestRightCursorBound =\n containerBounds.right -\n cursorWidth -\n inputInnerPadding.paddingRight;\n const furthestLeftCursorBound =\n containerBounds.left + cursorWidth + inputInnerPadding.paddingLeft;\n\n let cursorBoundsLeft = cursorBounds.left;\n if (cursorBounds.left > furthestRightCursorBound) {\n cursorBoundsLeft = furthestRightCursorBound;\n } else if (cursorBounds.left < furthestLeftCursorBound) {\n cursorBoundsLeft = furthestLeftCursorBound;\n }\n\n this.setState({\n handle: {\n visible: true,\n animateIntoPosition,\n // We subtract containerBounds' left/top to correct for the\n // position of the container within the page.\n x: cursorBoundsLeft + cursorWidth / 2 - containerBounds.left,\n y: cursorBounds.bottom + gapBelowCursor - containerBounds.top,\n },\n });\n };\n\n _hideCursorHandle: () => void = () => {\n this.setState({\n handle: {\n visible: false,\n x: 0,\n y: 0,\n },\n });\n };\n\n _handleScroll: () => void = () => {\n // If animateIntoPosition is false, the user is currently manually positioning\n // the cursor. This is important because the user can scroll the input field\n // with the curor handle, and we don't want to override that ability.\n // But we do want to hide the handle is the user is just scrolling the input field\n // normally, because the handle will not move with the scroll.\n if (this.state.handle.animateIntoPosition !== false) {\n this._hideCursorHandle();\n }\n };\n\n blur: () => void = () => {\n this.mathField.blur();\n\n this.setState({\n showInputFocusStyle: false,\n handle: {\n visible: false,\n },\n });\n };\n\n // [Jan 2025] Third: While testing, I've discovered that we likely don't\n // need to be passing setKeypadActive here at all. Removing the parameter\n // still results in the same behavior.\n focus: (setKeypadActive: KeypadContextType[\"setKeypadActive\"]) => void = (\n setKeypadActive,\n ) => {\n // Pass this component's handleKey method to the keypad so it can call\n // it whenever it needs to trigger a keypress action.\n this.props.keypadElement?.setKeyHandler((key) => {\n const cursor = this.mathField.pressKey(key);\n\n // Trigger an `onChange` if the value in the input changed, and hide\n // the cursor handle whenever the user types a key. If the value\n // changed as a result of a keypress, we need to be careful not to\n // call `setState` until after `onChange` has resolved.\n const hideCursor = () => {\n this.setState({\n handle: {\n visible: false,\n },\n });\n };\n const value = this.mathField.getContent();\n if (this.props.value !== value) {\n this.props.onChange(value, hideCursor);\n } else {\n hideCursor();\n }\n\n return cursor;\n });\n\n this.mathField.focus();\n\n this.props?.onFocus();\n setKeypadActive(true);\n\n this.setState({focused: true, showInputFocusStyle: true}, () => {\n // NOTE(charlie): We use `setTimeout` to allow for a layout pass to\n // occur. Otherwise, the keypad is measured incorrectly. Ideally,\n // we'd use requestAnimationFrame here, but it's unsupported on\n // Android Browser 4.3.\n setTimeout(() => {\n if (this._isMounted) {\n // TODO(benkomalo): the keypad is animating at this point,\n // so we can't call _cacheKeypadBounds(), even though\n // it'd be nice to do so. It should probably be the case\n // that the higher level controller tells us when the\n // keypad is settled (then scrollIntoView wouldn't have\n // to make assumptions about that either).\n const maybeKeypadNode =\n this.props.keypadElement?.getDOMNode();\n scrollIntoView(this._container, maybeKeypadNode);\n }\n });\n });\n };\n\n /**\n * Tries to determine which DOM node to place the cursor next to based on\n * where the user drags the cursor handle. If it finds a node it will\n * place the cursor next to it, update the handle to be under the cursor,\n * and return true. If it doesn't find a node, it returns false.\n *\n * It searches for nodes by doing it tests at the following points:\n *\n * (x - dx, y), (x, y), (x + dx, y)\n *\n * If it doesn't find any nodes from the rendered math it will update y\n * by adding dy.\n *\n * The algorithm ends its search when y goes outside the bounds of\n * containerBounds.\n *\n * @param {DOMRect} containerBounds - bounds of the container node\n * @param {number} x - the initial x coordinate in the viewport\n * @param {number} y - the initial y coordinate in the viewport\n * @param {number} dx - horizontal spacing between elementFromPoint calls\n * @param {number} dy - vertical spacing between elementFromPoint calls,\n * sign determines direction.\n * @returns {boolean} - true if a node was hit, false otherwise.\n */\n _findHitNode: (\n arg1: ClientRect,\n arg2: number,\n arg3: number,\n arg4: number,\n arg5: number,\n ) => boolean = (containerBounds, x, y, dx, dy) => {\n while (y >= containerBounds.top && y <= containerBounds.bottom) {\n y += dy;\n\n const points = [\n [x - dx, y],\n [x, y],\n [x + dx, y],\n ];\n\n const elements = points\n // @ts-expect-error - TS2556 - A spread argument must either have a tuple type or be passed to a rest parameter.\n .map((point) => document.elementFromPoint(...point))\n // We exclude the root container itself and any nodes marked\n // as non-leaf which are fractions, parens, and roots. The\n // children of those nodes are included in the list because\n // those are the items we care about placing the cursor next\n // to.\n //\n // MathQuill's mq-non-leaf is not applied to all non-leaf nodes\n // so the naming is a bit confusing. Although fractions are\n // included, neither mq-numerator nor mq-denominator nodes are\n // and neither are subscripts or superscripts.\n .filter(\n (element) =>\n element &&\n this._root.contains(element) &&\n ((!element.classList.contains(\"mq-root-block\") &&\n !element.classList.contains(\"mq-non-leaf\")) ||\n element.classList.contains(\"mq-empty\") ||\n element.classList.contains(\"mq-hasCursor\")),\n );\n\n let hitNode = null;\n\n // Contains only DOMNodes without child elements. These should\n // contain some amount of text though.\n const leafElements: ReadonlyArray<null | HTMLElement> = [];\n\n // Contains only DOMNodes with child elements.\n const nonLeafElements: ReadonlyArray<null | HTMLElement> = [];\n\n let max = 0;\n const counts: {\n [key: string]: number;\n } = {};\n const elementsById: Record<string, any> = {};\n\n for (const element of elements) {\n // @ts-expect-error - TS2531 - Object is possibly 'null'.\n const id = element.getAttribute(\"mathquill-command-id\");\n if (id != null) {\n // @ts-expect-error - TS2345 - Argument of type 'Element | null' is not assignable to parameter of type 'HTMLElement | null'.\n leafElements.push(element);\n\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions\n counts[id] = (counts[id] || 0) + 1;\n elementsById[id] = element;\n } else {\n // @ts-expect-error - TS2345 - Argument of type 'Element | null' is not assignable to parameter of type 'HTMLElement | null'.\n nonLeafElements.push(element);\n }\n }\n\n // When determining which DOMNode to place the cursor beside, we\n // prefer leaf nodes. Hitting a leaf node is a good sign that the\n // cursor is really close to some piece of math that has been\n // rendered because leaf nodes contain text. Non-leaf nodes may\n // contain a lot of whitespace so the cursor may be further away\n // from actual text within the expression.\n //\n // Since we're doing three hit tests per loop it's possible that\n // we hit multiple leaf nodes at the same time. In this case we\n // we prefer the DOMNode with the most hits.\n // TODO(kevinb) consider preferring nodes hit by [x, y].\n for (const [id, count] of entries(counts)) {\n if (count > max) {\n max = count;\n hitNode = elementsById[id];\n }\n }\n\n // It's possible that two non-leaf nodes are right beside each\n // other. We don't bother counting the number of hits for each,\n // b/c this seems like an unlikely situation. Also, ignoring the\n // hit count in the situation should not have serious effects on\n // the overall accuracy of the algorithm.\n if (hitNode == null && nonLeafElements.length > 0) {\n // @ts-expect-error - TS2322 - Type 'HTMLElement | null' is not assignable to type 'null'.\n hitNode = nonLeafElements[0];\n }\n\n if (hitNode !== null) {\n this.mathField.setCursorPosition(x, y, hitNode);\n return true;\n }\n }\n\n return false;\n };\n\n /**\n * Inserts the cursor at the DOM node closest to the given coordinates,\n * based on hit-tests conducted using #_findHitNode.\n *\n * @param {number} x - the x coordinate in the viewport\n * @param {number} y - the y coordinate in the viewport\n */\n _insertCursorAtClosestNode: (arg1: number, arg2: number) => void = (\n x,\n y,\n ) => {\n const cursor = this.mathField.getCursor();\n\n // Pre-emptively check if the input has any child nodes; if not, the\n // input is empty, so we throw the cursor at the start.\n if (!this._root.hasChildNodes()) {\n cursor.insAtLeftEnd(this.mathField.mathField.controller().root);\n return;\n }\n\n // NOTE(diedra): The adding and subtracting of 10 or 15 pixels here accounts\n // for the padding that surrounds the input values.\n if (y > this._containerBounds.bottom) {\n y = this._containerBounds.bottom - 10;\n } else if (y < this._containerBounds.top) {\n y = this._containerBounds.top + 10;\n }\n if (x > this._containerBounds.right) {\n x = this._containerBounds.right - 15;\n } else if (x < this._containerBounds.left) {\n x = this._containerBounds.left + 15;\n }\n\n let dy;\n\n // Vertical spacing between hit tests\n // dy is negative because we're moving upwards.\n dy = -8;\n\n // Horizontal spacing between hit tests\n // Note: This value depends on the font size. If the gap is too small\n // we end up placing the cursor at the end of the expression when we\n // shouldn't.\n const dx = 5;\n\n if (this._findHitNode(this._containerBounds, x, y, dx, dy)) {\n return;\n }\n\n // If we haven't found anything start from the top.\n y = this._containerBounds.top;\n\n // dy is positive b/c we're going downwards.\n dy = 8;\n\n if (this._findHitNode(this._containerBounds, x, y, dx, dy)) {\n return;\n }\n\n const firstChildBounds = this._root.firstChild.getBoundingClientRect();\n const lastChildBounds = this._root.lastChild.getBoundingClientRect();\n\n const left = firstChildBounds.left;\n const right = lastChildBounds.right;\n\n // We've exhausted all of the options. We're likely either to the right\n // or left of all of the math, so we place the cursor at the end to\n // which it's closest.\n if (Math.abs(x - right) < Math.abs(x - left)) {\n cursor.insAtRightEnd(this.mathField.mathField.controller().root);\n } else {\n cursor.insAtLeftEnd(this.mathField.mathField.controller().root);\n }\n // In that event, we need to update the cursor context ourselves.\n this.props.keypadElement?.setCursor({\n context: this.mathField.contextForCursor(),\n });\n };\n\n handleTouchStart = (\n e: React.TouchEvent<HTMLDivElement>,\n keypadActive: KeypadContextType[\"keypadActive\"],\n setKeypadActive: KeypadContextType[\"setKeypadActive\"],\n ): void => {\n e.stopPropagation();\n\n // Hide the cursor handle on touch start, if the handle itself isn't\n // handling the touch event.\n this._hideCursorHandle();\n\n // Cache the container bounds, so as to avoid re-computing. If we don't\n // have any content, then it's not necessary, since the cursor can't be\n // moved anyway.\n if (this.mathField.getContent() !== \"\") {\n this._containerBounds = this._container.getBoundingClientRect();\n\n // Make the cursor visible and set the handle-less cursor's\n // location.\n const touch = e.changedTouches[0];\n this._insertCursorAtClosestNode(touch.clientX, touch.clientY);\n }\n\n // If we're already focused, but the keypad isn't active, activate it.\n if (this.state.focused && !keypadActive) {\n setKeypadActive(true);\n }\n\n // Trigger a focus event, if we're not already focused.\n if (!this.state.focused) {\n this.focus(setKeypadActive);\n }\n\n // If the user clicked on the input using a mouse or tap gesture,\n // we want to set the focus to the inputRef so that the keyUp\n // event will be triggered when the user types on the keyboard.\n // This is necessary to support Chromebooks as they use mobile user\n // agents, do not simulate touch events, and have physical keyboards.\n this.inputRef?.focus();\n };\n\n // We want to allow the user to be able to focus the input via click\n // when using ChromeOS third-party browsers that use mobile user agents,\n // but don't actually simulate touch events.\n handleClick = (\n e: React.MouseEvent<HTMLDivElement>,\n keypadActive: KeypadContextType[\"keypadActive\"],\n setKeypadActive: KeypadContextType[\"setKeypadActive\"],\n ): void => {\n e.stopPropagation();\n\n // Hide the cursor handle on click\n this._hideCursorHandle();\n\n // Cache the container bounds, so as to avoid re-computing. If we don't\n // have any content, then it's not necessary, since the cursor can't be\n // moved anyway.\n if (this.mathField.getContent() !== \"\") {\n this._containerBounds = this._container.getBoundingClientRect();\n\n // Make the cursor visible and set the handle-less cursor's\n // location.\n this._insertCursorAtClosestNode(e.clientX, e.clientY);\n }\n\n // If we're already focused, but the keypad isn't active, activate it.\n if (this.state.focused && !keypadActive) {\n setKeypadActive(true);\n }\n\n // Trigger a focus event, if we're not already focused.\n if (!this.state.focused) {\n this.focus(setKeypadActive);\n }\n\n // If the user clicked on the input using a mouse or tap gesture,\n // we want to set the focus to the inputRef so that the keyUp\n // event will be triggered when the user types on the keyboard.\n // This is necessary to support Chromebooks as they use mobile user\n // agents, do not simulate touch events, and have physical keyboards.\n this.inputRef?.focus();\n };\n\n handleTouchMove: (arg1: React.TouchEvent<HTMLDivElement>) => void = (e) => {\n e.stopPropagation();\n\n // Update the handle-less cursor's location on move, if there's any\n // content in the box. Note that if the user touched outside the keypad\n // (e.g., with a different finger) during this touch interaction, we\n // may have blurred, in which case we should ignore the touch (since\n // the cursor is no longer visible and the input is no longer\n // highlighted).\n if (this.mathField.getContent() !== \"\" && this.state.focused) {\n const touch = e.changedTouches[0];\n this._insertCursorAtClosestNode(touch.clientX, touch.clientY);\n }\n };\n\n handleTouchEnd: (arg1: React.TouchEvent<HTMLDivElement>) => void = (e) => {\n e.stopPropagation();\n\n // And on touch-end, reveal the cursor, unless the input is empty. Note\n // that if the user touched outside the keypad (e.g., with a different\n // finger) during this touch interaction, we may have blurred, in which\n // case we should ignore the touch (since the cursor is no longer\n // visible and the input is no longer highlighted).\n if (this.mathField.getContent() !== \"\" && this.state.focused) {\n this._updateCursorHandle();\n }\n };\n\n /**\n * When a touch starts in the cursor handle, we track it so as to avoid\n * handling any touch events ourself.\n *\n * @param {TouchEvent} e - the raw touch event from the browser\n */\n onCursorHandleTouchStart: (\n arg1: React.TouchEvent<HTMLSpanElement>,\n ) => void = (e) => {\n // NOTE(charlie): The cursor handle is a child of this view, so whenever\n // it receives a touch event, that event would also typically be bubbled\n // up to our own handlers. However, we want the cursor to handle its own\n // touch events, and for this view to only handle touch events that\n // don't affect the cursor. As such, we `stopPropagation` on any touch\n // events that are being handled by the cursor, so as to avoid handling\n // them in our own touch handlers.\n e.stopPropagation();\n\n e.preventDefault();\n\n // Cache the container bounds, so as to avoid re-computing.\n this._containerBounds = this._container.getBoundingClientRect();\n };\n\n _constrainToBound: (\n arg1: number,\n arg2: number,\n arg3: number,\n arg4: number,\n ) => number = (value, min, max, friction) => {\n if (value < min) {\n return min + (value - min) * friction;\n } else if (value > max) {\n return max + (value - max) * friction;\n } else {\n return value;\n }\n };\n\n /**\n * When the user moves the cursor handle update the position of the cursor\n * and the handle.\n *\n * @param {TouchEvent} e - the raw touch event from the browser\n */\n onCursorHandleTouchMove: (arg1: React.TouchEvent<HTMLSpanElement>) => void =\n (e) => {\n e.stopPropagation();\n\n const x = e.changedTouches[0].clientX;\n const y = e.changedTouches[0].clientY;\n\n const relativeX = x - this._containerBounds.left;\n const relativeY =\n y -\n 2 * cursorHandleRadiusPx * cursorHandleDistanceMultiplier -\n this._containerBounds.top;\n\n // We subtract the containerBounds left/top to correct for the\n // MathInput's position on the page. On top of that, we subtract an\n // additional 2 x {height of the cursor} so that the bottom of the\n // cursor tracks the user's finger, to make it visible under their\n // touch.\n this.setState({\n handle: {\n animateIntoPosition: false,\n visible: true,\n // TODO(charlie): Use clientX and clientY to avoid the need for\n // scroll offsets. This likely also means that the cursor\n // detection doesn't work when scrolled, since we're not\n // offsetting those values.\n x: this._constrainToBound(\n relativeX,\n 0,\n this._containerBounds.width,\n constrainingFrictionFactor,\n ),\n y: this._constrainToBound(\n relativeY,\n 0,\n this._containerBounds.height,\n constrainingFrictionFactor,\n ),\n },\n });\n\n // Use a y-coordinate that's just above where the user is actually\n // touching because they're dragging the handle which is a little\n // below where the cursor actually is.\n const distanceAboveFingerToTrySelecting = 22;\n const adjustedY = y - distanceAboveFingerToTrySelecting;\n\n this._insertCursorAtClosestNode(x, adjustedY);\n };\n\n /**\n * When the user releases the cursor handle, animate it back into place.\n *\n * @param {TouchEvent} e - the raw touch event from the browser\n */\n onCursorHandleTouchEnd: (arg1: React.TouchEvent<HTMLSpanElement>) => void =\n (e) => {\n e.stopPropagation();\n\n this._updateCursorHandle(true);\n };\n\n /**\n * If the gesture is cancelled mid-drag, simply hide it.\n *\n * @param {TouchEvent} e - the raw touch event from the browser\n */\n onCursorHandleTouchCancel: (\n arg1: React.TouchEvent<HTMLSpanElement>,\n ) => void = (e) => {\n e.stopPropagation();\n\n this._updateCursorHandle(true);\n };\n\n domKeyToMathQuillKey: (arg1: string) => string | null | undefined = (\n key,\n ) => {\n const keyMap = {\n \"+\": \"PLUS\",\n \"-\": \"MINUS\",\n \"*\": \"TIMES\",\n \"/\": \"DIVIDE\",\n \".\": \"DECIMAL\",\n \"%\": \"PERCENT\",\n \"=\": \"EQUAL\",\n \">\": \"GT\",\n \"<\": \"LT\",\n \"^\": \"EXP\",\n } as const;\n\n // Numbers\n if ([\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"].includes(key)) {\n return `NUM_${key}`;\n }\n\n // Movement keys\n else if (key === \"Backspace\") {\n return \"BACKSPACE\";\n }\n\n // Operators\n else if (key in keyMap) {\n return keyMap[key];\n }\n\n // The key pressed doesn't map to any of the math input operators\n return null;\n };\n\n handleKeyUp: (arg1: React.KeyboardEvent<HTMLDivElement>) => void = (\n event,\n ) => {\n const mathQuillKey = this.domKeyToMathQuillKey(event.key);\n\n if (mathQuillKey) {\n this.mathField.pressKey(mathQuillKey);\n\n // TODO(diedra): If the new value being added is off-screen to the right\n // due to the max-width of the text box, scroll the box to show the newest\n // value\n const value = this.mathField.getContent();\n if (this.props.value !== value) {\n this.mathField.setContent(this.props.value);\n this.props.onChange(value, () => {});\n this._hideCursorHandle();\n }\n }\n };\n\n getBorderWidthPx: () => number = () => {\n // TODO(diedra): Move these to the common style package.\n const normalBorderWidthPx = 1;\n const focusedBorderWidthPx = 2;\n\n return this.state.focused ? focusedBorderWidthPx : normalBorderWidthPx;\n };\n\n // Calculate the appropriate padding based on the border width (which is\n // considered 'padding', since we're using 'border-box') and the fact\n // that MathQuill automatically applies 2px of padding to the inner\n // input.\n getInputInnerPadding: () => {\n paddingTop: number;\n paddingRight: number;\n paddingBottom: number;\n paddingLeft: number;\n } = () => {\n const paddingInset = totalDesiredPadding - this.getBorderWidthPx();\n\n // Now, translate that to the appropriate padding for each direction.\n // The complication here is that we want numerals to be centered within\n // the input. However, Symbola (MathQuill's font of choice) renders\n // numerals with approximately 3px of padding below and 1px of padding\n // above (to make room for ascenders and descenders). So we ignore those\n // padding values for the vertical directions.\n const symbolaPaddingBottom = 3;\n const symbolaPaddingTop = 1;\n // We also add a little padding for the cursor to ensure there's no\n // overflow when the input is empty and set to right aligned.\n const cursorPadding = 2;\n const padding = {\n paddingTop: paddingInset - symbolaPaddingTop,\n paddingRight: paddingInset + cursorPadding,\n paddingBottom: paddingInset - symbolaPaddingBottom,\n paddingLeft: paddingInset + cursorPadding,\n } as const;\n\n return padding;\n };\n\n render(): React.ReactNode {\n const {showInputFocusStyle, handle} = this.state;\n const {style} = this.props;\n\n const innerStyle = {\n ...inlineStyles.innerContainer,\n borderWidth: this.getBorderWidthPx(),\n ...(showInputFocusStyle\n ? {\n borderColor: color.blue,\n }\n : {}),\n ...style,\n } as const;\n\n // NOTE(diedra): This label explicitly refers to tapping because this field\n // is currently only seen if the user is using a mobile device.\n // We added the tapping instructions because there is currently a bug where\n // Android users need to use two fingers to tap the input field to make the\n // keyboard appear. It should only require one finger, which is how iOS works.\n // TODO(diedra): Fix the bug that is causing Android to require a two finger tap\n // to the open the keyboard, and then remove the second half of this label.\n const ariaLabel =\n this.context.strings.mathInputBox +\n \" \" +\n this.context.strings.fingerTap;\n\n return (\n <KeypadContext.Consumer>\n {({keypadActive, setKeypadActive}) => (\n <View\n style={styles.input}\n onTouchStart={(e: React.TouchEvent<HTMLDivElement>) => {\n this.handleTouchStart(\n e,\n keypadActive,\n setKeypadActive,\n );\n }}\n onTouchMove={this.handleTouchMove}\n onTouchEnd={this.handleTouchEnd}\n // TODO(LEMS-2656): remove TS suppression\n // @ts-expect-error: Type '(e: React.MouseEvent<HTMLDivElement>) => void' is not assignable to type '(arg1: SyntheticEvent<HTMLDivElement, Event>) => void'.\n onClick={(e: React.MouseEvent<HTMLDivElement>) => {\n this.handleClick(e, keypadActive, setKeypadActive);\n }}\n role={\"textbox\"}\n ariaLabel={ariaLabel}\n >\n {/* NOTE(charlie): This is used purely to namespace the styles in\n overrides.css. */}\n {/* eslint-disable-next-line jsx-a11y/no-static-element-interactions -- TODO(LEMS-2871): Address a11y error */}\n <div\n className=\"keypad-input\"\n // @ts-expect-error - TS2322 - Type 'string' is not assignable to type 'number | undefined'.\n // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex -- TODO(LEMS-2871): Address a11y error\n tabIndex={\"0\"}\n ref={(node) => {\n this.inputRef = node;\n }}\n onFocus={() => {\n this.focus(setKeypadActive);\n }}\n onBlur={this.blur}\n onKeyUp={this.handleKeyUp}\n >\n {/* NOTE(charlie): This element must be styled with inline\n styles rather than with Aphrodite classes, as MathQuill\n modifies the class names on the DOM node. */}\n <div\n ref={(node) => {\n this._mathContainer =\n ReactDOM.findDOMNode(node);\n }}\n style={innerStyle}\n />\n </div>\n {showInputFocusStyle && handle.visible && (\n <CursorHandle\n {...handle}\n onTouchStart={this.onCursorHandleTouchStart}\n onTouchMove={this.onCursorHandleTouchMove}\n onTouchEnd={this.onCursorHandleTouchEnd}\n onTouchCancel={this.onCursorHandleTouchCancel}\n />\n )}\n </View>\n )}\n </KeypadContext.Consumer>\n );\n }\n}\n\nMathInput.contextType = MathInputI18nContext;\n\nconst fontSizePt = 18;\nconst inputMaxWidth = 128;\n\n// The height of numerals in Symbola (rendered at 18pt) is about 20px (though\n// they render at 24px due to padding for ascenders and descenders). We want our\n// box to be laid out such that there's 12px of padding between a numeral and the\n// edge of the input, so we use this 20px number as our 'base height' and\n// account for the ascender and descender padding when computing the additional\n// padding in our `render` method.\nconst numeralHeightPx = 20;\nconst totalDesiredPadding = 12;\nconst minHeightPx = numeralHeightPx + totalDesiredPadding * 2;\nconst minWidthPx = 64;\n\nconst styles = StyleSheet.create({\n input: {\n position: \"relative\",\n display: \"inline-block\",\n verticalAlign: \"middle\",\n maxWidth: inputMaxWidth,\n },\n});\n\nconst inlineStyles = {\n // Styles for the inner, MathQuill-ified input element. It's important that\n // these are done with regular inline styles rather than Aphrodite classes\n // as MathQuill adds CSS class names to the element outside of the typical\n // React flow; assigning a class to the element can thus disrupt MathQuill\n // behavior. For example, if the client provided new styles to be applied\n // on focus and the styles here were applied with Aphrodite, then Aphrodite\n // would merge the provided styles with the base styles here, producing a\n // new CSS class name that we would apply to the element, clobbering any CSS\n // class names that MathQuill had applied itself.\n innerContainer: {\n backgroundColor: \"white\",\n minHeight: minHeightPx,\n minWidth: minWidthPx,\n maxWidth: inputMaxWidth,\n boxSizing: \"border-box\",\n position: \"relative\",\n borderStyle: \"solid\",\n borderColor: color.offBlack50,\n borderRadius: 4,\n color: color.offBlack,\n },\n} as const;\n\nexport default MathInput;\n","import * as React from \"react\";\n\nimport type {KeypadPageType} from \"../../types\";\n\ntype Props = {\n tintColor: string;\n type: KeypadPageType;\n};\n\nconst IconAsset = function ({tintColor, type}: Props): React.ReactElement {\n switch (type) {\n case \"Geometry\": {\n return (\n <svg\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M7.57584 7.09442c.35139-.16458.76626-.11103 1.06434.13737L26.6402 22.2318c.3234.2695.4434.7128.3001 1.1086C26.7969 23.7363 26.421 24 26 24H8c-.55228 0-1-.4477-1-1V8.00001c0-.38802.22446-.74101.57584-.90559zM9 10.1351V17h4c.5523 0 1 .4477 1 1v4h9.238L9 10.1351zM12 22v-3H9v3h3z\"\n fill={tintColor}\n />\n </svg>\n );\n }\n case \"Operators\": {\n return (\n <svg\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M29 6h1v1h-1V6zm-2 0c0-1.10457.8954-2 2-2h1c1.1046 0 2 .89543 2 2v1c0 1.10457-.8954 2-2 2h-1c-1.1046 0-2-.89543-2-2V6zm-15.8682.50386C11.3098 6.19229 11.6411 6 12 6h2c.5523 0 1 .44772 1 1s-.4477 1-1 1h-1.4197l-3.71206 6.4961c-.18297.3202-.52733.5137-.89599.5035-.36865-.0102-.70175-.2225-.86668-.5524l-2-4c-.24699-.49396-.04676-1.09464.44722-1.34163.49397-.24699 1.09465-.04676 1.34164.44722L8.0588 11.8815l3.073-5.37764zM7.70676 16.2925c.39072.3904.39103 1.0235.00069 1.4143-.42202.4224-.86362 1.0235-1.19588 1.659C6.17039 20.0184 6 20.601 6 21c0 .3789.17235.9897.51638 1.6649.33677.661.7685 1.2472 1.15148 1.5908.41106.3689.44528 1.0011.07643 1.4122-.36885.411-1.00109.4452-1.41215.0764-.61604-.5528-1.18431-1.3599-1.5978-2.1715C4.32813 22.7755 3.99999 21.8345 4 21c.00001-.8609.3301-1.7783.73917-2.5608.41798-.7995.97637-1.5684 1.55338-2.146.39033-.3907 1.0235-.391 1.41421-.0007zm3.58644 0c.3908-.3903 1.0239-.39 1.4143.0007.577.5776 1.1353 1.3465 1.5533 2.146C14.6699 19.2217 15 20.1391 15 21c0 .8345-.3281 1.7755-.7343 2.5728-.4135.8116-.9818 1.6187-1.5978 2.1715-.4111.3688-1.0433.3346-1.4122-.0764-.3688-.4111-.3346-1.0433.0764-1.4122.383-.3436.8148-.9298 1.1515-1.5908.344-.6752.5164-1.286.5164-1.6649 0-.399-.1704-.9816-.5116-1.6342-.3322-.6355-.7738-1.2366-1.1959-1.659-.3903-.3908-.39-1.0239.0007-1.4143zm16.6431 1.3564c.1939.5171-.0681 1.0935-.5852 1.2874L21.848 21l5.5031 2.0637c.5171.1939.7791.7703.5852 1.2874-.1939.5171-.7703.7791-1.2874.5852l-8-3C18.2586 21.79 18 21.4168 18 21c0-.4168.2586-.79.6489-.9363l8-3c.5171-.1939 1.0935.0681 1.2874.5852zM21 8v5h3V8h-3zm-1-2c-.5523 0-1 .44772-1 1v7c0 .5523.4477 1 1 1h5c.5523 0 1-.4477 1-1V7c0-.55228-.4477-1-1-1h-5z\"\n fill={tintColor}\n />\n </svg>\n );\n }\n case \"Numbers\": {\n return (\n <svg\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M10.4123 19.5794v1.421H4.71434v-1.421h2.016v-5.558c0-.1213.00233-.245.007-.371.00466-.126.01166-.2543.021-.385l-1.33 1.106c-.09334.07-.18434.1144-.273.133-.08867.0187-.17267.021-.252.007-.07934-.0186-.14934-.0466-.21-.084-.06067-.042-.10734-.084-.14-.126l-.609-.819 3.122-2.646h1.589v8.743h1.75696zm8.3801-.35c.21 0 .3734.0584.49.175.1214.1167.182.2707.182.462v1.134h-7.042v-.63c0-.1213.0257-.252.077-.392.0514-.1446.1377-.2753.259-.392l3.01-3.017c.2567-.2566.483-.5016.679-.735.196-.238.3594-.469.49-.693.1307-.2286.2287-.4596.294-.693.0654-.2333.098-.4783.098-.735 0-.4526-.1166-.7956-.35-1.029-.2333-.238-.5623-.357-.987-.357-.1866 0-.3593.028-.518.084-.154.0514-.294.1237-.42.217-.1213.0934-.2263.203-.315.329-.0886.126-.154.2637-.196.413-.084.2334-.1983.3897-.343.469-.14.0747-.3406.091-.602.049l-1.022-.182c.0747-.4946.2147-.9286.42-1.302.2054-.3733.462-.6836.77-.931.308-.2473.6604-.4316 1.057-.553.3967-.126.8237-.189 1.281-.189.4807 0 .917.0724 1.309.217.3967.14.735.3384 1.015.595.28.252.497.5577.651.917.154.3594.231.756.231 1.19 0 .3734-.0536.7187-.161 1.036-.1073.3174-.2543.6207-.441.91-.182.2847-.3943.5624-.637.833-.2426.2707-.4993.5437-.77.819l-2.156 2.205c.238-.07.4737-.1236.707-.161.2334-.042.4527-.063.658-.063h2.282zm2.6611-5.523c.0747-.4946.2147-.9286.42-1.302.2054-.3733.462-.6836.77-.931.308-.2473.658-.4316 1.05-.553.3967-.126.8237-.189 1.281-.189.4854 0 .9194.07 1.302.21.3874.1354.714.322.98.56.266.238.469.5157.609.833.1447.3174.217.658.217 1.022 0 .322-.035.6067-.105.854-.0653.2427-.1656.455-.301.637-.1306.182-.294.336-.49.462-.1913.126-.413.231-.665.315 1.1667.3827 1.75 1.1597 1.75 2.331 0 .518-.0956.9754-.287 1.372-.1913.392-.448.721-.77.987s-.6976.4667-1.127.602c-.4246.1307-.8703.196-1.337.196-.4946 0-.931-.056-1.309-.168-.378-.112-.7116-.28-1.001-.504-.2846-.224-.5296-.504-.735-.84-.2053-.3406-.385-.7373-.539-1.19l.854-.35c.224-.0933.4317-.119.623-.077.196.042.336.1447.42.308.0934.1774.1914.3407.294.49.1074.1494.2264.28.357.392.1307.1074.2777.1914.441.252.168.0607.3594.091.574.091.2707 0 .5064-.0443.707-.133.2007-.0886.3687-.203.504-.343.1354-.1446.2357-.3056.301-.483.07-.182.105-.3616.105-.539 0-.2333-.021-.4433-.063-.63-.042-.1913-.14-.3523-.294-.483-.1493-.1353-.3733-.238-.672-.308-.294-.0746-.6953-.112-1.204-.112v-1.358c.4247 0 .7724-.035 1.043-.105.2707-.07.483-.168.637-.294.154-.126.259-.2776.315-.455.0607-.1773.091-.371.091-.581 0-.4433-.1166-.7816-.35-1.015-.2286-.2333-.5553-.35-.98-.35-.1866 0-.3593.028-.518.084-.154.0514-.294.1237-.42.217-.1213.0934-.2263.203-.315.329-.0886.126-.154.2637-.196.413-.0886.2334-.203.3897-.343.469-.14.0747-.343.091-.609.049l-1.015-.182z\"\n fill={tintColor}\n />\n </svg>\n );\n }\n case \"Extras\": {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"32\"\n height=\"32\"\n fill=\"none\"\n viewBox=\"0 0 32 32\"\n >\n <g clipPath=\"url(#a)\">\n <path\n fill={tintColor}\n fillRule=\"evenodd\"\n d=\"M6.127 10.454c.224-.032.403-.05.53-.05.591 0 1.137.153 1.63.459.398.239.713.529.94.872l.188-.248.005-.007.006-.006c.619-.703 1.347-1.07 2.178-1.07.691 0 1.269.204 1.71.626.454.403.686.91.686 1.51 0 .533-.156.994-.476 1.37-.312.383-.738.574-1.254.574-.345 0-.643-.101-.878-.317a1.1 1.1 0 0 1-.353-.843c0-.405.11-.76.342-1.051.153-.193.354-.352.596-.479a1.416 1.416 0 0 0-.492-.07c-.195 0-.316.016-.38.035-.53.226-.938.694-1.208 1.445l-.001.003c-.02.05-.085.289-.202.74-.115.443-.275 1.077-.481 1.901-.414 1.641-.633 2.547-.662 2.74l-.002.01a3.423 3.423 0 0 0-.067.673c0 .337.097.581.272.756.176.177.413.272.733.272.6 0 1.15-.247 1.657-.768.518-.549.864-1.146 1.044-1.791l.001-.004a1.2 1.2 0 0 1 .088-.224.368.368 0 0 1 .161-.164.564.564 0 0 1 .198-.056 2.19 2.19 0 0 1 .276-.014c.159 0 .305.016.42.064.059.025.12.063.167.122.05.063.073.137.073.213 0 .023-.004.048-.005.057a12.52 12.52 0 0 1-.046.245l-.004.015c-.281 1.026-.86 1.917-1.73 2.67l-.007.007c-.776.611-1.605.925-2.484.925-1.08 0-1.93-.45-2.53-1.33-.453.605-1.015 1.024-1.685 1.248l-.01.003-.011.002a3.23 3.23 0 0 1-.664.053c-.974 0-1.703-.35-2.13-1.078A2.05 2.05 0 0 1 2 19.437c0-.52.158-.975.478-1.349.326-.38.749-.572 1.252-.572.372 0 .69.091.913.31.224.218.318.531.318.898 0 .327-.078.621-.241.874a1.706 1.706 0 0 1-.707.597l-.018.009c.158.063.331.095.52.095.467 0 .902-.285 1.295-.966l.002-.005c.071-.115.185-.417.341-.938.154-.51.341-1.209.563-2.096v-.002c.095-.364.198-.767.31-1.21.11-.444.188-.78.235-1.014l.002-.013c.058-.216.098-.36.119-.425.077-.42.113-.709.113-.877 0-.342-.092-.588-.254-.762-.159-.171-.384-.267-.704-.267-.652 0-1.217.251-1.704.768l-.002.002A4.215 4.215 0 0 0 3.79 14.28a1.084 1.084 0 0 1-.065.207.41.41 0 0 1-.14.176l-.01.007-.012.006a.35.35 0 0 1-.104.03 1.16 1.16 0 0 1-.095.01 5.04 5.04 0 0 1-.275.006H2.67l-.061-.061c-.109-.11-.204-.247-.204-.41v-.015l.003-.015c.07-.472.335-1.05.768-1.723l.001-.002c.771-1.165 1.754-1.857 2.949-2.042h.002Z\"\n clipRule=\"evenodd\"\n />\n <path\n fill={tintColor}\n d=\"M21.084 10.284c.932-.008 2.301-.013 4.107-.013 1.325 0 2.327.003 3.007.007a75.812 75.812 0 0 1 .99.013c.025 0 .047.002.065.003h.002c.01 0 .04.003.067.01l.01.002.011.004c.201.07.37.183.488.347a.966.966 0 0 1 .169.574c0 .3-.078.568-.248.79-.168.221-.411.377-.708.479h-.002a1.01 1.01 0 0 1-.221.034 8.213 8.213 0 0 1-.35.016c-.29.008-.696.012-1.219.012h-1.39l-.038.223v.001c-.198 1.185-.295 2.156-.295 2.916 0 1.446.251 2.746.75 3.905l.004.007c.059.153.105.284.137.393.03.103.053.205.053.29 0 .359-.16.68-.44.961-.278.296-.63.445-1.041.445-.255 0-.492-.03-.654-.139l-.009-.006-.008-.006c-.126-.101-.236-.274-.338-.477l-.006-.012c-.331-.768-.49-1.722-.49-2.852 0-.595.007-1.002.025-1.212v-.005c.118-1.157.377-2.551.776-4.18v-.002c.024-.096.045-.18.061-.25h-1.948c-.008.038-.02.086-.034.143l-.002.007a35.14 35.14 0 0 0-.146.537c-.05.232-.1.448-.15.648v.001a230.673 230.673 0 0 1-1.312 4.936 41.285 41.285 0 0 1-.411 1.384c-.104.322-.19.557-.256.681-.115.262-.28.473-.5.617-.225.146-.49.212-.783.212-.449 0-.807-.173-1.006-.549l-.006-.011-.005-.012a1.37 1.37 0 0 1-.067-.486v-.326l.346-.745c1.24-2.61 2.136-4.858 2.695-6.747l.002-.008.094-.281h-.463c-.662 0-1.105.025-1.346.07-.198.04-.47.173-.824.43l-.007.005-.007.005c-.366.228-.69.542-.97.947-.044.069-.085.13-.125.18a.651.651 0 0 1-.141.136l-.027.017-.03.01a.8.8 0 0 1-.19.03c-.07.005-.156.008-.258.008-.17 0-.335-.021-.465-.09a.437.437 0 0 1-.216-.546c.014-.042.034-.086.057-.132.047-.093.113-.208.198-.343l.003-.005c1.147-1.745 2.311-2.774 3.508-2.96a2.345 2.345 0 0 1 .158-.015 60.295 60.295 0 0 1 1.369-.026Z\"\n />\n </g>\n <defs>\n <clipPath id=\"a\">\n <path\n fill=\"#fff\"\n d=\"M0 0h28v11.457H0z\"\n transform=\"translate(2 10.271)\"\n />\n </clipPath>\n </defs>\n </svg>\n );\n }\n case \"Dismiss\": {\n return (\n <svg\n width=\"44\"\n height=\"44\"\n viewBox=\"0 0 44 44\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M28.7071 15.2929C28.3166 14.9024 27.6834 14.9024 27.2929 15.2929L22 20.5858L16.7071 15.2929C16.3166 14.9024 15.6834 14.9024 15.2929 15.2929C14.9024 15.6834 14.9024 16.3166 15.2929 16.7071L20.5858 22L15.2929 27.2929C14.9024 27.6834 14.9024 28.3166 15.2929 28.7071C15.6834 29.0976 16.3166 29.0976 16.7071 28.7071L22 23.4142L27.2929 28.7071C27.6834 29.0976 28.3166 29.0976 28.7071 28.7071C29.0976 28.3166 29.0976 27.6834 28.7071 27.2929L23.4142 22L28.7071 16.7071C29.0976 16.3166 29.0976 15.6834 28.7071 15.2929Z\"\n fill={tintColor}\n />\n </svg>\n );\n }\n\n case \"Fractions\":\n // The Fractions keypad is a special one that never displays anything\n // in the tabbar. Ideally, we'd separate the KeypadPageType from the\n // tab bar item types, but that's not easy given how the keypad manages\n // the selected page. For now, we'll just return a dummy SVG to satisfy\n // the types here.\n return (\n <svg\n width=\"44\"\n height=\"44\"\n viewBox=\"0 0 44 44\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n />\n );\n\n default: {\n // Ensure we handle all icon types\n const _: never = type;\n throw new Error(`Invalid icon type: ${type}`);\n }\n }\n};\n\nexport default IconAsset;\n","import Clickable from \"@khanacademy/wonder-blocks-clickable\";\nimport {View} from \"@khanacademy/wonder-blocks-core\";\nimport {color} from \"@khanacademy/wonder-blocks-tokens\";\nimport {StyleSheet} from \"aphrodite\";\nimport * as React from \"react\";\nimport {useEffect, useRef} from \"react\";\n\nimport IconAsset from \"./icons\";\n\nimport type {KeypadPageType} from \"../../types\";\n\nconst styles = StyleSheet.create({\n base: {\n display: \"flex\",\n width: 44,\n height: 38,\n boxSizing: \"border-box\",\n borderRadius: 3,\n border: `1px solid transparent`,\n marginRight: 1,\n marginLeft: 1,\n },\n hovered: {\n border: \"1px solid #1865F2\",\n },\n pressed: {\n background: \"#1B50B3\",\n },\n focused: {\n outline: \"none\",\n border: `2px solid ${color.blue}`,\n },\n innerBox: {\n boxSizing: \"border-box\",\n border: `1px solid transparent`,\n borderRadius: 2,\n display: \"flex\",\n flex: 1,\n justifyContent: \"center\",\n alignItems: \"center\",\n },\n innerBoxPressed: {\n border: `1px solid ${color.white}`,\n },\n activeIndicator: {\n position: \"absolute\",\n boxSizing: \"border-box\",\n bottom: 3,\n width: 36,\n height: 3,\n marginLeft: 3,\n },\n clickable: {\n \":focus\": {\n outline: `none`,\n },\n },\n});\n\nfunction imageTintColor(\n itemState: ItemState,\n hovered: boolean,\n focused: boolean,\n pressed: boolean,\n): string {\n if (itemState === \"disabled\") {\n return color.offBlack64;\n } else if (pressed) {\n return color.white;\n } else if (itemState === \"active\") {\n return color.blue;\n } else if (hovered) {\n return color.blue;\n }\n return color.offBlack64;\n}\n\ntype ItemState = \"active\" | \"inactive\" | \"disabled\";\ntype TabItemProps = {\n onClick: () => void;\n itemState: ItemState;\n itemType: KeypadPageType;\n focus?: boolean;\n role: \"tab\" | \"button\";\n};\n\nfunction TabbarItem(props: TabItemProps): React.ReactElement {\n const {onClick, itemType, itemState, focus, role} = props;\n const tabRef = useRef<{focus: () => void}>(null);\n\n useEffect(() => {\n let timeout;\n if (role === \"tab\" && focus) {\n /**\n * When tabs are within a WonderBlocks Popover component, the\n * manner in which the component is rendered and moved causes\n * focus to snap to the bottom of the page on first focus.\n *\n * This timeout moves around that by delaying the focus enough\n * to wait for the WonderBlock Popover to move to the correct\n * location and scroll the user to the correct location.\n * */\n timeout = setTimeout(() => {\n if (tabRef?.current) {\n // Move element into view when it is focused\n tabRef?.current.focus();\n }\n }, 0);\n }\n\n return () => clearTimeout(timeout);\n }, [role, focus, tabRef]);\n\n return (\n <Clickable\n onClick={onClick}\n disabled={itemState === \"disabled\"}\n aria-label={itemType}\n style={styles.clickable}\n aria-selected={itemState === \"active\"}\n tabIndex={role === \"button\" ? 0 : focus ? 0 : -1}\n role={role}\n ref={tabRef}\n >\n {({hovered, focused, pressed}) => {\n const tintColor = imageTintColor(\n itemState,\n hovered,\n focused,\n pressed,\n );\n\n return (\n <View\n style={[\n styles.base,\n itemState !== \"disabled\" &&\n hovered &&\n styles.hovered,\n focused && styles.focused,\n pressed && styles.pressed,\n ]}\n >\n <View\n style={[\n styles.innerBox,\n pressed && styles.innerBoxPressed,\n ]}\n >\n <IconAsset type={itemType} tintColor={tintColor} />\n </View>\n {itemState === \"active\" && (\n <View\n style={[\n styles.activeIndicator,\n {\n backgroundColor: tintColor,\n },\n ]}\n />\n )}\n </View>\n );\n }}\n </Clickable>\n );\n}\n\nexport default TabbarItem;\n","import {View} from \"@khanacademy/wonder-blocks-core\";\nimport {StyleSheet} from \"aphrodite\";\nimport * as React from \"react\";\nimport {useState} from \"react\";\n\nimport TabbarItem from \"./item\";\n\nimport type {KeypadPageType} from \"../../types\";\nimport type {StyleType} from \"@khanacademy/wonder-blocks-core\";\n\nconst styles = StyleSheet.create({\n tabbar: {\n display: \"flex\",\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n paddingTop: 2,\n paddingBottom: 2,\n },\n pages: {\n display: \"flex\",\n flexDirection: \"row\",\n },\n});\n\ntype Props = {\n items: ReadonlyArray<KeypadPageType>;\n selectedItem: KeypadPageType;\n onClickClose?: () => void;\n onSelectItem: (item: KeypadPageType) => void;\n style?: StyleType;\n};\n\nfunction Tabbar(props: Props): React.ReactElement {\n const {items, onClickClose, selectedItem, onSelectItem, style} = props;\n const selectedIndex = items.indexOf(selectedItem);\n\n const [focus, setFocus] = useState(\n selectedIndex === -1 ? 0 : selectedIndex,\n );\n /**\n * Custom function to handle arrow key navigation for the TabBar for each TabItem.\n * This implementation also circular in that if the user goes past the end of\n * the list they will go back to the beginning and vise versa.\n * This is the recommended pattern per WCAG implementation:\n * https://www.w3.org/WAI/ARIA/apg/patterns/tabs/examples/tabs-manual/\n * @param e - onKeyDown event data.\n */\n const onArrowKeyFocus = (e) => {\n if (e.keyCode === 39) {\n // Right arrow\n setFocus(focus === items.length - 1 ? 0 : focus + 1);\n } else if (e.keyCode === 37) {\n // Left arrow\n setFocus(focus === 0 ? items.length - 1 : focus - 1);\n }\n };\n\n return (\n <View style={[styles.tabbar, style]}>\n {items.length > 0 && (\n <View\n style={[styles.pages]}\n role=\"tablist\"\n onKeyDown={onArrowKeyFocus}\n >\n {items.map((item, index) => (\n <TabbarItem\n role=\"tab\"\n key={`tabbar-item-${item}`}\n itemState={\n item === selectedItem ? \"active\" : \"inactive\"\n }\n itemType={item}\n focus={focus === index}\n onClick={() => {\n onSelectItem(item);\n }}\n />\n ))}\n </View>\n )}\n\n <View>\n {onClickClose && (\n <TabbarItem\n role=\"button\"\n itemState=\"inactive\"\n itemType=\"Dismiss\"\n onClick={onClickClose}\n />\n )}\n </View>\n </View>\n );\n}\n\nexport default Tabbar;\n","/**\n * This file contains configuration settings for the buttons in the keypad.\n */\n\nimport type {KeyType} from \"../enums\";\nimport type {MathInputStrings} from \"../strings\";\nimport type {KeyConfig} from \"../types\";\nimport type {KeypadKey} from \"@khanacademy/perseus-core\";\n\ntype KeyConfigMapper = (args: {\n key: KeypadKey;\n keyType?: KeyType;\n ariaLabel?: string;\n data?: string;\n}) => KeyConfig;\n\nconst getDefaultOperatorFields: KeyConfigMapper = ({\n key,\n keyType = \"OPERATOR\",\n ariaLabel = key,\n data = key,\n}) => ({\n id: key,\n type: keyType,\n ariaLabel,\n icon: {\n data,\n },\n});\n\nconst getDefaultValueFields: KeyConfigMapper = ({\n key,\n keyType = \"VALUE\",\n ariaLabel = key,\n data = key,\n}) => ({\n id: key,\n type: keyType,\n ariaLabel,\n icon: {\n data,\n },\n});\n\nconst getDefaultNumberFields: KeyConfigMapper = ({\n key,\n data = key.replace(\"NUM_\", \"\"),\n keyType = \"VALUE\",\n ariaLabel = data,\n}) => ({\n id: key,\n type: keyType,\n ariaLabel,\n icon: {\n data,\n },\n});\n\nconst KeyConfigs = (\n strings: MathInputStrings,\n): {\n [key in KeypadKey]: KeyConfig;\n} => ({\n // Basic math\n PLUS: {\n ...getDefaultOperatorFields({\n key: \"PLUS\",\n ariaLabel: strings.plus,\n }),\n },\n MINUS: {\n ...getDefaultOperatorFields({\n key: \"MINUS\",\n ariaLabel: strings.minus,\n }),\n },\n NEGATIVE: {\n ...getDefaultOperatorFields({\n key: \"NEGATIVE\",\n ariaLabel: strings.negative,\n }),\n },\n TIMES: {\n ...getDefaultOperatorFields({\n key: \"TIMES\",\n ariaLabel: strings.times,\n }),\n },\n DIVIDE: {\n ...getDefaultOperatorFields({\n key: \"DIVIDE\",\n ariaLabel: strings.divide,\n }),\n },\n DECIMAL: {\n ...getDefaultOperatorFields({\n key: \"DECIMAL\",\n keyType: \"VALUE\",\n ariaLabel: strings.decimal,\n }),\n },\n PERIOD: {\n ...getDefaultOperatorFields({\n key: \"PERIOD\",\n keyType: \"VALUE\",\n ariaLabel: \".\",\n }),\n },\n PERCENT: {\n ...getDefaultOperatorFields({\n key: \"PERCENT\",\n ariaLabel: strings.percent,\n }),\n },\n CDOT: {\n ...getDefaultOperatorFields({\n key: \"CDOT\",\n ariaLabel: strings.cdot,\n }),\n },\n EQUAL: {\n ...getDefaultOperatorFields({\n key: \"EQUAL\",\n ariaLabel: strings.equalsSign,\n }),\n },\n NEQ: {\n ...getDefaultOperatorFields({\n key: \"NEQ\",\n ariaLabel: strings.notEqualsSign,\n }),\n },\n GT: {\n ...getDefaultOperatorFields({\n key: \"GT\",\n ariaLabel: strings.greaterThanSign,\n }),\n },\n LT: {\n ...getDefaultOperatorFields({\n key: \"LT\",\n ariaLabel: strings.lessThanSign,\n }),\n },\n GEQ: {\n ...getDefaultOperatorFields({\n key: \"GEQ\",\n ariaLabel: strings.greaterThanOrEqualToSign,\n }),\n },\n LEQ: {\n ...getDefaultOperatorFields({\n key: \"LEQ\",\n ariaLabel: strings.lessThanOrEqualSign,\n }),\n },\n // mobile native\n FRAC_INCLUSIVE: {\n ...getDefaultOperatorFields({\n key: \"FRAC_INCLUSIVE\",\n ariaLabel: strings.fractionExpressionInNumerator,\n }),\n },\n // mobile native\n FRAC_EXCLUSIVE: {\n ...getDefaultOperatorFields({\n key: \"FRAC_EXCLUSIVE\",\n ariaLabel: strings.fractionExcludingExpression,\n }),\n },\n // mobile web\n FRAC: {\n ...getDefaultOperatorFields({\n key: \"FRAC\",\n ariaLabel: strings.fractionExcludingExpression,\n }),\n },\n EXP: {\n ...getDefaultOperatorFields({\n key: \"EXP\",\n ariaLabel: strings.customExponent,\n }),\n },\n EXP_2: {\n ...getDefaultOperatorFields({\n key: \"EXP_2\",\n ariaLabel: strings.square,\n }),\n },\n EXP_3: {\n ...getDefaultOperatorFields({\n key: \"EXP_3\",\n ariaLabel: strings.cube,\n }),\n },\n SQRT: {\n ...getDefaultOperatorFields({\n key: \"SQRT\",\n ariaLabel: strings.squareRoot,\n }),\n },\n CUBE_ROOT: {\n ...getDefaultOperatorFields({\n key: \"CUBE_ROOT\",\n ariaLabel: strings.cubeRoot,\n }),\n },\n RADICAL: {\n ...getDefaultOperatorFields({\n key: \"RADICAL\",\n ariaLabel: strings.radicalWithCustomRoot,\n }),\n },\n LEFT_PAREN: {\n ...getDefaultOperatorFields({\n key: \"LEFT_PAREN\",\n ariaLabel: strings.leftParenthesis,\n }),\n },\n RIGHT_PAREN: {\n ...getDefaultOperatorFields({\n key: \"RIGHT_PAREN\",\n ariaLabel: strings.rightParenthesis,\n }),\n },\n LN: {\n ...getDefaultOperatorFields({\n key: \"LN\",\n ariaLabel: strings.naturalLog,\n }),\n },\n LOG: {\n ...getDefaultOperatorFields({\n key: \"LOG\",\n ariaLabel: strings.logBase10,\n }),\n },\n LOG_N: {\n ...getDefaultOperatorFields({\n key: \"LOG_N\",\n ariaLabel: strings.logCustomBase,\n }),\n },\n SIN: {\n ...getDefaultOperatorFields({\n key: \"SIN\",\n ariaLabel: strings.sine,\n }),\n },\n COS: {\n ...getDefaultOperatorFields({\n key: \"COS\",\n ariaLabel: strings.cosine,\n }),\n },\n TAN: {\n ...getDefaultOperatorFields({\n key: \"TAN\",\n ariaLabel: strings.tangent,\n }),\n },\n PI: {\n ...getDefaultValueFields({\n key: \"PI\",\n data: \"\\\\pi\",\n ariaLabel: strings.pi,\n }),\n },\n THETA: {\n ...getDefaultValueFields({\n key: \"THETA\",\n data: \"\\\\theta\",\n ariaLabel: strings.theta,\n }),\n },\n // Input navigation\n UP: {\n ...getDefaultOperatorFields({\n key: \"UP\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.upArrow,\n }),\n },\n RIGHT: {\n ...getDefaultOperatorFields({\n key: \"RIGHT\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.rightArrow,\n }),\n },\n DOWN: {\n ...getDefaultOperatorFields({\n key: \"DOWN\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.downArrow,\n }),\n },\n LEFT: {\n ...getDefaultOperatorFields({\n key: \"LEFT\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.leftArrow,\n }),\n },\n JUMP_OUT_PARENTHESES: {\n ...getDefaultOperatorFields({\n key: \"JUMP_OUT_PARENTHESES\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.navOutOfParentheses,\n }),\n },\n JUMP_OUT_EXPONENT: {\n ...getDefaultOperatorFields({\n key: \"JUMP_OUT_EXPONENT\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.navOutOfExponent,\n }),\n },\n JUMP_OUT_BASE: {\n ...getDefaultOperatorFields({\n key: \"JUMP_OUT_BASE\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.navOutOfBase,\n }),\n },\n JUMP_INTO_NUMERATOR: {\n ...getDefaultOperatorFields({\n key: \"JUMP_INTO_NUMERATOR\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.navIntoNumerator,\n }),\n },\n JUMP_OUT_NUMERATOR: {\n ...getDefaultOperatorFields({\n key: \"JUMP_OUT_NUMERATOR\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.navOutOfNumeratorIntoDenominator,\n }),\n },\n JUMP_OUT_DENOMINATOR: {\n ...getDefaultOperatorFields({\n key: \"JUMP_OUT_DENOMINATOR\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.navOutOfDenominator,\n }),\n },\n BACKSPACE: {\n ...getDefaultOperatorFields({\n key: \"BACKSPACE\",\n keyType: \"INPUT_NAVIGATION\",\n ariaLabel: strings.delete,\n }),\n },\n\n // Keypad navigation\n DISMISS: {\n ...getDefaultOperatorFields({\n key: \"DISMISS\",\n keyType: \"KEYPAD_NAVIGATION\",\n ariaLabel: strings.dismiss,\n }),\n },\n\n // NUMBERS\n NUM_0: {\n ...getDefaultNumberFields({\n key: \"NUM_0\",\n }),\n },\n NUM_1: {\n ...getDefaultNumberFields({\n key: \"NUM_1\",\n }),\n },\n NUM_2: {\n ...getDefaultNumberFields({\n key: \"NUM_2\",\n }),\n },\n NUM_3: {\n ...getDefaultNumberFields({\n key: \"NUM_3\",\n }),\n },\n NUM_4: {\n ...getDefaultNumberFields({\n key: \"NUM_4\",\n }),\n },\n NUM_5: {\n ...getDefaultNumberFields({\n key: \"NUM_5\",\n }),\n },\n NUM_6: {\n ...getDefaultNumberFields({\n key: \"NUM_6\",\n }),\n },\n NUM_7: {\n ...getDefaultNumberFields({\n key: \"NUM_7\",\n }),\n },\n NUM_8: {\n ...getDefaultNumberFields({\n key: \"NUM_8\",\n }),\n },\n NUM_9: {\n ...getDefaultNumberFields({\n key: \"NUM_9\",\n }),\n },\n\n // LETTERS\n A: {\n ...getDefaultValueFields({\n key: \"A\",\n }),\n },\n B: {\n ...getDefaultValueFields({\n key: \"B\",\n }),\n },\n C: {\n ...getDefaultValueFields({\n key: \"C\",\n }),\n },\n D: {\n ...getDefaultValueFields({\n key: \"D\",\n }),\n },\n E: {\n ...getDefaultValueFields({\n key: \"E\",\n }),\n },\n F: {\n ...getDefaultValueFields({\n key: \"F\",\n }),\n },\n G: {\n ...getDefaultValueFields({\n key: \"G\",\n }),\n },\n H: {\n ...getDefaultValueFields({\n key: \"H\",\n }),\n },\n I: {\n ...getDefaultValueFields({\n key: \"I\",\n }),\n },\n J: {\n ...getDefaultValueFields({\n key: \"J\",\n }),\n },\n K: {\n ...getDefaultValueFields({\n key: \"K\",\n }),\n },\n L: {\n ...getDefaultValueFields({\n key: \"L\",\n }),\n },\n M: {\n ...getDefaultValueFields({\n key: \"M\",\n }),\n },\n N: {\n ...getDefaultValueFields({\n key: \"N\",\n }),\n },\n O: {\n ...getDefaultValueFields({\n key: \"O\",\n }),\n },\n P: {\n ...getDefaultValueFields({\n key: \"P\",\n }),\n },\n Q: {\n ...getDefaultValueFields({\n key: \"Q\",\n }),\n },\n R: {\n ...getDefaultValueFields({\n key: \"R\",\n }),\n },\n S: {\n ...getDefaultValueFields({\n key: \"S\",\n }),\n },\n T: {\n ...getDefaultValueFields({\n key: \"T\",\n }),\n },\n U: {\n ...getDefaultValueFields({\n key: \"U\",\n }),\n },\n V: {\n ...getDefaultValueFields({\n key: \"V\",\n }),\n },\n W: {\n ...getDefaultValueFields({\n key: \"W\",\n }),\n },\n X: {\n ...getDefaultValueFields({\n key: \"X\",\n }),\n },\n Y: {\n ...getDefaultValueFields({\n key: \"Y\",\n }),\n },\n Z: {\n ...getDefaultValueFields({\n key: \"Z\",\n }),\n },\n a: {\n ...getDefaultValueFields({\n key: \"a\",\n }),\n },\n b: {\n ...getDefaultValueFields({\n key: \"b\",\n }),\n },\n c: {\n ...getDefaultValueFields({\n key: \"c\",\n }),\n },\n d: {\n ...getDefaultValueFields({\n key: \"d\",\n }),\n },\n e: {\n ...getDefaultValueFields({\n key: \"e\",\n }),\n },\n f: {\n ...getDefaultValueFields({\n key: \"f\",\n }),\n },\n g: {\n ...getDefaultValueFields({\n key: \"g\",\n }),\n },\n h: {\n ...getDefaultValueFields({\n key: \"h\",\n }),\n },\n i: {\n ...getDefaultValueFields({\n key: \"i\",\n }),\n },\n j: {\n ...getDefaultValueFields({\n key: \"j\",\n }),\n },\n k: {\n ...getDefaultValueFields({\n key: \"k\",\n }),\n },\n l: {\n ...getDefaultValueFields({\n key: \"l\",\n }),\n },\n m: {\n ...getDefaultValueFields({\n key: \"m\",\n }),\n },\n n: {\n ...getDefaultValueFields({\n key: \"n\",\n }),\n },\n o: {\n ...getDefaultValueFields({\n key: \"o\",\n }),\n },\n p: {\n ...getDefaultValueFields({\n key: \"p\",\n }),\n },\n q: {\n ...getDefaultValueFields({\n key: \"q\",\n }),\n },\n r: {\n ...getDefaultValueFields({\n key: \"r\",\n }),\n },\n s: {\n ...getDefaultValueFields({\n key: \"s\",\n }),\n },\n t: {\n ...getDefaultValueFields({\n key: \"t\",\n }),\n },\n u: {\n ...getDefaultValueFields({\n key: \"u\",\n }),\n },\n v: {\n ...getDefaultValueFields({\n key: \"v\",\n }),\n },\n w: {\n ...getDefaultValueFields({\n key: \"w\",\n }),\n },\n x: {\n ...getDefaultValueFields({\n key: \"x\",\n }),\n },\n y: {\n ...getDefaultValueFields({\n key: \"y\",\n }),\n },\n z: {\n ...getDefaultValueFields({\n key: \"z\",\n }),\n },\n});\n\nexport default KeyConfigs;\n","/* eslint-disable max-lines */\n/*\nThe SVGs in this file should be treated as binary assets. If, in the future,\nwe need to make changes to update the color or size or shape of the glyph\nthen we should take the new asset, copy it, and paste it under the right\nheader.\n\nThis makes it as easy as possible for a designer to make an update to an\nasset.\n\nIn the future it would be great if these were included from files so that\nno copying and pasting is necessary.\n*/\nimport {getDecimalSeparator} from \"@khanacademy/perseus-core\";\nimport * as React from \"react\";\n\nimport {useMathInputI18n} from \"../i18n-context\";\n\nimport type {KeypadKey} from \"@khanacademy/perseus-core\";\n\ntype Props = {id: KeypadKey};\n\nexport default function ButtonAsset({id}: Props): React.ReactNode {\n const {locale, strings} = useMathInputI18n();\n switch (id) {\n case \"NUM_0\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M26.299 20.3598c0 1.512-.164 2.82-.492 3.924-.32 1.104-.764 2.02-1.332 2.748-.568.728-1.236 1.268-2.004 1.62-.768.352-1.596.528-2.484.528-.888 0-1.716-.176-2.484-.528-.768-.352-1.436-.892-2.004-1.62-.56-.728-1-1.644-1.32-2.748-.32-1.104-.48-2.412-.48-3.924s.16-2.82.48-3.924c.32-1.112.76-2.028 1.32-2.748.568-.728 1.236-1.268 2.004-1.62.768-.36 1.596-.54 2.484-.54.888 0 1.716.18 2.484.54.768.352 1.436.892 2.004 1.62.568.72 1.012 1.636 1.332 2.748.328 1.104.492 2.412.492 3.924zm-2.664 0c0-1.28-.104-2.344-.312-3.192-.2-.856-.468-1.54-.804-2.052s-.724-.876-1.164-1.092c-.44-.216-.896-.324-1.368-.324-.48 0-.94.108-1.38.324-.432.216-.816.58-1.152 1.092-.336.512-.604 1.196-.804 2.052-.2.848-.3 1.912-.3 3.192 0 1.28.1 2.348.3 3.204.2.848.468 1.528.804 2.04s.72.876 1.152 1.092c.44.216.9.324 1.38.324.472 0 .928-.108 1.368-.324.44-.216.828-.58 1.164-1.092.336-.512.604-1.192.804-2.04.208-.856.312-1.924.312-3.204z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"NUM_1\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M25.363 27.0441v1.956h-9.42v-1.956h3.6v-10.824c0-.384.012-.776.036-1.176l-2.772 2.34c-.12.096-.244.16-.372.192-.12.024-.236.024-.348 0-.104-.024-.2-.06-.288-.108-.08-.056-.144-.116-.192-.18l-.804-1.128 5.208-4.476h2.1v15.36h3.252z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"NUM_2\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M24.8471 26.5638c.28 0 .5.084.66.252.16.16.24.368.24.624v1.56h-11.688v-.876c0-.176.036-.36.108-.552.072-.192.188-.368.348-.528l5.376-5.388c.456-.456.86-.892 1.212-1.308.36-.416.664-.832.912-1.248.256-.416.448-.836.576-1.26.136-.432.204-.884.204-1.356 0-.456-.072-.856-.216-1.2-.136-.352-.328-.64-.576-.864-.24-.232-.532-.404-.876-.516-.336-.12-.708-.18-1.116-.18-.392 0-.756.056-1.092.168-.328.112-.624.268-.888.468-.256.2-.472.44-.648.72-.168.272-.292.572-.372.9-.12.328-.276.548-.468.66-.184.112-.456.136-.816.072l-1.356-.24c.12-.816.344-1.532.672-2.148.336-.616.756-1.128 1.26-1.536.504-.416 1.08-.728 1.728-.936.656-.216 1.364-.324 2.124-.324.768 0 1.472.116 2.112.348.648.224 1.204.548 1.668.972.472.416.84.924 1.104 1.524.264.6.396 1.276.396 2.028 0 .64-.096 1.232-.288 1.776-.184.544-.436 1.064-.756 1.56s-.696.98-1.128 1.452c-.424.464-.872.936-1.344 1.416l-4.176 4.272c.344-.096.688-.172 1.032-.228.352-.056.684-.084.996-.084h5.076z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"NUM_3\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M14.4552 16.4718c.12-.816.344-1.532.672-2.148.336-.616.756-1.128 1.26-1.536.504-.416 1.08-.728 1.728-.936.656-.216 1.364-.324 2.124-.324.768 0 1.464.112 2.088.336.632.216 1.172.52 1.62.912.456.392.804.86 1.044 1.404.248.544.372 1.14.372 1.788 0 .552-.068 1.04-.204 1.464-.128.416-.316.784-.564 1.104-.24.32-.536.588-.888.804-.352.216-.748.396-1.188.54 1.072.312 1.876.812 2.412 1.5.536.68.804 1.536.804 2.568 0 .832-.156 1.572-.468 2.22-.312.648-.736 1.196-1.272 1.644-.528.448-1.148.792-1.86 1.032-.704.232-1.452.348-2.244.348-.888 0-1.656-.104-2.304-.312-.648-.216-1.208-.52-1.68-.912-.464-.4-.852-.88-1.164-1.44-.312-.56-.576-1.188-.792-1.884l1.116-.468c.296-.128.576-.164.84-.108.272.056.468.204.588.444.128.256.272.532.432.828.16.288.364.556.612.804.256.24.568.444.936.612.376.16.836.24 1.38.24.552 0 1.032-.088 1.44-.264.416-.184.76-.416 1.032-.696.28-.288.488-.608.624-.96s.204-.7.204-1.044c0-.432-.052-.828-.156-1.188-.104-.368-.308-.68-.612-.936-.296-.256-.72-.456-1.272-.6-.544-.152-1.26-.228-2.148-.228v-1.86c.728-.008 1.34-.08 1.836-.216.504-.144.904-.336 1.2-.576.304-.248.52-.544.648-.888.136-.344.204-.72.204-1.128 0-.44-.068-.828-.204-1.164-.136-.336-.328-.616-.576-.84-.24-.232-.528-.404-.864-.516-.336-.112-.708-.168-1.116-.168-.392 0-.756.056-1.092.168-.328.112-.624.268-.888.468-.256.2-.472.44-.648.72-.176.272-.304.572-.384.9-.112.328-.264.548-.456.66-.184.112-.456.136-.816.072l-1.356-.24z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"NUM_4\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M21.691 22.616v-6.312c0-.504.036-1.056.108-1.656l-5.808 7.968h5.7zm4.632 0v1.488c0 .144-.048.268-.144.372-.088.104-.224.156-.408.156h-1.836V29h-2.244v-4.368h-7.476c-.184 0-.344-.052-.48-.156-.128-.112-.212-.248-.252-.408l-.264-1.32 8.292-11.04h2.424v10.908h2.388z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"NUM_5\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M17.6591 18.1042c.416-.088.812-.152 1.188-.192.384-.04.752-.06 1.104-.06.904 0 1.7.136 2.388.408.696.264 1.276.632 1.74 1.104.472.472.824 1.028 1.056 1.668.24.632.36 1.32.36 2.064 0 .92-.16 1.756-.48 2.508-.32.752-.764 1.396-1.332 1.932-.568.528-1.24.936-2.016 1.224-.768.288-1.6.432-2.496.432-.528 0-1.032-.052-1.512-.156-.472-.104-.916-.244-1.332-.42-.416-.184-.8-.392-1.152-.624-.352-.24-.668-.488-.948-.744l.792-1.104c.168-.24.392-.36.672-.36.176 0 .368.064.576.192.208.128.448.268.72.42.28.144.608.28.984.408.376.128.824.192 1.344.192.568 0 1.076-.092 1.524-.276.448-.184.824-.44 1.128-.768.312-.336.548-.736.708-1.2.16-.464.24-.972.24-1.524 0-.504-.076-.956-.228-1.356-.144-.4-.364-.74-.66-1.02-.288-.28-.652-.492-1.092-.636-.44-.152-.948-.228-1.524-.228-.424 0-.86.036-1.308.108-.44.072-.888.184-1.344.336l-1.608-.456 1.416-8.256h8.364v1.116c0 .368-.116.668-.348.9-.232.232-.62.348-1.164.348h-5.064l-.696 4.02z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"NUM_6\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M19.975 27.0562c.52 0 .996-.084 1.428-.252.432-.176.8-.416 1.104-.72.312-.304.552-.664.72-1.08.168-.416.252-.868.252-1.356 0-.528-.084-1-.252-1.416-.16-.424-.392-.78-.696-1.068-.296-.288-.656-.508-1.08-.66-.416-.16-.876-.24-1.38-.24-.52 0-.992.088-1.416.264-.416.176-.772.416-1.068.72-.296.304-.524.66-.684 1.068-.16.408-.24.84-.24 1.296 0 .512.072.98.216 1.404.144.424.356.788.636 1.092.28.296.624.528 1.032.696.416.168.892.252 1.428.252zm-.948-8.976c-.128.16-.252.312-.372.456l-.336.432c.368-.208.772-.372 1.212-.492.44-.12.912-.18 1.416-.18.672 0 1.316.112 1.932.336.616.216 1.156.544 1.62.984.472.432.848.972 1.128 1.62.28.64.42 1.38.42 2.22 0 .8-.148 1.548-.444 2.244-.288.696-.696 1.304-1.224 1.824-.528.512-1.164.92-1.908 1.224-.736.296-1.552.444-2.448.444-.896 0-1.704-.144-2.424-.432-.72-.288-1.336-.692-1.848-1.212-.504-.528-.892-1.16-1.164-1.896-.272-.736-.408-1.556-.408-2.46 0-.784.168-1.604.504-2.46.336-.856.856-1.756 1.56-2.7l4.248-5.7c.128-.168.312-.312.552-.432.248-.12.524-.18.828-.18h2.28l-5.124 6.36z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"NUM_7\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M26.083 11.7202v1.14c0 .336-.036.608-.108.816-.072.208-.144.384-.216.528l-6.828 13.896c-.12.256-.292.472-.516.648-.216.168-.504.252-.864.252h-1.86l6.96-13.668c.128-.248.256-.472.384-.672.128-.2.272-.392.432-.576h-8.628c-.16 0-.3-.06-.42-.18-.12-.128-.18-.272-.18-.432v-1.752h11.844z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"NUM_8\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M19.999 27.1518c.52 0 .984-.072 1.392-.216.408-.152.748-.36 1.02-.624.28-.272.492-.592.636-.96.144-.368.216-.768.216-1.2 0-.528-.084-.984-.252-1.368-.16-.384-.388-.7-.684-.948-.288-.256-.632-.444-1.032-.564-.4-.128-.832-.192-1.296-.192-.464 0-.896.064-1.296.192-.4.12-.748.308-1.044.564-.288.248-.516.564-.684.948-.16.384-.24.84-.24 1.368 0 .432.072.832.216 1.2.144.368.352.688.624.96.28.264.624.472 1.032.624.408.144.872.216 1.392.216zm0-13.644c-.472 0-.888.072-1.248.216-.352.144-.644.336-.876.576-.232.24-.408.524-.528.852-.112.32-.168.66-.168 1.02s.048.712.144 1.056c.104.344.264.652.48.924.224.264.516.476.876.636.36.16.8.24 1.32.24s.96-.08 1.32-.24c.36-.16.648-.372.864-.636.224-.272.384-.58.48-.924.104-.344.156-.696.156-1.056 0-.36-.06-.7-.18-1.02-.112-.328-.288-.612-.528-.852-.232-.24-.524-.432-.876-.576-.352-.144-.764-.216-1.236-.216zm2.724 6.48c1.064.328 1.86.848 2.388 1.56.536.712.804 1.596.804 2.652 0 .76-.144 1.448-.432 2.064-.288.616-.692 1.14-1.212 1.572-.52.432-1.144.768-1.872 1.008-.72.232-1.52.348-2.4.348-.88 0-1.684-.116-2.412-.348-.72-.24-1.34-.576-1.86-1.008-.52-.432-.924-.956-1.212-1.572-.288-.616-.432-1.304-.432-2.064 0-1.056.264-1.94.792-2.652.536-.712 1.336-1.232 2.4-1.56-.864-.344-1.516-.844-1.956-1.5-.432-.656-.648-1.444-.648-2.364 0-.648.128-1.252.384-1.812s.616-1.044 1.08-1.452c.472-.416 1.036-.74 1.692-.972.656-.24 1.38-.36 2.172-.36.792 0 1.512.12 2.16.36.656.232 1.216.556 1.68.972.472.408.836.892 1.092 1.452.264.56.396 1.164.396 1.812 0 .92-.22 1.708-.66 2.364-.432.656-1.08 1.156-1.944 1.5z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"NUM_9\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M16.735 16.8558c0 1.024.272 1.812.816 2.364.552.544 1.32.816 2.304.816.528 0 .992-.084 1.392-.252.408-.168.752-.392 1.032-.672.28-.288.492-.62.636-.996.144-.384.216-.792.216-1.224 0-.504-.08-.952-.24-1.344-.152-.4-.372-.74-.66-1.02-.28-.28-.616-.492-1.008-.636-.392-.152-.82-.228-1.284-.228-.488 0-.928.08-1.32.24-.392.16-.728.384-1.008.672-.28.28-.496.616-.648 1.008-.152.384-.228.808-.228 1.272zm4.428 5.364c.16-.2.308-.388.444-.564.136-.184.264-.368.384-.552-.416.296-.88.524-1.392.684-.512.152-1.056.228-1.632.228-.624 0-1.224-.104-1.8-.312-.576-.216-1.088-.532-1.536-.948-.448-.424-.808-.944-1.08-1.56-.264-.624-.396-1.34-.396-2.148 0-.76.14-1.476.42-2.148.288-.672.688-1.256 1.2-1.752.512-.504 1.124-.9 1.836-1.188.712-.288 1.5-.432 2.364-.432.856 0 1.632.14 2.328.42.696.272 1.288.66 1.776 1.164.488.496.864 1.092 1.128 1.788.264.688.396 1.448.396 2.28 0 .52-.048 1.012-.144 1.476-.088.464-.22.916-.396 1.356-.168.432-.376.86-.624 1.284-.24.416-.512.84-.816 1.272l-4.068 5.832c-.12.176-.3.32-.54.432-.232.112-.496.168-.792.168h-2.364l5.304-6.78z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"DECIMAL\":\n case \"PERIOD\":\n // Different locales use different symbols for the decimal separator\n // (, vs .)\n if (id === \"DECIMAL\" && getDecimalSeparator(locale) !== \".\") {\n // comma decimal separator\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n data-testid=\"comma-decimal\"\n >\n <path\n d=\"M11.5559 25.3544C11.8679 24.661 12.1799 23.933 12.4919 23.1704C12.8039 22.425 13.0986 21.6884 13.3759 20.9604C13.6706 20.2324 13.9219 19.5737 14.1299 18.9844H16.6259L16.7299 19.2704C16.4526 19.877 16.1232 20.5357 15.7419 21.2464C15.3606 21.9397 14.9619 22.633 14.5459 23.3264C14.1299 24.037 13.7139 24.713 13.2979 25.3544H11.5559Z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n }\n // period / US decimal separator\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n data-testid=\"period-decimal\"\n >\n <path\n d=\"M18.3401 27.512c0-.232.04-.448.12-.648.088-.208.204-.388.348-.54.152-.152.328-.272.528-.36.208-.088.428-.132.66-.132.232 0 .448.044.648.132.208.088.388.208.54.36.152.152.272.332.36.54.088.2.132.416.132.648 0 .24-.044.46-.132.66-.088.2-.208.376-.36.528-.152.152-.332.268-.54.348-.2.088-.416.132-.648.132-.232 0-.452-.044-.66-.132-.2-.08-.376-.196-.528-.348-.144-.152-.26-.328-.348-.528-.08-.2-.12-.42-.12-.66z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"PLUS\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12 20c0-.5523.4477-1 1-1h14c.5523 0 1 .4477 1 1s-.4477 1-1 1H13c-.5523 0-1-.4477-1-1z\"\n fill=\"#21242C\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M20 28c-.5523 0-1-.4477-1-1V13c0-.5523.4477-1 1-1s1 .4477 1 1v14c0 .5523-.4477 1-1 1z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"MINUS\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12 20c0-.5523.4477-1 1-1h14c.5523 0 1 .4477 1 1s-.4477 1-1 1H13c-.5523 0-1-.4477-1-1z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"TIMES\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M14.3432 14.3428c.3905-.3905 1.0237-.3905 1.4142 0l9.8995 9.8995c.3905.3906.3905 1.0237 0 1.4143-.3905.3905-1.0237.3905-1.4142 0l-9.8995-9.8995c-.3905-.3906-.3905-1.0237 0-1.4143z\"\n fill=\"#21242C\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M14.3431 25.6573c-.3905-.3905-.3905-1.0237 0-1.4142l9.8995-9.8995c.3905-.3905 1.0237-.3905 1.4142 0 .3905.3905.3905 1.0237 0 1.4142l-9.8995 9.8995c-.3905.3905-1.0237.3905-1.4142 0z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"CDOT\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g clipPath=\"url(#clip0_874_41555)\">\n <circle cx=\"20\" cy=\"20\" r=\"1.5\" fill=\"#21242C\" />\n </g>\n <defs>\n <clipPath id=\"clip0_874_41555\">\n <path\n fill=\"#fff\"\n transform=\"translate(18.5 18.5)\"\n d=\"M0 0h3v3H0z\"\n />\n </clipPath>\n </defs>\n </svg>\n );\n case \"DIVIDE\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M20 16c.8284 0 1.5-.6716 1.5-1.5S20.8284 13 20 13s-1.5.6716-1.5 1.5.6716 1.5 1.5 1.5zm-8 4c0-.5523.4477-1 1-1h14c.5523 0 1 .4477 1 1s-.4477 1-1 1H13c-.5523 0-1-.4477-1-1zm9.5 5.5c0 .8284-.6716 1.5-1.5 1.5s-1.5-.6716-1.5-1.5.6716-1.5 1.5-1.5 1.5.6716 1.5 1.5z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n\n case \"LEFT_PAREN\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M22.6402 9.2318c.4243.35357.4816.9841.128 1.4084-4.6909 5.6292-4.6909 13.0905 0 18.7196.3536.4243.2963 1.0549-.128 1.4084-.4243.3536-1.0549.2963-1.4084-.128-5.3091-6.3708-5.3091-14.9095 0-21.28036.3535-.42428.9841-.4816 1.4084-.12804z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"RIGHT_PAREN\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M18.3598 9.2318c.4243-.35356 1.0549-.29624 1.4084.12804 5.3091 6.37086 5.3091 14.90956 0 21.28036-.3535.4243-.9841.4816-1.4084.128-.4242-.3535-.4816-.9841-.128-1.4084 4.691-5.6291 4.691-13.0904 0-18.7196-.3536-.4243-.2962-1.05483.128-1.4084z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n\n case \"BACKSPACE\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10 20l6-6h12.1716v12H16l-6-6zm-1.41421-1.4142l6.00001-6C14.9609 12.2107 15.4696 12 16 12h12.1716c1.1045 0 2 .8954 2 2v12c0 1.1046-.8955 2-2 2H16c-.5304 0-1.0391-.2107-1.4142-.5858l-6.00001-6c-.78105-.781-.78105-2.0474 0-2.8284zm13.87871-1.2929l-1.2929 1.2929-1.2929-1.2929c-.3905-.3905-1.0237-.3905-1.4142 0-.3905.3905-.3905 1.0237 0 1.4142L19.7574 20l-1.2929 1.2929c-.3905.3905-.3905 1.0237 0 1.4142.3905.3905 1.0237.3905 1.4142 0l1.2929-1.2929 1.2929 1.2929c.3905.3905 1.0237.3905 1.4142 0 .3906-.3905.3906-1.0237 0-1.4142L22.5858 20l1.2929-1.2929c.3906-.3905.3906-1.0237 0-1.4142-.3905-.3905-1.0237-.3905-1.4142 0z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"DISMISS\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n fill=\"currentColor\"\n viewBox=\"0 0 256 256\"\n >\n <path\n // flip to point down\n transform=\"scale(1,-1) translate(0, -260)\"\n d=\"M205.66,125.66a8,8,0,0,1-11.32,0L128,59.31,61.66,125.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,125.66Z\"\n />\n </svg>\n );\n // TODO: figure out what the difference is and what we need for what\n case \"FRAC_INCLUSIVE\":\n case \"FRAC_EXCLUSIVE\":\n case \"FRAC\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M16 10C16 9.44772 16.4477 9 17 9H23C23.5523 9 24 9.44772 24 10V16C24 16.5523 23.5523 17 23 17H17C16.4477 17 16 16.5523 16 16V10ZM18 11H22V15H18V11ZM14 20C14 19.4477 14.4477 19 15 19H25C25.5523 19 26 19.4477 26 20C26 20.5523 25.5523 21 25 21H15C14.4477 21 14 20.5523 14 20ZM17 23C16.4477 23 16 23.4477 16 24V30C16 30.5523 16.4477 31 17 31H23C23.5523 31 24 30.5523 24 30V24C24 23.4477 23.5523 23 23 23H17ZM22 25H18V29H22V25Z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"NEGATIVE\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12.9571 13.2929c.3905.3905.3905 1.0237 0 1.4142C11.6871 15.9771 11 17.9485 11 20c0 2.0515.6871 4.0229 1.9571 5.2929.3905.3905.3905 1.0237 0 1.4142-.3905.3905-1.0237.3905-1.4142 0C9.81292 24.9771 9 22.4485 9 20c0-2.4485.81292-4.9771 2.5429-6.7071.3905-.3905 1.0237-.3905 1.4142 0zM14 20c0-.5523.4477-1 1-1h10c.5523 0 1 .4477 1 1s-.4477 1-1 1H15c-.5523 0-1-.4477-1-1zm14.4571-6.7071c-.3905-.3905-1.0237-.3905-1.4142 0-.3905.3905-.3905 1.0237 0 1.4142C28.3129 15.9771 29 17.9485 29 20c0 2.0515-.6871 4.0229-1.9571 5.2929-.3905.3905-.3905 1.0237 0 1.4142.3905.3905 1.0237.3905 1.4142 0C30.1871 24.9771 31 22.4485 31 20c0-2.4485-.8129-4.9771-2.5429-6.7071z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"RADICAL\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M9 9a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1V9Zm2 1h4v4h-4v-4Zm12 2a1 1 0 0 0-.841.46l-8.174 12.714-3.153-4.729a1 1 0 0 0-1.664 1.11l4 6a1 1 0 0 0 1.673-.014L23.546 14H30a1 1 0 1 0 0-2h-7Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"SQRT\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M22.159 12.46A1 1 0 0 1 23 12h7a1 1 0 1 1 0 2h-6.454l-8.705 13.54a1 1 0 0 1-1.673.015l-4-6a1 1 0 0 1 1.664-1.11l3.153 4.73 8.174-12.716Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"CUBE_ROOT\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M9.684 9.246a3.052 3.052 0 0 0-.33 1.023l.798.143c.209.033.368.02.478-.038.11-.063.2-.186.27-.369a1.05 1.05 0 0 1 .154-.324c.07-.1.152-.186.247-.259.1-.073.21-.13.33-.17.125-.044.26-.066.407-.066.334 0 .59.091.77.275.184.183.275.449.275.797 0 .165-.024.317-.071.457a.746.746 0 0 1-.248.357 1.297 1.297 0 0 1-.5.231 3.359 3.359 0 0 1-.82.083v1.067c.4 0 .715.029.946.088.235.055.41.135.528.242a.674.674 0 0 1 .231.38c.033.146.05.31.05.494 0 .14-.028.28-.083.424a1.116 1.116 0 0 1-.632.649c-.158.07-.343.104-.556.104-.169 0-.319-.024-.45-.071a1.197 1.197 0 0 1-.347-.198 1.738 1.738 0 0 1-.28-.308 3.794 3.794 0 0 1-.232-.385.457.457 0 0 0-.33-.242.809.809 0 0 0-.49.06l-.67.275c.12.356.262.668.423.935.162.264.354.484.578.66.227.176.49.308.786.396.297.088.64.132 1.029.132a3.55 3.55 0 0 0 1.05-.154c.338-.106.633-.264.886-.473a2.3 2.3 0 0 0 .605-.775c.15-.312.225-.671.225-1.078 0-.92-.458-1.531-1.375-1.832a2.24 2.24 0 0 0 .523-.247 1.47 1.47 0 0 0 .621-.864 2.47 2.47 0 0 0 .083-.67c0-.287-.057-.555-.17-.804a1.9 1.9 0 0 0-.48-.654 2.254 2.254 0 0 0-.77-.44c-.3-.11-.641-.165-1.022-.165-.36 0-.695.05-1.007.148a2.47 2.47 0 0 0-.825.435 2.42 2.42 0 0 0-.605.731ZM23 12a1 1 0 0 0-.841.46l-8.174 12.714-3.153-4.729a1 1 0 0 0-1.664 1.11l4 6a1 1 0 0 0 1.673-.014L23.546 14H30a1 1 0 1 0 0-2h-7Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"EXP\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M28 8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1V8Zm2 1h4v4h-4V9Zm-16 4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H15a1 1 0 0 1-1-1V13Zm2 1h8v12h-8V14Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"EXP_2\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M33.58 13.746a.52.52 0 0 0-.386-.137h-1.793c-.161 0-.334.016-.517.05a4.09 4.09 0 0 0-.555.126l1.694-1.733c.212-.216.414-.43.605-.643.19-.213.357-.431.5-.655a3.22 3.22 0 0 0 .347-.715c.084-.25.126-.52.126-.814 0-.34-.06-.653-.181-.935a2.033 2.033 0 0 0-.512-.72 2.293 2.293 0 0 0-.797-.468 2.952 2.952 0 0 0-1.029-.17c-.36 0-.695.05-1.006.148a2.43 2.43 0 0 0-.83.435 2.42 2.42 0 0 0-.606.731 3.049 3.049 0 0 0-.33 1.023l.803.143c.205.033.363.02.473-.038.114-.063.204-.186.27-.369a1.05 1.05 0 0 1 .154-.324 1.18 1.18 0 0 1 .247-.259c.1-.073.21-.13.33-.17.125-.044.26-.066.407-.066.334 0 .592.093.776.28.183.183.275.453.275.809 0 .201-.026.394-.077.577a2.407 2.407 0 0 1-.231.545 4.17 4.17 0 0 1-.385.544 9.098 9.098 0 0 1-.534.578l-2.365 2.37a.897.897 0 0 0-.264.616V15h5.533v-.89a.48.48 0 0 0-.143-.364ZM14 13a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H15a1 1 0 0 1-1-1V13Zm2 1h8v12h-8V14Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"EXP_3\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M28.684 8.246a3.049 3.049 0 0 0-.33 1.023l.798.143c.209.033.368.02.478-.038.11-.063.2-.186.27-.369a1.05 1.05 0 0 1 .154-.324 1.18 1.18 0 0 1 .247-.259c.1-.073.21-.13.33-.17.125-.044.26-.066.407-.066.334 0 .59.091.77.275.183.183.275.449.275.797 0 .165-.024.317-.071.457a.746.746 0 0 1-.248.357 1.298 1.298 0 0 1-.5.231 3.36 3.36 0 0 1-.82.083v1.067c.4 0 .715.029.946.088.235.055.41.135.528.242a.674.674 0 0 1 .231.38c.033.146.05.31.05.494 0 .14-.028.28-.083.424a1.118 1.118 0 0 1-.632.649c-.158.07-.343.104-.556.104-.169 0-.319-.024-.45-.071a1.195 1.195 0 0 1-.347-.198 1.738 1.738 0 0 1-.28-.308 3.794 3.794 0 0 1-.232-.385.457.457 0 0 0-.33-.242.809.809 0 0 0-.49.06l-.67.275c.12.356.262.668.423.935.161.264.354.484.578.66.227.176.49.308.786.396.297.088.64.132 1.029.132.366 0 .716-.051 1.05-.154.337-.106.633-.264.886-.473a2.3 2.3 0 0 0 .605-.775c.15-.312.225-.671.225-1.078 0-.92-.458-1.531-1.375-1.832a2.24 2.24 0 0 0 .523-.247 1.471 1.471 0 0 0 .621-.863 2.47 2.47 0 0 0 .083-.672c0-.286-.057-.554-.17-.803a1.9 1.9 0 0 0-.48-.654 2.254 2.254 0 0 0-.77-.44c-.3-.11-.641-.165-1.022-.165-.36 0-.695.05-1.007.148a2.47 2.47 0 0 0-.825.435 2.42 2.42 0 0 0-.605.731ZM14 13a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H15a1 1 0 0 1-1-1V13Zm2 1h8v12h-8V14Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"TAN\":\n return strings.tan;\n case \"COS\":\n return strings.cos;\n case \"SIN\":\n return strings.sin;\n case \"EQUAL\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M12 17a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H13a1 1 0 0 1-1-1Zm0 6a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H13a1 1 0 0 1-1-1Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"GT\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M12.058 14.664a1 1 0 0 1 1.278-.605l14 5a1 1 0 0 1 0 1.883l-14 5a1 1 0 1 1-.672-1.884L24.027 20l-11.363-4.058a1 1 0 0 1-.606-1.278Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"LT\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M27.942 14.664a1 1 0 0 1-.606 1.278L15.973 20l11.363 4.058a1 1 0 0 1-.672 1.884l-14-5a1 1 0 0 1 0-1.884l14-5a1 1 0 0 1 1.278.606Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"GEQ\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M12 29a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H13a1 1 0 0 1-1-1Zm.058-14.336a1 1 0 0 1 1.278-.605l14 5a1 1 0 0 1 0 1.883l-14 5a1 1 0 1 1-.672-1.884L24.027 20l-11.363-4.058a1 1 0 0 1-.606-1.278Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"LEQ\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M12 29a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H13a1 1 0 0 1-1-1Zm15.942-14.336a1 1 0 0 1-.606 1.278L15.973 20l11.363 4.058a1 1 0 0 1-.672 1.884l-14-5a1 1 0 0 1 0-1.884l14-5a1 1 0 0 1 1.278.606Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"NEQ\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M12 17a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H13a1 1 0 0 1-1-1Zm0 6a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H13a1 1 0 0 1-1-1Z\"\n clipRule=\"evenodd\"\n />\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M16 26.928a1 1 0 0 1-.366-1.366l7-12.125a1 1 0 0 1 1.732 1l-7 12.125a1 1 0 0 1-1.366.366Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"LN\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M16.976 14.112V26H15V14.112h1.976Zm3.817 4.688a5.19 5.19 0 0 1 .52-.456 3.195 3.195 0 0 1 1.248-.592 3.16 3.16 0 0 1 .768-.088c.448 0 .845.078 1.192.232.346.15.634.363.864.64.234.272.41.6.528.984.122.379.184.798.184 1.256V26H24.12v-5.224c0-.501-.115-.888-.344-1.16-.23-.277-.579-.416-1.048-.416-.342 0-.662.078-.96.232a3.439 3.439 0 0 0-.848.632V26h-1.976v-8.208h1.208c.256 0 .424.12.504.36l.136.648Z\"\n />\n </svg>\n );\n case \"LOG\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M12.203 14.112V26h-1.976V14.112h1.976Zm5.6 3.552c.608 0 1.16.099 1.656.296.502.198.928.478 1.28.84.358.363.632.806.824 1.328.192.523.288 1.107.288 1.752 0 .651-.096 1.238-.288 1.76a3.741 3.741 0 0 1-.824 1.336 3.528 3.528 0 0 1-1.28.848 4.445 4.445 0 0 1-1.656.296 4.53 4.53 0 0 1-1.672-.296 3.616 3.616 0 0 1-1.288-.848 3.896 3.896 0 0 1-.824-1.336 5.076 5.076 0 0 1-.288-1.76c0-.645.096-1.229.288-1.752a3.81 3.81 0 0 1 .824-1.328 3.669 3.669 0 0 1 1.288-.84 4.53 4.53 0 0 1 1.672-.296Zm0 6.936c.683 0 1.187-.229 1.512-.688.331-.458.496-1.13.496-2.016 0-.885-.165-1.56-.496-2.024-.325-.464-.829-.696-1.512-.696-.693 0-1.208.235-1.544.704-.33.464-.496 1.136-.496 2.016 0 .88.166 1.552.496 2.016.336.459.851.688 1.544.688Zm8.493-2.904c.246 0 .459-.032.64-.096.182-.069.331-.162.448-.28.123-.117.214-.258.272-.424.064-.165.096-.346.096-.544 0-.405-.122-.725-.368-.96-.24-.24-.602-.36-1.088-.36-.485 0-.85.12-1.096.36-.24.235-.36.555-.36.96 0 .192.03.371.088.536.064.166.155.31.272.432.123.118.275.211.456.28.187.064.4.096.64.096Zm2.232 4.672c0-.16-.048-.29-.144-.392a.914.914 0 0 0-.392-.232 2.716 2.716 0 0 0-.584-.128 8.987 8.987 0 0 0-.704-.056 32.107 32.107 0 0 0-.768-.04 8.959 8.959 0 0 1-.768-.064 1.908 1.908 0 0 0-.536.432.89.89 0 0 0-.096.976.93.93 0 0 0 .344.328c.16.091.366.16.616.208.251.054.558.08.92.08.368 0 .686-.029.952-.088a2.09 2.09 0 0 0 .656-.232.954.954 0 0 0 .384-.352.84.84 0 0 0 .12-.44Zm1.968-8.296v.736c0 .235-.141.379-.424.432l-.736.136c.112.283.168.592.168.928a2.414 2.414 0 0 1-.92 1.936c-.288.23-.629.408-1.024.536a4.17 4.17 0 0 1-1.264.184c-.16 0-.314-.008-.464-.024a5.807 5.807 0 0 1-.44-.064c-.256.155-.384.328-.384.52 0 .166.075.288.224.368.155.075.358.128.608.16.251.032.536.054.856.064.32.006.648.022.984.048.336.027.664.075.984.144.32.064.606.168.856.312.251.144.451.342.6.592.155.246.232.563.232.952 0 .363-.09.715-.272 1.056a2.773 2.773 0 0 1-.776.912c-.336.267-.752.48-1.248.64-.49.166-1.05.248-1.68.248-.618 0-1.157-.061-1.616-.184-.458-.117-.84-.277-1.144-.48a2.037 2.037 0 0 1-.68-.688 1.623 1.623 0 0 1-.224-.816c0-.384.115-.704.344-.96.235-.261.555-.469.96-.624a1.377 1.377 0 0 1-.52-.448c-.128-.186-.192-.432-.192-.736 0-.122.022-.248.064-.376.048-.133.115-.264.2-.392.091-.128.203-.248.336-.36a2.2 2.2 0 0 1 .472-.312 2.621 2.621 0 0 1-.984-.896c-.234-.373-.352-.81-.352-1.312 0-.405.08-.77.24-1.096.166-.33.392-.61.68-.84a3.11 3.11 0 0 1 1.032-.536c.4-.122.835-.184 1.304-.184.352 0 .683.038.992.112.31.07.592.174.848.312h2.36Z\"\n />\n </svg>\n );\n case \"LOG_N\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M12.203 14.112V26h-1.976V14.112h1.976Zm5.6 3.552c.608 0 1.16.099 1.656.296.502.198.928.478 1.28.84.358.363.632.806.824 1.328.192.523.288 1.107.288 1.752 0 .651-.096 1.238-.288 1.76a3.741 3.741 0 0 1-.824 1.336 3.528 3.528 0 0 1-1.28.848 4.445 4.445 0 0 1-1.656.296 4.53 4.53 0 0 1-1.672-.296 3.616 3.616 0 0 1-1.288-.848 3.896 3.896 0 0 1-.824-1.336 5.076 5.076 0 0 1-.288-1.76c0-.645.096-1.229.288-1.752a3.81 3.81 0 0 1 .824-1.328 3.669 3.669 0 0 1 1.288-.84 4.53 4.53 0 0 1 1.672-.296Zm0 6.936c.683 0 1.187-.229 1.512-.688.331-.458.496-1.13.496-2.016 0-.885-.165-1.56-.496-2.024-.325-.464-.829-.696-1.512-.696-.693 0-1.208.235-1.544.704-.33.464-.496 1.136-.496 2.016 0 .88.166 1.552.496 2.016.336.459.851.688 1.544.688Zm8.493-2.904c.246 0 .459-.032.64-.096.182-.069.331-.162.448-.28.123-.117.214-.258.272-.424.064-.165.096-.346.096-.544 0-.405-.122-.725-.368-.96-.24-.24-.602-.36-1.088-.36-.485 0-.85.12-1.096.36-.24.235-.36.555-.36.96 0 .192.03.371.088.536.064.166.155.31.272.432.123.118.275.211.456.28.187.064.4.096.64.096Zm2.232 4.672c0-.16-.048-.29-.144-.392a.914.914 0 0 0-.392-.232 2.716 2.716 0 0 0-.584-.128 8.987 8.987 0 0 0-.704-.056 32.107 32.107 0 0 0-.768-.04 8.959 8.959 0 0 1-.768-.064 1.908 1.908 0 0 0-.536.432.89.89 0 0 0-.096.976.93.93 0 0 0 .344.328c.16.091.366.16.616.208.251.054.558.08.92.08.368 0 .686-.029.952-.088a2.09 2.09 0 0 0 .656-.232.954.954 0 0 0 .384-.352.84.84 0 0 0 .12-.44Zm1.968-8.296v.736c0 .235-.141.379-.424.432l-.736.136c.112.283.168.592.168.928a2.414 2.414 0 0 1-.92 1.936c-.288.23-.629.408-1.024.536a4.17 4.17 0 0 1-1.264.184c-.16 0-.314-.008-.464-.024a5.807 5.807 0 0 1-.44-.064c-.256.155-.384.328-.384.52 0 .166.075.288.224.368.155.075.358.128.608.16.251.032.536.054.856.064.32.006.648.022.984.048.336.027.664.075.984.144.32.064.606.168.856.312.251.144.451.342.6.592.155.246.232.563.232.952 0 .363-.09.715-.272 1.056a2.773 2.773 0 0 1-.776.912c-.336.267-.752.48-1.248.64-.49.166-1.05.248-1.68.248-.618 0-1.157-.061-1.616-.184-.458-.117-.84-.277-1.144-.48a2.037 2.037 0 0 1-.68-.688 1.623 1.623 0 0 1-.224-.816c0-.384.115-.704.344-.96.235-.261.555-.469.96-.624a1.377 1.377 0 0 1-.52-.448c-.128-.186-.192-.432-.192-.736 0-.122.022-.248.064-.376.048-.133.115-.264.2-.392.091-.128.203-.248.336-.36a2.2 2.2 0 0 1 .472-.312 2.621 2.621 0 0 1-.984-.896c-.234-.373-.352-.81-.352-1.312 0-.405.08-.77.24-1.096.166-.33.392-.61.68-.84a3.11 3.11 0 0 1 1.032-.536c.4-.122.835-.184 1.304-.184.352 0 .683.038.992.112.31.07.592.174.848.312h2.36Z\"\n />\n <path\n fill=\"#21242C\"\n fillRule=\"evenodd\"\n d=\"M32 26a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1h-6Zm5 2h-4v4h4v-4Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"PERCENT\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n d=\"M24.447 11.106a1 1 0 0 1 .447 1.341l-8 16a1 1 0 1 1-1.788-.894l8-16a1 1 0 0 1 1.341-.447ZM15 13a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-4 2a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm12 10a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm2-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z\"\n clipRule=\"evenodd\"\n />\n </svg>\n );\n case \"PI\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M23.7918 25.0379c0 .2947-.13.572-.39.832-.2426.26-.546.39-.91.39-.26 0-.442-.0346-.546-.104-.0866-.0693-.182-.208-.286-.416-.3293-.7626-.494-1.7246-.494-2.886 0-.624.0087-1.04.026-1.248.1214-1.196.39-2.6433.806-4.342.0867-.3466.13-.5373.13-.572h-2.548l-.026.104c0 .0174-.0173.0954-.052.234-.0346.1214-.0866.312-.156.572-.052.2427-.104.468-.156.676-1.144 4.4547-1.8286 6.8814-2.054 7.28-.208.4854-.5806.728-1.118.728-.3986 0-.676-.1473-.832-.442-.0346-.0866-.052-.2253-.052-.416v-.286l.338-.728c1.3-2.7386 2.2447-5.1046 2.834-7.098l.208-.624h-.832c-.6933 0-1.1786.026-1.456.078-.26.052-.5806.2167-.962.494-.416.26-.78.6154-1.092 1.066-.0866.1387-.156.2254-.208.26-.052.0174-.182.026-.39.026-.3293 0-.494-.0866-.494-.26 0-.0693.0867-.2426.26-.52 1.196-1.82 2.366-2.8166 3.51-2.99.1214-.0346 2.0714-.052 5.85-.052 2.7734 0 4.1947.0087 4.264.026.3467.1214.52.364.52.728 0 .5374-.2773.9014-.832 1.092-.104.0347-.702.052-1.794.052h-1.664l-.078.442c-.208 1.248-.312 2.2794-.312 3.094 0 1.5427.2687 2.938.806 4.186.1214.312.182.52.182.624z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"THETA\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"0 0 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M22.2 10.696h.208a2.26 2.26 0 0 1 .312-.026c.936.087 1.664.511 2.184 1.274.676 1.023 1.014 2.418 1.014 4.186 0 .468-.017.84-.052 1.118-.225 2.305-.823 4.463-1.794 6.474-.59 1.23-1.282 2.305-2.08 3.224-.78.919-1.551 1.569-2.314 1.95-.537.243-1.005.364-1.404.364h-.182c-.762 0-1.395-.269-1.898-.806-.918-.97-1.378-2.522-1.378-4.654 0-.832.087-1.707.26-2.626.641-3.467 1.95-6.3 3.926-8.502 1.058-1.161 2.123-1.82 3.198-1.976Zm1.664 3.588c0-1.768-.46-2.652-1.378-2.652-.572 0-1.161.373-1.768 1.118-.866 1.092-1.603 2.652-2.21 4.68-.346 1.092-.52 1.733-.52 1.924.85.017 1.69.026 2.522.026l2.522-.026c.087-.087.243-.763.468-2.028.243-1.265.364-2.28.364-3.042Zm-1.248 6.734.13-.442h-5.07l-.026.182c-.537 2.15-.806 3.753-.806 4.81 0 1.179.208 1.993.624 2.444.19.208.442.312.754.312.694 0 1.421-.563 2.184-1.69.815-1.196 1.552-3.068 2.21-5.616Z\"\n />\n </svg>\n );\n\n case \"a\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M27.781 24.022c.156 0 .26.009.312.026a.18.18 0 0 1 .13.052c.035.035.052.087.052.156 0 .052-.026.182-.078.39-.381 1.456-.85 2.462-1.404 3.016a2.573 2.573 0 0 1-.832.546 2.776 2.776 0 0 1-.624.052c-1.092 0-1.855-.425-2.288-1.274-.087-.225-.13-.33-.13-.312-.017-.017-.052-.008-.104.026l-.104.104c-.832.78-1.655 1.257-2.47 1.43-.104.017-.32.026-.65.026-1.144 0-2.089-.477-2.834-1.43-.52-.762-.78-1.733-.78-2.912 0-.277.009-.468.026-.572a7.916 7.916 0 0 1 1.066-3.172c.607-1.023 1.326-1.846 2.158-2.47 1.005-.78 2.063-1.17 3.172-1.17.867 0 1.647.425 2.34 1.274.277-.52.676-.78 1.196-.78a.93.93 0 0 1 .598.208.64.64 0 0 1 .26.52c0 .226-.33 1.62-.988 4.186-.641 2.548-.962 3.978-.962 4.29 0 .728.243 1.092.728 1.092.156-.017.33-.095.52-.234.364-.346.72-1.178 1.066-2.496.104-.347.19-.529.26-.546.035-.017.121-.026.26-.026h.104Zm-9.594 1.222c0 .624.13 1.127.39 1.508.277.382.676.572 1.196.572.503 0 1.04-.208 1.612-.624.208-.139.485-.398.832-.78.364-.381.58-.641.65-.78.035-.07.269-.997.702-2.782.45-1.785.676-2.747.676-2.886 0-.208-.095-.503-.286-.884-.381-.745-.927-1.118-1.638-1.118-.693 0-1.309.295-1.846.884a6.274 6.274 0 0 0-1.196 2.028 20.753 20.753 0 0 0-1.066 4.264c0 .052-.009.148-.026.286v.312Z\"\n />\n </svg>\n );\n case \"b\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M18.74 10.242c.018 0 .642-.043 1.873-.13 1.248-.104 1.88-.156 1.898-.156.208 0 .312.078.312.234 0 .156-.295 1.395-.884 3.718-.139.59-.295 1.196-.468 1.82a60.807 60.807 0 0 1-.364 1.404l-.104.494c0 .052.052.026.156-.078a4.832 4.832 0 0 1 1.976-.988c.208-.035.424-.052.65-.052.225 0 .442.017.65.052.901.208 1.62.676 2.158 1.404.537.728.806 1.647.806 2.756 0 1.941-.685 3.692-2.054 5.252-1.352 1.543-2.825 2.314-4.42 2.314-.503 0-.98-.113-1.43-.338-1.352-.607-2.028-1.89-2.028-3.848 0-.503.052-.997.156-1.482 0-.017.433-1.794 1.3-5.33l1.326-5.304c.035-.243-.026-.39-.182-.442-.139-.07-.381-.104-.728-.104h-.286c-.364 0-.572-.026-.624-.078-.104-.087-.113-.295-.026-.624.07-.243.13-.381.182-.416.052-.052.104-.078.156-.078Zm6.423 9.308c0-1.387-.529-2.08-1.586-2.08-.035 0-.096.009-.182.026h-.13c-.902.19-1.75.815-2.548 1.872a1.501 1.501 0 0 0-.13.156l-.078.104c0 .017-.156.641-.468 1.872a96.026 96.026 0 0 0-.494 2.08 7.731 7.731 0 0 0-.156 1.456c0 .832.208 1.456.624 1.872.277.277.624.416 1.04.416.572 0 1.152-.277 1.742-.832.433-.399.78-.884 1.04-1.456.277-.59.563-1.5.858-2.73.312-1.248.468-2.167.468-2.756Z\"\n />\n </svg>\n );\n case \"c\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M26.932 24.854c.07 0 .182.087.338.26.173.156.26.268.26.338 0 .156-.269.476-.806.962-1.075.97-2.435 1.577-4.082 1.82-.381.034-.72.052-1.014.052-1.855 0-3.146-.763-3.874-2.288a4.598 4.598 0 0 1-.494-2.132c0-.797.165-1.612.494-2.444.503-1.3 1.317-2.4 2.444-3.302 1.144-.919 2.357-1.448 3.64-1.586.104-.017.269-.026.494-.026.607 0 1.17.095 1.69.286.97.416 1.456 1.075 1.456 1.976 0 .537-.165.98-.494 1.326-.33.33-.745.494-1.248.494-.33 0-.59-.087-.78-.26-.19-.19-.286-.45-.286-.78 0-.295.087-.58.26-.858.173-.277.399-.477.676-.598.139-.087.234-.13.286-.13.07 0 .009-.06-.182-.182-.33-.19-.789-.286-1.378-.286-.52 0-1.014.121-1.482.364-.364.156-.737.425-1.118.806a5.29 5.29 0 0 0-1.092 1.612c-.277.624-.555 1.517-.832 2.678-.19.814-.286 1.465-.286 1.95 0 .797.225 1.395.676 1.794.399.416.936.624 1.612.624.26 0 .529-.018.806-.052 1.63-.243 2.964-.962 4.004-2.158.156-.174.26-.26.312-.26Z\"\n />\n </svg>\n );\n case \"d\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M26.634 10.112c.26-.017.555-.035.884-.052.33-.035.572-.06.728-.078.173-.017.269-.026.286-.026.208 0 .312.07.312.208 0 .121-.641 2.747-1.924 7.878a2094.732 2094.732 0 0 0-1.924 7.8 2.156 2.156 0 0 0-.026.39c0 .728.243 1.092.728 1.092.156-.017.33-.095.52-.234.364-.347.72-1.179 1.066-2.496.104-.347.19-.529.26-.546.035-.017.121-.026.26-.026h.104c.33 0 .494.07.494.208 0 .07-.026.208-.078.416-.381 1.456-.85 2.461-1.404 3.016a2.572 2.572 0 0 1-.832.546 2.776 2.776 0 0 1-.624.052c-1.092 0-1.855-.425-2.288-1.274-.087-.225-.13-.33-.13-.312-.017-.017-.052-.009-.104.026l-.104.104c-.832.78-1.655 1.257-2.47 1.43-.104.017-.32.026-.65.026-1.144 0-2.089-.477-2.834-1.43-.52-.763-.78-1.733-.78-2.912 0-1.612.59-3.207 1.768-4.784 1.075-1.317 2.27-2.14 3.588-2.47a3.87 3.87 0 0 1 1.066-.156c.953 0 1.681.364 2.184 1.092.087.104.13.139.13.104l.702-2.834c.468-1.837.71-2.8.728-2.886 0-.208-.052-.347-.156-.416-.19-.07-.537-.113-1.04-.13h-.546a1.192 1.192 0 0 1-.182-.208c0-.035.026-.2.078-.494.087-.33.2-.494.338-.494a17.914 17.914 0 0 1 .962-.078l.91-.052Zm-2.236 9.412c-.381-1.37-1.031-2.054-1.95-2.054-.693 0-1.309.295-1.846.884a6.274 6.274 0 0 0-1.196 2.028 20.753 20.753 0 0 0-1.066 4.264c0 .052-.009.147-.026.286v.312c0 .624.13 1.127.39 1.508.277.381.676.572 1.196.572.919 0 1.88-.624 2.886-1.872l.208-.286.702-2.808c.312-1.265.546-2.21.702-2.834Z\"\n />\n </svg>\n );\n case \"e\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M26.5 24.854c.07 0 .182.087.338.26.174.156.26.268.26.338 0 .156-.268.476-.806.962-1.421 1.248-3.094 1.872-5.018 1.872-.953 0-1.76-.234-2.418-.702-.381-.208-.728-.546-1.04-1.014-.572-.867-.858-1.846-.858-2.938 0-.659.07-1.309.208-1.95.364-1.352 1.11-2.505 2.236-3.458 1.144-.954 2.514-1.517 4.108-1.69.018-.017.156-.026.416-.026h.078c.728 0 1.344.165 1.846.494.52.312.858.745 1.014 1.3.018.07.026.225.026.468 0 .312-.017.529-.052.65-.364 1.23-1.308 2.036-2.834 2.418-.85.225-2.01.346-3.484.364-.641 0-.97.017-.988.052 0 .017-.017.13-.052.338-.19.85-.286 1.543-.286 2.08 0 .814.182 1.465.546 1.95.364.468.91.702 1.638.702 1.942 0 3.545-.737 4.81-2.21.156-.174.26-.26.312-.26Zm-.858-6.032c-.104-.901-.693-1.352-1.768-1.352-.606 0-1.23.173-1.872.52-.85.503-1.482 1.291-1.898 2.366-.19.52-.286.806-.286.858 0 .017.174.026.52.026.572 0 1.1-.017 1.586-.052 1.023-.087 1.786-.234 2.288-.442a2.776 2.776 0 0 0 1.248-1.04c.122-.26.182-.555.182-.884Z\"\n />\n </svg>\n );\n case \"f\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M18.695 32.212c.468.104.72.156.754.156.399 0 .745-.364 1.04-1.092.208-.572.84-3.657 1.898-9.256.485-2.617.737-3.935.754-3.952v-.078h-1.222c-.815 0-1.248-.017-1.3-.052-.121-.07-.139-.26-.052-.572.07-.26.113-.399.13-.416.035-.087.104-.13.208-.13.121-.017.529-.026 1.222-.026.832 0 1.248-.009 1.248-.026 0-.035.078-.468.234-1.3.156-.832.26-1.335.312-1.508.364-1.647.91-2.79 1.638-3.432.693-.572 1.413-.858 2.158-.858.624.035 1.144.225 1.56.572.433.347.65.806.65 1.378 0 .503-.156.927-.468 1.274-.312.347-.702.52-1.17.52-.763 0-1.144-.364-1.144-1.092 0-.641.303-1.11.91-1.404l.234-.13c-.312-.104-.572-.156-.78-.156-.503 0-.832.33-.988.988-.139.52-.364 1.655-.676 3.406l-.338 1.716c0 .035.477.052 1.43.052.78 0 1.248.009 1.404.026.156.017.234.078.234.182 0 .19-.06.468-.182.832-.035.087-.121.139-.26.156h-2.834l-.598 3.172c-.641 3.31-1.04 5.313-1.196 6.006-.59 2.617-1.378 4.394-2.366 5.33-.641.555-1.274.832-1.898.832-.624 0-1.144-.173-1.56-.52-.416-.347-.624-.806-.624-1.378 0-.52.156-.962.468-1.326.312-.347.702-.52 1.17-.52.763 0 1.144.364 1.144 1.092 0 .641-.303 1.11-.91 1.404l-.234.13Z\"\n />\n </svg>\n );\n case \"g\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M17.729 29.846c.312 0 .572.095.78.286.208.19.312.442.312.754 0 .468-.174.867-.52 1.196-.122.121-.165.182-.13.182.173.052.693.078 1.56.078.658 0 1.178-.104 1.56-.312.398-.19.771-.486 1.118-.884.346-.381.589-.78.728-1.196.104-.33.242-.867.416-1.612.225-.832.338-1.318.338-1.456a5.177 5.177 0 0 1-2.08 1.066 3.946 3.946 0 0 1-.65.052c-1.127 0-2.02-.39-2.678-1.17-.642-.797-.962-1.794-.962-2.99 0-1.092.251-2.14.754-3.146.797-1.664 1.941-2.869 3.432-3.614.797-.381 1.551-.572 2.262-.572.797 0 1.551.416 2.262 1.248a.854.854 0 0 0 .104-.13c.242-.399.606-.598 1.092-.598a.93.93 0 0 1 .598.208.64.64 0 0 1 .26.52c0 .26-.494 2.357-1.482 6.292-.988 3.935-1.508 5.945-1.56 6.032-.33.936-1.014 1.707-2.054 2.314-1.023.624-2.176.936-3.458.936-1.994 0-3.172-.381-3.536-1.144-.087-.156-.13-.364-.13-.624 0-.45.156-.85.468-1.196.312-.347.71-.52 1.196-.52Zm8.06-10.374c-.139-.45-.278-.798-.416-1.04a1.757 1.757 0 0 0-.598-.65c-.278-.208-.616-.312-1.014-.312a1.1 1.1 0 0 0-.182.026h-.13c-.728.173-1.361.624-1.898 1.352-.486.641-.945 1.811-1.378 3.51-.295 1.178-.442 2.045-.442 2.6 0 1.37.537 2.054 1.612 2.054.988 0 1.941-.607 2.86-1.82l.208-.26a459.483 459.483 0 0 0 1.378-5.46Z\"\n />\n </svg>\n );\n case \"h\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M25.274 28.26c-.676 0-1.23-.2-1.664-.598-.433-.416-.65-.945-.65-1.586 0-.277.087-.659.26-1.144.815-2.097 1.335-3.735 1.56-4.914.052-.26.078-.59.078-.988 0-1.023-.425-1.534-1.274-1.534-.312 0-.537.017-.676.052-1.162.243-2.184 1.075-3.068 2.496l-.182.338-.884 3.51c-.555 2.253-.876 3.484-.962 3.692-.226.468-.607.702-1.144.702-.208 0-.416-.07-.624-.208a.56.56 0 0 1-.286-.494c0-.208 1.274-5.408 3.822-15.6 0-.208-.052-.347-.156-.416-.19-.07-.537-.113-1.04-.13h-.546a1.192 1.192 0 0 1-.182-.208c0-.035.026-.2.078-.494.086-.33.2-.494.338-.494.017 0 .641-.043 1.872-.13 1.248-.104 1.88-.156 1.898-.156.208 0 .312.078.312.234 0 .19-.312 1.5-.936 3.926-.659 2.565-.988 3.874-.988 3.926 0 .035.06-.009.182-.13 1.023-.936 2.15-1.404 3.38-1.404.953 0 1.716.234 2.288.702.572.468.858 1.153.858 2.054 0 .399-.026.728-.078.988-.156.884-.633 2.418-1.43 4.602-.312.85-.468 1.465-.468 1.846.017.243.06.407.13.494.07.087.2.13.39.13.485 0 .936-.26 1.352-.78.433-.537.771-1.248 1.014-2.132.052-.19.104-.303.156-.338.052-.035.19-.052.416-.052.33.052.502.121.52.208 0 .017-.035.147-.104.39-.277 1.023-.72 1.863-1.326 2.522-.59.745-1.335 1.118-2.236 1.118Z\"\n />\n </svg>\n );\n case \"i\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M22.302 12.4c0-.399.165-.763.495-1.092.329-.33.71-.494 1.143-.494.313 0 .572.104.78.312.226.208.338.468.338.78 0 .381-.173.745-.52 1.092-.346.347-.727.52-1.143.52-.313 0-.572-.104-.78-.312-.208-.208-.313-.477-.313-.806Zm-.598 15.886c-.675 0-1.221-.2-1.637-.598-.416-.399-.625-.936-.625-1.612 0-.295.018-.494.052-.598 0-.035.4-1.1 1.197-3.198.797-2.115 1.196-3.19 1.196-3.224.086-.277.13-.59.13-.936 0-.416-.148-.624-.442-.624h-.052c-.416 0-.815.2-1.197.598-.554.572-.962 1.387-1.221 2.444a.427.427 0 0 1-.027.104.307.307 0 0 1-.052.078l-.026.026c-.017.017-.052.026-.104.026h-.675c-.105-.104-.157-.182-.157-.234 0-.052.026-.173.078-.364.451-1.49 1.11-2.53 1.977-3.12.468-.364.97-.546 1.508-.546.693 0 1.265.2 1.716.598.45.399.675.936.675 1.612 0 .225-.043.485-.13.78-.017.035-.416 1.1-1.196 3.198l-1.17 3.146c-.086.381-.13.659-.13.832 0 .433.148.65.442.65.243 0 .46-.052.65-.156.763-.364 1.361-1.274 1.794-2.73.053-.208.096-.33.13-.364.052-.035.2-.052.442-.052.156 0 .26.009.313.026.069 0 .12.017.155.052.035.035.052.095.052.182 0 .07-.026.182-.078.338-.329.988-.806 1.846-1.43 2.574-.606.728-1.325 1.092-2.157 1.092Z\"\n />\n </svg>\n );\n case \"j\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M24.365 12.504c0-.45.164-.84.494-1.17.329-.347.719-.52 1.17-.52.294 0 .537.095.728.286.208.173.329.407.364.702 0 .468-.156.875-.468 1.222-.312.33-.702.494-1.17.494-.312 0-.572-.087-.78-.26a1.059 1.059 0 0 1-.338-.754Zm-.234 5.72c0-.503-.226-.754-.676-.754-.191 0-.39.035-.598.104-.468.156-.928.485-1.378.988-.434.503-.798 1.118-1.092 1.846a1.45 1.45 0 0 1-.078.182.454.454 0 0 0-.052.13l-.078.026a.492.492 0 0 1-.156.026h-.598c-.14-.139-.156-.32-.052-.546.52-1.248 1.196-2.201 2.028-2.86.589-.468 1.187-.745 1.794-.832h.208c.12-.017.225-.026.312-.026.416.017.797.104 1.144.26.45.277.78.572.988.884.225.295.338.728.338 1.3v.416l-1.274 5.174c-.884 3.467-1.352 5.27-1.404 5.408-.278.745-.754 1.404-1.43 1.976a5.47 5.47 0 0 1-2.21 1.222 5.448 5.448 0 0 1-1.274.156c-.676 0-1.222-.147-1.638-.442-.416-.295-.624-.728-.624-1.3 0-.485.173-.893.52-1.222.346-.33.736-.494 1.17-.494.329 0 .589.095.78.286.208.19.312.45.312.78 0 .624-.278 1.1-.832 1.43.086.017.208.026.364.026.589 0 1.126-.251 1.612-.754a4.877 4.877 0 0 0 1.118-1.69l.286-1.092c.19-.745.416-1.647.676-2.704.277-1.075.554-2.158.832-3.25.277-1.092.51-2.054.702-2.886.19-.85.286-1.343.286-1.482 0-.121-.01-.217-.026-.286Z\"\n />\n </svg>\n );\n case \"k\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M18.783 10.242c.017 0 .641-.043 1.872-.13 1.248-.104 1.88-.156 1.898-.156.208 0 .312.07.312.208 0 .121-.434 1.933-1.3 5.434-.867 3.432-1.3 5.209-1.3 5.33.33-.208.598-.381.806-.52.208-.156.372-.286.494-.39.121-.121.416-.407.884-.858 1.04-1.04 1.768-1.69 2.184-1.95.693-.468 1.352-.702 1.976-.702.52 0 .927.173 1.222.52.312.347.468.806.468 1.378 0 .624-.148 1.135-.442 1.534-.295.381-.71.572-1.248.572a1.24 1.24 0 0 1-.832-.286c-.208-.19-.312-.442-.312-.754 0-.433.147-.797.442-1.092a1.703 1.703 0 0 1 1.04-.546l.182-.052c-.208-.208-.416-.312-.624-.312-.59 0-1.283.295-2.08.884-.33.26-.832.728-1.508 1.404a29.066 29.066 0 0 1-1.768 1.612c.814.19 1.37.338 1.664.442.832.33 1.386.78 1.664 1.352.156.312.234.65.234 1.014 0 .225-.052.598-.156 1.118-.087.52-.13.85-.13.988 0 .693.234 1.04.702 1.04.312 0 .598-.13.858-.39.433-.433.823-1.335 1.17-2.704.034-.139.208-.208.52-.208.242 0 .381.017.416.052.104.07.112.251.026.546-.468 1.577-1.066 2.643-1.794 3.198-.434.312-.858.468-1.274.468-.798 0-1.439-.234-1.924-.702-.468-.485-.702-1.127-.702-1.924a5.2 5.2 0 0 1 .078-.728c.052-.33.078-.563.078-.702 0-.225-.052-.442-.156-.65-.226-.433-.65-.771-1.274-1.014-.572-.19-.97-.286-1.196-.286H19.9c-.226.85-.442 1.673-.65 2.47a99.07 99.07 0 0 1-.442 1.794 9.4 9.4 0 0 1-.234.91 1.231 1.231 0 0 1-.468.572c-.226.173-.468.26-.728.26-.208 0-.416-.07-.624-.208a.56.56 0 0 1-.286-.494c0-.173.32-1.56.962-4.16.641-2.6 1.274-5.157 1.898-7.67l.962-3.77c.034-.243-.026-.39-.182-.442-.139-.07-.382-.104-.728-.104h-.286c-.364 0-.572-.026-.624-.078-.104-.087-.113-.295-.026-.624.07-.243.13-.381.182-.416.052-.052.104-.078.156-.078Z\"\n />\n </svg>\n );\n case \"l\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M21.69 28.286c-.78 0-1.404-.217-1.872-.65-.468-.45-.702-1.066-.702-1.846 0-.208.009-.355.026-.442l3.328-13.364a.24.24 0 0 0 0-.156.426.426 0 0 1-.026-.13c0-.035-.017-.06-.052-.078a.408.408 0 0 0-.104-.078c-.017-.017-.052-.026-.104-.026a.426.426 0 0 0-.13-.026.445.445 0 0 0-.182-.026.761.761 0 0 0-.182-.026h-.39c-.416 0-.659-.06-.728-.182-.017-.052 0-.2.052-.442.087-.33.165-.511.234-.546.052-.017.693-.07 1.924-.156a121.23 121.23 0 0 1 1.95-.156c.208 0 .312.07.312.208 0 .19-.633 2.79-1.898 7.8s-1.915 7.635-1.95 7.878c0 .035-.009.113-.026.234v.234c0 .503.121.823.364.962a.72.72 0 0 0 .312.052.986.986 0 0 0 .312-.078c.485-.277.919-1.161 1.3-2.652.104-.347.19-.529.26-.546.035-.017.121-.026.26-.026h.104c.312.087.477.165.494.234 0 .121-.07.425-.208.91-.139.468-.269.84-.39 1.118-.485 1.127-1.11 1.777-1.872 1.95a2.243 2.243 0 0 1-.416.052Z\"\n />\n </svg>\n );\n case \"m\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M13.395 28.286a.968.968 0 0 1-.624-.208.597.597 0 0 1-.26-.52c0-.226.33-1.647.988-4.264.676-2.67 1.014-4.065 1.014-4.186.052-.26.078-.494.078-.702 0-.624-.217-.936-.65-.936-.156 0-.33.06-.52.182-.416.33-.832 1.291-1.248 2.886a.427.427 0 0 1-.026.104.301.301 0 0 1-.052.078l-.026.026c-.018.017-.052.026-.104.026h-.676c-.104-.104-.156-.182-.156-.234 0-.226.121-.659.364-1.3.347-1.005.728-1.707 1.144-2.106.416-.416.875-.624 1.378-.624 1.092 0 1.854.39 2.288 1.17.19.33.286.572.286.728 0 .035.009.052.026.052l.286-.286c1.057-1.11 2.28-1.664 3.666-1.664 1.681 0 2.695.71 3.042 2.132l.026.078.208-.26c.641-.763 1.386-1.317 2.236-1.664a4.865 4.865 0 0 1 1.638-.286c.953 0 1.716.234 2.288.702.572.468.858 1.152.858 2.054 0 .399-.026.728-.078.988-.156.884-.633 2.418-1.43 4.602-.312.832-.468 1.447-.468 1.846.017.242.06.407.13.494.07.087.2.13.39.13.485 0 .936-.26 1.352-.78.433-.538.771-1.248 1.014-2.132.052-.19.104-.303.156-.338.052-.035.19-.052.416-.052.33.052.503.121.52.208 0 .017-.035.147-.104.39-.45 1.612-1.265 2.747-2.444 3.406-.312.156-.685.234-1.118.234-.659 0-1.222-.208-1.69-.624-.416-.485-.624-.997-.624-1.534 0-.33.121-.815.364-1.456.762-2.028 1.248-3.57 1.456-4.628.052-.26.078-.59.078-.988 0-1.023-.425-1.534-1.274-1.534-.312 0-.538.017-.676.052-1.213.26-2.245 1.118-3.094 2.574l-.182.312-.858 3.484c-.572 2.27-.901 3.492-.988 3.666-.226.468-.598.702-1.118.702-.416 0-.694-.174-.832-.52l-.026-.078a.398.398 0 0 1-.052-.156c0-.19.294-1.43.884-3.718.138-.555.277-1.127.416-1.716.156-.607.277-1.092.364-1.456.104-.381.156-.59.156-.624.052-.26.078-.59.078-.988 0-1.023-.425-1.534-1.274-1.534-.312 0-.538.017-.676.052-1.213.26-2.245 1.118-3.094 2.574l-.182.312-.858 3.484c-.572 2.27-.901 3.492-.988 3.666-.226.468-.598.702-1.118.702Z\"\n />\n </svg>\n );\n case \"n\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M17.013 28.286a.968.968 0 0 1-.624-.208.596.596 0 0 1-.26-.52c0-.226.33-1.638.988-4.238.659-2.6 1.005-4.013 1.04-4.238a4.07 4.07 0 0 0 .026-.598c0-.676-.208-1.014-.624-1.014-.399 0-.763.32-1.092.962-.19.364-.373.91-.546 1.638a8.959 8.959 0 0 0-.156.546c-.035.104-.2.156-.494.156h-.364c-.104-.104-.156-.182-.156-.234 0-.07.043-.252.13-.546.52-2.046 1.317-3.19 2.392-3.432.139-.035.286-.052.442-.052 1.023 0 1.76.39 2.21 1.17.19.33.286.572.286.728 0 .035.009.052.026.052l.286-.286c1.075-1.11 2.28-1.664 3.614-1.664.953 0 1.716.234 2.288.702.572.468.858 1.152.858 2.054 0 .399-.026.728-.078.988-.173.988-.65 2.505-1.43 4.55-.312.832-.468 1.447-.468 1.846 0 .45.147.676.442.676.59 0 1.092-.312 1.508-.936a7.04 7.04 0 0 0 .988-2.158c.035-.139.208-.208.52-.208.33.052.503.121.52.208 0 .017-.035.147-.104.39-.45 1.612-1.265 2.747-2.444 3.406-.312.156-.685.234-1.118.234-.659 0-1.222-.208-1.69-.624-.416-.485-.624-.997-.624-1.534 0-.33.121-.815.364-1.456.763-2.028 1.248-3.57 1.456-4.628.052-.26.078-.59.078-.988 0-1.023-.425-1.534-1.274-1.534-.312 0-.537.017-.676.052-1.213.26-2.245 1.118-3.094 2.574l-.182.312-.858 3.484c-.572 2.27-.901 3.492-.988 3.666-.225.468-.598.702-1.118.702Z\"\n />\n </svg>\n );\n case \"o\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M23.152 16.534h.364c.555 0 .902.009 1.04.026 1.092.19 1.95.676 2.575 1.456.623.78.936 1.786.936 3.016 0 1.023-.27 2.046-.806 3.068a7.88 7.88 0 0 1-2.756 3.042c-1.18.763-2.375 1.144-3.588 1.144-1.214 0-2.193-.347-2.939-1.04-.745-.693-1.204-1.603-1.378-2.73a4.113 4.113 0 0 1-.026-.572c0-.45.026-.814.078-1.092.156-.884.494-1.742 1.014-2.574a8.9 8.9 0 0 1 1.82-2.158c1.18-.919 2.401-1.447 3.666-1.586Zm-4.316 8.346c0 .745.2 1.344.599 1.794.416.434.953.65 1.612.65.311 0 .623-.052.936-.156 1.265-.416 2.21-1.37 2.834-2.86.38-.936.693-2.106.936-3.51.017-.104.026-.372.026-.806 0-1.681-.711-2.522-2.133-2.522-1.091 0-2.053.503-2.886 1.508-.572.694-1.04 1.699-1.404 3.016-.346 1.265-.52 2.227-.52 2.886Z\"\n />\n </svg>\n );\n case \"p\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M16.216 20.772c-.104-.104-.156-.182-.156-.234 0-.139.113-.546.338-1.222.33-1.005.72-1.733 1.17-2.184.416-.416.875-.624 1.378-.624 1.3 0 2.132.555 2.496 1.664l.26-.234c.78-.728 1.586-1.188 2.418-1.378.208-.035.425-.052.65-.052.225 0 .442.017.65.052.901.208 1.62.676 2.158 1.404.537.71.806 1.62.806 2.73 0 .815-.165 1.698-.494 2.652a8.628 8.628 0 0 1-1.924 3.016c-.85.85-1.777 1.43-2.782 1.742a4.732 4.732 0 0 1-1.248.156 3.04 3.04 0 0 1-1.014-.156 2.818 2.818 0 0 1-1.144-.91l-.13-.13c-.017.017-.208.771-.572 2.262-.364 1.49-.546 2.244-.546 2.262v.078c.017.035.035.06.052.078a.2.2 0 0 0 .078.026c.035.017.07.026.104.026a.429.429 0 0 0 .13.026h.182c.07.017.13.026.182.026h1.092c.087.121.13.2.13.234.017.035 0 .19-.052.468-.052.208-.104.338-.156.39-.052.07-.165.104-.338.104-.277 0-.737-.009-1.378-.026a55.471 55.471 0 0 0-1.404-.026c-1.213 0-1.985.017-2.314.052h-.208c-.121-.121-.182-.217-.182-.286 0-.07.035-.217.104-.442.052-.226.095-.356.13-.39l.104-.078h.52c.59-.017.927-.121 1.014-.312.052-.104.58-2.176 1.586-6.214 1.023-4.039 1.551-6.18 1.586-6.422.017-.087.026-.208.026-.364 0-.71-.217-1.066-.65-1.066a.761.761 0 0 0-.52.182c-.416.33-.832 1.291-1.248 2.886a.427.427 0 0 1-.026.104.301.301 0 0 1-.052.078l-.026.026c-.017.017-.052.026-.104.026h-.676Zm9.932-1.222c0-1.387-.529-2.08-1.586-2.08a1.1 1.1 0 0 0-.182.026h-.13c-.901.19-1.75.815-2.548 1.872a1.523 1.523 0 0 0-.13.156l-.078.104c0 .017-.035.147-.104.39a38.14 38.14 0 0 1-.286 1.118c-.121.52-.234.97-.338 1.352-.45 1.837-.676 2.79-.676 2.86.121.416.234.72.338.91.381.71.91 1.066 1.586 1.066.555 0 1.066-.19 1.534-.572.468-.399.858-.91 1.17-1.534.312-.59.633-1.56.962-2.912.312-1.248.468-2.167.468-2.756Z\"\n />\n </svg>\n );\n case \"q\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M23.01 32.992h-1.43c-.59.017-1.022.026-1.3.026-.26 0-.39-.07-.39-.208 0-.035.009-.096.026-.182a.601.601 0 0 0 .052-.208c.07-.278.13-.442.182-.494.07-.052.243-.078.52-.078.832 0 1.335-.06 1.508-.182.104-.07.347-.858.728-2.366.347-1.404.529-2.115.546-2.132 0-.017-.06.009-.182.078a5.075 5.075 0 0 1-1.95.988c-.104.017-.32.026-.65.026-1.144 0-2.089-.477-2.834-1.43-.52-.763-.78-1.733-.78-2.912 0-.277.009-.468.026-.572a7.916 7.916 0 0 1 1.066-3.172c.607-1.023 1.326-1.846 2.158-2.47 1.005-.78 2.063-1.17 3.172-1.17.988 0 1.785.45 2.392 1.352.416-.416.694-.668.832-.754.59-.416.988-.624 1.196-.624.174 0 .26.07.26.208 0 .156-.598 2.626-1.794 7.41-1.23 4.922-1.846 7.418-1.846 7.488 0 .139.295.216.884.234h.936c.087.121.13.19.13.208.017.035 0 .2-.052.494-.07.225-.156.39-.26.494h-.338c-.537-.035-1.473-.052-2.808-.052Zm2.34-13.468c-.381-1.37-1.031-2.054-1.95-2.054-.693 0-1.308.295-1.846.884a6.274 6.274 0 0 0-1.196 2.028 20.755 20.755 0 0 0-1.066 4.264c0 .052-.009.147-.026.286v.312c0 .624.13 1.127.39 1.508.277.381.676.572 1.196.572.919 0 1.88-.624 2.886-1.872l.208-.286.702-2.808c.312-1.265.546-2.21.702-2.834Z\"\n />\n </svg>\n );\n case \"r\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M18.943 28.286a.968.968 0 0 1-.624-.208.596.596 0 0 1-.26-.52c0-.226.346-1.716 1.04-4.472.693-2.756 1.04-4.29 1.04-4.602 0-.676-.226-1.014-.676-1.014a.72.72 0 0 0-.494.182c-.416.33-.832 1.291-1.248 2.886a.427.427 0 0 1-.026.104.304.304 0 0 1-.052.078l-.026.026c-.018.017-.052.026-.104.026h-.676c-.104-.104-.156-.182-.156-.234 0-.139.112-.546.338-1.222.329-1.005.719-1.733 1.17-2.184.416-.416.875-.624 1.378-.624.676 0 1.23.165 1.664.494.381.295.632.598.754.91a.64.64 0 0 0 .078.182c.017 0 .086-.07.208-.208.641-.71 1.378-1.153 2.21-1.326.104-.017.329-.026.676-.026.641 0 1.161.182 1.56.546.398.364.598.858.598 1.482 0 .554-.156 1.022-.468 1.404-.295.364-.694.546-1.196.546-.33 0-.607-.096-.832-.286-.208-.19-.312-.442-.312-.754 0-.85.485-1.404 1.456-1.664-.382-.226-.694-.338-.936-.338-.364 0-.711.087-1.04.26-.572.277-1.118.832-1.638 1.664a3.45 3.45 0 0 0-.39.858c-.087.295-.382 1.447-.884 3.458-.59 2.427-.928 3.718-1.014 3.874-.226.468-.598.702-1.118.702Z\"\n />\n </svg>\n );\n case \"s\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M18.974 23.84c.33 0 .59.095.78.286.208.19.312.442.312.754 0 .294-.086.58-.26.858a1.505 1.505 0 0 1-.65.624 3.46 3.46 0 0 1-.364.13l-.104.052c-.017 0-.017.008 0 .026.052.087.208.2.468.338.503.26 1.162.39 1.976.39 1.317 0 2.245-.425 2.782-1.274.26-.434.39-.832.39-1.196 0-.555-.286-.97-.858-1.248-.156-.104-.59-.225-1.3-.364a28.175 28.175 0 0 0-.416-.078 1.515 1.515 0 0 0-.364-.078 7.27 7.27 0 0 0-.26-.078 3.629 3.629 0 0 0-.26-.078 1.156 1.156 0 0 0-.208-.104 5.875 5.875 0 0 0-.26-.182c-.71-.503-1.066-1.213-1.066-2.132 0-.97.355-1.846 1.066-2.626.797-.901 1.907-1.352 3.328-1.352 1.681 0 2.695.59 3.042 1.768.035.087.052.251.052.494 0 .485-.13.884-.39 1.196-.26.294-.607.442-1.04.442-.277 0-.503-.078-.676-.234-.173-.156-.26-.373-.26-.65 0-.572.26-.988.78-1.248.139-.07.217-.104.234-.104.052 0 .043-.044-.026-.13-.416-.382-1.014-.572-1.794-.572-.676 0-1.248.19-1.716.572a1.823 1.823 0 0 0-.702 1.482c0 .312.13.59.39.832.173.156.615.312 1.326.468.798.173 1.318.32 1.56.442.815.364 1.36.97 1.638 1.82.035.104.06.33.078.676 0 .59-.147 1.204-.442 1.846-.85 1.768-2.444 2.652-4.784 2.652-1.854 0-3.024-.538-3.51-1.612a2.13 2.13 0 0 1-.182-.91c0-.537.156-.988.468-1.352.33-.364.737-.546 1.222-.546Z\"\n />\n </svg>\n );\n case \"t\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M17.979 17.99c-.122-.121-.182-.208-.182-.26 0-.07.026-.208.078-.416.069-.225.112-.346.13-.364.034-.087.112-.13.234-.13.138-.017.58-.026 1.326-.026h1.378l.494-2.08c.364-1.404.572-2.158.624-2.262.208-.485.606-.728 1.196-.728a.945.945 0 0 1 .572.234c.173.139.26.32.26.546 0 .208-.165.945-.494 2.21-.07.295-.156.624-.26.988-.087.347-.156.607-.208.78l-.052.26c0 .035.433.052 1.3.052H25.7c.121.122.182.217.182.286 0 .382-.113.685-.338.91h-2.782l-.936 3.77c-.642 2.583-.971 3.943-.988 4.082a2.157 2.157 0 0 0-.026.39c0 .728.234 1.092.702 1.092.121 0 .225-.009.312-.026.866-.156 1.655-.85 2.366-2.08a5.56 5.56 0 0 0 .468-.962c.034-.104.078-.165.13-.182.052-.035.182-.052.39-.052.346 0 .52.07.52.208 0 .035-.035.139-.104.312-.191.555-.503 1.118-.936 1.69-.416.555-.841.997-1.274 1.326-.642.486-1.326.728-2.054.728-.624 0-1.162-.156-1.612-.468a2.445 2.445 0 0 1-.884-1.274c-.035-.139-.052-.372-.052-.702v-.468l.91-3.64c.606-2.444.918-3.675.936-3.692 0-.035-.442-.052-1.326-.052h-1.326Z\"\n />\n </svg>\n );\n case \"u\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M26.598 16.794a.87.87 0 0 1 .598.208c.174.121.26.303.26.546l-1.976 8.268a2.36 2.36 0 0 0-.026.416c0 .728.243 1.092.728 1.092.4-.052.737-.382 1.014-.988.191-.399.416-1.1.676-2.106.035-.139.208-.208.52-.208.156 0 .26.009.312.026.052 0 .096.017.13.052.035.034.052.086.052.156 0 .052-.026.182-.078.39-.52 2.045-1.265 3.232-2.236 3.562a2.77 2.77 0 0 1-.624.052c-1.144 0-1.932-.486-2.366-1.456a4.683 4.683 0 0 0-.312.286c-.866.797-1.75 1.196-2.652 1.196-.762 0-1.438-.156-2.028-.468-.71-.416-1.152-1.066-1.326-1.95a7.492 7.492 0 0 1-.026-.806c0-.416.018-.737.052-.962.122-.745.52-2.02 1.196-3.822.382-1.023.572-1.733.572-2.132 0-.243-.026-.408-.078-.494-.034-.104-.13-.156-.286-.156h-.13c-.398 0-.78.182-1.144.546-.554.554-.979 1.386-1.274 2.496a.423.423 0 0 1-.026.104.299.299 0 0 1-.052.078l-.026.026c-.017.017-.052.026-.104.026h-.676c-.104-.104-.156-.182-.156-.234 0-.052.026-.174.078-.364.347-1.196.884-2.14 1.612-2.834.607-.555 1.231-.832 1.872-.832.728 0 1.31.208 1.742.624.434.398.65.918.65 1.56 0 .346-.156.927-.468 1.742-.71 1.906-1.135 3.32-1.274 4.238a5.18 5.18 0 0 0-.026.598c0 .659.104 1.161.312 1.508.208.347.59.52 1.144.52.728 0 1.387-.312 1.976-.936.347-.347.564-.624.65-.832.035-.07.364-1.387.988-3.952.52-2.08.832-3.293.936-3.64.104-.364.226-.615.364-.754.295-.26.607-.39.936-.39Z\"\n />\n </svg>\n );\n case \"v\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M21.956 28.286c-1.109 0-1.993-.277-2.652-.832-.641-.572-.962-1.404-.962-2.496 0-.312.018-.607.052-.884.156-.832.564-2.106 1.222-3.822l.416-1.248a2.8 2.8 0 0 0 .156-.884c0-.433-.164-.65-.494-.65-.121 0-.26.026-.416.078-.884.312-1.551 1.309-2.002 2.99a.422.422 0 0 1-.026.104.299.299 0 0 1-.052.078l-.026.026c-.017.017-.052.026-.104.026h-.676c-.104-.104-.156-.182-.156-.234 0-.052.026-.182.078-.39.416-1.37 1.058-2.392 1.924-3.068a2.554 2.554 0 0 1 1.612-.546c.676 0 1.231.19 1.664.572.434.381.65.884.65 1.508 0 .295-.026.52-.078.676 0 .121-.13.503-.39 1.144-.797 2.167-1.222 3.71-1.274 4.628 0 .468.044.85.13 1.144.226.745.772 1.118 1.638 1.118.468 0 .884-.139 1.248-.416 1.075-.71 1.968-2.349 2.678-4.914.139-.485.208-.884.208-1.196 0-.763-.338-1.447-1.014-2.054-.225-.208-.338-.442-.338-.702 0-.399.156-.754.468-1.066.33-.33.694-.494 1.092-.494.416 0 .737.2.962.598.226.381.338.84.338 1.378 0 .607-.173 1.603-.52 2.99-.329 1.335-.745 2.496-1.248 3.484-1.092 2.236-2.461 3.354-4.108 3.354Z\"\n />\n </svg>\n );\n case \"w\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M24.368 16.794c.243 0 .45.07.624.208.174.121.26.303.26.546 0 .225-.26 1.335-.78 3.328-.502 1.993-.771 3.137-.806 3.432-.034.19-.052.494-.052.91 0 .503.044.884.13 1.144.104.243.286.46.546.65a1.88 1.88 0 0 0 1.066.312c1.23 0 2.21-1.057 2.938-3.172.399-1.04.668-1.993.806-2.86.018-.087.026-.217.026-.39 0-.867-.312-1.56-.936-2.08-.277-.225-.416-.503-.416-.832 0-.399.165-.745.494-1.04.33-.312.694-.468 1.092-.468a.2.2 0 0 1 .078.026h.104c.728.19 1.092.832 1.092 1.924 0 .555-.164 1.551-.494 2.99-.346 1.317-.676 2.383-.988 3.198-.85 2.15-1.993 3.363-3.432 3.64a3.324 3.324 0 0 1-.494.026c-.78 0-1.464-.13-2.054-.39-.59-.277-1.005-.659-1.248-1.144-.381.503-.771.884-1.17 1.144-.381.26-.884.39-1.508.39-1.161 0-2.097-.277-2.808-.832-.693-.555-1.04-1.378-1.04-2.47 0-.468.018-.78.052-.936.104-.693.494-1.95 1.17-3.77.382-1.023.572-1.733.572-2.132 0-.243-.026-.407-.078-.494-.034-.104-.13-.156-.286-.156h-.13c-.398 0-.78.182-1.144.546-.554.555-.98 1.387-1.274 2.496a.422.422 0 0 1-.026.104.299.299 0 0 1-.052.078l-.026.026c-.017.017-.052.026-.104.026h-.676c-.104-.104-.156-.182-.156-.234 0-.052.026-.173.078-.364.174-.52.338-.936.494-1.248.642-1.3 1.465-2.08 2.47-2.34.104-.035.304-.052.598-.052.71 0 1.274.208 1.69.624.416.399.624.91.624 1.534 0 .347-.156.927-.468 1.742-.762 2.045-1.178 3.493-1.248 4.342v.338c0 .693.165 1.24.494 1.638.33.381.806.572 1.43.572.746 0 1.404-.529 1.976-1.586l.13-.234v-.598c.035-.503.06-.797.078-.884a170.904 170.904 0 0 1 1.144-4.706c.278-1.092.45-1.699.52-1.82.226-.468.598-.702 1.118-.702Z\"\n />\n </svg>\n );\n case \"x\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M16.069 20.772c-.104-.104-.156-.2-.156-.286.069-.468.337-1.066.805-1.794.815-1.23 1.838-1.942 3.069-2.132a4.23 4.23 0 0 1 .546-.052c.606 0 1.16.156 1.664.468.52.312.892.702 1.117 1.17l.416-.546c.642-.728 1.378-1.092 2.21-1.092.711 0 1.283.208 1.716.624a1.9 1.9 0 0 1 .677 1.482c0 .537-.156.988-.468 1.352-.295.364-.694.546-1.197.546-.329 0-.598-.096-.805-.286-.209-.19-.313-.442-.313-.754 0-.798.434-1.344 1.3-1.638 0-.017-.095-.078-.285-.182-.174-.104-.425-.156-.755-.156-.225 0-.39.017-.494.052-.658.277-1.143.85-1.456 1.716-.052.139-.303 1.11-.753 2.912-.451 1.785-.694 2.79-.729 3.016-.052.26-.078.52-.078.78 0 .416.122.745.364.988.243.242.564.364.963.364.727 0 1.386-.304 1.976-.91.589-.624.988-1.309 1.196-2.054.052-.174.104-.269.155-.286.052-.035.191-.052.416-.052.33 0 .494.07.494.208 0 .017-.017.113-.052.286-.294 1.075-.9 2.01-1.82 2.808-.814.641-1.672.962-2.574.962-1.213 0-2.131-.546-2.756-1.638-.502.78-1.143 1.3-1.924 1.56a3.32 3.32 0 0 1-.675.052c-1.006 0-1.716-.356-2.133-1.066a2.013 2.013 0 0 1-.26-1.04c0-.52.156-.962.468-1.326a1.505 1.505 0 0 1 1.196-.546c.746 0 1.119.364 1.119 1.092 0 .641-.304 1.11-.91 1.404a1.256 1.256 0 0 0-.13.078 1.005 1.005 0 0 0-.13.052.2.2 0 0 1-.078.026l-.078.026c0 .052.13.13.39.234.207.087.433.13.675.13.624 0 1.162-.39 1.613-1.17.19-.312.528-1.439 1.014-3.38.104-.399.216-.84.337-1.326.122-.486.209-.858.26-1.118.07-.26.113-.416.13-.468.087-.468.13-.806.13-1.014 0-.416-.112-.745-.337-.988-.226-.243-.538-.364-.936-.364-.78 0-1.456.303-2.029.91a4.835 4.835 0 0 0-1.195 2.054c-.035.156-.078.251-.13.286-.035.017-.174.026-.416.026h-.364Z\"\n />\n </svg>\n );\n case \"y\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M27.639 16.794c.242 0 .45.07.624.208.173.121.26.295.26.52 0 .225-.425 2.045-1.274 5.46-.85 3.415-1.335 5.287-1.456 5.616a6.657 6.657 0 0 1-1.352 2.34 6.756 6.756 0 0 1-2.132 1.716c-.936.45-1.812.676-2.626.676-1.317 0-2.21-.416-2.678-1.248-.174-.243-.26-.59-.26-1.04 0-.59.165-1.049.494-1.378.364-.33.745-.494 1.144-.494.762 0 1.144.364 1.144 1.092 0 .641-.303 1.11-.91 1.404a1.01 1.01 0 0 1-.13.052c-.052.035-.095.06-.13.078a.2.2 0 0 1-.078.026l-.078.026c.052.104.234.217.546.338.277.104.555.156.832.156h.208c.294 0 .52-.017.676-.052.659-.19 1.282-.633 1.872-1.326.59-.694 1.04-1.525 1.352-2.496.19-.572.286-.91.286-1.014 0-.018-.017-.009-.052.026a1.168 1.168 0 0 0-.156.104 3.534 3.534 0 0 1-2.132.702c-.884 0-1.612-.208-2.184-.624-.572-.416-.945-1.014-1.118-1.794a7.464 7.464 0 0 1-.026-.806c0-.416.017-.737.052-.962.121-.745.52-2.02 1.196-3.822.381-1.023.572-1.733.572-2.132 0-.243-.026-.408-.078-.494-.035-.104-.13-.156-.286-.156h-.13c-.399 0-.78.182-1.144.546-.555.554-.98 1.386-1.274 2.496a.427.427 0 0 1-.026.104.304.304 0 0 1-.052.078l-.026.026c-.018.017-.052.026-.104.026h-.676c-.104-.104-.156-.182-.156-.234 0-.052.026-.174.078-.364.364-1.213.91-2.158 1.638-2.834.59-.555 1.204-.832 1.846-.832.728 0 1.309.2 1.742.598.433.398.65.953.65 1.664-.035.33-.06.511-.078.546 0 .104-.13.477-.39 1.118-.71 1.924-1.136 3.336-1.274 4.238a5.157 5.157 0 0 0-.026.598c0 .659.104 1.161.312 1.508.208.347.59.52 1.144.52.398 0 .771-.104 1.118-.312.364-.208.633-.408.806-.598.19-.208.424-.486.702-.832 0-.018.043-.19.13-.52.086-.347.208-.858.364-1.534l.494-1.924c.659-2.6 1.023-3.96 1.092-4.082.225-.468.598-.702 1.118-.702Z\"\n />\n </svg>\n );\n case \"z\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M17.023 28.286c-.104-.104-.156-.182-.156-.234 0-.07.052-.182.156-.338.277-.52.728-1.153 1.352-1.898.728-.832 1.967-2.046 3.718-3.64 1.335-1.213 2.236-2.063 2.704-2.548.208-.277.269-.416.182-.416-.208 0-.667-.096-1.378-.286-.763-.19-1.309-.286-1.638-.286-.503 0-.927.087-1.274.26-.347.156-.563.364-.65.624-.243.139-.407.216-.494.234-.364 0-.546-.07-.546-.208 0-.087.026-.208.078-.364a4.135 4.135 0 0 1 1.118-1.742c.52-.485 1.092-.78 1.716-.884.208-.035.355-.052.442-.052.26 0 .503.052.728.156.225.104.39.208.494.312.121.087.303.251.546.494.537.52.997.78 1.378.78.156 0 .277-.017.364-.052.295-.139.676-.598 1.144-1.378.121-.19.208-.286.26-.286.052-.017.173-.026.364-.026h.338c.104.104.156.173.156.208 0 .07-.078.242-.234.52a14.514 14.514 0 0 1-1.248 1.69c-.78.919-2.01 2.132-3.692 3.64-1.387 1.23-2.331 2.123-2.834 2.678l-.312.312.39.026c.381 0 .875.078 1.482.234.884.225 1.49.338 1.82.338.693 0 1.309-.165 1.846-.494.555-.347.91-.78 1.066-1.3.07-.156.13-.252.182-.286.052-.035.182-.052.39-.052.347 0 .52.087.52.26 0 .017-.017.095-.052.234a5.683 5.683 0 0 1-1.43 2.418 4.579 4.579 0 0 1-2.392 1.326 2.865 2.865 0 0 1-.442.026c-.295 0-.563-.06-.806-.182-.243-.121-.58-.381-1.014-.78-.364-.364-.633-.59-.806-.676-.139-.087-.33-.13-.572-.13-.763 0-1.447.52-2.054 1.56-.087.139-.277.208-.572.208h-.338Z\"\n />\n </svg>\n );\n case \"A\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M13.342 30c-.121-.122-.182-.217-.182-.286 0-.07.026-.217.078-.442.07-.225.121-.355.156-.39l.104-.078h.364c1.213-.052 2.097-.485 2.652-1.3.104-.104 1.673-2.748 4.706-7.93 3.05-5.2 4.593-7.826 4.628-7.878.087-.156.165-.243.234-.26.087-.035.286-.052.598-.052h.442c.104.156.156.242.156.26l.728 8.398c.485 5.598.745 8.424.78 8.476.087.19.65.286 1.69.286.19 0 .32.009.39.026.087 0 .147.017.182.052.052.034.078.095.078.182 0 .035-.026.156-.078.364-.052.26-.104.424-.156.494-.035.052-.147.078-.338.078-.312 0-.832-.009-1.56-.026a73.87 73.87 0 0 0-1.716-.026c-1.63 0-2.695.017-3.198.052h-.312a1.188 1.188 0 0 1-.182-.208c0-.052.026-.217.078-.494.07-.225.121-.364.156-.416l.104-.078h.52c.936-.035 1.49-.182 1.664-.442l-.312-3.9h-6.188l-.884 1.508c-.624 1.04-.945 1.603-.962 1.69a.877.877 0 0 0-.104.39c0 .433.399.684 1.196.754.33 0 .494.087.494.26 0 .087-.026.208-.078.364-.052.242-.104.398-.156.468-.052.07-.165.104-.338.104-.295 0-.763-.009-1.404-.026a58.722 58.722 0 0 0-1.456-.026c-1.23 0-2.02.017-2.366.052h-.208Zm12.324-6.76c0-.19-.113-1.543-.338-4.056-.208-2.514-.32-3.779-.338-3.796l-.702 1.118c-.277.468-.823 1.395-1.638 2.782l-2.34 3.952 2.678.026c1.785 0 2.678-.009 2.678-.026Z\"\n />\n </svg>\n );\n case \"B\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M19.624 13.672c0-.017-.009-.035-.026-.052-.018-.034-.044-.052-.078-.052l-.104-.052a.363.363 0 0 0-.156-.026.766.766 0 0 0-.182-.026h-.442a.79.79 0 0 0-.234-.026h-.26c-.416 0-.668-.008-.754-.026a.237.237 0 0 1-.182-.156c-.035-.052-.026-.208.026-.468.086-.312.164-.485.234-.52.017-.017 1.144-.026 3.38-.026 4.489 0 6.855.017 7.098.052 1.196.173 2.132.59 2.808 1.248.693.659 1.04 1.43 1.04 2.314a3.5 3.5 0 0 1-.494 1.768c-.382.694-.997 1.326-1.846 1.898a7.429 7.429 0 0 1-2.626 1.118l-.26.078c1.144.156 2.062.555 2.756 1.196.71.641 1.066 1.439 1.066 2.392 0 1.248-.572 2.418-1.716 3.51-1.335 1.283-2.921 2.002-4.758 2.158-.122.017-1.95.026-5.486.026-3.467 0-5.226-.017-5.278-.052a.247.247 0 0 1-.104-.208c0-.121.017-.242.052-.364.086-.33.173-.511.26-.546.069-.017.199-.026.39-.026h.156c.468 0 .988-.026 1.56-.078.242-.052.407-.156.494-.312.052-.07.676-2.479 1.872-7.228 1.196-4.75 1.794-7.254 1.794-7.514Zm9.386 2.184c0-.59-.156-1.092-.468-1.508a2.108 2.108 0 0 0-1.196-.832c-.122-.034-.919-.06-2.392-.078-.347 0-.711.009-1.092.026h-1.248c-.243.018-.399.078-.468.182-.052.07-.347 1.161-.884 3.276-.52 2.115-.789 3.233-.806 3.354h2.106c1.404 0 2.21-.017 2.418-.052a4.935 4.935 0 0 0 2.002-.832c.641-.45 1.135-.988 1.482-1.612.364-.659.546-1.3.546-1.924Zm-1.404 8.19c0-.762-.208-1.395-.624-1.898a2.298 2.298 0 0 0-1.534-.884c-.104-.017-.824-.026-2.158-.026-2.046 0-3.077.009-3.094.026 0 .035-.156.668-.468 1.898-.295 1.23-.59 2.453-.884 3.666l-.468 1.82c0 .07.104.113.312.13.208 0 .91.009 2.106.026 1.542 0 2.374-.008 2.496-.026 1.126-.121 2.123-.624 2.99-1.508.884-.884 1.326-1.959 1.326-3.224Z\"\n />\n </svg>\n );\n case \"C\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M29.633 17.494c0-1.439-.32-2.565-.962-3.38-.624-.832-1.525-1.248-2.704-1.248-.919 0-1.915.217-2.99.65-1.872.797-3.337 2.14-4.394 4.03-.953 1.681-1.551 3.657-1.794 5.928-.017.139-.026.39-.026.754 0 1.976.659 3.397 1.976 4.264.832.59 1.855.884 3.068.884.659 0 1.378-.147 2.158-.442 1.023-.416 1.95-1.1 2.782-2.054.832-.953 1.404-1.993 1.716-3.12.07-.225.121-.355.156-.39.052-.035.19-.052.416-.052.364 0 .546.07.546.208 0 .035-.017.121-.052.26-.416 1.543-1.248 2.93-2.496 4.16s-2.652 2.028-4.212 2.392a7.283 7.283 0 0 1-1.82.234c-1.785 0-3.285-.511-4.498-1.534-1.213-1.023-1.985-2.323-2.314-3.9a7.212 7.212 0 0 1-.182-1.69c0-2.08.65-4.1 1.95-6.058a13.533 13.533 0 0 1 2.886-3.172 11.881 11.881 0 0 1 3.796-2.054c1.023-.312 1.959-.468 2.808-.468.624 0 .988.009 1.092.026 1.04.173 1.915.607 2.626 1.3a8.298 8.298 0 0 1 .468.624c.087.104.139.156.156.156.052 0 .286-.225.702-.676.121-.104.251-.225.39-.364l.416-.416c.139-.156.225-.251.26-.286l.39-.39h.156c.243 0 .364.06.364.182 0 .07-.277 1.257-.832 3.562-.624 2.41-.936 3.623-.936 3.64a.38.38 0 0 1-.13.182c-.052.017-.208.026-.468.026h-.416l-.156-.156c0-.035.017-.19.052-.468.035-.347.052-.728.052-1.144Z\"\n />\n </svg>\n );\n case \"D\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M18.696 13.672c0-.017-.008-.035-.026-.052-.017-.034-.043-.052-.078-.052l-.104-.052a.363.363 0 0 0-.156-.026.765.765 0 0 0-.182-.026h-.442a.79.79 0 0 0-.234-.026h-.26c-.589 0-.91-.06-.962-.182-.017-.052 0-.2.052-.442.087-.33.165-.511.234-.546.035-.017 1.76-.026 5.174-.026 2.895.017 4.516.035 4.862.052.347 0 .694.043 1.04.13 1.37.312 2.462 1.032 3.276 2.158.815 1.127 1.222 2.53 1.222 4.212 0 .867-.104 1.716-.312 2.548-.485 1.959-1.499 3.736-3.042 5.33-1.75 1.803-3.744 2.886-5.98 3.25l-.364.052L17.37 30h-2.886c-1.542 0-2.322-.043-2.34-.13v-.026a.455.455 0 0 1-.052-.13c0-.034.026-.156.078-.364.07-.277.139-.433.208-.468.07-.052.269-.078.598-.078.468 0 .988-.026 1.56-.078.243-.052.408-.156.494-.312.052-.07.676-2.479 1.872-7.228 1.196-4.75 1.794-7.254 1.794-7.514Zm10.816 4.134c0-1.283-.338-2.297-1.014-3.042-.676-.745-1.62-1.178-2.834-1.3H24.52a14.24 14.24 0 0 0-1.69 0h-1.092c-.225.018-.381.095-.468.234-.034.07-.667 2.566-1.898 7.488-1.23 4.923-1.846 7.41-1.846 7.462 0 .07.096.113.286.13h2.002c1.404 0 2.193-.008 2.366-.026 1.647-.26 3.034-.953 4.16-2.08a7.868 7.868 0 0 0 1.534-2.184c.399-.832.772-1.933 1.118-3.302.347-1.37.52-2.496.52-3.38Z\"\n />\n </svg>\n );\n case \"E\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M30.55 18.3c0-.174.026-.52.078-1.04.052-.52.078-.85.078-.988 0-.763-.13-1.343-.39-1.742-.242-.399-.684-.676-1.326-.832-.572-.122-1.898-.182-3.978-.182-1.473.017-2.244.034-2.314.052a.478.478 0 0 0-.26.26 377.68 377.68 0 0 0-.832 3.198c-.52 2.08-.78 3.137-.78 3.172.399.017.815.026 1.248.026h.234c1.127 0 1.933-.07 2.418-.208.503-.156.893-.546 1.17-1.17.104-.19.234-.564.39-1.118a.577.577 0 0 0 .026-.182 1.3 1.3 0 0 0 .026-.156l.052-.104c.018-.035.044-.052.078-.052a.492.492 0 0 1 .156-.026 1.095 1.095 0 0 1 .468 0 .29.29 0 0 1 .13.026c.035.017.052.034.052.052.018 0 .035.026.052.078l.078.078-.858 3.432c-.572 2.305-.884 3.475-.936 3.51-.052.052-.19.078-.416.078-.225 0-.364-.026-.416-.078-.104-.052-.112-.26-.026-.624.122-.45.182-.84.182-1.17 0-.503-.173-.823-.52-.962-.312-.139-1.161-.208-2.548-.208h-1.352c-.104.364-.433 1.655-.988 3.874-.537 2.201-.806 3.32-.806 3.354 0 .07.096.113.286.13.208 0 .902.009 2.08.026 1.63 0 2.704-.017 3.224-.052a6.765 6.765 0 0 0 1.56-.338 4.382 4.382 0 0 0 2.106-1.456c.572-.693 1.188-1.829 1.846-3.406.174-.381.286-.59.338-.624.052-.035.174-.052.364-.052.208 0 .338.017.39.052.104.07.156.165.156.286-1.82 4.402-2.773 6.647-2.86 6.734-.052.035-2.53.052-7.436.052h-6.552c-.624-.017-.944-.06-.962-.13v-.026a.454.454 0 0 1-.052-.13c0-.035.026-.156.078-.364.07-.277.139-.434.208-.468.07-.052.269-.078.598-.078.468 0 .988-.026 1.56-.078.243-.052.408-.156.494-.312.035-.087.65-2.522 1.846-7.306 1.214-4.784 1.82-7.21 1.82-7.28 0-.121-.034-.182-.104-.182-.138-.052-.598-.096-1.378-.13h-.806a1.188 1.188 0 0 1-.182-.208c0-.052.026-.2.078-.442.07-.312.156-.494.26-.546h14.404c.122.121.182.216.182.286 0 .087-.112 1.066-.338 2.938-.225 1.854-.346 2.8-.364 2.834-.034.121-.208.182-.52.182h-.312c-.121-.104-.182-.19-.182-.26Z\"\n />\n </svg>\n );\n case \"F\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M18.456 29.948c-.485 0-1.118.008-1.898.026h-1.664c-.208 0-.338-.044-.39-.13a.454.454 0 0 1-.052-.13c0-.035.026-.156.078-.364.07-.277.14-.434.208-.468.07-.052.27-.078.598-.078.468 0 .988-.026 1.56-.078.243-.052.408-.156.494-.312.035-.087.65-2.522 1.846-7.306 1.214-4.784 1.82-7.21 1.82-7.28 0-.121-.034-.182-.104-.182-.138-.052-.598-.096-1.378-.13h-.806a1.188 1.188 0 0 1-.182-.208c0-.052.026-.2.078-.442.07-.312.156-.494.26-.546h14.014c.122.121.182.216.182.286 0 .087-.112 1.066-.338 2.938-.225 1.854-.346 2.8-.364 2.834-.034.121-.208.182-.52.182h-.312c-.12-.104-.182-.19-.182-.26v-.104a.677.677 0 0 0 .026-.208c.018-.087.026-.174.026-.26.07-.503.104-1.006.104-1.508 0-1.248-.398-2.037-1.196-2.366a3.938 3.938 0 0 0-1.274-.286c-.485-.035-1.473-.052-2.964-.052-1.386.017-2.114.034-2.184.052-.138.052-.225.13-.26.234-.017.017-.312 1.152-.884 3.406l-.832 3.354h1.43c1.04-.018 1.612-.035 1.716-.052.572-.104.988-.286 1.248-.546.364-.312.668-.936.91-1.872a2.488 2.488 0 0 0 .078-.312c0-.035.01-.07.026-.104.018-.052.035-.078.052-.078l.104-.052a.492.492 0 0 1 .156-.026h.52c.122.087.182.173.182.26 0 .052-.277 1.187-.832 3.406-.537 2.218-.823 3.363-.858 3.432-.034.121-.208.182-.52.182h-.312c-.104-.087-.164-.156-.182-.208-.017-.07.01-.226.078-.468.122-.485.182-.901.182-1.248 0-.52-.216-.84-.65-.962-.312-.104-1.04-.156-2.184-.156h-1.43l-.832 3.302c-.554 2.15-.832 3.276-.832 3.38 0 .104.052.173.156.208.208.104.928.156 2.158.156h.65c.104.104.156.182.156.234.018.035 0 .19-.052.468-.069.225-.156.39-.26.494h-.442c-.71-.035-2.019-.052-3.926-.052Z\"\n />\n </svg>\n );\n case \"G\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M20.152 30.572c-2.045 0-3.735-.641-5.07-1.924-1.334-1.3-2.002-3.033-2.002-5.2 0-2.08.65-4.1 1.95-6.058a13.533 13.533 0 0 1 2.886-3.172 11.882 11.882 0 0 1 3.796-2.054c1.023-.312 1.959-.468 2.808-.468.624 0 .988.009 1.092.026 1.04.173 1.916.607 2.626 1.3a8.215 8.215 0 0 1 .468.624c.087.104.139.156.156.156.052 0 .286-.225.702-.676.122-.104.252-.225.39-.364l.416-.416c.139-.156.226-.251.26-.286l.39-.39h.156c.243 0 .364.06.364.182 0 .07-.277 1.257-.832 3.562-.624 2.41-.936 3.623-.936 3.64a.38.38 0 0 1-.13.182c-.052.017-.208.026-.468.026h-.416l-.156-.156c0-.035.018-.19.052-.468.035-.347.052-.728.052-1.144 0-1.439-.32-2.565-.962-3.38-.624-.832-1.525-1.248-2.704-1.248-.918 0-1.915.217-2.99.65-1.733.728-3.12 1.941-4.16 3.64-1.022 1.681-1.69 3.71-2.002 6.084-.034.312-.052.65-.052 1.014 0 .988.174 1.846.52 2.574.815 1.577 2.297 2.427 4.446 2.548h.156c.936 0 1.794-.2 2.574-.598.78-.399 1.318-.91 1.612-1.534.052-.139.182-.615.39-1.43.208-.832.312-1.291.312-1.378 0-.139-.121-.225-.364-.26-.225-.035-.736-.06-1.534-.078h-.962a1.193 1.193 0 0 1-.182-.208c0-.035.026-.2.078-.494.07-.225.156-.39.26-.494h.442c.694.035 1.907.052 3.64.052h1.612a55.257 55.257 0 0 1 1.326-.026c.243 0 .364.07.364.208 0 .052-.017.182-.052.39a1.823 1.823 0 0 0-.052.208.796.796 0 0 1-.052.156c0 .017-.017.052-.052.104a.17.17 0 0 1-.078.078.714.714 0 0 0-.156.026h-.26c-.346 0-.702.026-1.066.078a.468.468 0 0 0-.286.286l-.104.338c-.052.225-.147.59-.286 1.092-.121.485-.234.919-.338 1.3a36.88 36.88 0 0 0-.156.65 76.37 76.37 0 0 0-.13.572 5.985 5.985 0 0 1-.13.442 3.75 3.75 0 0 1-.104.39 2.39 2.39 0 0 1-.078.286 4.933 4.933 0 0 1-.052.234.654.654 0 0 1-.078.156.299.299 0 0 1-.052.078c-.017.017-.043.026-.078.026-.052 0-.104-.026-.156-.078-.156-.087-.372-.277-.65-.572-.26-.312-.433-.555-.52-.728 0-.017-.017-.009-.052.026a1.191 1.191 0 0 0-.156.104c-.572.537-1.326.97-2.262 1.3a8.785 8.785 0 0 1-2.938.494Z\"\n />\n </svg>\n );\n case \"H\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M33.842 12.268c.19 0 .312.018.364.052.052.035.078.104.078.208s-.017.226-.052.364c-.087.295-.173.468-.26.52h-.182a.765.765 0 0 0-.182.026h-.468c-.919.018-1.447.078-1.586.182a.458.458 0 0 0-.182.182c-.052.087-.684 2.548-1.898 7.384-1.196 4.819-1.794 7.254-1.794 7.306 0 .121.035.182.104.182.139.052.607.096 1.404.13h.806c.087.122.13.2.13.234.018.017 0 .174-.052.468-.07.226-.156.39-.26.494h-.39c-.641-.035-1.803-.052-3.484-.052-.433 0-1.022.009-1.768.026h-1.612c-.294 0-.442-.07-.442-.208 0-.017.009-.07.026-.156.018-.104.035-.182.052-.234.087-.33.174-.511.26-.546.07-.017.2-.026.39-.026H23c.468 0 .988-.026 1.56-.078.243-.052.408-.156.494-.312.052-.087.364-1.265.936-3.536.572-2.27.858-3.432.858-3.484 0-.017-1.256-.026-3.77-.026h-3.77l-.858 3.51c-.59 2.323-.884 3.527-.884 3.614 0 .104.026.165.078.182.122.052.598.096 1.43.13h.806c.087.122.13.2.13.234.017.017 0 .174-.052.468-.07.226-.156.39-.26.494h-.39c-.641-.035-1.802-.052-3.484-.052-.433 0-1.022.009-1.768.026h-1.612c-.295 0-.442-.078-.442-.234 0-.034.026-.156.078-.364.087-.33.174-.511.26-.546.07-.017.2-.026.39-.026h.156c.468 0 .988-.026 1.56-.078.243-.052.408-.156.494-.312.052-.07.676-2.479 1.872-7.228 1.196-4.75 1.794-7.254 1.794-7.514 0-.017-.009-.035-.026-.052-.017-.034-.043-.052-.078-.052l-.104-.052a.363.363 0 0 0-.156-.026.765.765 0 0 0-.182-.026h-.442a.79.79 0 0 0-.234-.026h-.26c-.416 0-.667-.008-.754-.026a.238.238 0 0 1-.182-.156c-.034-.052-.026-.208.026-.468.07-.295.148-.468.234-.52.035-.017.182-.026.442-.026.71.035 1.89.052 3.536.052h1.716a78.756 78.756 0 0 1 1.612-.026c.226 0 .355.052.39.156.035.052.026.208-.026.468-.086.295-.173.468-.26.52h-.182a.765.765 0 0 0-.182.026h-.468c-.918.018-1.447.078-1.586.182a.458.458 0 0 0-.182.182c-.052.07-.33 1.136-.832 3.198-.121.45-.251.953-.39 1.508s-.242.962-.312 1.222l-.104.39c0 .035 1.257.052 3.77.052h3.77l.026-.078c0-.052.269-1.118.806-3.198.485-1.993.728-3.06.728-3.198 0-.034-.017-.07-.052-.104-.017-.034-.052-.06-.104-.078a.577.577 0 0 0-.182-.026.79.79 0 0 0-.234-.026h-.286a1.388 1.388 0 0 0-.312-.026h-.312c-.624 0-.936-.087-.936-.26 0-.364.052-.624.156-.78.052-.086.2-.13.442-.13.312 0 .832.009 1.56.026a75.373 75.373 0 0 0 3.874 0 77.95 77.95 0 0 1 1.508-.026Z\"\n />\n </svg>\n );\n case \"I\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M17.392 29.974c-.294 0-.442-.078-.442-.234 0-.034.026-.156.078-.364.087-.33.174-.511.26-.546.052-.017.182-.026.39-.026h.156c1.058 0 1.716-.06 1.976-.182.018 0 .035-.009.052-.026.087-.035.182-.234.286-.598.104-.364.53-2.063 1.274-5.096.208-.78.364-1.395.468-1.846 1.214-4.853 1.82-7.297 1.82-7.332a.458.458 0 0 1-.052-.13c-.173-.104-.788-.156-1.846-.156h-.52c-.104-.087-.164-.156-.182-.208-.017-.07.01-.216.078-.442.052-.26.113-.425.182-.494.052-.035.2-.052.442-.052 1.248.035 2.514.052 3.796.052h1.43c1.11 0 1.742-.017 1.898-.052h.26c.122.121.182.217.182.286 0 .07-.026.19-.078.364-.052.26-.112.425-.182.494-.052.035-.25.052-.598.052-.537 0-1.092.026-1.664.078-.225.052-.39.139-.494.26-.052.07-.39 1.326-1.014 3.77s-1.23 4.88-1.82 7.306l-.884 3.614c0 .139.061.217.182.234.174.052.65.087 1.43.104h.832c.087.122.13.2.13.234.018.017 0 .174-.052.468-.069.226-.156.39-.26.494h-.416c-.64-.035-1.828-.052-3.562-.052-.433 0-1.048.009-1.846.026h-1.69Z\"\n />\n </svg>\n );\n case \"J\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M26.411 13.75c0-.208-.806-.312-2.418-.312h-.65c-.104-.087-.165-.156-.182-.208-.017-.07.009-.234.078-.494.07-.225.156-.39.26-.494h.442c.71.035 1.976.052 3.796.052h1.716a64.884 64.884 0 0 1 1.43-.026c.19 0 .295.043.312.13.035.07.052.113.052.13 0 .035-.026.156-.078.364-.07.277-.139.442-.208.494-.052.035-.208.052-.468.052h-.234c-.763 0-1.196.121-1.3.364-.07.226-.607 2.366-1.612 6.422-1.092 4.299-1.647 6.457-1.664 6.474-.364 1.058-1.083 1.968-2.158 2.73-1.075.763-2.297 1.144-3.666 1.144-1.057 0-1.924-.26-2.6-.78-.659-.537-.988-1.23-.988-2.08 0-.607.173-1.127.52-1.56.364-.45.84-.676 1.43-.676.78 0 1.213.382 1.3 1.144 0 .503-.147.927-.442 1.274a1.783 1.783 0 0 1-1.092.65c-.139.035-.208.07-.208.104 0 .018.06.087.182.208.45.503 1.1.754 1.95.754.659 0 1.3-.286 1.924-.858.641-.59 1.1-1.3 1.378-2.132.07-.208.615-2.375 1.638-6.5 1.04-4.125 1.56-6.249 1.56-6.37Z\"\n />\n </svg>\n );\n case \"K\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M18.378 13.672c0-.017-.009-.035-.026-.052-.018-.034-.044-.052-.078-.052l-.104-.052a.363.363 0 0 0-.156-.026.766.766 0 0 0-.182-.026h-.442a.79.79 0 0 0-.234-.026h-.26c-.59 0-.91-.06-.962-.182-.018-.052 0-.2.052-.442.086-.312.164-.494.234-.546.034-.017.182-.026.442-.026.71.035 1.889.052 3.536.052h1.716a78.746 78.746 0 0 1 1.612-.026c.294 0 .442.07.442.208 0 .087-.026.208-.078.364-.087.347-.165.529-.234.546-.07.035-.347.052-.832.052-.936.018-1.474.078-1.612.182a.457.457 0 0 0-.182.182l-2.106 8.268c.017 0 1.612-1.248 4.784-3.744 3.189-2.496 4.818-3.779 4.888-3.848.242-.242.364-.442.364-.598 0-.26-.217-.407-.65-.442-.278 0-.416-.095-.416-.286 0-.034.026-.156.078-.364a4.2 4.2 0 0 1 .13-.39c.052-.086.199-.13.442-.13.277 0 .736.009 1.378.026.658.018 1.196.026 1.612.026.936 0 1.577-.017 1.924-.052.26-.017.424-.009.494.026.086.018.13.095.13.234 0 .07-.035.217-.104.442-.052.208-.087.32-.104.338-.052.087-.217.13-.494.13a6.474 6.474 0 0 0-3.536 1.326l-.312.208c-.035.018-.928.71-2.678 2.08a486.183 486.183 0 0 0-2.652 2.08l.234.572c.156.381.398.962.728 1.742.329.78.632 1.517.91 2.21 1.3 3.068 1.993 4.654 2.08 4.758.034.035.078.07.13.104.242.174.684.269 1.326.286h.546c.086.122.13.2.13.234.017.017 0 .174-.052.468-.07.226-.156.39-.26.494h-.286a33.632 33.632 0 0 0-2.47-.078c-2.063 0-3.25.026-3.562.078h-.26a1.188 1.188 0 0 1-.182-.208c0-.052.026-.216.078-.494.052-.208.112-.346.182-.416.052-.052.164-.078.338-.078.866 0 1.3-.216 1.3-.65 0-.087-.512-1.343-1.534-3.77l-1.508-3.588-1.768 1.378-1.768 1.378-.598 2.418c-.399 1.595-.598 2.436-.598 2.522 0 .104.026.165.078.182.121.052.598.096 1.43.13h.806c.104.156.156.252.156.286 0 .277-.061.538-.182.78-.087.087-.226.13-.416.13-.295 0-.824-.009-1.586-.026a86.31 86.31 0 0 0-1.976-.026 83.8 83.8 0 0 0-1.924.026h-1.482c-.226 0-.364-.043-.416-.13a.455.455 0 0 1-.052-.13c0-.034.026-.156.078-.364.069-.277.138-.433.208-.468.069-.052.268-.078.598-.078.468 0 .988-.026 1.56-.078.242-.052.407-.156.494-.312.052-.07.676-2.479 1.872-7.228 1.196-4.75 1.794-7.254 1.794-7.514Z\"\n />\n </svg>\n );\n case \"L\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M20.561 13.672c0-.017-.008-.035-.026-.052-.017-.034-.043-.052-.078-.052l-.104-.052a.363.363 0 0 0-.156-.026.765.765 0 0 0-.182-.026h-.442a.79.79 0 0 0-.234-.026h-.26c-.416 0-.667-.008-.754-.026a.238.238 0 0 1-.182-.156c-.034-.052-.026-.208.026-.468.087-.33.165-.502.234-.52.052-.017.182-.026.39-.026a60.53 60.53 0 0 0 3.302.078h1.04c.451-.017.78-.026.988-.026h.936c.382-.017.668-.026.858-.026.208-.017.338-.026.39-.026h.312c.104.104.156.182.156.234.018.035 0 .19-.052.468-.069.243-.147.407-.234.494h-.988c-1.196.018-1.898.095-2.106.234-.12.07-.242.32-.364.754-.12.416-.702 2.696-1.742 6.838a996.167 996.167 0 0 1-1.586 6.448l-.234.936c0 .07.078.113.234.13.156 0 .668.009 1.534.026 1.3 0 2.22-.043 2.756-.13.555-.087 1.162-.32 1.82-.702a4.712 4.712 0 0 0 1.664-1.586c.434-.676.858-1.569 1.274-2.678.122-.346.217-.59.286-.728.087-.052.234-.078.442-.078h.338c.104.156.156.252.156.286 0 .035-.182.546-.546 1.534-.346.988-.719 2.037-1.118 3.146a63.854 63.854 0 0 0-.676 1.898c-.052.104-.095.165-.13.182-.052.035-2.288.052-6.708.052s-6.656-.017-6.708-.052a.247.247 0 0 1-.104-.208c0-.121.018-.242.052-.364.087-.33.174-.511.26-.546.07-.017.2-.026.39-.026h.156c.468 0 .988-.026 1.56-.078.243-.052.408-.156.494-.312.052-.07.676-2.479 1.872-7.228 1.196-4.75 1.794-7.254 1.794-7.514Z\"\n />\n </svg>\n );\n case \"M\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M16.335 30c-.242 0-.667-.009-1.274-.026a54.61 54.61 0 0 0-1.585-.026c-1.249 0-2.02.009-2.315.026-.415.017-.65.009-.701-.026-.105-.035-.157-.113-.157-.234 0-.034.026-.156.079-.364a4.2 4.2 0 0 1 .13-.39c.034-.104.225-.156.572-.156 1.248-.07 2.019-.416 2.314-1.04.069-.104.667-2.427 1.793-6.968 1.144-4.558 1.716-6.942 1.716-7.15 0-.07-.026-.104-.078-.104h-.052c-.173-.052-.623-.086-1.352-.104-.433 0-.693-.008-.78-.026a.314.314 0 0 1-.181-.182c-.018-.07-.01-.19.025-.364.104-.346.182-.537.234-.572.052-.035.936-.052 2.652-.052 1.37 0 2.159.009 2.366.026.226 0 .364.035.416.104.018.07.338 2.514.962 7.332.625 4.802.936 7.22.936 7.254 0 .018.105-.13.313-.442.208-.33.485-.771.832-1.326l1.222-1.924c.468-.728.953-1.49 1.456-2.288.502-.815 1.005-1.62 1.508-2.418l1.43-2.314c.468-.728.875-1.37 1.222-1.924.363-.572.65-1.031.857-1.378l.313-.494.078-.078a.785.785 0 0 0 .104-.078l.155-.052h2.496c1.665 0 2.523.017 2.575.052a.247.247 0 0 1 .103.208c0 .052-.026.19-.078.416a2.99 2.99 0 0 0-.078.364c-.069.104-.39.156-.962.156-.935.018-1.473.078-1.611.182a.457.457 0 0 0-.183.182c-.052.087-.684 2.54-1.898 7.358-1.195 4.819-1.793 7.254-1.793 7.306 0 .121.026.19.078.208.12.052.598.096 1.43.13h.805c.104.156.157.252.157.286 0 .277-.061.538-.182.78-.087.087-.226.13-.417.13-.294 0-.805-.009-1.534-.026a82.147 82.147 0 0 0-1.924-.026c-.537 0-1.16.009-1.872.026h-1.43c-.225 0-.364-.043-.416-.13-.034-.052-.026-.216.026-.494.07-.277.14-.433.209-.468.069-.052.268-.078.598-.078.468 0 .988-.026 1.56-.078.242-.052.407-.156.494-.312.034-.07.363-1.335.988-3.796.623-2.478 1.239-4.931 1.846-7.358.606-2.427.91-3.649.91-3.666-1.526 2.41-3.207 5.088-5.044 8.034l-5.122 8.138c-.157.156-.364.234-.625.234-.26 0-.416-.06-.468-.182-.052-.087-.39-2.565-1.014-7.436-.606-4.87-.962-7.74-1.066-8.606-2.34 9.273-3.51 13.997-3.51 14.17.104.572.729.858 1.872.858h.26c.104.087.165.165.182.234.018.07-.008.226-.078.468-.069.277-.138.433-.207.468-.07.017-.165.026-.287.026Z\"\n />\n </svg>\n );\n case \"N\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M12.76 29.974c-.26 0-.39-.078-.39-.234 0-.052.026-.19.078-.416.07-.225.113-.347.13-.364.035-.104.234-.156.598-.156 1.179-.052 1.942-.39 2.288-1.014.087-.156 1.292-4.914 3.614-14.274-.034-.017-.511-.043-1.43-.078-.52 0-.832-.008-.936-.026a.184.184 0 0 1-.156-.156c-.034-.052-.026-.208.026-.468.087-.312.165-.485.234-.52.035-.017.876-.026 2.522-.026 1.335 0 2.098.009 2.288.026.208 0 .33.043.364.13l1.378 3.25c.919 2.167 1.846 4.35 2.782 6.552.936 2.201 1.413 3.346 1.43 3.432l1.404-5.538c.919-3.657 1.378-5.607 1.378-5.85 0-.45-.554-.72-1.664-.806-.364 0-.563-.06-.598-.182-.034-.052-.026-.19.026-.416.018-.052.035-.113.052-.182a.713.713 0 0 0 .026-.156.299.299 0 0 1 .078-.182l.052-.052a.11.11 0 0 1 .078-.026h.13c.243 0 .676.017 1.3.052a62.89 62.89 0 0 0 1.664.026c.451 0 .962-.008 1.534-.026.59-.017.997-.026 1.222-.026.26 0 .39.087.39.26 0 .07-.034.217-.104.442-.052.208-.086.32-.104.338-.034.087-.225.13-.572.13-1.23.052-2.002.399-2.314 1.04l-3.874 15.34c-.034.121-.216.182-.546.182-.242 0-.39-.017-.442-.052L20.04 14.296c-2.253 9.03-3.38 13.58-3.38 13.65.104.572.728.858 1.872.858h.26c.104.087.165.165.182.234.018.052-.008.208-.078.468-.069.226-.156.39-.26.494h-.338c-.537-.035-1.473-.052-2.808-.052-.346 0-.823.009-1.43.026h-1.3Z\"\n />\n </svg>\n );\n case \"O\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M24.019 11.696h.442c.659 0 1.075.008 1.248.026 1.699.242 3.06.988 4.082 2.236 1.023 1.248 1.534 2.825 1.534 4.732 0 2.34-.754 4.558-2.262 6.656-.988 1.421-2.184 2.574-3.588 3.458-1.82 1.179-3.649 1.768-5.486 1.768-1.855 0-3.397-.59-4.628-1.768-1.317-1.283-1.976-2.999-1.976-5.148 0-.607.009-.997.026-1.17.312-2.375 1.317-4.559 3.016-6.552a16.549 16.549 0 0 1 1.56-1.56c1.924-1.595 3.935-2.488 6.032-2.678Zm4.628 5.928c0-1.317-.303-2.4-.91-3.25-.59-.85-1.413-1.378-2.47-1.586a3.627 3.627 0 0 0-.806-.078 3.99 3.99 0 0 0-.962.104c-1.075.19-2.089.676-3.042 1.456-.399.312-.875.789-1.43 1.43-.797 1.023-1.473 2.34-2.028 3.952-.555 1.595-.832 3.172-.832 4.732 0 1.248.243 2.305.728 3.172.503.866 1.196 1.447 2.08 1.742.45.139.875.208 1.274.208 1.057 0 2.097-.33 3.12-.988 2.063-1.352 3.57-3.57 4.524-6.656.503-1.647.754-3.06.754-4.238Z\"\n />\n </svg>\n );\n case \"P\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M21.121 13.672c0-.017-.009-.035-.026-.052-.017-.034-.043-.052-.078-.052l-.104-.052a.363.363 0 0 0-.156-.026.765.765 0 0 0-.182-.026h-.442a.79.79 0 0 0-.234-.026h-.26c-.433 0-.693-.008-.78-.026a.314.314 0 0 1-.182-.182c-.017-.07-.009-.19.026-.364.104-.346.182-.537.234-.572.052-.035 1.733-.052 5.044-.052 3.293.017 5.053.043 5.278.078 1.023.173 1.872.537 2.548 1.092.693.537 1.144 1.248 1.352 2.132.017.104.026.33.026.676 0 .434-.017.72-.052.858-.208.988-.763 1.924-1.664 2.808-1.196 1.179-2.739 1.924-4.628 2.236-.121.018-1.031.035-2.73.052h-2.47l-.78 3.094c-.52 2.01-.78 3.077-.78 3.198s.026.19.078.208c.121.052.598.096 1.43.13h.806c.104.156.156.252.156.286 0 .277-.06.538-.182.78-.087.087-.225.13-.416.13-.295 0-.823-.009-1.586-.026a86.304 86.304 0 0 0-1.976-.026 83.8 83.8 0 0 0-1.924.026h-1.482c-.225 0-.364-.043-.416-.13a.455.455 0 0 1-.052-.13c0-.034.026-.156.078-.364.07-.277.139-.433.208-.468.07-.052.269-.078.598-.078.468 0 .988-.026 1.56-.078.243-.052.407-.156.494-.312.052-.07.676-2.479 1.872-7.228 1.196-4.75 1.794-7.254 1.794-7.514Zm9.308 1.924c0-.659-.19-1.135-.572-1.43-.381-.312-.927-.537-1.638-.676-.121-.017-.815-.034-2.08-.052-.295 0-.598.009-.91.026h-1.066c-.225.018-.381.095-.468.234a79.01 79.01 0 0 0-.52 2.002c-.295 1.23-.59 2.427-.884 3.588-.295 1.162-.45 1.75-.468 1.768 0 .035.702.052 2.106.052 1.456-.017 2.253-.035 2.392-.052 1.161-.173 2.054-.59 2.678-1.248.468-.468.858-1.308 1.17-2.522.173-.71.26-1.274.26-1.69Z\"\n />\n </svg>\n );\n case \"Q\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M22.09 32.08c0-.19.01-.511.027-.962.034-.433.052-.71.052-.832v-.104l-.39.104c-.797.19-1.526.286-2.184.286-1.837 0-3.371-.59-4.602-1.768-1.318-1.283-1.976-2.999-1.976-5.148 0-.607.008-.997.026-1.17.312-2.375 1.317-4.559 3.016-6.552a16.573 16.573 0 0 1 1.56-1.56c1.924-1.595 3.934-2.488 6.032-2.678h.442c.659 0 1.075.008 1.248.026 1.698.242 3.06.988 4.082 2.236 1.023 1.248 1.534 2.825 1.534 4.732 0 2.322-.72 4.498-2.158 6.526-1.439 2.01-3.137 3.466-5.096 4.368l-.442.208v.13a.2.2 0 0 0 .026.078.489.489 0 0 1 .026.156c.017.07.035.13.052.182.156.676.355 1.144.598 1.404.242.26.633.39 1.17.39a2.86 2.86 0 0 0 1.794-.624c.537-.399.884-.875 1.04-1.43.104-.243.216-.364.338-.364.156 0 .251.078.286.234 0 .104-.06.355-.182.754-.71 2.097-1.673 3.45-2.886 4.056-.433.19-.867.286-1.3.286-.797 0-1.352-.26-1.664-.78-.312-.503-.468-1.23-.468-2.184Zm-1.351-6.11c.624 0 1.135.225 1.534.676.416.45.667 1.092.754 1.924l.338-.234c1.335-.919 2.41-2.193 3.224-3.822.832-1.63 1.378-3.484 1.638-5.564.017-.174.026-.546.026-1.118 0-2.028-.59-3.476-1.768-4.342-.676-.52-1.465-.78-2.366-.78-.832 0-1.681.216-2.548.65-1.56.763-2.86 2.054-3.9 3.874-1.04 1.802-1.69 3.83-1.95 6.084-.018.19-.026.546-.026 1.066 0 1.802.468 3.163 1.404 4.082.416.364.667.546.754.546v-.208c0-.78.303-1.447.91-2.002.624-.555 1.282-.832 1.976-.832Zm-.858 3.562a5.38 5.38 0 0 0 2.34-.546l-.026-.26c-.07-.953-.39-1.525-.962-1.716a3.178 3.178 0 0 0-.494-.052h-.156a.426.426 0 0 0-.104-.026c-.07 0-.182.026-.338.078a1.88 1.88 0 0 0-.91.624c-.26.294-.39.633-.39 1.014 0 .59.346.884 1.04.884Z\"\n />\n </svg>\n );\n case \"R\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M19.598 13.672c0-.017-.009-.035-.026-.052-.018-.034-.044-.052-.078-.052l-.104-.052a.363.363 0 0 0-.156-.026.766.766 0 0 0-.182-.026h-.442a.79.79 0 0 0-.234-.026h-.26c-.416 0-.668-.008-.754-.026a.237.237 0 0 1-.182-.156c-.035-.052-.026-.208.026-.468.086-.312.164-.485.234-.52.034-.017 1.542-.026 4.524-.026 2.981.017 4.593.043 4.836.078 1.577.226 2.773.763 3.588 1.612.641.694.962 1.465.962 2.314 0 .174-.035.434-.104.78-.399 1.543-1.673 2.79-3.822 3.744-.763.295-1.196.442-1.3.442l.182.13c1.161.659 1.742 1.612 1.742 2.86 0 .208-.044.763-.13 1.664a20.47 20.47 0 0 0-.13 2.054c0 .607.06 1.04.182 1.3.121.243.39.364.806.364.242 0 .398-.017.468-.052.658-.26 1.126-.84 1.404-1.742.086-.242.156-.39.208-.442.052-.052.182-.078.39-.078.346 0 .52.104.52.312 0 .312-.208.806-.624 1.482-.52.763-1.127 1.24-1.82 1.43-.139.035-.39.052-.754.052-1.803 0-2.973-.546-3.51-1.638-.156-.277-.243-.624-.26-1.04v-.442l.052-.39c.017-.139.034-.242.052-.312.017-.07.06-.216.13-.442a6.33 6.33 0 0 0 .156-.598c.26-.988.39-1.62.39-1.898 0-.867-.373-1.508-1.118-1.924-.26-.121-.477-.19-.65-.208-.174-.017-.789-.035-1.846-.052H20.17l-.832 3.38c-.572 2.288-.858 3.45-.858 3.484 0 .121.026.19.078.208.121.052.598.096 1.43.13h.806c.086.122.13.2.13.234.017.017 0 .174-.052.468-.07.226-.156.39-.26.494h-.39c-.624-.035-1.76-.052-3.406-.052-.416 0-.997.009-1.742.026h-1.638c-.295 0-.442-.078-.442-.234 0-.034.026-.156.078-.364.086-.33.173-.511.26-.546.069-.017.199-.026.39-.026h.156c.468 0 .988-.026 1.56-.078.242-.052.407-.156.494-.312.052-.07.676-2.479 1.872-7.228 1.196-4.75 1.794-7.254 1.794-7.514Zm8.502.676c-.364-.381-.841-.624-1.43-.728-.59-.121-1.43-.182-2.522-.182a8.5 8.5 0 0 0-.65.026h-.858c-.226.018-.382.095-.468.234-.018.052-.312 1.213-.884 3.484-.572 2.254-.858 3.398-.858 3.432 0 .017.598.026 1.794.026 1.352-.017 2.253-.078 2.704-.182 1.126-.19 1.993-.702 2.6-1.534.277-.398.511-.918.702-1.56.19-.659.286-1.248.286-1.768 0-.537-.139-.953-.416-1.248Z\"\n />\n </svg>\n );\n case \"S\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M28.405 16.48c0-1.179-.303-2.089-.91-2.73-.589-.641-1.447-.962-2.574-.962-.953 0-1.872.39-2.756 1.17-.866.78-1.3 1.707-1.3 2.782 0 .537.13.997.39 1.378.278.381.633.641 1.066.78.052.035.65.208 1.794.52a99.54 99.54 0 0 0 1.768.442c.26.07.59.243.988.52 1.04.745 1.56 1.855 1.56 3.328 0 .45-.069.936-.208 1.456a4.94 4.94 0 0 1-.52 1.43c-1.074 2.132-2.756 3.44-5.044 3.926a5.719 5.719 0 0 1-.884.052c-1.716 0-3.05-.477-4.004-1.43l-.26-.286-.728.806c-.485.537-.754.823-.806.858-.052.035-.138.052-.26.052-.225 0-.338-.07-.338-.208 0-.052.503-2.089 1.508-6.11.035-.104.208-.156.52-.156h.338c.087.087.13.147.13.182.018.017.01.156-.026.416a6.79 6.79 0 0 0-.13 1.326c.07 1.127.477 1.967 1.222 2.522.763.555 1.794.832 3.094.832.174 0 .382-.017.624-.052.815-.19 1.543-.624 2.184-1.3.66-.676 1.075-1.456 1.248-2.34.035-.139.052-.407.052-.806 0-1.11-.45-1.863-1.352-2.262-.104-.017-.728-.173-1.872-.468-1.144-.312-1.742-.485-1.794-.52a3.428 3.428 0 0 1-1.846-1.3c-.45-.659-.676-1.439-.676-2.34 0-.867.243-1.76.728-2.678.503-.936 1.101-1.655 1.794-2.158.884-.763 1.95-1.24 3.198-1.43.07-.017.165-.026.286-.026h.286c1.803 0 3.068.555 3.796 1.664l1.534-1.664h.104a.429.429 0 0 1 .13-.026c.226 0 .338.06.338.182 0 .121-.25 1.179-.754 3.172-.485 1.976-.754 2.99-.806 3.042-.052.052-.19.078-.416.078-.346 0-.52-.078-.52-.234 0-.104.01-.19.026-.26 0-.087.01-.269.026-.546a6.19 6.19 0 0 0 .052-.624Z\"\n />\n </svg>\n );\n case \"T\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M25.198 30c-.468 0-1.248-.009-2.34-.026a165.36 165.36 0 0 0-2.522-.026c-2.236 0-3.657.017-4.264.052h-.39a1.192 1.192 0 0 1-.182-.208c0-.052.026-.217.078-.494.07-.225.156-.39.26-.494h.728c1.04 0 1.742-.026 2.106-.078.295-.017.511-.07.65-.156.017-.017.035-.026.052-.026.087-.052.173-.225.26-.52.087-.312.433-1.673 1.04-4.082.295-1.179.537-2.14.728-2.886 1.213-4.767 1.82-7.202 1.82-7.306 0-.087-.251-.13-.754-.13h-.806c-1.161 0-1.924.052-2.288.156-.745.156-1.309.46-1.69.91-.468.52-.98 1.577-1.534 3.172-.121.381-.208.607-.26.676-.052.07-.173.104-.364.104h-.078c-.225 0-.364-.026-.416-.078-.052-.052-.078-.095-.078-.13 0-.104.26-.936.78-2.496a74.24 74.24 0 0 1 .962-2.86c.104-.33.217-.555.338-.676h12.168c2.323 0 3.484.043 3.484.13v.026l.026.026v.078c0 .104-.156 1.092-.468 2.964-.295 1.872-.45 2.817-.468 2.834 0 .052-.035.095-.104.13-.035.035-.165.052-.39.052h-.26a.424.424 0 0 0-.104-.026l-.078-.078a.781.781 0 0 0-.078-.104c0-.121.026-.355.078-.702.156-.936.234-1.62.234-2.054 0-.399-.052-.728-.156-.988-.104-.26-.225-.46-.364-.598-.121-.139-.355-.243-.702-.312a6.478 6.478 0 0 0-.858-.13 33.843 33.843 0 0 0-1.196-.052c-.797 0-1.309.017-1.534.052-.208.017-.355.078-.442.182-.017.017-.633 2.444-1.846 7.28-1.213 4.819-1.82 7.263-1.82 7.332 0 .121.113.2.338.234.243.07.893.113 1.95.13.59 0 .936.009 1.04.026.121.017.2.07.234.156.017.052 0 .2-.052.442-.07.312-.147.494-.234.546L25.38 30h-.182Z\"\n />\n </svg>\n );\n case \"U\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M17.078 26.36c0 .954.26 1.699.78 2.236.537.52 1.291.78 2.262.78 1.421 0 2.67-.46 3.744-1.378 1.092-.919 1.855-2.028 2.288-3.328 1.699-6.777 2.548-10.253 2.548-10.426 0-.45-.555-.72-1.664-.806-.364 0-.563-.06-.598-.182-.035-.052-.026-.19.026-.416.017-.052.035-.113.052-.182a.706.706 0 0 0 .026-.156.304.304 0 0 1 .078-.182l.052-.052c.017-.017.043-.026.078-.026h.13c.26 0 .71.017 1.352.052a51.568 51.568 0 0 0 3.224 0c.59-.017.997-.026 1.222-.026.26 0 .39.087.39.26 0 .07-.035.217-.104.442-.052.208-.087.32-.104.338-.052.087-.243.13-.572.13-1.23.052-2.002.399-2.314 1.04-.035.087-.468 1.76-1.3 5.018-.71 2.93-1.144 4.654-1.3 5.174-.52 1.543-1.465 2.912-2.834 4.108-1.37 1.196-2.895 1.794-4.576 1.794-1.404 0-2.583-.398-3.536-1.196-.953-.797-1.525-1.837-1.716-3.12a4.412 4.412 0 0 1-.026-.598c0-.399.017-.754.052-1.066.035-.156.269-1.118.702-2.886.45-1.785.884-3.536 1.3-5.252.433-1.716.65-2.643.65-2.782 0-.121-.494-.2-1.482-.234-.416 0-.667-.008-.754-.026a.238.238 0 0 1-.182-.156c-.035-.052-.026-.208.026-.468.07-.295.147-.468.234-.52.035-.017.182-.026.442-.026.71.035 1.89.052 3.536.052h1.716a78.767 78.767 0 0 1 1.612-.026c.225 0 .355.052.39.156.035.052.026.208-.026.468-.087.295-.173.468-.26.52h-.182a.766.766 0 0 0-.182.026h-.468c-.919.018-1.447.078-1.586.182a.458.458 0 0 0-.182.182c-.017.035-.26.954-.728 2.756a431.596 431.596 0 0 0-1.43 5.616c-.468 1.942-.72 3.085-.754 3.432a5.338 5.338 0 0 0-.052.754Z\"\n />\n </svg>\n );\n case \"V\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M15.955 13.438c-.121-.121-.182-.216-.182-.286 0-.138.043-.312.13-.52.087-.208.156-.338.208-.39h.286c.728.052 1.638.078 2.73.078 2.045 0 3.25-.026 3.614-.078H23c.104.104.156.182.156.234.017.035 0 .19-.052.468-.07.243-.147.407-.234.494h-.546c-.381.035-.641.052-.78.052-.503.087-.78.217-.832.39 0 .035.251 2.219.754 6.552.503 4.316.763 6.483.78 6.5l1.898-3.042a950.553 950.553 0 0 0 3.796-6.136 279.681 279.681 0 0 0 1.95-3.198c.087-.173.13-.303.13-.39 0-.399-.39-.641-1.17-.728-.33 0-.494-.087-.494-.26 0-.087.026-.208.078-.364.052-.242.104-.399.156-.468.052-.07.165-.104.338-.104.295 0 .763.009 1.404.026.659.018 1.144.026 1.456.026 1.196 0 1.95-.017 2.262-.052h.182c.121.121.182.217.182.286 0 .312-.078.59-.234.832-.052.052-.2.078-.442.078-.936.052-1.681.33-2.236.832l-.182.182c-.07.087-.113.139-.13.156a.99.99 0 0 1-.182.26c-6.379 10.348-9.62 15.548-9.724 15.6l-.13.078-.468.026c-.312 0-.494-.017-.546-.052-.07-.035-.104-.078-.104-.13-.052-.104-.39-2.877-1.014-8.32-.659-5.512-.997-8.294-1.014-8.346-.104-.19-.546-.286-1.326-.286h-.728Z\"\n />\n </svg>\n );\n case \"W\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M11.232 13.438c-.122-.121-.182-.216-.182-.286 0-.381.112-.684.338-.91h.312a37.18 37.18 0 0 0 2.6.078h.832c.38-.017.667-.026.858-.026h.806c.329-.017.58-.026.754-.026.173-.017.277-.026.312-.026h.26c.104.104.156.182.156.234.017.035 0 .19-.052.468-.07.243-.148.407-.234.494h-.546c-.503.018-.92.07-1.248.156-.26.104-.408.2-.442.286 0 .121.138 2.219.416 6.292.294 4.073.45 6.17.468 6.292 2.704-4.784 4.74-8.372 6.11-10.764l-.052-.962c-.052-.728-.14-1.118-.26-1.17-.104-.07-.468-.112-1.092-.13-.486 0-.746-.06-.78-.182-.035-.052-.026-.19.026-.416.086-.347.164-.537.234-.572.052-.017.32-.017.806 0 .589.035 1.412.052 2.47.052.502 0 1.092-.008 1.768-.026a68.319 68.319 0 0 1 1.456-.026c.294 0 .442.06.442.182 0 .07-.026.226-.078.468-.052.226-.087.347-.104.364-.035.104-.26.156-.676.156-.902.035-1.44.165-1.612.39-.052.052-.07.113-.052.182 0 .208.138 2.28.416 6.214.277 3.918.416 5.98.416 6.188l.052-.078a5.08 5.08 0 0 0 .156-.26c.086-.139.19-.303.312-.494.12-.208.268-.468.442-.78.19-.312.398-.667.624-1.066.225-.399.485-.867.78-1.404l1.014-1.742c2.236-3.934 3.37-5.954 3.406-6.058a.828.828 0 0 0 .052-.234c0-.277-.174-.485-.52-.624a2.459 2.459 0 0 0-1.066-.234c-.243 0-.364-.087-.364-.26 0-.052.017-.165.052-.338a.577.577 0 0 0 .026-.182.713.713 0 0 0 .026-.156l.052-.104a.17.17 0 0 1 .078-.078.29.29 0 0 1 .13-.026.677.677 0 0 1 .208-.026c.312 0 .788.009 1.43.026h1.43c1.144 0 1.88-.017 2.21-.052.242 0 .364.095.364.286 0 .104-.035.26-.104.468-.07.208-.122.33-.156.364-.052.052-.14.078-.26.078-1.092 0-1.933.407-2.522 1.222-.122.19-.191.295-.208.312l-4.394 7.696c-2.912 5.13-4.377 7.705-4.394 7.722-.104.122-.312.182-.624.182-.26 0-.425-.043-.494-.13-.052-.052-.226-2.184-.52-6.396-.278-4.23-.416-6.404-.416-6.526l-.312.468c-.382.642-1.491 2.574-3.328 5.798a403.24 403.24 0 0 1-1.794 3.146l-1.43 2.548c-.312.537-.477.815-.494.832-.104.173-.33.26-.676.26-.33 0-.512-.06-.546-.182 0-.052-.191-2.817-.572-8.294-.382-5.494-.581-8.25-.598-8.268-.035-.156-.122-.251-.26-.286-.14-.052-.477-.086-1.014-.104h-.624Z\"\n />\n </svg>\n );\n case \"X\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M12.326 30c-.277 0-.416-.095-.416-.286 0-.07.026-.208.078-.416.07-.242.13-.381.182-.416.052-.035.217-.06.494-.078 1.491-.052 2.661-.502 3.51-1.352.174-.173 1.18-1.265 3.016-3.276 1.838-2.028 2.748-3.05 2.73-3.068-1.889-4.819-2.877-7.271-2.964-7.358-.156-.19-.702-.294-1.638-.312h-.728a1.188 1.188 0 0 1-.182-.208c0-.052.026-.216.078-.494.07-.225.156-.39.26-.494h.364c.59.035 1.638.052 3.146.052h1.664a75.269 75.269 0 0 1 1.612-.026c.174 0 .286.018.338.052.052.018.078.078.078.182 0 .416-.06.685-.182.806-.034.087-.182.13-.442.13-.658.07-1.109.208-1.352.416l-.052.026c.78 1.907 1.448 3.588 2.002 5.044L25.3 17.39c.815-.884 1.456-1.595 1.924-2.132.382-.398.616-.667.702-.806a.625.625 0 0 0 .104-.416c-.052-.26-.26-.442-.624-.546a1.45 1.45 0 0 1-.338-.052c-.156 0-.268-.035-.338-.104-.069-.07-.069-.268 0-.598.07-.225.156-.39.26-.494h.312c.4.052 1.44.078 3.12.078 1.508 0 2.366-.026 2.574-.078h.208c.122.121.182.217.182.286 0 .139-.043.312-.13.52-.069.208-.13.338-.182.39h-.416c-1.334.052-2.426.425-3.276 1.118-.156.156-.25.243-.286.26a.465.465 0 0 1-.13.13c-.069.07-.849.928-2.34 2.574l-2.262 2.496c0 .018.27.72.806 2.106.555 1.37 1.118 2.765 1.69 4.186.572 1.422.893 2.167.962 2.236.174.156.702.243 1.586.26.607 0 .91.07.91.208 0 .19-.06.468-.182.832-.052.087-.19.13-.416.13h-1.378a68.88 68.88 0 0 0-1.794-.026c-.52 0-1.135.009-1.846.026H23.22c-.225 0-.364-.043-.416-.13-.034-.052-.026-.216.026-.494.07-.26.13-.407.182-.442.052-.052.182-.087.39-.104.312-.017.642-.086.988-.208.295-.139.442-.225.442-.26-.017 0-.424-1.014-1.222-3.042l-1.222-3.068c-.017 0-.84.902-2.47 2.704-1.612 1.785-2.426 2.695-2.444 2.73a.647.647 0 0 0-.208.468c0 .33.252.546.754.65.018 0 .07.009.156.026h.156c.208 0 .312.087.312.26 0 .104-.026.252-.078.442-.052.226-.104.364-.156.416-.052.035-.182.052-.39.052h-1.534a68.47 68.47 0 0 0-1.56-.026c-1.352 0-2.218.017-2.6.052Z\"\n />\n </svg>\n );\n case \"Y\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M29.994 12.294a40.338 40.338 0 0 0 2.912 0c.503-.035.85-.052 1.04-.052.226 0 .338.087.338.26 0 .052-.034.19-.104.416-.052.226-.086.347-.104.364-.034.104-.216.156-.546.156-1.248.087-2.262.52-3.042 1.3-.156.156-1.369 1.569-3.64 4.238l-3.354 3.926-.676 2.704c-.468 1.855-.702 2.825-.702 2.912 0 .19.59.286 1.768.286.295 0 .477.018.546.052.087.017.13.087.13.208 0 .364-.052.624-.156.78-.052.087-.199.13-.442.13h-1.56a82.14 82.14 0 0 0-1.924-.026c-.554 0-1.187.009-1.898.026h-1.482c-.294 0-.442-.06-.442-.182 0-.07.026-.216.078-.442.052-.242.087-.373.104-.39.035-.104.356-.156.962-.156.676-.017 1.118-.052 1.326-.104.226-.052.382-.165.468-.338.052-.086.304-1.022.754-2.808l.65-2.678c-.71-2.028-1.776-5.053-3.198-9.074a.973.973 0 0 0-.494-.286c-.156-.034-.537-.06-1.144-.078-.624 0-.936-.087-.936-.26 0-.035.026-.156.078-.364.07-.312.148-.494.234-.546.035-.017.156-.026.364-.026a45.9 45.9 0 0 0 2.834.078c2.115 0 3.337-.026 3.666-.078h.26c.104.104.156.182.156.234.018.035 0 .19-.052.468-.069.225-.156.39-.26.494h-.312c-.97 0-1.456.113-1.456.338 0 .087.434 1.37 1.3 3.848.867 2.462 1.309 3.7 1.326 3.718l.078-.078c.07-.07.174-.182.312-.338.139-.173.321-.381.546-.624.226-.26.503-.58.832-.962.33-.381.702-.823 1.118-1.326 1.855-2.166 2.843-3.336 2.964-3.51.156-.225.234-.416.234-.572 0-.277-.277-.442-.832-.494-.294 0-.442-.087-.442-.26 0-.035.018-.156.052-.364.052-.26.096-.416.13-.468.052-.07.174-.104.364-.104.243 0 .668.017 1.274.052Z\"\n />\n </svg>\n );\n case \"Z\":\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"40\"\n height=\"40\"\n fill=\"none\"\n viewBox=\"2 2 40 40\"\n >\n <path\n fill=\"#21242C\"\n d=\"M14.634 29.792c0-.26.052-.494.156-.702 0-.017 2.297-2.608 6.89-7.774a4794.75 4794.75 0 0 1 6.942-7.826l-.26-.052h-1.924c-1.56.018-2.41.035-2.548.052-1.317.174-2.349.615-3.094 1.326-.745.71-1.326 1.707-1.742 2.99l-.052.156-.052.156-.052.104v.078l-.026.052c-.052.087-.217.13-.494.13-.295 0-.468-.087-.52-.26l.832-2.808c.139-.45.277-.918.416-1.404.156-.485.269-.858.338-1.118.087-.26.13-.399.13-.416.052-.104.095-.165.13-.182.052-.035 2.08-.052 6.084-.052h6.006c.087.087.13.156.13.208 0 .035-.052.26-.156.676-9.152 10.313-13.737 15.487-13.754 15.522l-.078.078h2.314c1.647-.017 2.54-.034 2.678-.052 1.265-.156 2.262-.529 2.99-1.118.745-.59 1.36-1.517 1.846-2.782.121-.277.26-.676.416-1.196.139-.433.234-.693.286-.78.07-.086.182-.13.338-.13h.104c.364 0 .546.096.546.286 0 .07-.355 1.24-1.066 3.51-.71 2.27-1.11 3.432-1.196 3.484-.052.035-2.14.052-6.266.052-4.108 0-6.18-.017-6.214-.052-.052-.052-.078-.104-.078-.156Z\"\n />\n </svg>\n );\n\n case \"JUMP_OUT_PARENTHESES\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12.9571 13.2929c.3905.3905.3905 1.0237 0 1.4142C11.6871 15.9771 11 17.9485 11 20c0 2.0515.6871 4.0229 1.9571 5.2929.3905.3905.3905 1.0237 0 1.4142-.3905.3905-1.0237.3905-1.4142 0C9.81292 24.9771 9 22.4485 9 20c0-2.4485.81292-4.9771 2.5429-6.7071.3905-.3905 1.0237-.3905 1.4142 0zm4.5858 0c.3905-.3905 1.0237-.3905 1.4142 0C20.6871 15.0229 21.5 17.5515 21.5 20c0 2.4485-.8129 4.9771-2.5429 6.7071-.3905.3905-1.0237.3905-1.4142 0-.3905-.3905-.3905-1.0237 0-1.4142C18.8129 24.0229 19.5 22.0515 19.5 20c0-2.0515-.6871-4.0229-1.9571-5.2929-.3905-.3905-.3905-1.0237 0-1.4142z\"\n fill=\"#21242C\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M25.5429 16.2929c.3905-.3905 1.0237-.3905 1.4142 0l3 3c.3905.3905.3905 1.0237 0 1.4142l-3 3c-.3905.3905-1.0237.3905-1.4142 0-.3905-.3905-.3905-1.0237 0-1.4142L26.8358 21H16.25c-.5523 0-1-.4477-1-1s.4477-1 1-1h10.5858l-1.2929-1.2929c-.3905-.3905-.3905-1.0237 0-1.4142z\"\n fill=\"#1865F2\"\n />\n </svg>\n );\n case \"JUMP_OUT_EXPONENT\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M18.2929 15.2929c.3905-.3905 1.0237-.3905 1.4142 0L26 21.5858V20c0-.5523.4477-1 1-1s1 .4477 1 1v4.003c-.0004.1345-.0273.2627-.0759.3798-.0477.1152-.1178.2234-.2105.3177a.809004.809004 0 01-.0131.0131c-.1797.1765-.4259.2856-.6975.2864H23c-.5523 0-1-.4477-1-1s.4477-1 1-1h1.5858l-6.2929-6.2929c-.3905-.3905-.3905-1.0237 0-1.4142zM31 33c-.5523 0-1-.4477-1-1V16c0-.5523.4477-1 1-1s1 .4477 1 1v16c0 .5523-.4477 1-1 1z\"\n fill=\"#1865F2\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M9 9c-.55228 0-1 .44772-1 1v6c0 .5523.44772 1 1 1h6c.5523 0 1-.4477 1-1v-6c0-.55228-.4477-1-1-1H9zm5 2h-4v4h4v-4z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"JUMP_OUT_BASE\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n style={{display: \"block\", transform: \"scale(1,-1)\"}}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M18.2929 15.2929c.3905-.3905 1.0237-.3905 1.4142 0L26 21.5858V20c0-.5523.4477-1 1-1s1 .4477 1 1v4.003c-.0004.1345-.0273.2627-.0759.3798-.0477.1152-.1178.2234-.2105.3177a.809004.809004 0 01-.0131.0131c-.1797.1765-.4259.2856-.6975.2864H23c-.5523 0-1-.4477-1-1s.4477-1 1-1h1.5858l-6.2929-6.2929c-.3905-.3905-.3905-1.0237 0-1.4142zM31 33c-.5523 0-1-.4477-1-1V16c0-.5523.4477-1 1-1s1 .4477 1 1v16c0 .5523-.4477 1-1 1z\"\n fill=\"#1865F2\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M9 9c-.55228 0-1 .44772-1 1v6c0 .5523.44772 1 1 1h6c.5523 0 1-.4477 1-1v-6c0-.55228-.4477-1-1-1H9zm5 2h-4v4h4v-4z\"\n fill=\"#21242C\"\n />\n </svg>\n );\n case \"JUMP_INTO_NUMERATOR\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M9 11c.55228 0 1 .4477 1 1v16c0 .5523-.44772 1-1 1s-1-.4477-1-1V12c0-.5523.44772-1 1-1zm5 1c0-.5523.4477-1 1-1h3.9998c.0001 0 0 0 0 0 .1356 0 .2651.027.383.0759.1171.0484.2268.1201.3222.2149l.0042.0042c.1931.1942.29.448.2908.702V16c0 .5523-.4477 1-1 1s-1-.4477-1-1v-1.5858l-4.2929 4.2929c-.3905.3905-1.0237.3905-1.4142 0-.3905-.3905-.3905-1.0237 0-1.4142L16.5858 13H15c-.5523 0-1-.4477-1-1z\"\n fill=\"#1865F2\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M23 23c-.5523 0-1 .4477-1 1v6c0 .5523.4477 1 1 1h6c.5523 0 1-.4477 1-1v-6c0-.5523-.4477-1-1-1h-6zm5 2h-4v4h4v-4z\"\n fill=\"#21242C\"\n />\n <g clipPath=\"url(#clip0_874_41680)\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M20 20c0-.5523.4477-1 1-1h10c.5523 0 1 .4477 1 1s-.4477 1-1 1H21c-.5523 0-1-.4477-1-1z\"\n fill=\"#21242C\"\n />\n </g>\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M23 9c-.5523 0-1 .44772-1 1v6c0 .5523.4477 1 1 1h6c.5523 0 1-.4477 1-1v-6c0-.55228-.4477-1-1-1h-6zm5 2h-4v4h4v-4z\"\n fill=\"#1865F2\"\n />\n <defs>\n <clipPath id=\"clip0_874_41680\">\n <path\n fill=\"#fff\"\n transform=\"translate(20 19)\"\n d=\"M0 0h12v2H0z\"\n />\n </clipPath>\n </defs>\n </svg>\n );\n case \"JUMP_OUT_NUMERATOR\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M26 13c.5523 0 1 .4477 1 1v11.5858l1.2929-1.2929c.3905-.3905 1.0237-.3905 1.4142 0 .3905.3905.3905 1.0237 0 1.4142l-3 3c-.3905.3905-1.0237.3905-1.4142 0l-3-3c-.3905-.3905-.3905-1.0237 0-1.4142.3905-.3905 1.0237-.3905 1.4142 0L25 25.5858V14c0-.5523.4477-1 1-1zM13 23c-.5523 0-1 .4477-1 1v6c0 .5523.4477 1 1 1h6c.5523 0 1-.4477 1-1v-6c0-.5523-.4477-1-1-1h-6zm5 2h-4v4h4v-4z\"\n fill=\"#1865F2\"\n />\n <g clipPath=\"url(#clip0_874_41686)\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10 20c0-.5523.4477-1 1-1h10c.5523 0 1 .4477 1 1s-.4477 1-1 1H11c-.5523 0-1-.4477-1-1z\"\n fill=\"#21242C\"\n />\n </g>\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M13 9c-.5523 0-1 .44772-1 1v6c0 .5523.4477 1 1 1h6c.5523 0 1-.4477 1-1v-6c0-.55228-.4477-1-1-1h-6zm5 2h-4v4h4v-4z\"\n fill=\"#21242C\"\n />\n <defs>\n <clipPath id=\"clip0_874_41686\">\n <path\n fill=\"#fff\"\n transform=\"translate(10 19)\"\n d=\"M0 0h12v2H0z\"\n />\n </clipPath>\n </defs>\n </svg>\n );\n\n case \"JUMP_OUT_DENOMINATOR\":\n return (\n <svg\n width=\"40\"\n height=\"40\"\n viewBox=\"0 0 40 40\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M31 11c.5523 0 1 .4477 1 1v16c0 .5523-.4477 1-1 1s-1-.4477-1-1V12c0-.5523.4477-1 1-1zm-9 9c0-.5523.4477-1 1-1h4c.5523 0 1 .4477 1 1v4c0 .5523-.4477 1-1 1s-1-.4477-1-1v-1.5858l-4.2929 4.2929c-.3905.3905-1.0237.3905-1.4142 0-.3905-.3905-.3905-1.0237 0-1.4142L24.5858 21H23c-.5523 0-1-.4477-1-1z\"\n fill=\"#1865F2\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M11 23c-.5523 0-1 .4477-1 1v6c0 .5523.4477 1 1 1h6c.5523 0 1-.4477 1-1v-6c0-.5523-.4477-1-1-1h-6zm5 2h-4v4h4v-4z\"\n fill=\"#21242C\"\n />\n <g clipPath=\"url(#clip0_874_41692)\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M8 20c0-.5523.44772-1 1-1h10c.5523 0 1 .4477 1 1s-.4477 1-1 1H9c-.55228 0-1-.4477-1-1z\"\n fill=\"#21242C\"\n />\n </g>\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M11 9c-.5523 0-1 .44772-1 1v6c0 .5523.4477 1 1 1h6c.5523 0 1-.4477 1-1v-6c0-.55228-.4477-1-1-1h-6zm5 2h-4v4h4v-4z\"\n fill=\"#21242C\"\n />\n <defs>\n <clipPath id=\"clip0_874_41692\">\n <path\n fill=\"#fff\"\n transform=\"translate(8 19)\"\n d=\"M0 0h12v2H0z\"\n />\n </clipPath>\n </defs>\n </svg>\n );\n\n case \"UP\":\n return (\n <svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\">\n <g\n fill=\"none\"\n fillRule=\"evenodd\"\n transform=\"rotate(90 24 24)\"\n >\n <path fill=\"none\" d=\"M0 0h48v48H0z\" />\n <path fill=\"none\" d=\"M12 12h24v24H12z\" />\n <path\n stroke=\"#21242C\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n d=\"M22 18l-6 6 6 6M16 24h16\"\n />\n </g>\n </svg>\n );\n case \"DOWN\":\n return (\n <svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\">\n <g\n fill=\"none\"\n fillRule=\"evenodd\"\n transform=\"rotate(270 24 24)\"\n >\n <path fill=\"none\" d=\"M0 0h48v48H0z\" />\n <path fill=\"none\" d=\"M12 12h24v24H12z\" />\n <path\n stroke=\"#21242C\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n d=\"M22 18l-6 6 6 6M16 24h16\"\n />\n </g>\n </svg>\n );\n case \"LEFT\":\n return (\n <svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\">\n <g fill=\"none\" fillRule=\"evenodd\">\n <path fill=\"none\" d=\"M0 0h48v48H0z\" />\n <path fill=\"none\" d=\"M12 12h24v24H12z\" />\n <path\n stroke=\"#21242C\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n d=\"M22 18l-6 6 6 6M16 24h16\"\n />\n </g>\n </svg>\n );\n case \"RIGHT\":\n return (\n <svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\">\n <g\n fill=\"none\"\n fillRule=\"evenodd\"\n transform=\"rotate(180 24 24)\"\n >\n <path fill=\"none\" d=\"M0 0h48v48H0z\" />\n <path fill=\"none\" d=\"M12 12h24v24H12z\" />\n <path\n stroke=\"#21242C\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n d=\"M22 18l-6 6 6 6M16 24h16\"\n />\n </g>\n </svg>\n );\n default:\n // this line forces an exhaustive check of all keys;\n // if a key is not handled, the compiler will complain.\n const unhandledKey: never = id;\n throw new Error(`Unhandled key: ${unhandledKey}`);\n }\n}\n","import Clickable from \"@khanacademy/wonder-blocks-clickable\";\nimport {View} from \"@khanacademy/wonder-blocks-core\";\nimport {color} from \"@khanacademy/wonder-blocks-tokens\";\nimport {StyleSheet} from \"aphrodite\";\nimport * as React from \"react\";\n\nimport ButtonAsset from \"./button-assets\";\n\nimport type {KeyConfig, ClickKeyCallback} from \"../../types\";\nimport type {StyleType} from \"@khanacademy/wonder-blocks-core\";\n\nexport type KeypadButtonProps = {\n // 0 indexed [x, y] position in keypad CSS grid\n coord: readonly [number, number];\n keyConfig: KeyConfig;\n onClickKey: ClickKeyCallback;\n // Apply action button styles\n action?: boolean;\n // Apply secondary button styles\n secondary?: boolean;\n style?: StyleType;\n};\n\nexport const KeypadButton = ({\n coord,\n keyConfig,\n onClickKey,\n style,\n secondary,\n action,\n}: KeypadButtonProps): React.ReactElement => {\n const tintColor = secondary ? \"#F6F6F7\" : action ? \"#DBDCDD\" : undefined;\n\n return (\n <View\n style={{\n gridColumn: coord[0] + 1,\n gridRow: coord[1] + 1,\n ...style,\n }}\n // Unfortunately the CDOT and TIMES buttons are identical in the DOM\n // apart from the ICON SVG, so we need to use testId.\n testId={keyConfig.id}\n >\n <Clickable\n onClick={(e) => onClickKey(keyConfig.id, e)}\n onMouseDown={(e) =>\n // Prevent the default behavior of forcing the focus to the\n // button when it is clicked. This way, the focus can\n // remain on the input field-- for mouse only. The focus\n // should still shift for keyboard nav.\n // (The focus shift happens on mouse down, not on click.)\n e.preventDefault()\n }\n style={styles.clickable}\n aria-label={keyConfig.ariaLabel}\n >\n {({hovered, focused, pressed}) => {\n return (\n <View style={[styles.outerBoxBase]}>\n <View\n style={[\n styles.base,\n tintColor != null\n ? {background: tintColor}\n : undefined,\n hovered && styles.hovered,\n focused && styles.focused,\n pressed && styles.pressed,\n ]}\n >\n <ButtonAsset id={keyConfig.id} />\n </View>\n </View>\n );\n }}\n </Clickable>\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n base: {\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n boxShadow: `0px 1px 0px ${color.offBlack32}`,\n boxSizing: \"border-box\",\n background: color.white,\n borderRadius: 4,\n borderWidth: 2,\n borderStyle: \"solid\",\n borderColor: \"transparent\",\n flex: 1,\n minHeight: 42,\n minWidth: 42,\n padding: 1,\n fontFamily: 'Lato, \"Noto Sans\", sans-serif',\n },\n hovered: {\n borderColor: color.blue,\n padding: 1,\n boxShadow: \"none\",\n },\n focused: {\n borderColor: color.blue,\n padding: 0,\n boxShadow: \"none\",\n },\n pressed: {\n border: \"2px solid #1B50B3\",\n padding: 0,\n background: `linear-gradient(0deg, rgba(24, 101, 242, 0.32), rgba(24, 101, 242, 0.32)), ${color.white}`,\n boxShadow: \"none\",\n },\n outerBoxBase: {\n padding: 1,\n height: \"100%\",\n width: \"100%\",\n boxSizing: \"border-box\",\n borderRadius: 7,\n border: \"2px solid transparent\",\n },\n clickable: {\n width: \"100%\",\n height: \"100%\",\n boxSizing: \"border-box\",\n\n \":focus\": {\n outline: `none`,\n },\n },\n});\n","import * as React from \"react\";\n\nimport KeyConfigs from \"../../../data/key-configs\";\nimport {useMathInputI18n} from \"../../i18n-context\";\nimport {KeypadButton} from \"../keypad-button\";\n\nimport type {ClickKeyCallback} from \"../../../types\";\nimport type {KeypadKey} from \"@khanacademy/perseus-core\";\n\ntype Props = {\n extraKeys: ReadonlyArray<KeypadKey>;\n onClickKey: ClickKeyCallback;\n};\n\nconst columns = 3;\n\nexport default function ExtrasPage(props: Props) {\n const {extraKeys, onClickKey} = props;\n const {strings} = useMathInputI18n();\n const Keys = KeyConfigs(strings);\n return (\n <>\n {extraKeys.map((key, i) => {\n // Map 1D array to Cartesian coordinates\n const coordX = i % columns;\n const coordY = i / columns;\n return (\n <KeypadButton\n key={key}\n keyConfig={Keys[key]}\n onClickKey={onClickKey}\n coord={[coordX, coordY]}\n />\n );\n })}\n </>\n );\n}\n","import Keys from \"../../data/key-configs\";\nimport {CursorContext} from \"../input/cursor-contexts\";\n\nimport type {MathInputStrings} from \"../../strings\";\n\n// This is just a magic number, I just played around with it\n// until the transition from expanded -> regular -> expanded felt natural\nexport const expandedViewThreshold = 500;\n\n// This is a helper function that returns the correct context for the cursor\n// based on the cursorContext prop. It is used in the keypad to determine\n// which key to render as the \"jump out\" key.\nexport function getCursorContextConfig(\n strings: MathInputStrings,\n cursorContext?: (typeof CursorContext)[keyof typeof CursorContext],\n) {\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions\n if (!cursorContext) {\n return null;\n }\n\n switch (cursorContext) {\n case CursorContext.NONE:\n return null;\n case CursorContext.IN_PARENS:\n return Keys(strings).JUMP_OUT_PARENTHESES;\n case CursorContext.IN_SUPER_SCRIPT:\n return Keys(strings).JUMP_OUT_EXPONENT;\n case CursorContext.IN_SUB_SCRIPT:\n return Keys(strings).JUMP_OUT_BASE;\n case CursorContext.IN_NUMERATOR:\n return Keys(strings).JUMP_OUT_NUMERATOR;\n case CursorContext.IN_DENOMINATOR:\n return Keys(strings).JUMP_OUT_DENOMINATOR;\n case CursorContext.BEFORE_FRACTION:\n return Keys(strings).JUMP_INTO_NUMERATOR;\n }\n}\n","import * as React from \"react\";\n\nimport KeyConfigs from \"../../../data/key-configs\";\nimport {useMathInputI18n} from \"../../i18n-context\";\nimport {KeypadButton} from \"../keypad-button\";\nimport {getCursorContextConfig} from \"../utils\";\n\nimport type {ClickKeyCallback} from \"../../../types\";\nimport type {CursorContext} from \"../../input/cursor-contexts\";\n\ntype Props = {\n onClickKey: ClickKeyCallback;\n cursorContext?: (typeof CursorContext)[keyof typeof CursorContext];\n};\n\nexport default function FractionsPage(props: Props) {\n const {onClickKey, cursorContext} = props;\n const {strings} = useMathInputI18n();\n const cursorKeyConfig = getCursorContextConfig(strings, cursorContext);\n // These keys are arranged sequentially so that tabbing follows numerical order. This\n // allows us to visually mimic a keypad without affecting a11y. The visual order of the\n // keys in the keypad is determined by their coordinates, not their order in the DOM.\n const Keys = KeyConfigs(strings);\n return (\n <>\n {/* Row 4 */}\n <KeypadButton\n keyConfig={Keys.NUM_1}\n onClickKey={onClickKey}\n coord={[0, 2]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_2}\n onClickKey={onClickKey}\n coord={[1, 2]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_3}\n onClickKey={onClickKey}\n coord={[2, 2]}\n />\n\n {/* Row 3 */}\n <KeypadButton\n keyConfig={Keys.NUM_4}\n onClickKey={onClickKey}\n coord={[0, 1]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_5}\n onClickKey={onClickKey}\n coord={[1, 1]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_6}\n onClickKey={onClickKey}\n coord={[2, 1]}\n />\n\n {/* Row 2 */}\n <KeypadButton\n keyConfig={Keys.NUM_7}\n onClickKey={onClickKey}\n coord={[0, 0]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_8}\n onClickKey={onClickKey}\n coord={[1, 0]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_9}\n onClickKey={onClickKey}\n coord={[2, 0]}\n />\n\n {/* Row 1 */}\n <KeypadButton\n keyConfig={Keys.NUM_0}\n onClickKey={onClickKey}\n coord={[0, 3]}\n />\n <KeypadButton\n keyConfig={Keys.DECIMAL}\n onClickKey={onClickKey}\n coord={[1, 3]}\n />\n <KeypadButton\n keyConfig={Keys.NEGATIVE}\n onClickKey={onClickKey}\n coord={[2, 3]}\n />\n {/* Side Column */}\n <KeypadButton\n keyConfig={Keys.PERCENT}\n onClickKey={onClickKey}\n coord={[3, 0]}\n secondary\n />\n <KeypadButton\n keyConfig={Keys.PI}\n onClickKey={onClickKey}\n coord={[3, 1]}\n secondary\n />\n <KeypadButton\n keyConfig={Keys.FRAC}\n onClickKey={onClickKey}\n coord={[3, 2]}\n secondary\n />\n {cursorKeyConfig && (\n <KeypadButton\n keyConfig={cursorKeyConfig}\n onClickKey={onClickKey}\n coord={[3, 3]}\n secondary\n />\n )}\n <KeypadButton\n keyConfig={Keys.BACKSPACE}\n onClickKey={onClickKey}\n coord={[4, 3]}\n action\n />\n </>\n );\n}\n","import * as React from \"react\";\n\nimport KeyConfigs from \"../../../data/key-configs\";\nimport {useMathInputI18n} from \"../../i18n-context\";\nimport {KeypadButton} from \"../keypad-button\";\n\nimport type {ClickKeyCallback} from \"../../../types\";\n\ntype Props = {\n onClickKey: ClickKeyCallback;\n};\n\nexport default function GeometryPage(props: Props) {\n const {onClickKey} = props;\n const {strings} = useMathInputI18n();\n const Keys = KeyConfigs(strings);\n\n return (\n <>\n {/* Row 1 */}\n <KeypadButton\n keyConfig={Keys.SIN}\n onClickKey={onClickKey}\n coord={[0, 0]}\n />\n <KeypadButton\n keyConfig={Keys.COS}\n onClickKey={onClickKey}\n coord={[1, 0]}\n />\n <KeypadButton\n keyConfig={Keys.TAN}\n onClickKey={onClickKey}\n coord={[2, 0]}\n />\n </>\n );\n}\n","import * as React from \"react\";\n\nimport KeyConfigs from \"../../../data/key-configs\";\nimport {useMathInputI18n} from \"../../i18n-context\";\nimport {KeypadButton} from \"../keypad-button\";\n\nimport type {ClickKeyCallback} from \"../../../types\";\n\ntype Props = {\n onClickKey: ClickKeyCallback;\n scientific?: boolean;\n};\n\nexport default function NumbersPage({onClickKey, scientific}: Props) {\n const {strings} = useMathInputI18n();\n const Keys = KeyConfigs(strings);\n // These keys are arranged sequentially so that tabbing follows numerical order. This\n // allows us to visually mimic a keypad without affecting a11y. The visual order of the\n // keys in the keypad is determined by their coordinates, not their order in the DOM.\n return (\n <>\n {/* Row 4 */}\n <KeypadButton\n keyConfig={Keys.NUM_1}\n onClickKey={onClickKey}\n coord={[0, 2]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_2}\n onClickKey={onClickKey}\n coord={[1, 2]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_3}\n onClickKey={onClickKey}\n coord={[2, 2]}\n />\n\n {/* Row 3 */}\n <KeypadButton\n keyConfig={Keys.NUM_4}\n onClickKey={onClickKey}\n coord={[0, 1]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_5}\n onClickKey={onClickKey}\n coord={[1, 1]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_6}\n onClickKey={onClickKey}\n coord={[2, 1]}\n />\n\n {/* Row 2 */}\n <KeypadButton\n keyConfig={Keys.NUM_7}\n onClickKey={onClickKey}\n coord={[0, 0]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_8}\n onClickKey={onClickKey}\n coord={[1, 0]}\n />\n <KeypadButton\n keyConfig={Keys.NUM_9}\n onClickKey={onClickKey}\n coord={[2, 0]}\n />\n\n {/* Row 1 */}\n <KeypadButton\n keyConfig={Keys.NUM_0}\n onClickKey={onClickKey}\n coord={[0, 3]}\n />\n <KeypadButton\n keyConfig={Keys.DECIMAL}\n onClickKey={onClickKey}\n coord={[1, 3]}\n />\n <KeypadButton\n keyConfig={Keys.NEGATIVE}\n onClickKey={onClickKey}\n coord={[2, 3]}\n />\n <KeypadButton\n keyConfig={Keys.PERCENT}\n onClickKey={onClickKey}\n coord={[3, 0]}\n secondary\n />\n {scientific && (\n <KeypadButton\n keyConfig={Keys.EXP}\n onClickKey={onClickKey}\n coord={[3, 2]}\n secondary\n />\n )}\n </>\n );\n}\n","import * as React from \"react\";\n\nimport KeyConfigs from \"../../../data/key-configs\";\nimport {useMathInputI18n} from \"../../i18n-context\";\nimport {KeypadButton} from \"../keypad-button\";\n\nimport type {ClickKeyCallback} from \"../../../types\";\n\ntype Props = {\n onClickKey: ClickKeyCallback;\n preAlgebra?: boolean;\n logarithms?: boolean;\n basicRelations?: boolean;\n advancedRelations?: boolean;\n};\n\nexport default function OperatorsPage(props: Props) {\n const {\n onClickKey,\n preAlgebra,\n logarithms,\n basicRelations,\n advancedRelations,\n } = props;\n const {strings} = useMathInputI18n();\n const Keys = KeyConfigs(strings);\n\n return (\n <>\n {/* Row 1 */}\n {preAlgebra && (\n <>\n <KeypadButton\n keyConfig={Keys.EXP_2}\n onClickKey={onClickKey}\n coord={[0, 0]}\n />\n <KeypadButton\n keyConfig={Keys.EXP}\n onClickKey={onClickKey}\n coord={[1, 0]}\n />\n <KeypadButton\n keyConfig={Keys.SQRT}\n onClickKey={onClickKey}\n coord={[2, 0]}\n />\n <KeypadButton\n keyConfig={Keys.RADICAL}\n onClickKey={onClickKey}\n coord={[3, 0]}\n />\n </>\n )}\n\n {/* Row 2 */}\n {logarithms && (\n <>\n <KeypadButton\n keyConfig={Keys.LOG}\n onClickKey={onClickKey}\n coord={[0, 1]}\n />\n <KeypadButton\n keyConfig={Keys.LOG_N}\n onClickKey={onClickKey}\n coord={[1, 1]}\n />\n <KeypadButton\n keyConfig={Keys.LN}\n onClickKey={onClickKey}\n coord={[2, 1]}\n />\n </>\n )}\n\n {/* Row 3 */}\n {basicRelations && (\n <>\n <KeypadButton\n keyConfig={Keys.EQUAL}\n onClickKey={onClickKey}\n coord={[0, 2]}\n />\n <KeypadButton\n keyConfig={Keys.LT}\n onClickKey={onClickKey}\n coord={[1, 2]}\n />\n <KeypadButton\n keyConfig={Keys.GT}\n onClickKey={onClickKey}\n coord={[2, 2]}\n />\n </>\n )}\n\n {/* Row 4 */}\n {advancedRelations && (\n <>\n <KeypadButton\n keyConfig={Keys.NEQ}\n onClickKey={onClickKey}\n coord={[0, 3]}\n />\n <KeypadButton\n keyConfig={Keys.LEQ}\n onClickKey={onClickKey}\n coord={[1, 3]}\n />\n <KeypadButton\n keyConfig={Keys.GEQ}\n onClickKey={onClickKey}\n coord={[2, 3]}\n />\n </>\n )}\n </>\n );\n}\n","import Clickable from \"@khanacademy/wonder-blocks-clickable\";\nimport {View} from \"@khanacademy/wonder-blocks-core\";\nimport {color} from \"@khanacademy/wonder-blocks-tokens\";\nimport {StyleSheet} from \"aphrodite\";\nimport * as React from \"react\";\n\nimport ButtonAsset from \"./button-assets\";\n\nimport type {KeyConfig, ClickKeyCallback} from \"../../types\";\nimport type {KeypadKey} from \"@khanacademy/perseus-core\";\n\ntype KeypadButtonProps = {\n // 0 indexed [x, y] position in keypad CSS grid\n coord: readonly [number, number];\n keyConfig: KeyConfig;\n onClickKey: ClickKeyCallback;\n};\n\nfunction getStyles(key: KeypadKey) {\n switch (key) {\n case \"UP\":\n return styles.up;\n case \"RIGHT\":\n return styles.right;\n case \"DOWN\":\n return styles.down;\n case \"LEFT\":\n return styles.left;\n default:\n throw new Error(`Invalid key: ${key}`);\n }\n}\n\nexport default function NavigationButton({\n coord,\n keyConfig,\n onClickKey,\n}: KeypadButtonProps) {\n const key = keyConfig.id;\n const directionalStyles = getStyles(key);\n\n return (\n <View\n style={{\n gridColumn: coord[0] + 1,\n gridRow: coord[1] + 1,\n }}\n >\n <Clickable\n onClick={(e) => onClickKey(keyConfig.id, e)}\n style={styles.clickable}\n aria-label={keyConfig.ariaLabel}\n >\n {({hovered, focused, pressed}) => (\n <View style={styles.outerBoxBase}>\n <View\n style={[\n styles.base,\n directionalStyles,\n hovered && styles.hovered,\n focused && styles.focused,\n pressed && styles.pressed,\n ]}\n >\n <ButtonAsset id={keyConfig.id} />\n </View>\n </View>\n )}\n </Clickable>\n </View>\n );\n}\n\nconst borderRadiusPx = 4;\n\nconst styles = StyleSheet.create({\n clickable: {\n width: \"100%\",\n height: \"100%\",\n\n \":focus\": {\n outline: `none`,\n },\n },\n outerBoxBase: {\n height: \"100%\",\n width: \"100%\",\n },\n base: {\n boxShadow: `0px 1px 0px ${color.offBlack32}`,\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n background: color.white,\n borderWidth: 2,\n borderColor: color.white,\n },\n up: {\n borderTopLeftRadius: borderRadiusPx,\n borderTopRightRadius: borderRadiusPx,\n },\n right: {\n borderTopRightRadius: borderRadiusPx,\n borderBottomRightRadius: borderRadiusPx,\n },\n down: {\n borderBottomLeftRadius: borderRadiusPx,\n borderBottomRightRadius: borderRadiusPx,\n },\n left: {\n borderTopLeftRadius: borderRadiusPx,\n borderBottomLeftRadius: borderRadiusPx,\n },\n hovered: {\n borderColor: color.blue,\n boxShadow: \"none\",\n },\n focused: {\n borderColor: color.blue,\n boxShadow: \"none\",\n },\n pressed: {\n border: \"2px solid #1B50B3\",\n background: `linear-gradient(0deg, rgba(24, 101, 242, 0.32), rgba(24, 101, 242, 0.32)), ${color.white}`,\n boxShadow: \"none\",\n },\n});\n","import {View} from \"@khanacademy/wonder-blocks-core\";\nimport {color} from \"@khanacademy/wonder-blocks-tokens\";\nimport {StyleSheet} from \"aphrodite\";\nimport * as React from \"react\";\n\nimport KeyConfigs from \"../../data/key-configs\";\nimport {useMathInputI18n} from \"../i18n-context\";\n\nimport NavigationButton from \"./navigation-button\";\n\nimport type {ClickKeyCallback} from \"../../types\";\n\ntype Props = {\n onClickKey: ClickKeyCallback;\n};\n\nexport default function NavigationPad(props: Props) {\n const {onClickKey} = props;\n const {strings} = useMathInputI18n();\n const Keys = KeyConfigs(strings);\n\n return (\n <View style={styles.container}>\n <View style={styles.grid}>\n <NavigationButton\n keyConfig={Keys.UP}\n onClickKey={onClickKey}\n coord={[1, 0]}\n />\n <NavigationButton\n keyConfig={Keys.RIGHT}\n onClickKey={onClickKey}\n coord={[2, 1]}\n />\n <NavigationButton\n keyConfig={Keys.DOWN}\n onClickKey={onClickKey}\n coord={[1, 2]}\n />\n <NavigationButton\n keyConfig={Keys.LEFT}\n onClickKey={onClickKey}\n coord={[0, 1]}\n />\n <View style={styles.spacer} />\n </View>\n </View>\n );\n}\n\nconst styles = StyleSheet.create({\n container: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n padding: \"0 1.5rem\",\n },\n grid: {\n width: 140,\n height: 140,\n display: \"grid\",\n gridTemplateColumns: \"repeat(3, 1fr)\",\n gridTemplateRows: \"repeat(3, 1fr)\",\n },\n spacer: {\n gridColumn: 2,\n gridRow: 2,\n background: color.white,\n },\n});\n","import * as React from \"react\";\n\nimport KeyConfigs from \"../../data/key-configs\";\nimport {convertDotToTimesByLocale} from \"../../utils\";\nimport {useMathInputI18n} from \"../i18n-context\";\n\nimport {KeypadButton} from \"./keypad-button\";\nimport {getCursorContextConfig} from \"./utils\";\n\nimport type {ClickKeyCallback, KeypadPageType} from \"../../types\";\nimport type {CursorContext} from \"../input/cursor-contexts\";\n\ntype Props = {\n onClickKey: ClickKeyCallback;\n selectedPage: KeypadPageType;\n cursorContext?: (typeof CursorContext)[keyof typeof CursorContext];\n convertDotToTimes?: boolean;\n divisionKey?: boolean;\n};\n\nexport default function SharedKeys(props: Props) {\n const {\n onClickKey,\n cursorContext,\n divisionKey,\n convertDotToTimes,\n selectedPage,\n } = props;\n const {strings, locale} = useMathInputI18n();\n const cursorKeyConfig = getCursorContextConfig(strings, cursorContext);\n const Keys = KeyConfigs(strings);\n\n // Fraction position depends on the page\n const fractionCoord: readonly [number, number] =\n selectedPage === \"Numbers\" || selectedPage === \"Operators\"\n ? [3, 1]\n : [3, 0];\n\n return (\n <>\n <KeypadButton\n keyConfig={Keys.FRAC}\n onClickKey={onClickKey}\n coord={fractionCoord}\n secondary\n />\n <KeypadButton\n keyConfig={Keys.PLUS}\n onClickKey={onClickKey}\n coord={[4, 0]}\n secondary\n />\n <KeypadButton\n keyConfig={Keys.MINUS}\n onClickKey={onClickKey}\n coord={[5, 0]}\n secondary\n />\n {/* Row 2 */}\n <KeypadButton\n keyConfig={\n convertDotToTimesByLocale(locale, !!convertDotToTimes)\n ? Keys.TIMES\n : Keys.CDOT\n }\n onClickKey={onClickKey}\n coord={[4, 1]}\n secondary\n />\n {divisionKey && (\n <KeypadButton\n keyConfig={Keys.DIVIDE}\n onClickKey={onClickKey}\n coord={[5, 1]}\n secondary\n />\n )}\n\n {/* Row 3 */}\n <KeypadButton\n keyConfig={Keys.LEFT_PAREN}\n onClickKey={onClickKey}\n coord={[4, 2]}\n secondary\n />\n <KeypadButton\n keyConfig={Keys.RIGHT_PAREN}\n onClickKey={onClickKey}\n coord={[5, 2]}\n secondary\n />\n\n {/* Row 4 */}\n {cursorKeyConfig && (\n <KeypadButton\n keyConfig={cursorKeyConfig}\n onClickKey={onClickKey}\n coord={[4, 3]}\n secondary\n />\n )}\n <KeypadButton\n keyConfig={Keys.BACKSPACE}\n onClickKey={onClickKey}\n coord={[5, 3]}\n secondary\n />\n </>\n );\n}\n","import {View} from \"@khanacademy/wonder-blocks-core\";\nimport {color} from \"@khanacademy/wonder-blocks-tokens\";\nimport {StyleSheet} from \"aphrodite\";\nimport * as React from \"react\";\nimport {useEffect} from \"react\";\n\nimport Tabbar from \"../tabbar\";\n\nimport ExtrasPage from \"./keypad-pages/extras-page\";\nimport FractionsPage from \"./keypad-pages/fractions-page\";\nimport GeometryPage from \"./keypad-pages/geometry-page\";\nimport NumbersPage from \"./keypad-pages/numbers-page\";\nimport OperatorsPage from \"./keypad-pages/operators-page\";\nimport NavigationPad from \"./navigation-pad\";\nimport SharedKeys from \"./shared-keys\";\nimport {expandedViewThreshold} from \"./utils\";\n\nimport type {ClickKeyCallback, KeypadPageType} from \"../../types\";\nimport type {CursorContext} from \"../input/cursor-contexts\";\nimport type {\n AnalyticsEventHandlerFn,\n KeypadKey,\n} from \"@khanacademy/perseus-core\";\n\ntype Props = {\n extraKeys?: ReadonlyArray<KeypadKey>;\n cursorContext?: (typeof CursorContext)[keyof typeof CursorContext];\n showDismiss?: boolean;\n expandedView?: boolean;\n\n convertDotToTimes?: boolean;\n divisionKey?: boolean;\n trigonometry?: boolean;\n preAlgebra?: boolean;\n logarithms?: boolean;\n basicRelations?: boolean;\n advancedRelations?: boolean;\n fractionsOnly?: boolean;\n scientific?: boolean;\n\n onClickKey: ClickKeyCallback;\n onAnalyticsEvent: AnalyticsEventHandlerFn;\n};\n\nfunction getAvailableTabs(props: Props): ReadonlyArray<KeypadPageType> {\n // We don't want to show any available tabs on the fractions keypad\n if (props.fractionsOnly) {\n return [];\n }\n\n const tabs: Array<KeypadPageType> = [\"Numbers\"];\n if (\n // OperatorsButtonSets\n props.preAlgebra ||\n props.logarithms ||\n props.basicRelations ||\n props.advancedRelations\n ) {\n tabs.push(\"Operators\");\n }\n\n if (props.trigonometry) {\n tabs.push(\"Geometry\");\n }\n\n if (props.extraKeys?.length) {\n tabs.push(\"Extras\");\n }\n\n return tabs;\n}\n\n// The main (v2) Keypad. Use this component to present an accessible, onscreen\n// keypad to learners for entering math expressions.\nexport default function Keypad({extraKeys = [], ...props}: Props) {\n // If we're using the Fractions keypad, we want to default select that page\n // Otherwise, we want to default to the Numbers page\n const defaultSelectedPage = props.fractionsOnly ? \"Fractions\" : \"Numbers\";\n const [selectedPage, setSelectedPage] =\n React.useState<KeypadPageType>(defaultSelectedPage);\n const [isMounted, setIsMounted] = React.useState<boolean>(false);\n\n // We don't want any tabs available on mobile fractions keypad\n const availableTabs = getAvailableTabs({...props, extraKeys});\n\n const {\n onClickKey,\n cursorContext,\n convertDotToTimes,\n divisionKey,\n preAlgebra,\n logarithms,\n basicRelations,\n advancedRelations,\n scientific,\n showDismiss,\n onAnalyticsEvent,\n fractionsOnly,\n expandedView,\n } = props;\n\n // Use a different grid for our fraction keypad\n const gridStyle = fractionsOnly\n ? styles.fractionsGrid\n : styles.expressionGrid;\n\n // This useEffect is only used to ensure that we can test the keypad in storybook\n useEffect(() => {\n setSelectedPage(defaultSelectedPage);\n }, [fractionsOnly, defaultSelectedPage]);\n\n useEffect(() => {\n if (!isMounted) {\n onAnalyticsEvent({\n type: \"math-input:keypad-opened\",\n payload: {virtualKeypadVersion: \"MATH_INPUT_KEYPAD_V2\"},\n });\n setIsMounted(true);\n }\n return () => {\n if (isMounted) {\n onAnalyticsEvent({\n type: \"math-input:keypad-closed\",\n payload: {virtualKeypadVersion: \"MATH_INPUT_KEYPAD_V2\"},\n });\n setIsMounted(false);\n }\n };\n }, [onAnalyticsEvent, isMounted]);\n\n return (\n <View style={expandedView ? styles.keypadOuterContainer : null}>\n <View\n style={[\n styles.wrapper,\n expandedView ? styles.expandedWrapper : null,\n ]}\n >\n <Tabbar\n items={availableTabs}\n selectedItem={selectedPage}\n onSelectItem={(newSelectedPage: KeypadPageType) => {\n setSelectedPage(newSelectedPage);\n }}\n onClickClose={\n showDismiss ? () => onClickKey(\"DISMISS\") : undefined\n }\n />\n\n <View style={styles.keypadInnerContainer}>\n <View\n style={[styles.keypadGrid, gridStyle]}\n aria-label=\"Keypad\"\n >\n {selectedPage === \"Fractions\" && (\n <FractionsPage\n onClickKey={onClickKey}\n cursorContext={cursorContext}\n />\n )}\n {selectedPage === \"Numbers\" && (\n <NumbersPage\n onClickKey={onClickKey}\n scientific={scientific}\n />\n )}\n {selectedPage === \"Extras\" && (\n <ExtrasPage\n onClickKey={onClickKey}\n extraKeys={extraKeys}\n />\n )}\n {selectedPage === \"Operators\" && (\n <OperatorsPage\n onClickKey={onClickKey}\n preAlgebra={preAlgebra}\n logarithms={logarithms}\n basicRelations={basicRelations}\n advancedRelations={advancedRelations}\n />\n )}\n {selectedPage === \"Geometry\" && (\n <GeometryPage onClickKey={onClickKey} />\n )}\n {!fractionsOnly && (\n <SharedKeys\n onClickKey={onClickKey}\n cursorContext={cursorContext}\n convertDotToTimes={convertDotToTimes}\n divisionKey={divisionKey}\n selectedPage={selectedPage}\n />\n )}\n </View>\n {expandedView && <NavigationPad onClickKey={onClickKey} />}\n </View>\n </View>\n </View>\n );\n}\n\nconst styles = StyleSheet.create({\n keypadOuterContainer: {\n display: \"flex\",\n alignItems: \"center\",\n },\n wrapper: {\n background: color.white,\n },\n expandedWrapper: {\n borderWidth: \"1px 1px 0 1px\",\n borderColor: color.offBlack32,\n maxWidth: expandedViewThreshold,\n borderRadius: \"3px 3px 0 0\",\n },\n keypadInnerContainer: {\n display: \"flex\",\n flexDirection: \"row\",\n backgroundColor: \"#DBDCDD\",\n },\n keypadGrid: {\n display: \"grid\",\n gridTemplateRows: \"repeat(4, 1fr)\",\n flex: 1,\n },\n expressionGrid: {\n gridTemplateColumns: \"repeat(6, 1fr)\",\n },\n fractionsGrid: {\n gridTemplateColumns: \"repeat(5, 1fr)\",\n },\n});\n","import {entries} from \"@khanacademy/wonder-stuff-core\";\nimport {StyleSheet, css} from \"aphrodite\";\n\nimport type {StyleType} from \"@khanacademy/wonder-blocks-core\";\nimport type {CSSProperties} from \"aphrodite\";\n\nfunction flatten(list?: StyleType): ReadonlyArray<CSSProperties> {\n const result: Array<CSSProperties> = [];\n\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions\n if (!list) {\n return result;\n }\n if (Array.isArray(list)) {\n for (const item of list) {\n result.push(...flatten(item));\n }\n } else {\n result.push(list as any);\n }\n\n return result;\n}\n\nexport function processStyleType(style?: StyleType): {\n className: string;\n style: Record<any, any>;\n} {\n const stylesheetStyles: Array<CSSProperties> = [];\n const inlineStyles: Array<CSSProperties> = [];\n\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions\n if (!style) {\n return {\n style: {},\n className: \"\",\n };\n }\n\n // Check to see if we should inline all the styles for snapshot tests.\n const shouldInlineStyles =\n typeof globalThis !== \"undefined\" &&\n globalThis.SNAPSHOT_INLINE_APHRODITE;\n\n flatten(style).forEach((child) => {\n // Check for aphrodite internal property\n const _definition = (child as any)._definition;\n if (_definition != null) {\n if (shouldInlineStyles) {\n const def: Record<string, any> = {};\n // React 16 complains about invalid keys in inline styles.\n // It doesn't accept kebab-case in media queries and instead\n // prefers camelCase.\n for (const [key, value] of entries(_definition)) {\n // This regex converts all instances of -{lowercaseLetter}\n // to the uppercase version of that letter, without the\n // leading dash.\n def[\n key.replace(/-[a-z]/g, (match) =>\n match[1].toUpperCase(),\n )\n ] = value;\n }\n inlineStyles.push(def);\n } else {\n stylesheetStyles.push(child);\n }\n } else {\n inlineStyles.push(child);\n }\n });\n\n const inlineStylesObject = Object.assign({}, ...inlineStyles);\n\n // TODO(somewhatabstract): When aphrodite no longer puts \"!important\" on\n // all the styles, remove this <ADD JIRA ISSUE HERE IF THIS PASSES REVIEW>\n // If we're not snapshotting styles, let's create a class for the inline\n // styles so that they can apply to the element even with aphrodite's\n // use of !important.\n if (inlineStyles.length > 0 && !shouldInlineStyles) {\n const inlineStylesStyleSheet = StyleSheet.create({\n inlineStyles: inlineStylesObject,\n });\n stylesheetStyles.push(inlineStylesStyleSheet.inlineStyles);\n }\n\n return {\n style: shouldInlineStyles ? inlineStylesObject : {},\n className: css(...stylesheetStyles),\n };\n}\n","import {withActionScheduler} from \"@khanacademy/wonder-blocks-timing\";\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\n\nimport {processStyleType} from \"./util\";\n\nimport type {AnimationStyles} from \"./types\";\nimport type {WithActionSchedulerProps} from \"@khanacademy/wonder-blocks-timing\";\n\ntype ChildProps = {\n transitionStyles: AnimationStyles | (() => AnimationStyles);\n appearTimeout?: number; // default appearTimeout to be the same as enterTimeout\n enterTimeout?: number;\n leaveTimeout?: number;\n children: React.ReactNode;\n in?: boolean; // provided by TransitionGroup\n} & WithActionSchedulerProps;\n\ntype ChildState = {\n // Keeps track of whether we should render our children or not.\n status: \"mounted\" | \"unmounted\";\n};\n\nclass TransitionChild extends React.Component<ChildProps, ChildState> {\n // Each 2-tuple in the queue represents two classnames: one to remove and\n // one to add (in that order).\n classNameQueue: Array<[string, string]>;\n // We keep track of all of the current applied classes so that we can remove\n // them before a new transition starts in the case of the current transition\n // being interrupted.\n appliedClassNames: Set<string>;\n _isMounted = false;\n\n // The use of getDerivedStateFromProps here is to avoid an extra call to\n // setState if the component re-enters. This can happen if TransitionGroup\n // sets `in` from `false` to `true`.\n // eslint-disable-next-line no-restricted-syntax\n static getDerivedStateFromProps(\n {in: nextIn}: ChildProps,\n prevState: ChildState,\n ): Partial<ChildState> | null {\n if (nextIn && prevState.status === \"unmounted\") {\n return {status: \"mounted\"};\n }\n return null;\n }\n\n constructor(props: ChildProps) {\n super(props);\n\n this._isMounted = false;\n this.classNameQueue = [];\n this.appliedClassNames = new Set();\n\n this.state = {\n status: \"mounted\",\n };\n }\n\n componentDidMount() {\n this._isMounted = true;\n\n if (typeof this.props.appearTimeout === \"number\") {\n this.transition(\"appear\", this.props.appearTimeout);\n } else {\n this.transition(\"enter\", this.props.enterTimeout);\n }\n }\n\n componentDidUpdate(oldProps: ChildProps, oldState: ChildState) {\n if (oldProps.in && !this.props.in) {\n this.transition(\"leave\", this.props.leaveTimeout);\n } else if (!oldProps.in && this.props.in) {\n this.transition(\"enter\", this.props.enterTimeout);\n }\n\n if (oldState.status !== \"mounted\" && this.state.status === \"mounted\") {\n // Remove the node from the DOM\n // eslint-disable-next-line react/no-did-update-set-state\n this.setState({status: \"unmounted\"});\n }\n }\n\n // NOTE: This will only get called when the parent TransitionGroup becomes\n // unmounted. This is because that component clones all of its children and\n // keeps them around so that they can be animated when leaving and also so\n // that the can be animated when re-rentering if that occurs.\n componentWillUnmount() {\n this._isMounted = false;\n this.props.schedule.clearAll();\n }\n\n removeAllClasses(node: Element) {\n for (const className of this.appliedClassNames) {\n this.removeClass(node, className);\n }\n }\n\n addClass = (elem: Element, className: string): void => {\n if (className) {\n elem.classList.add(className);\n this.appliedClassNames.add(className);\n }\n };\n\n removeClass = (elem: Element, className: string): void => {\n if (className) {\n elem.classList.remove(className);\n this.appliedClassNames.delete(className);\n }\n };\n\n transition(\n animationType: \"appear\" | \"enter\" | \"leave\",\n duration?: number | null,\n ) {\n const node = ReactDOM.findDOMNode(this);\n\n if (!(node instanceof Element)) {\n return;\n }\n\n // Remove any classes from previous transitions.\n this.removeAllClasses(node);\n\n // A previous transition may still be in progress so clear its timers.\n this.props.schedule.clearAll();\n\n const transitionStyles =\n typeof this.props.transitionStyles === \"function\"\n ? this.props.transitionStyles()\n : this.props.transitionStyles;\n\n const {className} = processStyleType(transitionStyles[animationType]);\n const {className: activeClassName} = processStyleType([\n transitionStyles[animationType],\n transitionStyles[animationType + \"Active\"],\n ]);\n\n // Put the node in the starting position.\n this.addClass(node, className);\n\n // Queue the component to show the \"active\" style.\n this.queueClass(className, activeClassName);\n\n // Unmount the children after the 'leave' transition has completed.\n if (animationType === \"leave\") {\n this.props.schedule.timeout(() => {\n if (this._isMounted) {\n this.setState({status: \"unmounted\"});\n }\n }, duration || 0);\n }\n }\n\n queueClass(removeClassName: string, addClassName: string) {\n this.classNameQueue.push([removeClassName, addClassName]);\n // Queue operation for after the next paint.\n this.props.schedule.timeout(this.flushClassNameQueue, 0);\n }\n\n flushClassNameQueue = () => {\n if (this._isMounted) {\n const node = ReactDOM.findDOMNode(this);\n if (node instanceof Element) {\n this.classNameQueue.forEach(\n ([removeClassName, addClassName]: [any, any]) => {\n // Remove the old class before adding a new class just\n // in case the new class is the same as the old one.\n this.removeClass(node, removeClassName);\n this.addClass(node, addClassName);\n },\n );\n }\n }\n\n // Remove all items in the Array.\n this.classNameQueue.length = 0;\n };\n\n render(): React.ReactNode {\n const {status} = this.state;\n\n if (status === \"unmounted\") {\n return null;\n }\n\n return this.props.children;\n }\n}\n\nexport default withActionScheduler(TransitionChild);\n","/**\n * Aphrodite doesn't play well with CSSTransition from react-transition-group,\n * which assumes that you have CSS classes and it can combine them arbitrarily.\n *\n * There are also some issue with react-transition-group that make it difficult\n * to work. Even if the CSS classes are defined ahead of time it makes no\n * guarantee that the start style will be applied by the browser before the\n * active style is applied. This can cause the first time a transition runs to\n * fail.\n *\n * AphroditeCSSTransitionGroup provides a wrapper around TransitionGroup to\n * address these issues.\n *\n * There are three types of transitions:\n * - appear: the time the child is added to the render tree\n * - enter: whenever the child is added to the render tree after \"appear\". If\n * no \"appear\" transition is specified then the \"enter\" transition will also\n * be used for the first time the child is added to the render tree.\n * - leave: whenever the child is removed from the render tree\n *\n * Each transition type has two states:\n * - base: e.g. css(enter)\n * - active: e.g. css(enter, enterActive)\n *\n * If \"done\" styles are not provided, the \"active\" style will remain on the\n * component after the animation has completed.\n *\n * Usage: TBD\n *\n * Limitations:\n * - This component only supports a single child whereas TransitionGroup supports\n * multiple children.\n * - We ignore inline styles that are provided as part of AnimationStyles.\n *\n * TODOs:\n * - (FEI-3211): Change the API for AphroditeCSSTransitionGroup so that it makes\n * bad states impossible.\n */\nimport * as React from \"react\";\nimport {TransitionGroup} from \"react-transition-group\";\n\nimport TransitionChild from \"./transition-child\";\n\nimport type {AnimationStyles} from \"./types\";\n\ntype Props = {\n // If a function is provided, that function will be called to retrieve the\n // current set of animation styles to be used when animating the children.\n transitionStyle: AnimationStyles | (() => AnimationStyles);\n transitionAppearTimeout?: number;\n transitionEnterTimeout?: number;\n transitionLeaveTimeout?: number;\n children?: React.ReactNode;\n};\n\nclass AphroditeCSSTransitionGroup extends React.Component<Props> {\n render(): React.ReactNode {\n const {children} = this.props;\n return (\n // `component={null}` prevents wrapping each child with a <div>\n // which can muck with certain layouts.\n <TransitionGroup component={null}>\n {React.Children.map(children, (child) => (\n <TransitionChild\n transitionStyles={this.props.transitionStyle}\n appearTimeout={this.props.transitionAppearTimeout}\n enterTimeout={this.props.transitionEnterTimeout}\n leaveTimeout={this.props.transitionLeaveTimeout}\n >\n {child}\n </TransitionChild>\n ))}\n </TransitionGroup>\n );\n }\n}\n\nexport default AphroditeCSSTransitionGroup;\n","import {StyleSheet} from \"aphrodite\";\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\n\nimport {View} from \"../../fake-react-native-web/index\";\nimport AphroditeCssTransitionGroup from \"../aphrodite-css-transition-group\";\n\nimport Keypad from \"./keypad\";\nimport {expandedViewThreshold} from \"./utils\";\n\nimport type {Cursor, KeyHandler, KeypadAPI} from \"../../types\";\nimport type {\n AnalyticsEventHandlerFn,\n KeypadConfiguration,\n KeypadKey,\n} from \"@khanacademy/perseus-core\";\nimport type {StyleType} from \"@khanacademy/wonder-blocks-core\";\n\nconst AnimationDurationInMS = 200;\n\ntype Props = {\n onElementMounted?: (arg1: any) => void;\n onDismiss?: () => void;\n style?: StyleType;\n onAnalyticsEvent: AnalyticsEventHandlerFn;\n setKeypadActive: (keypadActive: boolean) => void;\n keypadActive: boolean;\n};\n\ntype State = {\n containerWidth: number;\n keypadConfig?: KeypadConfiguration;\n keyHandler?: KeyHandler;\n cursor?: Cursor;\n};\n\n/**\n * This is the v2 equivalent of v1's ProvidedKeypad. It follows the same\n * external API so that it can be hot-swapped with the v1 keypad and\n * is responsible for connecting the keypad with MathInput and the Renderer.\n *\n * Ideally this strategy of attaching methods on the class component for\n * other components to call will be replaced props/callbacks since React\n * doesn't support this type of code anymore (functional components\n * can't have methods attached to them).\n */\nclass MobileKeypadInternals\n extends React.Component<Props, State>\n implements KeypadAPI\n{\n _containerRef = React.createRef<HTMLDivElement>();\n _containerResizeObserver: ResizeObserver | null = null;\n _throttleResize = false;\n\n state: State = {\n containerWidth: 0,\n };\n\n componentDidMount() {\n this._resize();\n\n window.addEventListener(\"resize\", this._throttleResizeHandler);\n window.addEventListener(\n \"orientationchange\",\n this._throttleResizeHandler,\n );\n\n // LC-1213: some common older browsers (as of 2023-09-07)\n // don't support ResizeObserver\n if (\"ResizeObserver\" in window) {\n this._containerResizeObserver = new window.ResizeObserver(\n this._throttleResizeHandler,\n );\n\n if (this._containerRef.current) {\n this._containerResizeObserver.observe(\n this._containerRef.current,\n );\n }\n }\n\n this.props.onElementMounted?.({\n activate: this.activate,\n dismiss: this.dismiss,\n configure: this.configure,\n setCursor: this.setCursor,\n setKeyHandler: this.setKeyHandler,\n getDOMNode: this.getDOMNode,\n });\n }\n\n componentWillUnmount() {\n window.removeEventListener(\"resize\", this._throttleResizeHandler);\n window.removeEventListener(\n \"orientationchange\",\n this._throttleResizeHandler,\n );\n this._containerResizeObserver?.disconnect();\n }\n\n _resize = () => {\n const containerWidth = this._containerRef.current?.clientWidth || 0;\n this.setState({containerWidth});\n };\n\n _throttleResizeHandler = () => {\n if (this._throttleResize) {\n return;\n }\n\n this._throttleResize = true;\n\n setTimeout(() => {\n this._resize();\n this._throttleResize = false;\n }, 100);\n };\n\n activate: () => void = () => {\n this.props.setKeypadActive(true);\n };\n\n dismiss: () => void = () => {\n this.props.setKeypadActive(false);\n this.props.onDismiss?.();\n };\n\n configure: (configuration: KeypadConfiguration, cb: () => void) => void = (\n configuration,\n cb,\n ) => {\n this.setState({keypadConfig: configuration});\n\n // TODO(matthewc)[LC-1080]: this was brought in from v1's ProvidedKeypad.\n // We need to investigate whether we still need this.\n // HACK(charlie): In Perseus, triggering a focus causes the keypad to\n // animate into view and re-configure. We'd like to provide the option\n // to re-render the re-configured keypad before animating it into view,\n // to avoid jank in the animation. As such, we support passing a\n // callback into `configureKeypad`. However, implementing this properly\n // would require middleware, etc., so we just hack it on with\n // `setTimeout` for now.\n // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions\n setTimeout(() => cb && cb());\n };\n\n setCursor: (cursor: Cursor) => void = (cursor) => {\n this.setState({cursor});\n };\n\n setKeyHandler: (keyHandler: KeyHandler) => void = (keyHandler) => {\n this.setState({keyHandler});\n };\n\n getDOMNode: () => ReturnType<typeof ReactDOM.findDOMNode> = () => {\n return ReactDOM.findDOMNode(this);\n };\n\n _handleClickKey(key: KeypadKey) {\n if (key === \"DISMISS\") {\n this.dismiss();\n return;\n }\n\n const cursor = this.state.keyHandler?.(key);\n this.setState({cursor});\n }\n\n render(): React.ReactNode {\n const {keypadActive, style} = this.props;\n const {containerWidth, cursor, keypadConfig} = this.state;\n\n const containerStyle = [\n styles.keypadContainer,\n // styles passed as props\n ...(Array.isArray(style) ? style : [style]),\n ];\n\n const isExpression = keypadConfig?.keypadType === \"EXPRESSION\";\n const convertDotToTimes = keypadConfig?.times;\n\n return (\n <View style={containerStyle} forwardRef={this._containerRef}>\n <AphroditeCssTransitionGroup\n transitionEnterTimeout={AnimationDurationInMS}\n transitionLeaveTimeout={AnimationDurationInMS}\n transitionStyle={{\n enter: {\n transform: \"translate3d(0, 100%, 0)\",\n transition: `${AnimationDurationInMS}ms ease-out`,\n },\n enterActive: {\n transform: \"translate3d(0, 0, 0)\",\n },\n leave: {\n transform: \"translate3d(0, 0, 0)\",\n transition: `${AnimationDurationInMS}ms ease-out`,\n },\n leaveActive: {\n transform: \"translate3d(0, 100%, 0)\",\n },\n }}\n >\n {keypadActive ? (\n <Keypad\n onAnalyticsEvent={this.props.onAnalyticsEvent}\n extraKeys={keypadConfig?.extraKeys}\n onClickKey={(key) => this._handleClickKey(key)}\n cursorContext={cursor?.context}\n fractionsOnly={!isExpression}\n convertDotToTimes={convertDotToTimes}\n divisionKey={isExpression}\n trigonometry={isExpression}\n preAlgebra={isExpression}\n logarithms={isExpression}\n basicRelations={isExpression}\n advancedRelations={isExpression}\n expandedView={\n containerWidth > expandedViewThreshold\n }\n showDismiss\n scientific={\n isExpression && keypadConfig?.scientific\n }\n />\n ) : null}\n </AphroditeCssTransitionGroup>\n </View>\n );\n }\n}\n\nconst styles = StyleSheet.create({\n keypadContainer: {\n bottom: 0,\n left: 0,\n right: 0,\n position: \"fixed\",\n },\n});\n\nexport default MobileKeypadInternals;\n","import {KeypadContext} from \"@khanacademy/keypad-context\";\nimport * as React from \"react\";\n\nimport MobileKeypadInternals from \"./mobile-keypad-internals\";\n\ntype Props = Omit<\n React.ComponentProps<typeof MobileKeypadInternals>,\n \"keypadActive\" | \"setKeypadActive\"\n>;\n\nexport function MobileKeypad(props: Props) {\n return (\n <KeypadContext.Consumer>\n {({keypadActive, setKeypadActive}) => (\n <MobileKeypadInternals\n {...props}\n keypadActive={keypadActive}\n setKeypadActive={setKeypadActive}\n />\n )}\n </KeypadContext.Consumer>\n );\n}\n","/**\n * React PropTypes that may be shared between components.\n */\n\nimport PropTypes from \"prop-types\";\n\n// NOTE(jared): This is no longer guaranteed to be React element\n// @deprecated Use `KeypadAPI` Typescript interface instead.\nexport const keypadElementPropType = PropTypes.shape({\n activate: PropTypes.func.isRequired,\n dismiss: PropTypes.func.isRequired,\n configure: PropTypes.func.isRequired,\n setCursor: PropTypes.func.isRequired,\n setKeyHandler: PropTypes.func.isRequired,\n getDOMNode: PropTypes.func.isRequired,\n});\n"],"names":["libName","libVersion","addLibraryVersionToPerseusDebug","require$$0","jsxRuntimeModule","require$$1","View","React","Component","render","className","css","styles","initial","Array","isArray","props","style","extraClassName","_jsx","div","dynamicStyle","onClick","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","aria-label","ariaLabel","role","ref","forwardRef","children","StyleSheet","create","alignItems","borderWidth","borderStyle","boxSizing","display","flexBasis","flexDirection","margin","padding","position","backgroundColor","color","font","textAlign","textDecorationLine","listStyle","maxWidth","minHeight","minWidth","mockStrings","mathInputBox","fingerTap","before","obj","after","Baseline","Superscript","selected","labelValue","label","value","plus","minus","negative","times","divide","decimal","percent","cdot","equalsSign","notEqualsSign","greaterThanSign","lessThanSign","greaterThanOrEqualToSign","lessThanOrEqualSign","fractionExpressionInNumerator","fractionExcludingExpression","customExponent","square","cube","squareRoot","cubeRoot","radicalWithCustomRoot","leftParenthesis","rightParenthesis","naturalLog","logBase10","logCustomBase","sine","sin","cosine","cos","tangent","tan","pi","theta","upArrow","rightArrow","downArrow","leftArrow","navOutOfParentheses","navOutOfExponent","navOutOfBase","navIntoNumerator","navOutOfNumeratorIntoDenominator","navOutOfDenominator","delete","dismiss","MathInputI18nContext","createContext","process","env","NODE_ENV","STORYBOOK","strings","locale","MathInputI18nContextProvider","Provider","useMathInputI18n","useContext","cursorHandleRadiusPx","cursorHandleDistanceMultiplier","touchTargetRadiusPx","touchTargetHeightPx","touchTargetWidthPx","cursorRadiusPx","cursorHeightPx","cursorWidthPx","CursorHandle","x","y","animateIntoPosition","animationStyle","transitionDuration","transitionProperty","transformString","outerStyle","zIndex","left","top","transform","width","height","touchAction","span","_jsxs","svg","fill","viewBox","filter","id","colorInterpolationFilters","filterUnits","feFlood","floodOpacity","result","feColorMatrix","in","type","values","feOffset","dy","feGaussianBlur","stdDeviation","feBlend","in2","mode","g","path","d","stroke","strokeWidth","defaultProps","visible","touchSlopPx","DragListener","attach","window","addEventListener","_scrollListener","_moveListener","_endAndCancelListener","detach","removeEventListener","constructor","onDrag","initialEvent","touchLocationsById","i","changedTouches","length","touch","identifier","clientX","clientY","evt","initialTouchLocation","touchLocation","dx","squaredDist","squaredTouchSlop","MathFieldActionType","CursorContext","CDOT_ONLY","TIMES_ONLY","convertDotToTimesByLocale","convertDotToTimes","includes","inJest","JEST_WORKER_ID","mathQuillInstance","MathQuill","getInterface","createBaseConfig","autoCommands","autoOperatorNames","join","charsThatBreakOutOfSupSub","supSubsRequireOperand","spaceBehavesLikeTab","createMathField","container","configCallback","baseConfig","config","mathField","MathField","setAriaLabel","setAriaStringsOverrideMap","SpeechRuleEngine","setup","then","SRE","setMathspeakOverride","texToSpeech","Numerals","GreekLetters","Letters","ValidLeaves","map","letter","toLowerCase","toUpperCase","mqNodeHasClass","node","_el","classList","contains","isFraction","isNumerator","isDenominator","isSubScript","isSuperScript","isParens","ctrlSeq","isLeaf","trim","isSquareRoot","blocks","isNthRoot","isNthRootIndex","isInsideLogIndex","cursor","grandparent","parent","command","maybeFindCommandBeforeParens","name","isInsideEmptyNode","L","MQ_END","R","selectNode","insLeftOf","startSelection","insRightOf","select","endSelection","maybeFindCommand","initialNode","commandCharRegex","commandStartRegex","commandEndSeq","validCommands","startNode","endNode","test","leftParenNode","getCursorContext","NONE","visitor","BEFORE_FRACTION","IN_PARENS","IN_NUMERATOR","IN_DENOMINATOR","IN_SUB_SCRIPT","IN_SUPER_SCRIPT","handleBackspaceInNthRoot","isAtLeftEnd","isRootEmpty","ends","keystroke","handleBackspaceInRootIndex","latex","reinsertionPoint","rootIsEmpty","textContent","write","replace","moveToLeftEnd","handleBackspaceInLogIndex","isLogBodyEmpty","handleBackspaceInsideParens","sub","insAtRightEnd","isEmpty","handleBackspaceAfterLigaturedSymbol","handleBackspace","selection","leftNode","handleLeftArrow","handleRightArrow","handleArrow","key","ArithmeticOperators","EqualityOperators","handleExponent","invalidPrefixes","precedingNode","shouldPrefixWithParens","cmd","Error","KeysForJumpContext","handleJumpOut","context","fractionNode","siblingDenominator","buildGenericCallback","str","WRITE","mathQuill","CMD","KEYSTROKE","buildTranslatableFunctionCallback","supportedTranslations","defaultCommand","buildNormalFunctionCallback","getKeyTranslator","EXP","EXP_2","EXP_3","JUMP_OUT_PARENTHESES","JUMP_OUT_EXPONENT","JUMP_OUT_BASE","JUMP_INTO_NUMERATOR","JUMP_OUT_NUMERATOR","JUMP_OUT_DENOMINATOR","LEFT","RIGHT","LOG","LN","COS","SIN","TAN","CDOT","DECIMAL","getDecimalSeparator","DIVIDE","EQUAL","GEQ","GT","LEQ","LT","MINUS","NEGATIVE","NEQ","PERCENT","PERIOD","PLUS","TIMES","FRAC_INCLUSIVE","FRAC","LEFT_PAREN","RIGHT_PAREN","SQRT","PI","THETA","RADICAL","BACKSPACE","UP","DOWN","CUBE_ROOT","FRAC_EXCLUSIVE","shouldNavigateLeft","LOG_N","DISMISS","NUM_0","NUM_1","NUM_2","NUM_3","NUM_4","NUM_5","NUM_6","NUM_7","NUM_8","NUM_9","a","b","c","e","f","h","j","k","l","m","n","o","p","q","r","s","t","u","v","w","z","A","B","C","D","E","F","G","H","I","J","K","M","N","O","P","Q","S","T","U","V","W","X","Y","Z","MathWrapper","focus","show","blur","hide","pressKey","getCursor","translator","mobileKeyTranslator","callbacks","onSelectionChanged","contextForCursor","setCursorPosition","hitNode","el","document","elementFromPoint","hasAttribute","controller","root","pageX","body","scrollLeft","pageY","scrollTop","seek","onCursorMove","getSelection","getContent","setContent","mathFieldMount","substituteTextarea","createElement","toolbarHeightPx","scrollIntoView","containerNode","keypadNode","containerBounds","getBoundingClientRect","containerBottomPx","bottom","containerTopPx","scrollNode","scrollingElement","desiredMarginPx","pageHeightPx","innerHeight","keypadHeightPx","clientHeight","keypadTopPx","scrollOffset","Math","min","constrainingFrictionFactor","MathInput","componentDidMount","_isMounted","_mathContainer","keypadElement","setCursor","_updateInputPadding","_container","ReactDOM","findDOMNode","_root","querySelector","_handleScroll","isWithinKeypadBounds","bounds","_getKeypadBounds","right","recordTouchStartOutside","state","focused","target","touchDidStartInOrBelowKeypad","getDOMNode","didTouchOutside","dragListener","didScroll","blurOnTouchEndOutside","onBlur","blurOnClickOutside","componentDidUpdate","prevProps","prevState","componentWillUnmount","Element","showInputFocusStyle","handle","innerStyle","inlineStyles","innerContainer","getBorderWidthPx","borderColor","blue","KeypadContext","Consumer","keypadActive","setKeypadActive","input","handleTouchStart","handleTouchMove","handleTouchEnd","handleClick","tabIndex","inputRef","onFocus","onKeyUp","handleKeyUp","onCursorHandleTouchStart","onCursorHandleTouchMove","onCursorHandleTouchEnd","onCursorHandleTouchCancel","getInputInnerPadding","paddingTop","paddingRight","paddingBottom","paddingLeft","fontSize","fontSizePt","_updateCursorHandle","cursorBounds","cursorWidth","gapBelowCursor","inputInnerPadding","furthestRightCursorBound","furthestLeftCursorBound","cursorBoundsLeft","setState","_hideCursorHandle","setKeyHandler","hideCursor","onChange","setTimeout","maybeKeypadNode","_findHitNode","points","elements","point","element","nonLeafElements","max","counts","elementsById","getAttribute","push","count","entries","_insertCursorAtClosestNode","hasChildNodes","insAtLeftEnd","_containerBounds","firstChildBounds","firstChild","lastChildBounds","lastChild","abs","stopPropagation","preventDefault","_constrainToBound","friction","relativeX","relativeY","distanceAboveFingerToTrySelecting","adjustedY","domKeyToMathQuillKey","keyMap","event","mathQuillKey","normalBorderWidthPx","focusedBorderWidthPx","paddingInset","totalDesiredPadding","symbolaPaddingBottom","symbolaPaddingTop","cursorPadding","contextType","inputMaxWidth","numeralHeightPx","minHeightPx","minWidthPx","verticalAlign","offBlack50","borderRadius","offBlack","IconAsset","tintColor","xmlns","fillRule","clipRule","clipPath","defs","base","border","marginRight","marginLeft","hovered","pressed","background","outline","innerBox","flex","justifyContent","innerBoxPressed","white","activeIndicator","clickable","imageTintColor","itemState","offBlack64","TabbarItem","itemType","tabRef","useRef","useEffect","timeout","current","clearTimeout","Clickable","disabled","aria-selected","tabbar","pages","Tabbar","items","onClickClose","selectedItem","onSelectItem","selectedIndex","indexOf","setFocus","useState","onArrowKeyFocus","keyCode","onKeyDown","item","index","getDefaultOperatorFields","keyType","data","icon","getDefaultValueFields","getDefaultNumberFields","KeyConfigs","ButtonAsset","data-testid","circle","cx","cy","strokeLinecap","strokeLinejoin","unhandledKey","KeypadButton","coord","keyConfig","onClickKey","secondary","action","undefined","gridColumn","gridRow","testId","onMouseDown","outerBoxBase","boxShadow","offBlack32","fontFamily","columns","ExtrasPage","extraKeys","Keys","coordX","coordY","expandedViewThreshold","getCursorContextConfig","cursorContext","FractionsPage","cursorKeyConfig","_Fragment","GeometryPage","NumbersPage","scientific","OperatorsPage","preAlgebra","logarithms","basicRelations","advancedRelations","getStyles","up","down","NavigationButton","directionalStyles","borderRadiusPx","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","NavigationPad","grid","spacer","gridTemplateColumns","gridTemplateRows","SharedKeys","divisionKey","selectedPage","fractionCoord","getAvailableTabs","fractionsOnly","tabs","trigonometry","Keypad","defaultSelectedPage","setSelectedPage","isMounted","setIsMounted","availableTabs","showDismiss","onAnalyticsEvent","expandedView","gridStyle","fractionsGrid","expressionGrid","payload","virtualKeypadVersion","keypadOuterContainer","wrapper","expandedWrapper","newSelectedPage","keypadInnerContainer","keypadGrid","flatten","list","processStyleType","stylesheetStyles","shouldInlineStyles","globalThis","SNAPSHOT_INLINE_APHRODITE","forEach","_definition","child","def","match","inlineStylesObject","Object","assign","inlineStylesStyleSheet","TransitionChild","getDerivedStateFromProps","nextIn","status","appearTimeout","transition","enterTimeout","oldProps","oldState","leaveTimeout","schedule","clearAll","removeAllClasses","appliedClassNames","removeClass","animationType","duration","transitionStyles","activeClassName","addClass","queueClass","removeClassName","addClassName","classNameQueue","flushClassNameQueue","elem","add","remove","Set","withActionScheduler","AphroditeCSSTransitionGroup","TransitionGroup","component","Children","transitionStyle","transitionAppearTimeout","transitionEnterTimeout","transitionLeaveTimeout","AnimationDurationInMS","MobileKeypadInternals","_resize","_throttleResizeHandler","_containerResizeObserver","ResizeObserver","_containerRef","observe","onElementMounted","activate","configure","disconnect","_handleClickKey","keyHandler","containerWidth","keypadConfig","containerStyle","keypadContainer","isExpression","keypadType","AphroditeCssTransitionGroup","enter","enterActive","leave","leaveActive","createRef","_throttleResize","clientWidth","onDismiss","configuration","cb","MobileKeypad","keypadElementPropType","PropTypes","shape","func","isRequired"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,MAAMA,OAAAA,CAAU,yBAChB,CAAaC,MAAAA,UAAAA,CAAa,SAE1BC,6CAAgCF,OAASC,CAAAA,UAAAA,CAAAA;;;;;;;;;;;;;;;;;;;;;ACA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