custom-ck-editor-package 1.0.0 → 1.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/README.md +108 -7
- package/dist/custom-ck-editor-package.css +2 -0
- package/dist/index.cjs +2658 -0
- package/dist/index.js +9500 -0
- package/package.json +43 -11
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,2658 @@
|
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require("react");c=s(c,1);let l=require("react-dom"),u=require("@ckeditor/ckeditor5-react"),d=require("ckeditor5");require("ckeditor5/ckeditor5.css"),require("mathlive");let f=require("react/jsx-runtime");var p=[{id:`All`,name:`All`},{id:`Symbol`,name:`Symbol`,ranges:[[8704,8959],[9728,9983],[8592,8703],[9984,10175]]},{id:`Punctuation`,name:`Punctuation`,ranges:[[33,47],[58,64],[91,96],[123,126],[8208,8231],[8240,8286],[11776,11903]]},{id:`Letter`,name:`Letter`,ranges:[[65,90],[97,122],[880,1023],[1024,1279]]},{id:`Mark`,name:`Mark`,ranges:[[768,879],[8400,8447]]},{id:`Number`,name:`Number`,ranges:[[48,57],[8528,8591],[8304,8351]]},{id:`Phonetic`,name:`Phonetic`,ranges:[[592,687],[7424,7551]]},{id:`Other`,name:`Other`,ranges:[[8352,8399],[8448,8527],[9632,9727]]}],m=(()=>{let e=[];return p.slice(1).forEach(t=>{t.ranges.forEach(n=>{for(let r=n[0];r<=n[1];r++)r>=127&&r<=159||e.push({code:r.toString(16).toUpperCase().padStart(4,`0`),char:String.fromCodePoint(r),category:t.id})})}),e})();function h({isOpen:e,onClose:t,onInsert:n,position:r,contained:i=!1}){let[a,o]=(0,c.useState)(``),[s,l]=(0,c.useState)(`All`);(0,c.useEffect)(()=>{e&&(o(``),l(`All`))},[e]);let u=(0,c.useMemo)(()=>{let e=m;if(s!==`All`&&(e=e.filter(e=>e.category===s)),a.trim()){let t=a.trim().toUpperCase();e=e.filter(e=>e.code.includes(t))}return e},[s,a]),d=(0,c.useMemo)(()=>{if(s!==`All`&&!a.trim())return{[s]:u};let e={};return u.forEach(t=>{e[t.category]||(e[t.category]=[]),e[t.category].push(t)}),e},[u,s,a]),h=e=>{e.key===`Escape`&&t()};if((0,c.useEffect)(()=>(e&&window.addEventListener(`keydown`,h),()=>window.removeEventListener(`keydown`,h)),[e]),!e)return null;let g={top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`};if(r){let e=r.x,t=r.y;i||(e-=120,e<10&&(e=10),e+230>window.innerWidth&&(e=window.innerWidth-240),t+200>window.innerHeight&&(t=window.innerHeight-210)),g={top:`${t}px`,left:`${e}px`}}return(0,f.jsx)(`div`,{className:`scm-overlay${i?` scm-overlay--contained`:``}`,onMouseDown:e=>{e.stopPropagation(),t()},children:(0,f.jsxs)(`div`,{className:`scm-modal`,style:g,onMouseDown:e=>e.stopPropagation(),children:[(0,f.jsxs)(`div`,{className:`scm-toolbar`,children:[(0,f.jsx)(`input`,{type:`text`,placeholder:`Code`,value:a,onChange:e=>o(e.target.value),className:`scm-code-input`}),(0,f.jsx)(`select`,{value:s,onChange:e=>l(e.target.value),className:`scm-category-select`,children:p.map(e=>(0,f.jsx)(`option`,{value:e.id,children:e.name},e.id))})]}),(0,f.jsx)(`div`,{className:`scm-body`,children:(0,f.jsxs)(`div`,{className:`scm-grid-container`,children:[Object.entries(d).map(([e,r])=>(0,f.jsx)(`div`,{className:`scm-category-group`,children:(0,f.jsx)(`div`,{className:`scm-char-grid`,children:r.map(e=>(0,f.jsx)(`button`,{className:`scm-char-btn`,onClick:()=>{n(e.char),t()},title:`U+${e.code}`,children:e.char},e.code))})},e)),u.length===0&&(0,f.jsx)(`div`,{className:`scm-no-results`,children:`No characters found.`})]})})]})})}window.__ckMathWidgets=window.__ckMathWidgets||new Map,window.__ckMathWidgetClickHandler=null;function g(e){if(!e)return null;let t=typeof e.composedPath==`function`?e.composedPath():[e];for(let e of t)if(e instanceof HTMLElement&&(e.classList?.contains(`ck-math-widget`)||e.dataset?.mathId||e.classList?.contains(`ck-widget`)&&e.querySelector?.(`.ck-math-widget-inner`)))return e;return e instanceof Element?e.closest?.(`.ck-math-widget, [data-math-id]`):null}function _(e){if(!e)return``;let t=e.getAttribute(`data-latex`);if(t)return t;let n=e.querySelector(`math-field`);return n?n.getValue?n.getValue():n.value||``:``}function v(e){if(!e)return`ltr`;let t=e.getAttribute(`data-dir`);if(t===`rtl`||t===`ltr`)return t;let n=e.querySelector(`math-field`);return(n?.getAttribute(`dir`)||n?.style?.direction)===`rtl`?`rtl`:`ltr`}function y(e,t){if(!e||!t)return!1;try{return e.model.createPositionBefore(t),!0}catch{return!1}}function b(e,t){if(!e||!t)return null;let n=e.model.document.selection.getSelectedElement();if(n?.name===`mathInline`)return n;let r=t.getAttribute(`data-math-id`);if(r){let t=window.__ckMathWidgets.get(r);if(y(e,t))return t}let i=e.editing.view.domConverter.mapDomToView(t);if(i){let t=e.editing.mapper.toModelElement(i);if(t?.name===`mathInline`)return t}let a=_(t);if(!a)return null;let o=e.model.document.getRoot();for(let{item:t}of e.model.createRangeIn(o))if(t.is?.(`element`,`mathInline`)&&t.getAttribute(`latex`)===a)return t;return null}function x(e,t,n,r){if(!e||e._mathWidgetOpening)return;e._mathWidgetOpening=!0,queueMicrotask(()=>{e._mathWidgetOpening=!1});let i=y(e,t)?t:b(e,r),a=i?.getAttribute(`latex`)||n||_(r),o=i?.getAttribute(`dir`)===`rtl`||v(r)===`rtl`?`rtl`:`ltr`;a&&(i&&e.model.change(e=>{e.setSelection(i,`on`)}),(e.mathWidgetClickHandler||window.__ckMathWidgetClickHandler)?.(i,a,o))}function S(e,t){if(!t||t._ckMathClickBound)return;t._ckMathClickBound=!0;let n=n=>{n.button===0&&(n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation?.(),x(e,null,_(t),t))};t.addEventListener(`mousedown`,n,!0),t.addEventListener(`click`,n,!0)}var C=[{label:`√(□)`,items:[{label:`√`,insert:`\\sqrt{#0}`,title:`Square Root`},{label:`√□`,insert:`\\sqrt{#0}`,title:`Root with Placeholder`},{label:`ⁿ√`,insert:`\\sqrt[#?]{#0}`,title:`Nth Root`},{label:`□/□`,insert:`\\frac{#0}{#?}`,title:`Fraction`},{type:`sep`,cols:2},{label:`()`,insert:`\\left(#0\\right)`,title:`Parentheses`},{label:`[]`,insert:`\\left[#0\\right]`,title:`Square Brackets`},{label:`||`,insert:`\\left|#0\\right|`,title:`Absolute Value`},{type:`sep`,cols:2},{label:`+`,insert:`+`},{label:`−`,insert:`-`},{label:`×`,insert:`\\times`},{label:`÷`,insert:`\\div`},{label:`±`,insert:`\\pm`},{type:`sep`,cols:4},{label:`≥`,insert:`\\geq`},{label:`≤`,insert:`\\leq`},{label:`∩`,insert:`\\cap`},{label:`∪`,insert:`\\cup`},{label:`≠`,insert:`\\neq`},{label:`∈`,insert:`\\in`},{label:`≈`,insert:`\\approx`},{label:`∞`,insert:`\\infty`},{type:`sep`,cols:2},{label:`α`,insert:`\\alpha`},{label:`β`,insert:`\\beta`},{label:`π`,insert:`\\pi`},{type:`sep`,cols:1},{label:`↶`,action:`UNDO`,title:`Undo`},{label:`↷`,action:`REDO`,title:`Redo`},{type:`sep`,cols:2},{label:`B`,action:`BOLD`,cls:`template`,title:`Bold`},{label:`〖Ω〗`,title:`Insert Special Character`,action:`SPECIAL_CHARS`},{label:`🅰️`,action:`TEXT_COLOR`,title:`Text Color`},{type:`sep`,cols:1},{label:`T₁`,insert:`#0_{#?}`,title:`Subscript`},{label:`T¹`,insert:`#0^{#?}`,title:`Superscript`},{type:`sep`,cols:1},{type:`dropdown`,label:`Font...`,width:`92px`},{type:`dropdown`,label:`Size`,width:`86px`}]},{label:`±×÷`,items:[{label:`±`,insert:`\\pm`},{label:`∓`,insert:`\\mp`},{label:`×`,insert:`\\times`},{label:`÷`,insert:`\\div`},{label:`\\`,insert:`\\backslash`},{label:`﹨`,insert:`﹨`},{label:`≠`,insert:`\\neq`},{label:`≤`,insert:`\\leq`},{label:`≥`,insert:`\\geq`},{label:`≈`,insert:`\\approx`},{label:`≅`,insert:`\\cong`},{label:`∝`,insert:`\\propto`},{label:`≡`,insert:`\\equiv`},{label:`sim`,insert:`\\sim`},{label:`∞`,insert:`\\infty`},{label:`∑`,insert:`\\sum`},{label:`∏`,insert:`\\prod`},{label:`∫`,insert:`\\int`},{label:`∮`,insert:`\\oint`},{label:`∂`,insert:`\\partial`},{label:`∇`,insert:`\\nabla`},{label:`⊕`,insert:`\\oplus`},{label:`⊗`,insert:`\\otimes`},{label:`⊙`,insert:`\\odot`},{label:`∈`,insert:`\\in`},{label:`∉`,insert:`\\notin`},{label:`⊂`,insert:`\\subset`},{label:`∪`,insert:`\\cup`},{label:`∩`,insert:`\\cap`},{label:`∅`,insert:`\\emptyset`},{label:`√`,insert:`\\sqrt{#0}`},{label:`∛`,insert:`\\sqrt[3]{#0}`},{label:`□±□`,insert:`#? \\pm #?`},{label:`□≠□`,insert:`#? \\neq #?`},{label:`□≈□`,insert:`#? \\approx #?`}]},{label:`□/□`,isTemplate:!0,items:[{label:`a/b`,insert:`\\frac{#0}{#?}`,title:`Fraction`,icon:`fraction-template-image`},{label:`□/□`,insert:`{#0}/{#?}`,title:`Bevelled Fraction`,cls:`green-template black-glyph-template`},{label:`a/b`,insert:`{\\scriptstyle \\frac{#0}{#?}}`,title:`Small Fraction`,icon:`fraction-template-image`,cls:`small-template`},{label:`□/□`,insert:`{\\scriptstyle {#0}/{#?}}`,title:`Small Bevelled Fraction`,cls:`green-template small-template black-placeholder-glyph`},{type:`sep`,cols:4},{label:`√x`,insert:`\\sqrt{#0}`,title:`Square Root`,icon:`sqrt-template-image`},{label:`ⁿ√x`,insert:`\\sqrt[#?]{#0}`,title:`Nth Root`,icon:`nth-root-template-image`},{type:`sep`,cols:2},{label:`xⁿ`,insert:`#0^{#?}`,title:`Superscript`,icon:`superscript-template-image`},{label:`ˡ□`,insert:`{}^{#?}#?`,cls:`template`,directInsert:!0,title:`Left Superscript`,icon:`left-sup-template-image`},{label:`□^□_□`,insert:`#?^{#?}_{#?}`,cls:`template`,directInsert:!0,title:`Right Superscript and Subscript`,icon:`right-sup-sub-template-image`},{label:`ˡₗ□`,insert:`{}^{#?}_{#?}#?`,cls:`template`,directInsert:!0,title:`Left Superscript and Subscript`,icon:`left-sup-sub-template-image`},{label:`xₙ`,insert:`#0_{#?}`,title:`Subscript`,icon:`subscript-template-image`},{label:`ₗ□`,insert:`{}_{#?}#?`,cls:`template`,directInsert:!0,title:`Left Subscript`,icon:`left-sub-template-image`},{type:`sep`,cols:3},{label:`□
|
|
2
|
+
□`,insert:`\\overset{#?}{#?}`,cls:`template`,directInsert:!0,title:`Overset`,icon:`overset-template-image`},{label:`□
|
|
3
|
+
□
|
|
4
|
+
□`,insert:`\\overset{#?}{\\underset{#?}{#?}}`,cls:`template`,directInsert:!0,title:`Over and Under`,icon:`over-under-template-image`},{label:`□
|
|
5
|
+
□`,insert:`\\underset{#?}{#?}`,cls:`template`,directInsert:!0,title:`Underset`,icon:`underset-template-image`},{type:`sep`,cols:2},{label:`□⏟□`,insert:`\\underbrace{#?}_{#?}`,cls:`template`,directInsert:!0,title:`Underbrace`,icon:`underbrace-template-image`},{label:`□⏞□`,insert:`\\overbrace{#?}^{#?}`,cls:`template`,directInsert:!0,title:`Overbrace`,icon:`overbrace-template-image`},{type:`sep`,cols:4},{label:`□
|
|
6
|
+
▯
|
|
7
|
+
□`,insert:`\\displaystyle{\\underset{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.34em;line-height:1.15}{#?}}{\\overset{\\htmlStyle{font-size:1.1em;display:inline-block;padding-bottom:0.34em;line-height:1.15}{#?}}{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}}}}`,cls:`template`,directInsert:!0,title:`Operator With Upper and Lower Limits`,icon:`operator-limits-both-template-image`},{label:`▯
|
|
8
|
+
□`,insert:`\\displaystyle{\\underset{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.34em;line-height:1.15}{#?}}{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}}}`,cls:`template`,directInsert:!0,title:`Operator With Lower Limit`,icon:`operator-lower-limit-template-image`},{label:`▯^□_□`,insert:`\\displaystyle{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}^{\\htmlStyle{font-size:1.1em;display:inline-block;padding-bottom:0.26em;line-height:1.15}{#?}}_{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.26em;line-height:1.15}{#?}}}`,cls:`template`,directInsert:!0,title:`Operator With Right Superscript and Subscript`,icon:`operator-right-sup-sub-template-image`},{label:`▯_□`,insert:`\\displaystyle{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}_{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.26em;line-height:1.15}{#?}}}`,cls:`template`,directInsert:!0,title:`Operator With Right Subscript`,icon:`operator-right-sub-template-image`},{type:`sep`,cols:3},{label:`hphantom`,insert:`\\hphantom{0}`,cls:`template`,directInsert:!0,title:`Horizontal Phantom Space`,icon:`hphantom-space-template-image`},{label:`negative-space`,insert:`\\!`,cls:`template`,directInsert:!0,title:`Negative Thin Space`,icon:`negative-thin-space-template-image`},{label:`thin-space`,insert:`\\,`,cls:`template`,directInsert:!0,title:`Thin Space`,icon:`thin-space-template-image`}]},{label:`sin/cos`,items:[{label:`sin`,insert:`\\sin`},{label:`cos`,insert:`\\cos`},{label:`tan`,insert:`\\tan`},{label:`cot`,insert:`\\cot`},{label:`sec`,insert:`\\sec`},{label:`csc`,insert:`\\csc`},{label:`sin(x)`,insert:`\\sin\\left(#0\\right)`},{label:`cos(x)`,insert:`\\cos\\left(#0\\right)`},{label:`tan(x)`,insert:`\\tan\\left(#0\\right)`},{label:`sin⁻¹`,insert:`\\sin^{-1}`},{label:`cos⁻¹`,insert:`\\cos^{-1}`},{label:`tan⁻¹`,insert:`\\tan^{-1}`},{label:`sin²x`,insert:`\\sin^{2}\\left(#0\\right)`},{label:`cos²x`,insert:`\\cos^{2}\\left(#0\\right)`},{label:`tan²x`,insert:`\\tan^{2}\\left(#0\\right)`},{label:`sinh`,insert:`\\sinh`},{label:`cosh`,insert:`\\cosh`},{label:`tanh`,insert:`\\tanh`},{label:`log`,insert:`\\log`},{label:`ln`,insert:`\\ln`},{label:`exp`,insert:`\\exp`}]},{label:`→`,items:[{label:`→`,insert:`\\rightarrow`},{label:`←`,insert:`\\leftarrow`},{label:`↔`,insert:`\\leftrightarrow`},{label:`⇒`,insert:`\\Rightarrow`},{label:`⇐`,insert:`\\Leftarrow`},{label:`⇔`,insert:`\\Leftrightarrow`},{label:`↤`,insert:`\\mapsfrom`},{label:`↦`,insert:`\\mapsto`},{label:`|`,action:`ARROW_PICKER`,title:`More Arrows`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool`},{type:`sep`,cols:3},{label:`⋮`,insert:`\\vdots`,title:`Vertical ellipsis`},{label:`⋰`,insert:`⋰`,title:`Up-right diagonal ellipsis`},{label:`…`,insert:`\\ldots`,title:`Horizontal ellipsis`},{label:`⋱`,insert:`\\ddots`,title:`Down-right diagonal ellipsis`},{label:`⋯`,insert:`\\cdots`,title:`Midline ellipsis`},{type:`sep`,cols:3},{label:`-`,insert:`-`,title:`Short dash`},{label:`–`,insert:`–`,title:`Dash`},{label:`—`,insert:`—`,title:`Long dash`},{type:`sep`,cols:3},{label:`A→`,insert:`\\xrightarrow{#0}`,title:`Arrow with label above`,icon:`arrow-label-right-above`},{label:`A←`,insert:`\\xleftarrow{#0}`,title:`Left arrow with label above`,icon:`arrow-label-left-above`},{label:`→A`,insert:`\\xrightarrow[#?]{}`,title:`Arrow with label below`,icon:`arrow-label-right-below`},{label:`←A`,insert:`\\xleftarrow[#?]{}`,title:`Left arrow with label below`,icon:`arrow-label-left-below`},{label:`A→B`,insert:`\\xrightarrow[#?]{#0}`,title:`Arrow with labels above and below`,icon:`arrow-label-right-above-below`},{label:`A←B`,insert:`\\xleftarrow[#?]{#0}`,title:`Left arrow with labels above and below`,icon:`arrow-label-left-above-below`},{label:`|`,action:`ARROW_LABEL_PICKER`,title:`More Labelled Arrows`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool arrow-label-picker-tool`},{type:`sep`,cols:2},{label:`x⇀`,insert:`\\overrightharpoon{#0}`,title:`Vector accent`,icon:`accent-harpoon-right`},{label:`x↔`,insert:`\\overleftrightarrow{#0}`,title:`Left-right arrow accent`,icon:`accent-arrow-both`},{label:`x→`,insert:`\\overrightarrow{#0}`,title:`Arrow accent`,icon:`accent-arrow-right`},{label:`x̄`,insert:`\\overline{#0}`,title:`Bar accent`,icon:`accent-bar`}]},{label:`∫ ∯`,isTemplate:!0,items:[{label:`∫`,insert:`\\int`},{label:`∬`,insert:`\\iint`},{label:`∭`,insert:`\\iiint`},{label:`∮`,insert:`\\oint`},{label:`∯`,insert:`\\oiint`},{label:`∰`,insert:`\\oiiint`},{label:`∫dx`,insert:`\\int #0 \\, d#?`,icon:`integral-with-differential`},{label:`∫ₐᵇ`,insert:`\\int_{#?}^{#?} #0 \\, d#?`,icon:`integral-with-limits-differential`},{label:`∫∫dA`,insert:`\\iint_{#?} #0 \\, dA`,title:`Double Integral with Area Element`,icon:`double-integral-area-template-image`},{label:`∮C`,insert:`\\oint_{#?} #0 \\, d#?`},{label:`∫∫∫dV`,insert:`\\iiint_{#?} #0 \\, dV`},{label:`∫_C`,insert:`\\int_{C} #0 \\, d#?`},{label:`∮_C`,insert:`\\oint_{C} #0 \\, d#?`},{label:`∫∫_D`,insert:`\\iint_{D} #0 \\, dA`},{label:`F(b)-F(a)`,insert:`\\left[#0\\right]_{#?}^{#?}`,title:`Evaluated Expression`,icon:`evaluated-expression-template-image`},{label:`u-sub`,insert:`\\int #0 \\, du`}]},{label:`d/dx`,isTemplate:!0,items:[{label:`d/dx`,insert:`\\frac{d}{dx}`},{label:`dy/dx`,insert:`\\frac{dy}{dx}`},{label:`df/dx`,insert:`\\frac{df}{dx}`},{label:`d/dt`,insert:`\\frac{d}{dt}`},{label:`dy/dt`,insert:`\\frac{dy}{dt}`},{label:`d²y/dx²`,insert:`\\frac{d^{2}y}{dx^{2}}`},{label:`d²y/dt²`,insert:`\\frac{d^{2}y}{dt^{2}}`},{label:`dⁿy/dxⁿ`,insert:`\\frac{d^{#?}#0}{dx^{#?}}`},{label:`∂/∂x`,insert:`\\frac{\\partial}{\\partial x}`},{label:`∂f/∂x`,insert:`\\frac{\\partial #0}{\\partial x}`},{label:`∂²f/∂x²`,insert:`\\frac{\\partial^{2} #0}{\\partial x^{2}}`},{label:`∂²f/∂y²`,insert:`\\frac{\\partial^{2} #0}{\\partial y^{2}}`},{label:`∂²f/∂x∂y`,insert:`\\frac{\\partial^{2} #0}{\\partial x \\partial y}`},{label:`f'(x)`,insert:`#0^{\\prime}(#?)`},{label:`f''(x)`,insert:`#0^{\\prime\\prime}(#?)`},{label:`f'''(x)`,insert:`#0^{\\prime\\prime\\prime}(#?)`},{label:`y'`,insert:`y^{\\prime}`},{label:`y''`,insert:`y^{\\prime\\prime}`},{label:`ẋ`,insert:`\\dot{#0}`},{label:`ẍ`,insert:`\\ddot{#0}`},{label:`∇f`,insert:`\\nabla #0`},{label:`∇²f`,insert:`\\nabla^{2} #0`}]},{label:`log/ln`,isTemplate:!0,items:[{label:`log`,insert:`\\log`},{label:`ln`,insert:`\\ln`},{label:`log₁₀`,insert:`\\log_{10}`},{label:`log₂`,insert:`\\log_{2}`},{label:`logₐ`,insert:`\\log_{#?}`},{label:`logₐ(x)`,insert:`\\log_{#?}\\left(#0\\right)`},{label:`log₁₀(x)`,insert:`\\log_{10}\\left(#0\\right)`},{label:`ln(x)`,insert:`\\ln\\left(#0\\right)`},{label:`log|x|`,insert:`\\log\\left|#0\\right|`},{label:`eˣ`,insert:`e^{#0}`,title:`e to the Power`,icon:`exp-e-template-image`},{label:`eⁱˣ`,insert:`e^{i #0}`},{label:`10ˣ`,insert:`10^{#0}`},{label:`2ˣ`,insert:`2^{#0}`},{label:`aˣ`,insert:`#?^{#0}`,title:`Base to the Power`,icon:`exp-generic-template-image`},{label:`log(ab)`,insert:`\\log\\left(#0 \\cdot #?\\right)`},{label:`log(a/b)`,insert:`\\log\\left(\\frac{#0}{#?}\\right)`},{label:`log(aⁿ)`,insert:`\\log\\left(#0^{#?}\\right)`}]},{label:`π,e`,items:[{label:`e`,insert:`e`},{label:`i`,insert:`i`},{label:`π`,insert:`\\pi`},{label:`ℝ`,insert:`\\mathbb{R}`},{label:`ℤ`,insert:`\\mathbb{Z}`},{label:`ℕ`,insert:`\\mathbb{N}`},{label:`ℚ`,insert:`\\mathbb{Q}`},{label:`ℂ`,insert:`\\mathbb{C}`},{label:`∅`,insert:`\\emptyset`},{label:`ℵ₀`,insert:`\\aleph_0`},{label:`ξ`,insert:`\\xi`},{label:`ρ`,insert:`\\rho`},{label:`σ`,insert:`\\sigma`},{label:`τ`,insert:`\\tau`},{label:`υ`,insert:`\\upsilon`},{label:`φ`,insert:`\\varphi`},{label:`χ`,insert:`\\chi`},{label:`ψ`,insert:`\\psi`},{label:`ω`,insert:`\\omega`},{label:`Γ`,insert:`\\Gamma`},{label:`Δ`,insert:`\\Delta`},{label:`Θ`,insert:`\\Theta`},{label:`Λ`,insert:`\\Lambda`},{label:`Ξ`,insert:`\\Xi`},{label:`Σ`,insert:`\\Sigma`},{label:`Φ`,insert:`\\Phi`},{label:`Ψ`,insert:`\\Psi`},{label:`Ω`,insert:`\\Omega`},{label:`θᵢ`,insert:`\\theta_{#?}`},{label:`λₙ`,insert:`\\lambda_{#?}`},{label:`μₓ`,insert:`\\mu_{#?}`},{label:`σ²`,insert:`\\sigma^{2}`},{label:`Δx`,insert:`\\Delta #?`}]},{label:`∈∪∩`,items:[{label:`Ω`,title:`Insert Special Character`,action:`SPECIAL_CHARS`},{label:`⊆`,insert:`\\subseteq`},{label:`⊇`,insert:`\\supseteq`},{label:`﹨`,insert:`﹨`},{label:`∩`,insert:`\\cap`},{label:`∪`,insert:`\\cup`},{label:`∅`,insert:`\\emptyset`},{label:`□⊂□`,insert:`#? \\subset #?`},{label:`□⊆□`,insert:`#? \\subseteq #?`},{label:`□∈□`,insert:`#? \\in #?`},{label:`□∉□`,insert:`#? \\notin #?`},{label:`□∪□`,insert:`#? \\cup #?`},{label:`□∩□`,insert:`#? \\cap #?`}]},{label:`∀∃`,items:[{label:`∀`,insert:`\\forall`},{label:`∃`,insert:`\\exists`},{label:`¬`,insert:`\\neg`},{label:`∧`,insert:`\\land`},{label:`∨`,insert:`\\lor`},{label:`□⇒□`,insert:`#? \\Rightarrow #?`},{label:`□⇔□`,insert:`#? \\Leftrightarrow #?`},{label:`□∧□`,insert:`#? \\land #?`},{label:`□∨□`,insert:`#? \\lor #?`},{label:`¬□`,insert:`\\neg #?`}]},{label:(0,f.jsx)(f.Fragment,{children:`⎡□ □⎤`}),isMatrix:!0,items:[{label:`□`,insert:`matrix`,cls:`template matrix-roomy-template matrix-tall-template`,icon:`matrix-grid-template-image`},{label:`[]`,insert:`bmatrix`,cls:`template matrix-roomy-template matrix-tall-template`,icon:`matrix-brackets-template-image`},{label:`||`,insert:`vmatrix`,cls:`template matrix-roomy-template matrix-tall-template`,icon:`matrix-bars-template-image`},{label:`()`,insert:`pmatrix`,cls:`template matrix-roomy-template matrix-tall-template`,icon:`matrix-parens-template-image`},{type:`sep`,cols:2},{label:`□ \\ □ \\ □`,insert:`\\begin{matrix} #? \\\\ #? \\\\ #? \\end{matrix}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0},{label:`□ □ □`,insert:`\\begin{matrix} #? & #? & #? \\end{matrix}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0},{label:`□ \\ □`,insert:`\\begin{bmatrix} #? \\\\ #? \\end{bmatrix}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0},{label:`□ & □`,insert:`\\begin{bmatrix} #? & #? \\end{bmatrix}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0},{type:`sep`,cols:2},{label:`□ \\ □`,insert:`\\begin{pmatrix} #? \\\\ #? \\end{pmatrix}`,cls:`template matrix-roomy-template matrix-extra-tall-template`,directInsert:!0},{label:`□ & □`,insert:`\\begin{pmatrix} #? & #? \\end{pmatrix}`,cls:`template matrix-roomy-template matrix-extra-tall-template`,directInsert:!0},{type:`sep`,cols:2},{label:`cases`,insert:`\\begin{cases} #? \\\\ #? \\end{cases}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0,icon:`cases-template-image`,title:`Cases`},{label:`rcases`,insert:`\\begin{rcases} #? \\\\ #? \\end{rcases}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0,icon:`rcases-template-image`,title:`Right Cases`},{label:`cases-2x2`,insert:`\\begin{cases} #? & #? \\\\ #? & #? \\end{cases}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0,icon:`cases-two-by-two-template-image`,title:`Cases 2x2`},{label:`aligned`,insert:`\\begin{aligned} #? &= #? \\\\ #? &= #? \\end{aligned}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0,icon:`aligned-equals-template-image`,title:`Aligned Equations`},{type:`sep`,cols:2},{label:`⋮`,insert:`\\vdots`,title:`Vertical ellipsis`,icon:`vertical-ellipsis-template-image`,cls:`matrix-roomy-template matrix-tall-template`,directInsert:!0},{label:`⋯`,insert:`\\cdots`,title:`Midline ellipsis`,icon:`midline-ellipsis-template-image`,cls:`matrix-roomy-template matrix-tall-template`,directInsert:!0},{label:`⋰`,insert:`⋰`,title:`Up-right diagonal ellipsis`,icon:`upright-ellipsis-template-image`,cls:`matrix-roomy-template matrix-tall-template`,directInsert:!0},{label:`⋱`,insert:`\\ddots`,title:`Down-right diagonal ellipsis`,icon:`downright-ellipsis-template-image`,cls:`matrix-roomy-template matrix-tall-template`,directInsert:!0},{type:`sep`,cols:2},{label:`sum-array`,insert:`\\frac{\\begin{array}{r}#?\\\\+\\,#?\\end{array}}{\\quad#?}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0,icon:`sum-array-template-image`,title:`Column Addition`},{label:`division`,insert:`\\overset{#?}{\\overline{#?\\big)#?}}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0,icon:`division-layout-template-image`,title:`Division Layout`},w(`arithmeticLayoutExtras`,`More Arithmetic Layouts`)]}],ee={operatorExtras:[{label:`\\`,insert:`\\backslash`,title:`Slash`,icon:`slash-operator-template-image`},{label:`﹨`,insert:`﹨`,title:`Reverse Solidus`},{label:`∓`,insert:`\\mp`,title:`Minus or Plus`,icon:`minus-plus-operator-template-image`}],primeExtras:[{label:`‴`,insert:`'''`,cls:`prime-symbol-tool`},{label:`⁗`,insert:`''''`,cls:`prime-symbol-tool`},{label:`‵`,insert:`‵`,cls:`prime-symbol-tool`,title:`Reversed Prime`}],notEqualExtras:[{label:`≠`,insert:`\\neq`,title:`Not Equal`,icon:`not-equal-template-image`},{label:`≉`,insert:`\\not\\approx`,title:`Not Approximately Equal`,icon:`not-approx-equal-template-image`},{label:`≁`,insert:`\\nsim`,title:`Not Similar`,icon:`not-similar-template-image`},{label:`≢`,insert:`\\not\\equiv`,title:`Not Identical`,icon:`not-identical-template-image`}],comparisonExtras:[{label:`≫`,insert:`\\gg`,title:`Much Greater Than`,icon:`much-greater-than-template-image`},{label:`≪`,insert:`\\ll`,title:`Much Less Than`,icon:`much-less-than-template-image`},{label:`⪇`,insert:`\\lneqq`,title:`Less Than But Not Equal`},{label:`≻`,insert:`\\succ`,title:`Succeeds`,icon:`succeeds-template-image`},{label:`⪈`,insert:`\\gneqq`,title:`Greater Than But Not Equal`,icon:`greater-than-not-equal-template-image`},{label:`∝`,insert:`\\propto`,title:`Proportional To`,icon:`proportional-to-template-image`},{label:`⊲`,insert:`\\lhd`,title:`Normal Subgroup`,icon:`normal-subgroup-template-image`},{label:`≺`,insert:`\\prec`,title:`Precedes`,icon:`precedes-template-image`},{label:`▷`,insert:`\\rhd`,title:`Contains Normal Subgroup`,icon:`contains-normal-subgroup-template-image`}],setExtras:[{label:`∉`,insert:`\\notin`,title:`Not Element Of`,icon:`not-element-of-template-image`},{label:`∌`,insert:`\\not\\ni`,title:`Not Contains Member`,icon:`not-contains-member-template-image`},{label:`⊆`,insert:`\\subseteq`,title:`Subset Equal`,icon:`subset-equal-template-image`},{label:`⊇`,insert:`\\supseteq`,title:`Superset Equal`,icon:`superset-equal-template-image`},{label:`⊏`,insert:`\\sqsubset`,title:`Square Subset`,icon:`square-subset-template-image`},{label:`⊐`,insert:`\\sqsupset`,title:`Square Superset`,icon:`square-superset-template-image`},{label:`⊑`,insert:`\\sqsubseteq`,title:`Square Subset Equal`,icon:`square-subset-equal-template-image`},{label:`⊒`,insert:`\\sqsupseteq`,title:`Square Superset Equal`,icon:`square-superset-equal-template-image`},{label:`⊓`,insert:`\\sqcap`,title:`Square Cap`,icon:`square-cap-template-image`},{label:`⊔`,insert:`\\sqcup`,title:`Square Cup`,icon:`square-cup-template-image`}],logicExtras:[{label:`∴`,insert:`\\therefore`,title:`Therefore`,icon:`therefore-template-image`},{label:`∵`,insert:`\\because`,title:`Because`,icon:`because-template-image`}],geometryExtras:[{label:`∦`,insert:`\\nparallel`,title:`Not Parallel`,icon:`not-parallel-template-image`},{label:`∡`,insert:`\\measuredangle`,title:`Measured Angle`,icon:`measured-angle-template-image`},{label:`∢`,insert:`\\sphericalangle`,title:`Spherical Angle`,icon:`spherical-angle-template-image`},{label:`⋄`,insert:`\\diamond`,title:`Diamond`,icon:`diamond-template-image`}],shapeExtras:[{label:`▭`,insert:`▭`,title:`Rectangle`,icon:`rectangle-template-image`},{label:`▱`,insert:`\\parallelogram`,title:`Parallelogram`,icon:`parallelogram-template-image`}],circledExtras:[{label:`⊖`,insert:`\\ominus`,title:`Circled Minus`,icon:`circled-minus-template-image`},{label:`⊛`,insert:`\\circledast`,title:`Circled Asterisk`,icon:`circled-asterisk-template-image`},{label:`⊘`,insert:`⨸`,title:`Circled Divide`,icon:`circled-divide-template-image`},{label:`•`,insert:`^{\\bullet}`,title:`Raised Bullet`,icon:`raised-bullet-template-image`}],tripleIntegralExtras:[{label:`∭`,insert:`\\iiint`,title:`Triple Integral`,icon:`triple-integral-template-image`},{label:`∰`,insert:`\\oiiint`,title:`Triple Contour Integral`,icon:`triple-contour-integral-template-image`}],trigFunctionExtras:[{label:`sin⁻¹(□)`,insert:`\\sin^{-1}\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`csc(□)`,insert:`\\csc\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`cos⁻¹(□)`,insert:`\\cos^{-1}\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`sec(□)`,insert:`\\sec\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`tan⁻¹(□)`,insert:`\\tan^{-1}\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`cot(□)`,insert:`\\cot\\left(#0\\right)`,cls:`green-placeholder-glyph`}],bracketDelimiterExtras:[{label:`⌊□⌋`,insert:`\\left\\lfloor #0 \\right\\rfloor`,cls:`green-placeholder-glyph`},{label:`⌈□⌉`,insert:`\\left\\lceil #0 \\right\\rceil`,cls:`green-placeholder-glyph`},{label:`⟨□|□⟩`,insert:`\\left\\langle #0 \\middle| #? \\right\\rangle`,cls:`green-placeholder-glyph`}],enclosureFrameExtras:[{label:`¯
|
|
9
|
+
▯|`,insert:`\\overline{\\left.#?\\right|}`,cls:`template`,directInsert:!0,title:`Overline with Right Bar`,icon:`overline-right-bar-template-image`},{label:`▢
|
|
10
|
+
▯`,insert:`\\enclose{roundedbox}{#?}`,cls:`template`,directInsert:!0,title:`Rounded Boxed`,icon:`boxed-rounded-template-image`}],strikeDecorationExtras:[{label:`│
|
|
11
|
+
▯`,insert:`\\enclose{verticalstrike}{#?}`,cls:`template`,directInsert:!0,title:`Vertical Strike`,icon:`vertical-strike-template-image`},{label:`)
|
|
12
|
+
¯`,insert:`\\overline{\\left)#?\\right.}`,cls:`template`,directInsert:!0,title:`Overline with Curved Left Boundary`,icon:`overline-left-curve-template-image`},{label:`?
|
|
13
|
+
?`,insert:`\\enclose{verticalstrike}{\\htmlStyle{text-decoration:line-through;text-decoration-skip-ink:none;}{#0}}`,cls:`template`,directInsert:!0,title:`Vertical and Horizontal Strike`,icon:`crosshair-strike-template-image`}],arithmeticLayoutExtras:[{label:`diff-array`,insert:`\\frac{\\begin{array}{r}#?\\\\-\\,#?\\end{array}}{\\quad#?}`,directInsert:!0,icon:`difference-array-template-image`,title:`Column Subtraction`},{label:`stack-line`,insert:`\\frac{\\begin{array}{c}#?\\\\#?\\end{array}}{#?}`,cls:`template`,directInsert:!0,icon:`stack-line-template-image`,title:`Stacked Line Layout`},{label:`product-array`,insert:`\\frac{\\begin{array}{r}#?\\\\\\times\\,#?\\end{array}}{\\quad#?}`,cls:`template`,directInsert:!0,icon:`product-array-template-image`,title:`Column Multiplication`},{label:`mixed-fraction`,insert:`#?\\frac{#?}{#?}`,cls:`template`,directInsert:!0,icon:`mixed-fraction-template-image`,title:`Mixed Fraction`},{label:`array-cc`,insert:`\\left.\\begin{array}{c}#?\\\\#?\\end{array}\\right|\\frac{#?}{#?}`,cls:`template`,directInsert:!0,icon:`array-cc-template-image`,title:`Split Column With Fraction`},{label:`division-remainder`,insert:`\\begin{array}{r} \\overset{#?}{\\overline{#?\\big)#?}} \\\\ #? \\end{array}`,cls:`template`,directInsert:!0,icon:`division-remainder-template-image`,title:`Division With Remainder`}]};function w(e,t=`More Symbols`){return{label:`|`,action:`RELATION_MORE_PICKER`,picker:e,title:t,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool relation-more-picker-tool`}}var T=[{label:`cancel`,insert:`\\cancel{#0}`,title:`Negate / Cross Out`,icon:`negate-template-image`},{type:`sep`,cols:1},{label:`+`,insert:`+`},{label:`−`,insert:`-`},{label:`±`,insert:`\\pm`},{label:`×`,insert:`\\times`},{label:`÷`,insert:`\\div`},{label:`*`,insert:`\\ast`},{label:`·`,insert:`\\cdot`},{label:`/`,insert:`/`},{label:`∘`,insert:`∘`},w(`operatorExtras`,`More Operators`),{type:`sep`,cols:5},{label:`π`,insert:`\\pi`},{label:`∞`,insert:`\\infty`},{label:`∅`,insert:`\\emptyset`},{label:`∂`,insert:`\\partial`},{label:`Δ`,insert:`\\Delta`},{label:`∇`,insert:`\\nabla`},{label:`°`,insert:`\\degree`},{label:`′`,insert:`'`,cls:`prime-symbol-tool`},{label:`″`,insert:`''`,cls:`prime-symbol-tool`},w(`primeExtras`,`More Prime Symbols`),{type:`sep`,cols:3},{label:`~`,insert:`\\sim`},{label:`≃`,insert:`\\simeq`},{label:`≡`,insert:`\\equiv`},{label:`≈`,insert:`\\approx`},{label:`≅`,insert:`\\cong`},w(`notEqualExtras`,`More Not Equal Relations`),{type:`sep`,cols:3},{label:`>`,insert:`>`},{label:`≥`,insert:`\\geq`},{label:`⩾`,insert:`\\geqslant`,title:`Greater Than or Slanted Equal To`},{label:`<`,insert:`<`},{label:`≤`,insert:`\\leq`},{label:`⩽`,insert:`\\leqslant`,title:`Less Than or Slanted Equal To`},w(`comparisonExtras`,`More Comparison Symbols`),{type:`sep`,cols:3},{label:`∈`,insert:`\\in`},{label:`∪`,insert:`\\cup`},{label:`⊂`,insert:`\\subset`},{label:`∋`,insert:`\\ni`},{label:`∩`,insert:`\\cap`},{label:`⊃`,insert:`\\supset`},w(`setExtras`,`More Set Symbols`),{type:`sep`,cols:3},{label:`∧`,insert:`\\land`},{label:`¬`,insert:`\\neg`},{label:`∃`,insert:`\\exists`},{label:`∨`,insert:`\\lor`},{label:`∀`,insert:`\\forall`},{label:`∄`,insert:`\\nexists`},w(`logicExtras`,`More Logic Symbols`),{type:`sep`,cols:2},{label:`∠`,insert:`\\angle`},{label:`∥`,insert:`\\parallel`},{label:`⊥`,insert:`\\perp`},w(`geometryExtras`,`More Geometry Symbols`),{type:`sep`,cols:3},{label:`□`,insert:`\\square`},{label:`△`,insert:`\\triangle`},{label:`○`,insert:`\\bigcirc`},w(`shapeExtras`,`More Shape Symbols`),{type:`sep`,cols:3},{label:`⊕`,insert:`\\oplus`},{label:`⊗`,insert:`\\otimes`},{label:`⊙`,insert:`\\odot`},w(`circledExtras`,`More Circled Operators`)],te=[{label:`↗`,insert:`\\nearrow`,title:`North East Arrow`},{label:`↘`,insert:`\\searrow`,title:`South East Arrow`},{label:`↖`,insert:`\\nwarrow`,title:`North West Arrow`},{label:`↙`,insert:`\\swarrow`,title:`South West Arrow`},{label:`⤡`,insert:`⤡`,title:`North East and South West Arrow`},{label:`⤢`,insert:`⤢`,title:`North West and South East Arrow`},{label:`↩`,insert:`\\hookleftarrow`,title:`Hook Left Arrow`},{label:`↪`,insert:`\\hookrightarrow`,title:`Hook Right Arrow`},{label:`↼`,insert:`\\leftharpoonup`,title:`Left Harpoon Up`},{label:`⇀`,insert:`\\rightharpoonup`,title:`Right Harpoon Up`},{label:`↑`,insert:`\\uparrow`,title:`Up Arrow`},{label:`↓`,insert:`\\downarrow`,title:`Down Arrow`},{label:`⇑`,insert:`\\Uparrow`,title:`Double Up Arrow`},{label:`⇓`,insert:`\\Downarrow`,title:`Double Down Arrow`},{label:`⥪`,insert:`⥪`,title:`Leftwards Arrow with Hook`},{label:`⥭`,insert:`⥭`,title:`Rightwards Arrow with Hook`},{label:`⇋`,insert:`\\leftrightharpoons`,title:`Reverse Equilibrium Harpoons`},{label:`⇌`,insert:`\\rightleftharpoons`,title:`Equilibrium Harpoons`},{label:`↽`,insert:`\\leftharpoondown`,title:`Left Harpoon Down`},{label:`⇁`,insert:`\\rightharpoondown`,title:`Right Harpoon Down`},{label:`⇆`,insert:`⇆`,title:`Leftwards Arrow over Rightwards Arrow`},{label:`⇄`,insert:`\\rightleftarrows`,title:`Rightwards Arrow over Leftwards Arrow`},{label:`⇅`,insert:`⇅`,title:`Upwards Arrow Left of Downwards Arrow`},{label:`⇵`,insert:`⇵`,title:`Downwards Arrow Left of Upwards Arrow`},{label:`⥮`,insert:`⥮`,title:`Upwards Harpoon with Barb Left beside Downwards Harpoon with Barb Right`},{label:`⥯`,insert:`⥯`,title:`Downwards Harpoon with Barb Left beside Upwards Harpoon with Barb Right`},{label:`⇄`,insert:`\\rightleftarrows`,title:`Rightwards Arrow over Short Leftwards Arrow`,preview:`rightleft-short-left`},{label:`→
|
|
14
|
+
←`,insert:`\\overset{\\to}{\\longleftarrow}`,title:`Short Rightwards Arrow over Leftwards Arrow`,preview:`right-short-over-left-long`},{label:`↕`,insert:`\\updownarrow`,title:`Up Down Arrow`},{label:`⇕`,insert:`\\Updownarrow`,title:`Double Up Down Arrow`},{label:`↵`,insert:`↵`,title:`Downwards Arrow with Corner Leftwards`}],E=[{insert:`\\xleftrightarrow{#0}`,title:`Right Left Arrows with Overscript`,icon:`right-left-arrows-over`},{insert:`\\xleftrightarrow[#0]{}`,title:`Right Left Arrows with Underscript`,icon:`right-left-arrows-under`},{insert:`\\xleftrightarrow[#?]{#0}`,title:`Right Left Arrows with Under and Overscript`,icon:`right-left-arrows-over-under`},{insert:`\\xleftrightarrows{#0}`,title:`Left Arrow over Right Arrow with Overscript`,icon:`left-right-arrows-over`},{insert:`\\xleftrightarrows[#0]{}`,title:`Left Arrow over Right Arrow with Underscript`,icon:`left-right-arrows-under`},{insert:`\\xleftrightarrows[#?]{#0}`,title:`Left Arrow over Right Arrow with Under and Overscript`,icon:`left-right-arrows-over-under`},{insert:`\\xleftright arrows{#0}`,title:`Right Arrow over Left Arrow with Overscript`,icon:`right-left-stacked-arrows-over`},{insert:`\\xleftrightarrows[#0]{}`,title:`Right Arrow over Left Arrow with Underscript`,icon:`right-left-stacked-arrows-under`},{insert:`\\xleftrightarrows[#?]{#0}`,title:`Right Arrow over Left Arrow with Under and Overscript`,icon:`right-left-stacked-arrows-over-under`},{insert:`\\xleftrightharpoons{#0}`,title:`Left Harpoon over Right Harpoon with Overscript`,icon:`left-right-harpoons-over`},{insert:`\\xleftrightharpoons[#0]{}`,title:`Left Harpoon over Right Harpoon with Underscript`,icon:`left-right-harpoons-under`},{insert:`\\xleftrightharpoons[#?]{#0}`,title:`Left Harpoon over Right Harpoon with Under and Overscript`,icon:`left-right-harpoons-over-under`},{insert:`\\xrightleftharpoons{#0}`,title:`Right Harpoon over Left Harpoon with Overscript`,icon:`right-left-harpoons-over`},{insert:`\\xrightleftharpoons[#0]{}`,title:`Right Harpoon over Left Harpoon with Underscript`,icon:`right-left-harpoons-under`},{insert:`\\xrightleftharpoons[#?]{#0}`,title:`Right Harpoon over Left Harpoon with Under and Overscript`,icon:`right-left-harpoons-over-under`},{insert:`\\overset{#0}{\\rightleftarrows}`,title:`Rightwards Arrow over Short Leftwards Arrow with Overscript`,icon:`long-right-short-left-over`},{insert:`\\underset{#0}{\\rightleftarrows}`,title:`Rightwards Arrow over Short Leftwards Arrow with Underscript`,icon:`long-right-short-left-under`},{insert:`\\overset{#0}{\\underset{#?}{\\rightleftarrows}}`,title:`Rightwards Arrow over Short Leftwards Arrow with Under and Overscript`,icon:`long-right-short-left-over-under`},{insert:`\\overset{#0}{\\rightleftarrows}`,title:`Short Rightwards Arrow over Leftwards Arrow with Overscript`,icon:`short-right-long-left-over`},{insert:`\\underset{#0}{\\rightleftarrows}`,title:`Short Rightwards Arrow over Leftwards Arrow with Underscript`,icon:`short-right-long-left-under`},{insert:`\\overset{#0}{\\underset{#?}{\\rightleftarrows}}`,title:`Short Rightwards Arrow over Leftwards Arrow with Under and Overscript`,icon:`short-right-long-left-over-under`}],D=[{label:`Α`,insert:`\\mathit{Α}`,title:`Italic Alpha`},{label:`Β`,insert:`\\mathit{Β}`,title:`Italic Beta`},{label:`Γ`,insert:`\\varGamma`,title:`Italic Gamma`},{label:`Δ`,insert:`\\varDelta`,title:`Italic Delta`},{label:`Ε`,insert:`\\mathit{Ε}`,title:`Italic Epsilon`},{label:`Ζ`,insert:`\\mathit{Ζ}`,title:`Italic Zeta`},{label:`Η`,insert:`\\mathit{Η}`,title:`Italic Eta`},{label:`Θ`,insert:`\\varTheta`,title:`Italic Theta`},{label:`Ι`,insert:`\\mathit{Ι}`,title:`Italic Iota`},{label:`Κ`,insert:`\\mathit{Κ}`,title:`Italic Kappa`},{label:`Λ`,insert:`\\varLambda`,title:`Italic Lambda`},{label:`Μ`,insert:`\\mathit{Μ}`,title:`Italic Mu`},{label:`Ν`,insert:`\\mathit{Ν}`,title:`Italic Nu`},{label:`Ξ`,insert:`\\varXi`,title:`Italic Xi`},{label:`Ο`,insert:`\\mathit{Ο}`,title:`Italic Omicron`},{label:`Π`,insert:`\\varPi`,title:`Italic Pi`},{label:`Ρ`,insert:`\\mathit{Ρ}`,title:`Italic Rho`},{label:`Σ`,insert:`\\varSigma`,title:`Italic Sigma`},{label:`Τ`,insert:`\\mathit{Τ}`,title:`Italic Tau`},{label:`Υ`,insert:`\\varUpsilon`,title:`Italic Upsilon`},{label:`Φ`,insert:`\\varPhi`,title:`Italic Phi`},{label:`Χ`,insert:`\\mathit{Χ}`,title:`Italic Chi`},{label:`Ψ`,insert:`\\varPsi`,title:`Italic Psi`},{label:`Ω`,insert:`\\varOmega`,title:`Italic Omega`}],O=[[`𝔸`,`A`],[`𝔹`,`B`],[`ℂ`,`C`],[`𝔻`,`D`],[`𝔼`,`E`],[`𝔽`,`F`],[`𝔾`,`G`],[`ℍ`,`H`],[`𝕀`,`I`],[`𝕁`,`J`],[`𝕂`,`K`],[`𝕃`,`L`],[`𝕄`,`M`],[`ℕ`,`N`],[`𝕆`,`O`],[`ℙ`,`P`],[`ℚ`,`Q`],[`ℝ`,`R`],[`𝕊`,`S`],[`𝕋`,`T`],[`𝕌`,`U`],[`𝕍`,`V`],[`𝕎`,`W`],[`𝕏`,`X`],[`𝕐`,`Y`],[`ℤ`,`Z`],[`𝕒`,`a`],[`𝕓`,`b`],[`𝕔`,`c`],[`𝕕`,`d`],[`𝕖`,`e`],[`𝕗`,`f`],[`𝕘`,`g`],[`𝕙`,`h`],[`𝕚`,`i`],[`𝕛`,`j`],[`𝕜`,`k`],[`𝕝`,`l`],[`𝕞`,`m`],[`𝕟`,`n`],[`𝕠`,`o`],[`𝕡`,`p`],[`𝕢`,`q`],[`𝕣`,`r`],[`𝕤`,`s`],[`𝕥`,`t`],[`𝕦`,`u`],[`𝕧`,`v`],[`𝕨`,`w`],[`𝕩`,`x`],[`𝕪`,`y`],[`𝕫`,`z`]].map(([e,t])=>({label:e,insert:`\\mathbb{${t}}`,title:`Blackboard Bold ${t}`})),k=[[`𝔄`,`\\mathfrak{A}`,`Fraktur A`],[`𝔅`,`\\mathfrak{B}`,`Fraktur B`],[`ℭ`,`\\mathfrak{C}`,`Fraktur C`],[`𝔇`,`\\mathfrak{D}`,`Fraktur D`],[`𝔈`,`\\mathfrak{E}`,`Fraktur E`],[`𝔉`,`\\mathfrak{F}`,`Fraktur F`],[`𝔊`,`\\mathfrak{G}`,`Fraktur G`],[`ℌ`,`\\mathfrak{H}`,`Fraktur H`],[`ℑ`,`\\mathfrak{I}`,`Fraktur I`],[`𝔍`,`\\mathfrak{J}`,`Fraktur J`],[`𝔎`,`\\mathfrak{K}`,`Fraktur K`],[`𝔏`,`\\mathfrak{L}`,`Fraktur L`],[`𝔐`,`\\mathfrak{M}`,`Fraktur M`],[`𝔑`,`\\mathfrak{N}`,`Fraktur N`],[`𝔒`,`\\mathfrak{O}`,`Fraktur O`],[`𝔓`,`\\mathfrak{P}`,`Fraktur P`],[`𝔔`,`\\mathfrak{Q}`,`Fraktur Q`],[`ℜ`,`\\mathfrak{R}`,`Fraktur R`],[`𝔖`,`\\mathfrak{S}`,`Fraktur S`],[`𝔗`,`\\mathfrak{T}`,`Fraktur T`],[`𝔘`,`\\mathfrak{U}`,`Fraktur U`],[`𝔙`,`\\mathfrak{V}`,`Fraktur V`],[`𝔚`,`\\mathfrak{W}`,`Fraktur W`],[`𝔛`,`\\mathfrak{X}`,`Fraktur X`],[`𝔜`,`\\mathfrak{Y}`,`Fraktur Y`],[`ℨ`,`\\mathfrak{Z}`,`Fraktur Z`],[`𝔞`,`\\mathfrak{a}`,`Fraktur a`],[`𝔟`,`\\mathfrak{b}`,`Fraktur b`],[`𝔠`,`\\mathfrak{c}`,`Fraktur c`],[`𝔡`,`\\mathfrak{d}`,`Fraktur d`],[`𝔢`,`\\mathfrak{e}`,`Fraktur e`],[`𝔣`,`\\mathfrak{f}`,`Fraktur f`],[`𝔤`,`\\mathfrak{g}`,`Fraktur g`],[`𝔥`,`\\mathfrak{h}`,`Fraktur h`],[`𝔦`,`\\mathfrak{i}`,`Fraktur i`],[`𝔧`,`\\mathfrak{j}`,`Fraktur j`],[`𝔨`,`\\mathfrak{k}`,`Fraktur k`],[`𝔩`,`\\mathfrak{l}`,`Fraktur l`],[`𝔪`,`\\mathfrak{m}`,`Fraktur m`],[`𝔫`,`\\mathfrak{n}`,`Fraktur n`],[`𝔬`,`\\mathfrak{o}`,`Fraktur o`],[`𝔭`,`\\mathfrak{p}`,`Fraktur p`],[`𝔮`,`\\mathfrak{q}`,`Fraktur q`],[`𝔯`,`\\mathfrak{r}`,`Fraktur r`],[`𝔰`,`\\mathfrak{s}`,`Fraktur s`],[`𝔱`,`\\mathfrak{t}`,`Fraktur t`],[`𝔲`,`\\mathfrak{u}`,`Fraktur u`],[`𝔳`,`\\mathfrak{v}`,`Fraktur v`],[`𝔴`,`\\mathfrak{w}`,`Fraktur w`],[`𝔵`,`\\mathfrak{x}`,`Fraktur x`],[`𝔶`,`\\mathfrak{y}`,`Fraktur y`],[`𝔷`,`\\mathfrak{z}`,`Fraktur z`],[`𝒜`,`\\mathscr{A}`,`Script A`],[`ℬ`,`\\mathscr{B}`,`Script B`],[`𝒞`,`\\mathscr{C}`,`Script C`],[`𝒟`,`\\mathscr{D}`,`Script D`],[`ℰ`,`\\mathscr{E}`,`Script E`],[`ℱ`,`\\mathscr{F}`,`Script F`],[`𝒢`,`\\mathscr{G}`,`Script G`],[`ℋ`,`\\mathscr{H}`,`Script H`],[`ℐ`,`\\mathscr{I}`,`Script I`],[`𝒥`,`\\mathscr{J}`,`Script J`],[`𝒦`,`\\mathscr{K}`,`Script K`],[`ℒ`,`\\mathscr{L}`,`Script L`],[`ℳ`,`\\mathscr{M}`,`Script M`],[`𝒩`,`\\mathscr{N}`,`Script N`],[`𝒪`,`\\mathscr{O}`,`Script O`],[`𝒫`,`\\mathscr{P}`,`Script P`],[`𝒬`,`\\mathscr{Q}`,`Script Q`],[`ℛ`,`\\mathscr{R}`,`Script R`],[`𝒮`,`\\mathscr{S}`,`Script S`],[`𝒯`,`\\mathscr{T}`,`Script T`],[`𝒰`,`\\mathscr{U}`,`Script U`],[`𝒱`,`\\mathscr{V}`,`Script V`],[`𝒲`,`\\mathscr{W}`,`Script W`],[`𝒳`,`\\mathscr{X}`,`Script X`],[`𝒴`,`\\mathscr{Y}`,`Script Y`],[`𝒵`,`\\mathscr{Z}`,`Script Z`],[`𝒶`,`\\mathscr{a}`,`Script a`],[`𝒷`,`\\mathscr{b}`,`Script b`],[`𝒸`,`\\mathscr{c}`,`Script c`],[`𝒹`,`\\mathscr{d}`,`Script d`],[`ℯ`,`\\mathscr{e}`,`Script e`],[`𝒻`,`\\mathscr{f}`,`Script f`],[`ℊ`,`\\mathscr{g}`,`Script g`],[`𝒽`,`\\mathscr{h}`,`Script h`],[`𝒾`,`\\mathscr{i}`,`Script i`],[`𝒿`,`\\mathscr{j}`,`Script j`],[`𝓀`,`\\mathscr{k}`,`Script k`],[`𝓁`,`\\mathscr{l}`,`Script l`],[`𝓂`,`\\mathscr{m}`,`Script m`],[`𝓃`,`\\mathscr{n}`,`Script n`],[`ℴ`,`\\mathscr{o}`,`Script o`],[`𝓅`,`\\mathscr{p}`,`Script p`],[`𝓆`,`\\mathscr{q}`,`Script q`],[`𝓇`,`\\mathscr{r}`,`Script r`],[`𝓈`,`\\mathscr{s}`,`Script s`],[`𝓉`,`\\mathscr{t}`,`Script t`],[`𝓊`,`\\mathscr{u}`,`Script u`],[`𝓋`,`\\mathscr{v}`,`Script v`],[`𝓌`,`\\mathscr{w}`,`Script w`],[`𝓍`,`\\mathscr{x}`,`Script x`],[`𝓎`,`\\mathscr{y}`,`Script y`],[`𝓏`,`\\mathscr{z}`,`Script z`]].map(([e,t,n])=>({label:e,insert:t,title:n})),A=[{label:`ℵ`,insert:`\\aleph`,title:`Aleph`},{label:`ℒ`,insert:`\\mathscr{L}`,title:`Script L`},{label:`℘`,insert:`\\wp`,title:`Weierstrass p`},{label:`𝒵`,insert:`\\mathscr{Z}`,title:`Script Z`},{label:`ℱ`,insert:`\\mathscr{F}`,title:`Script F`}],j=[`٠`,`١`,`٢`,`٣`,`٤`,`٥`,`٦`,`٧`,`٨`,`٩`],M=[`۰`,`۱`,`۲`,`۳`,`۴`,`۵`,`۶`,`۷`,`۸`,`۹`];function ne(e,t){if(!e||t===`western`)return e;let n=t===`arabicIndic`?j:t===`easternArabicIndic`?M:null;return n?String(e).replace(/\d/g,e=>n[Number(e)]||e):e}var N=31,P=33,F=592,I=295,L=[{row:1,items:[[`H`,1,`hydrogen`],[`He`,18,`noble-gas`]]},{row:2,items:[[`Li`,1,`alkali`],[`Be`,2,`alkaline`],[`B`,13,`nonmetal`],[`C`,14,`nonmetal`],[`N`,15,`nonmetal`],[`O`,16,`nonmetal`],[`F`,17,`nonmetal`],[`Ne`,18,`noble-gas`]]},{row:3,items:[[`Na`,1,`alkali`],[`Mg`,2,`alkaline`],[`Al`,13,`post-transition`],[`Si`,14,`post-transition`],[`P`,15,`nonmetal`],[`S`,16,`nonmetal`],[`Cl`,17,`nonmetal`],[`Ar`,18,`noble-gas`]]},{row:4,items:[[`K`,1,`alkali`],[`Ca`,2,`alkaline`],[`Sc`,3,`transition`],[`Ti`,4,`transition`],[`V`,5,`transition`],[`Cr`,6,`transition`],[`Mn`,7,`transition`],[`Fe`,8,`transition`],[`Co`,9,`transition`],[`Ni`,10,`transition`],[`Cu`,11,`transition`],[`Zn`,12,`transition`],[`Ga`,13,`post-transition`],[`Ge`,14,`post-transition`],[`As`,15,`nonmetal`],[`Se`,16,`nonmetal`],[`Br`,17,`nonmetal`],[`Kr`,18,`noble-gas`]]},{row:5,items:[[`Rb`,1,`alkali`],[`Sr`,2,`alkaline`],[`Y`,3,`transition`],[`Zr`,4,`transition`],[`Nb`,5,`transition`],[`Mo`,6,`transition`],[`Tc`,7,`transition`],[`Ru`,8,`transition`],[`Rh`,9,`transition`],[`Pd`,10,`transition`],[`Ag`,11,`transition`],[`Cd`,12,`transition`],[`In`,13,`post-transition`],[`Sn`,14,`post-transition`],[`Sb`,15,`nonmetal`],[`Te`,16,`nonmetal`],[`I`,17,`nonmetal`],[`Xe`,18,`noble-gas`]]},{row:6,items:[[`Cs`,1,`alkali`],[`Ba`,2,`alkaline`],[`Hf`,4,`transition`],[`Ta`,5,`transition`],[`W`,6,`transition`],[`Re`,7,`transition`],[`Os`,8,`transition`],[`Ir`,9,`transition`],[`Pt`,10,`transition`],[`Au`,11,`transition`],[`Hg`,12,`transition`],[`Tl`,13,`post-transition`],[`Pb`,14,`post-transition`],[`Bi`,15,`post-transition`],[`Po`,16,`post-transition`],[`At`,17,`nonmetal`],[`Rn`,18,`noble-gas`]]},{row:7,items:[[`Fr`,1,`alkali`],[`Ra`,2,`alkaline`],[`Rf`,4,`transition`],[`Db`,5,`transition`],[`Sg`,6,`transition`],[`Bh`,7,`transition`],[`Hs`,8,`transition`],[`Mt`,9,`transition`],[`Ds`,10,`transition`],[`Rg`,11,`transition`],[`Cn`,12,`transition`],[`Nh`,13,`post-transition`],[`Fl`,14,`post-transition`],[`Mc`,15,`post-transition`],[`Lv`,16,`post-transition`],[`Ts`,17,`placeholder`],[`Og`,18,`placeholder`]]},{row:8,items:[[`La`,4,`series-anchor`],[`Ce`,5,`lanthanide`],[`Pr`,6,`lanthanide`],[`Nd`,7,`lanthanide`],[`Pm`,8,`lanthanide`],[`Sm`,9,`lanthanide`],[`Eu`,10,`lanthanide`],[`Gd`,11,`lanthanide`],[`Tb`,12,`lanthanide`],[`Dy`,13,`lanthanide`],[`Ho`,14,`lanthanide`],[`Er`,15,`lanthanide`],[`Tm`,16,`lanthanide`],[`Yb`,17,`lanthanide`],[`Lu`,18,`lanthanide`]]},{row:9,items:[[`Ac`,4,`series-anchor`],[`Th`,5,`actinide`],[`Pa`,6,`actinide`],[`U`,7,`actinide`],[`Np`,8,`actinide`],[`Pu`,9,`actinide`],[`Am`,10,`actinide`],[`Cm`,11,`actinide`],[`Bk`,12,`actinide`],[`Cf`,13,`actinide`],[`Es`,14,`actinide`],[`Fm`,15,`actinide`],[`Md`,16,`actinide`],[`No`,17,`actinide`],[`Lr`,18,`actinide`]]}].flatMap(({row:e,items:t})=>t.map(([t,n,r])=>({label:t,insert:t,row:e,col:n,tone:r,title:t}))),re=[{label:`Times`,value:`family:roman`,style:{fontFamily:`roman`}},{label:`Helvetica`,value:`family:sans-serif`,style:{fontFamily:`sans-serif`}},{label:`Courier`,value:`family:monospace`,style:{fontFamily:`monospace`}},{label:`Calligraphic`,value:`variant:calligraphic`,style:{variant:`calligraphic`}},{label:`Script`,value:`variant:script`,style:{variant:`script`}},{label:`Fraktur`,value:`variant:fraktur`,style:{variant:`fraktur`}},{label:`Blackboard`,value:`variant:double-struck`,style:{variant:`double-struck`}}],ie={fontFamily:`none`,variant:`main`},ae=[{label:`8px`,value:`3`},{label:`10px`,value:`4`},{label:`12px`,value:`5`},{label:`14px`,value:`6`},{label:`16px`,value:`7`},{label:`18px`,value:`8`},{label:`24px`,value:`10`}],oe={up:{x:0,y:-1},right:{x:1,y:0},left:{x:-1,y:0},down:{x:0,y:1}};function se(e=``){let t=String(e||``),n=0,r=0,i=/^\\htmlStyle\{([^}]*)\}\{([\s\S]*)\}$/;for(;;){let e=t.match(i);if(!e)break;let a=e[1]||``;if(!a.includes(`display:inline-block`)||!a.includes(`position:relative`))break;let o=a.match(/left:\s*(-?\d+)px/i),s=a.match(/top:\s*(-?\d+)px/i);n+=o?parseInt(o[1],10):0,r+=s?parseInt(s[1],10):0,t=e[2]||``}return{baseLatex:t,offsetX:n,offsetY:r}}function ce(e,t,n){let r=[`display:inline-block`,`position:relative`];return t!==0&&r.push(`left:${t}px`),n!==0&&r.push(`top:${n}px`),`\\htmlStyle{${r.join(`;`)};}{${e}}`}var le=[{id:`roots-main`,label:(0,f.jsx)(z,{}),items:[{label:`□/□`,insert:`\\frac{#0}{#?}`,title:`Fraction`,cls:`green-template black-glyph-template`,icon:`stacked-fraction`},{label:`□/□`,insert:`{#0}/{#?}`,title:`Bevelled Fraction`,cls:`green-template black-glyph-template`},{label:`√□`,insert:`\\sqrt{#0}`,title:`Square Root`,cls:`green-template black-glyph-template`,icon:`square-root-template`},{label:`□√□`,insert:`\\sqrt[#?]{#0}`,title:`Root`,cls:`green-template black-glyph-template`,icon:`nth-root-template`},{type:`sep`,cols:2},{label:`□^□`,insert:`#0^{#?}`,title:`Superscript`,cls:`green-template black-glyph-template`,icon:`superscript-template`},{label:`□_□`,insert:`#0_{#?}`,title:`Subscript`,cls:`green-template black-glyph-template`,icon:`subscript-template`},{type:`sep`,cols:1},{label:`(□)`,insert:`\\left(#0\\right)`,title:`Parentheses`,cls:`green-template green-placeholder-glyph`},{label:`|□|`,insert:`\\left|#0\\right|`,title:`Absolute Value`,cls:`green-template green-placeholder-glyph`},{label:`[□]`,insert:`\\left[#0\\right]`,title:`Square Brackets`,cls:`green-template green-placeholder-glyph`},{label:`{□}`,insert:`\\left\\{#0\\right\\}`,title:`Curly Braces`,cls:`green-template green-placeholder-glyph`},{type:`sep`,cols:3},{label:`+`,insert:`+`},{label:`−`,insert:`-`},{label:`×`,insert:`\\times`},{label:`÷`,insert:`\\div`},{label:`/`,insert:`/`},{label:`±`,insert:`\\pm`},{type:`sep`,cols:3},{label:`≥`,insert:`\\geq`},{label:`≤`,insert:`\\leq`},{label:`∩`,insert:`\\cap`},{label:`∪`,insert:`\\cup`},{label:`⊂`,insert:`\\subset`},{label:`∈`,insert:`\\in`},{type:`sep`,cols:4},{label:`∅`,insert:`\\emptyset`},{label:`∞`,insert:`\\infty`},{label:`π`,insert:`\\pi`},{type:`sep`,cols:2},{label:`✂`,action:`CUT`,title:`Cut Formula`,cls:`soft-tool`},{label:`⧉`,action:`COPY`,title:`Copy Formula`,cls:`soft-tool`},{label:`⎘`,action:`PASTE`,title:`Paste Formula`,cls:`soft-tool`},{label:`↶`,action:`UNDO`,title:`Undo`,cls:`soft-tool`},{label:`↷`,action:`REDO`,title:`Redo`,cls:`soft-tool`},{label:`⌫`,action:`CLEAR`,title:`Clear Formula`,cls:`soft-tool`},{type:`sep`,cols:3},{label:`B`,action:`BOLD`,cls:`template format-tool`,title:`Bold`},{label:`1b`,action:`ITALIC`,cls:`format-tool`,title:`Italic`},{label:`BI`,action:`BOLD_ITALIC`,cls:`format-tool`,title:`Bold Italic`},{label:`Ω`,action:`SPECIAL_CHARS`,cls:`format-tool omega-tool`,title:`Greek Letters`},{label:`T`,action:`TEXT`,cls:`format-tool text-tool`,title:`Regular Text`},{label:`A`,action:`TEXT_COLOR`,cls:`format-tool color-tool`,title:`Text Color`},{type:`sep`,cols:1},{label:`RTL`,action:`TOGGLE_RTL`,cls:`format-tool rtl-tool`,title:`Right-to-Left Input`,icon:`rtl-input-template-image`},{type:`sep`,cols:1},{type:`dropdown`,label:`Font...`,width:`92px`},{type:`dropdown`,label:`Size`,width:`86px`}]},{id:`relations`,...C[1],items:T,label:(0,f.jsx)(pe,{})},{id:`arrows`,...C[4],label:(0,f.jsx)(H,{})},{id:`greek`,label:(0,f.jsx)(me,{}),items:[{category:`Lowercase Greek Letters`,label:`α`,insert:`\\alpha`},{category:`Lowercase Greek Letters`,label:`β`,insert:`\\beta`},{category:`Lowercase Greek Letters`,label:`γ`,insert:`\\gamma`},{category:`Lowercase Greek Letters`,label:`δ`,insert:`\\delta`},{category:`Lowercase Greek Letters`,label:`ε`,insert:`\\epsilon`},{category:`Lowercase Greek Letters`,label:`ζ`,insert:`\\zeta`},{category:`Lowercase Greek Letters`,label:`η`,insert:`\\eta`},{category:`Lowercase Greek Letters`,label:`θ`,insert:`\\theta`},{category:`Lowercase Greek Letters`,label:`ϑ`,insert:`\\vartheta`},{category:`Lowercase Greek Letters`,label:`ι`,insert:`\\iota`},{category:`Lowercase Greek Letters`,label:`κ`,insert:`\\kappa`},{category:`Lowercase Greek Letters`,label:`λ`,insert:`\\lambda`},{category:`Lowercase Greek Letters`,label:`μ`,insert:`\\mu`},{category:`Lowercase Greek Letters`,label:`ν`,insert:`\\nu`},{category:`Lowercase Greek Letters`,label:`ξ`,insert:`\\xi`},{category:`Lowercase Greek Letters`,label:`ο`,insert:`ο`},{category:`Lowercase Greek Letters`,label:`π`,insert:`\\pi`},{category:`Lowercase Greek Letters`,label:`ϖ`,insert:`\\varpi`},{category:`Lowercase Greek Letters`,label:`ρ`,insert:`\\rho`},{category:`Lowercase Greek Letters`,label:`ς`,insert:`\\varsigma`},{category:`Lowercase Greek Letters`,label:`σ`,insert:`\\sigma`},{category:`Lowercase Greek Letters`,label:`τ`,insert:`\\tau`},{category:`Lowercase Greek Letters`,label:`υ`,insert:`\\upsilon`},{category:`Lowercase Greek Letters`,label:`φ`,insert:`\\phi`},{category:`Lowercase Greek Letters`,label:`ϕ`,insert:`\\varphi`},{category:`Lowercase Greek Letters`,label:`χ`,insert:`\\chi`},{category:`Lowercase Greek Letters`,label:`ψ`,insert:`\\psi`},{category:`Lowercase Greek Letters`,label:`ω`,insert:`\\omega`},{category:`Greek Letter Picker`,label:`|`,action:`GREEK_ITALIC_PICKER`,title:`Italic Uppercase Greek`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool greek-italic-picker-tool`},{category:`Blackboard Bold / Number Sets`,label:`ℕ`,insert:`\\mathbb{N}`},{category:`Blackboard Bold / Number Sets`,label:`ℤ`,insert:`\\mathbb{Z}`},{category:`Blackboard Bold / Number Sets`,label:`ℚ`,insert:`\\mathbb{Q}`},{category:`Blackboard Bold / Number Sets`,label:`ℂ`,insert:`\\mathbb{C}`},{category:`Blackboard Bold / Number Sets`,label:`ℝ`,insert:`\\mathbb{R}`},{category:`Blackboard Bold / Number Sets`,label:`ℙ`,insert:`\\mathbb{P}`},{category:`Blackboard Bold Picker`,label:`|`,action:`BLACKBOARD_BOLD_PICKER`,title:`More Blackboard Bold Letters`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool blackboard-bold-picker-tool`},{category:`Fraktur Symbols`,label:`𝔄`,insert:`\\mathfrak{A}`},{category:`Fraktur Symbols`,label:`𝔅`,insert:`\\mathfrak{B}`},{category:`Fraktur Symbols`,label:`𝔊`,insert:`\\mathfrak{G}`},{category:`Script Symbols`,label:`𝒜`,insert:`\\mathscr{A}`},{category:`Script Symbols`,label:`ℬ`,insert:`\\mathscr{B}`},{category:`Script Symbols`,label:`𝒞`,insert:`\\mathscr{C}`},{category:`Fraktur / Script Picker`,label:`|`,action:`FRAKTUR_SCRIPT_PICKER`,title:`More Fraktur and Script Letters`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool fraktur-script-picker-tool`},{category:`Hebrew Mathematical Symbols`,label:`ℑ`,insert:`\\Im`},{category:`Hebrew Mathematical Symbols`,label:`ℜ`,insert:`\\Re`},{category:`Hebrew Mathematical Symbols`,label:`ℓ`,insert:`\\ell`},{category:`Hebrew Symbol Picker`,label:`|`,action:`HEBREW_SYMBOL_PICKER`,title:`More Hebrew Mathematical Symbols`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool hebrew-symbol-picker-tool`},{category:`Arabic-Indic Numeral Systems`,label:`٤٦`,action:`ARABIC_INDIC_NUMERALS`,title:`Arabic-Indic Numerals`,icon:`arabic-indic-numerals-template-image`,cls:`numeral-mode-tool`},{category:`Arabic-Indic Numeral Systems`,label:`۴۶`,action:`EASTERN_ARABIC_INDIC_NUMERALS`,title:`Eastern Arabic-Indic Numerals (Persian/Urdu)`,icon:`eastern-arabic-indic-numerals-template-image`,cls:`numeral-mode-tool`},{category:`Periodic Table Symbols`,label:`H`,insert:`H`},{category:`Periodic Table Symbols`,label:`C`,insert:`C`},{category:`Periodic Table Symbols`,label:`N`,insert:`N`},{category:`Periodic Table Symbols`,label:`O`,insert:`O`},{category:`Periodic Table Symbols`,label:`F`,insert:`F`},{category:`Periodic Table Symbols`,label:`S`,insert:`S`},{category:`Periodic Table Picker`,label:`|`,action:`PERIODIC_TABLE_PICKER`,title:`Periodic Table`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool periodic-table-picker-tool`}]},{id:`matrix`,...C[11],label:(0,f.jsx)(fe,{})},{id:`power-frac`,...C[2],label:(0,f.jsx)(B,{})},{id:`brackets`,label:(0,f.jsx)(V,{}),items:[{label:`(□)`,insert:`\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`[□]`,insert:`\\left[#0\\right]`,cls:`green-placeholder-glyph`},{label:`|□|`,insert:`\\left|#0\\right|`,cls:`green-placeholder-glyph`},{label:`‖□‖`,insert:`\\left\\| #0 \\right\\|`,cls:`green-placeholder-glyph`},{label:`⟨□⟩`,insert:`\\left\\langle #0 \\right\\rangle`,cls:`green-placeholder-glyph`},{label:`{□}`,insert:`\\left\\{#0\\right\\}`,cls:`green-placeholder-glyph`},w(`bracketDelimiterExtras`,`More Delimiters`),{type:`sep`,cols:2},{label:`overbrace`,insert:`\\overbrace{#0}`,cls:`template`,directInsert:!0,title:`Overbrace`,icon:`overbrace-arc-template-image`},{label:`underbrace`,insert:`\\underbrace{#0}`,cls:`template`,directInsert:!0,title:`Underbrace`,icon:`underbrace-arc-template-image`},{label:`overparen`,insert:`\\overparen{#0}`,cls:`template`,directInsert:!0,title:`Overparen`,icon:`overparen-template-image`},{label:`underparen`,insert:`\\underparen{#0}`,cls:`template`,directInsert:!0,title:`Underparen`,icon:`underparen-template-image`},{type:`sep`,cols:2},{label:`⃗
|
|
15
|
+
▯`,insert:`\\overrightharpoon{#0}`,cls:`template`,directInsert:!0,title:`Vector Accent`,icon:`vec-accent-template-image`},{label:`→
|
|
16
|
+
▯`,insert:`\\overrightarrow{#?}`,cls:`template`,directInsert:!0,title:`Right Arrow Accent`,icon:`overrightarrow-accent-template-image`},{label:`↔
|
|
17
|
+
▯`,insert:`\\overleftrightarrow{#?}`,cls:`template`,directInsert:!0,title:`Left-Right Arrow Accent`,icon:`overleftrightarrow-accent-template-image`},{label:`¯
|
|
18
|
+
▯`,insert:`\\overline{#?}`,cls:`template`,directInsert:!0,title:`Overline Accent`,icon:`overline-accent-template-image`},{label:`^
|
|
19
|
+
▯`,insert:`\\widehat{#?}`,cls:`template`,directInsert:!0,title:`Hat Accent`,icon:`hat-accent-template-image`},{label:`~
|
|
20
|
+
▯`,insert:`\\tilde{#?}`,cls:`template`,directInsert:!0,title:`Tilde Accent`,icon:`tilde-accent-template-image`},{label:`¨
|
|
21
|
+
▯`,insert:`\\ddot{#?}`,cls:`template`,directInsert:!0,title:`Double Dot Accent`,icon:`ddot-accent-template-image`},{label:`˙
|
|
22
|
+
▯`,insert:`\\dot{#?}`,cls:`template`,directInsert:!0,title:`Dot Accent`,icon:`dot-accent-template-image`},{type:`sep`,cols:2},{label:`¯
|
|
23
|
+
▯`,insert:`\\overline{#?}`,cls:`template`,directInsert:!0,title:`Overline`,icon:`overline-frame-template-image`},{label:`_
|
|
24
|
+
▯`,insert:`\\underline{#?}`,cls:`template`,directInsert:!0,title:`Underline`,icon:`underline-frame-template-image`},{label:`|
|
|
25
|
+
▯`,insert:`\\left|#?\\right.`,cls:`template`,directInsert:!0,title:`Left Bar`,icon:`left-bar-template-image`},{label:`▯
|
|
26
|
+
|`,insert:`\\left.#?\\right|`,cls:`template`,directInsert:!0,title:`Right Bar`,icon:`right-bar-template-image`},{label:`□
|
|
27
|
+
▯`,insert:`\\boxed{#?}`,cls:`template`,directInsert:!0,title:`Boxed`,icon:`boxed-square-template-image`},{label:`(
|
|
28
|
+
▯
|
|
29
|
+
)`,insert:`\\enclose{circle}{#?}`,cls:`template`,directInsert:!0,title:`Rounded Enclosure`,icon:`paren-frame-template-image`},w(`enclosureFrameExtras`,`More Enclosures`),{type:`sep`,cols:2},{label:`╱
|
|
30
|
+
▯`,insert:`\\cancel{#?}`,cls:`template`,directInsert:!0,title:`Cancel`,icon:`cancel-diagonal-template-image`},{label:`╲
|
|
31
|
+
▯`,insert:`\\bcancel{#?}`,cls:`template`,directInsert:!0,title:`Backward Cancel`,icon:`bcancel-template-image`},{label:`?
|
|
32
|
+
?`,insert:`\\htmlStyle{text-decoration:line-through;text-decoration-skip-ink:none;}{#0}`,cls:`template`,directInsert:!0,title:`Strikeout Text`,icon:`sout-template-image`},{label:`╳
|
|
33
|
+
▯`,insert:`\\xcancel{#?}`,cls:`template`,directInsert:!0,title:`Cross Cancel`,icon:`xcancel-template-image`},w(`strikeDecorationExtras`,`More Strike Decorations`)]},{id:`sets`,label:(0,f.jsx)(R,{top:`Σ ∪`,compact:!0}),items:[{label:`sum-limits-both`,insert:`\\sum\\limits_{#?}^{#?}`,cls:`template`,directInsert:!0,title:`Summation With Upper and Lower Limits`,icon:`sum-limits-both-template-image`},{label:`sum-limits-lower`,insert:`\\sum\\limits_{#?}`,cls:`template`,directInsert:!0,title:`Summation With Lower Limit`,icon:`sum-limits-lower-template-image`},{label:`sum-right-both`,insert:`\\sum\\nolimits^{#?}_{#?}`,cls:`template`,directInsert:!0,title:`Summation With Right Superscript and Subscript`,icon:`sum-right-both-template-image`},{label:`sum-right-lower`,insert:`\\sum\\nolimits_{#?}`,cls:`template`,directInsert:!0,title:`Summation With Right Subscript`,icon:`sum-right-lower-template-image`},{label:`prod-limits-both`,insert:`\\prod\\limits^{#?}_{#?}`,cls:`template`,directInsert:!0,title:`Product With Upper and Lower Limits`,icon:`prod-limits-both-template-image`},{label:`prod-limits-lower`,insert:`\\prod\\limits_{#?}`,cls:`template`,directInsert:!0,title:`Product With Lower Limit`,icon:`prod-limits-lower-template-image`},{label:`prod-right-both`,insert:`\\prod\\nolimits^{#?}_{#?}`,cls:`template`,directInsert:!0,title:`Product With Right Superscript and Subscript`,icon:`prod-right-both-template-image`},{label:`prod-right-lower`,insert:`\\prod\\nolimits_{#?}`,cls:`template`,directInsert:!0,title:`Product With Right Subscript`,icon:`prod-right-lower-template-image`},{label:`□
|
|
34
|
+
▯
|
|
35
|
+
□`,insert:`\\displaystyle{\\underset{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.34em;line-height:1.15}{#?}}{\\overset{\\htmlStyle{font-size:1.1em;display:inline-block;padding-bottom:0.34em;line-height:1.15}{#?}}{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}}}}`,cls:`template`,directInsert:!0,title:`Operator With Upper and Lower Limits`,icon:`operator-limits-both-template-image`},{label:`▯
|
|
36
|
+
□`,insert:`\\displaystyle{\\underset{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.34em;line-height:1.15}{#?}}{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}}}`,cls:`template`,directInsert:!0,title:`Operator With Lower Limit`,icon:`operator-lower-limit-template-image`},{label:`▯^□_□`,insert:`\\displaystyle{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}^{\\htmlStyle{font-size:1.1em;display:inline-block;padding-bottom:0.26em;line-height:1.15}{#?}}_{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.26em;line-height:1.15}{#?}}}`,cls:`template`,directInsert:!0,title:`Operator With Right Superscript and Subscript`,icon:`operator-right-sup-sub-template-image`},{label:`▯_□`,insert:`\\displaystyle{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}_{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.26em;line-height:1.15}{#?}}}`,cls:`template`,directInsert:!0,title:`Operator With Right Subscript`,icon:`operator-right-sub-template-image`},{label:`⋂`,insert:`\\bigcap`},{label:`⋃`,insert:`\\bigcup`},{label:`∏`,insert:`\\prod`},{label:`∐`,insert:`\\coprod`},{label:`⨅`,insert:`\\sqcap`},{label:`⨆`,insert:`\\bigsqcup`},{label:`∑`,insert:`\\sum`}]},{id:`calc`,label:(0,f.jsx)(he,{}),isTemplate:!0,items:[{label:`integral-both`,insert:`\\int_{#?}^{#?}`,cls:`template`,directInsert:!0,title:`Definite Integral`,icon:`integral-both-template-image`},{label:`integral-lower`,insert:`\\int_{#?}`,cls:`template`,directInsert:!0,title:`Integral With Subscript`,icon:`integral-lower-template-image`},{label:`∫□d□`,insert:`\\int_{#?}^{#?} #? \\, d#?`,directInsert:!0,title:`Integral`,icon:`integral-box-differential-template-image`},{label:``,insert:`\\int_{#?} #? \\, d#?`,cls:`template`,directInsert:!0,title:`Integral`,icon:`integral-template-image`},{type:`sep`,cols:4},{label:`d`,insert:`d`,cls:`template`,directInsert:!0,title:`Differential`},{label:`∂`,insert:`∂`,cls:`template`,directInsert:!0,title:`Partial Differential`},{label:`first-derivative`,insert:`\\frac{d#?}{d#?}`,cls:`template`,directInsert:!0,title:`First Derivative`,icon:`first-derivative-template-image`},{label:`partial-derivative`,insert:`\\frac{\\partial#?}{\\partial#?}`,cls:`template`,directInsert:!0,title:`Partial Derivative`,icon:`partial-derivative-template-image`},{type:`sep`,cols:2},{label:`limit-infinity`,insert:`\\lim_{#?\\to\\infty}`,cls:`template`,directInsert:!0,title:`Limit to Infinity`,icon:`limit-infinity-template-image`},{label:`limit-generic`,insert:`\\lim_{#?}`,cls:`template`,directInsert:!0,title:`Limit`,icon:`limit-generic-template-image`},{type:`sep`,cols:2},{label:`∇×□`,insert:`\\nabla \\times #?`,cls:`template green-placeholder-glyph`,directInsert:!0,title:`Curl`},{label:`∇·□`,insert:`\\nabla \\cdot #?`,cls:`template green-placeholder-glyph`,directInsert:!0,title:`Divergence`},{label:`∇□`,insert:`\\nabla #?`,cls:`template green-placeholder-glyph`,directInsert:!0,title:`Gradient`},{label:`Δ□`,insert:`\\Delta #?`,cls:`template green-placeholder-glyph`,directInsert:!0,title:`Delta Expression`},{type:`sep`,cols:3},{label:`∫`,insert:`\\int`,icon:`single-integral-template-image`},{label:`∮`,insert:`\\oint`,icon:`contour-integral-template-image`},{label:`∬`,insert:`\\iint`,icon:`double-integral-template-image`},{label:`∯`,insert:`\\oiint`,icon:`double-contour-integral-template-image`},w(`tripleIntegralExtras`,`More Triple Integrals`),{type:`sep`,cols:2},{label:`log(□)`,insert:`\\log\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`log₍□₎(□)`,insert:`\\log_{#?}\\left(#?\\right)`,cls:`template`,directInsert:!0,title:`Logarithm With Base`,icon:`log-base-template-image`},{type:`sep`,cols:4},{label:`sin(□)`,insert:`\\sin\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`tan(□)`,insert:`\\tan\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`cos(□)`,insert:`\\cos\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`ln(□)`,insert:`\\ln\\left(#0\\right)`,cls:`green-placeholder-glyph`},w(`trigFunctionExtras`,`More Trig Functions`)]},{id:`move-text`,label:(0,f.jsx)(ge,{}),isTemplate:!0,items:[{label:`Move Up`,action:`MOVE_TEXT_UP`,cls:`template`,title:`Move Up`,icon:`move-text-up-template-image`},{label:`Move Right`,action:`MOVE_TEXT_RIGHT`,cls:`template`,title:`Move Right`,icon:`move-text-right-template-image`},{label:`Move Left`,action:`MOVE_TEXT_LEFT`,cls:`template`,title:`Move Left`,icon:`move-text-left-template-image`},{label:`Move Down`,action:`MOVE_TEXT_DOWN`,cls:`template`,title:`Move Down`,icon:`move-text-down-template-image`}]}],ue=[{id:`chem-period-1`,label:(0,f.jsx)(R,{top:`H-Ne`,bottom:`elem`}),isChem:!0,items:[`H`,`He`,`Li`,`Be`,`B`,`C`,`N`,`O`,`F`,`Ne`].map(e=>({label:e,insert:e,cls:`chem-element`}))},{id:`chem-period-2`,label:(0,f.jsx)(R,{top:`Na-Ca`,bottom:`elem`}),isChem:!0,items:[`Na`,`Mg`,`Al`,`Si`,`P`,`S`,`Cl`,`Ar`,`K`,`Ca`].map(e=>({label:e,insert:e,cls:`chem-element`}))},{id:`chem-reactions`,label:(0,f.jsx)(R,{top:`Fe-Zn`,bottom:`→ ⇌`}),isChem:!0,items:[...[`Fe`,`Cu`,`Zn`,`Mn`].map(e=>({label:e,insert:e,cls:`chem-element`})),{type:`sep`,cols:2},...[`Cr`,`Ni`,`Co`,`Ag`].map(e=>({label:e,insert:e,cls:`chem-element`})),{type:`sep`,cols:2},...[`Au`,`Hg`,`Pb`,`Sn`].map(e=>({label:e,insert:e,cls:`chem-element`})),{type:`sep`,cols:2},...[`Br`,`I`,`Ba`,`Pt`].map(e=>({label:e,insert:e,cls:`chem-element`})),{type:`sep`,cols:2},{label:`Xe`,insert:`Xe`,cls:`chem-element`},{type:`sep`,cols:5},{label:`→`,insert:`->`,cls:`chem-arrow`},{label:`⇌`,insert:`<=>`,cls:`chem-arrow`},{label:`←`,insert:`<-`,cls:`chem-arrow`},{label:`⇄`,insert:`<->`,cls:`chem-arrow`},{label:`↑`,insert:`^`,cls:`chem-arrow`},{type:`sep`,cols:4},{label:`↓`,insert:`v`,cls:`chem-arrow`},{label:`+`,insert:` + `,cls:`chem-arrow`},{label:`→(Δ)`,insert:`->[\\Delta]`,cls:`chem-arrow`},{label:`→(aq)`,insert:`->[aq]`,cls:`chem-arrow`}]},{id:`chem-states`,label:(0,f.jsx)(R,{top:`(aq)`,bottom:`± ₂`}),isChem:!0,items:[{label:`(s)`,insert:`(s)`,cls:`chem-state`},{label:`(l)`,insert:`(l)`,cls:`chem-state`},{label:`(g)`,insert:`(g)`,cls:`chem-state`},{label:`(aq)`,insert:`(aq)`,cls:`chem-state`},{type:`sep`,cols:2},{label:`(conc)`,insert:`(conc)`,cls:`chem-state`},{label:`(dil)`,insert:`(dil)`,cls:`chem-state`},{label:`(ppt)`,insert:`(ppt)`,cls:`chem-state`},{type:`sep`,cols:2},{label:`✚`,insert:`^{+}`,cls:`chem-element`},{label:`━`,insert:`^{-}`,cls:`chem-element`},{label:`²⁺`,insert:`^{2+}`,cls:`chem-element`},{label:`²⁻`,insert:`^{2-}`,cls:`chem-element`},{type:`sep`,cols:2},{label:`³⁺`,insert:`^{3+}`,cls:`chem-element`},{label:`³⁻`,insert:`^{3-}`,cls:`chem-element`},{label:`2`,insert:`2`,cls:`chem-element`},{label:`3`,insert:`3`,cls:`chem-element`},{type:`sep`,cols:2},{label:`4`,insert:`4`,cls:`chem-element`},{label:`5`,insert:`5`,cls:`chem-element`},{label:`6`,insert:`6`,cls:`chem-element`},{label:`7`,insert:`7`,cls:`chem-element`},{type:`sep`,cols:3},{label:`8`,insert:`8`,cls:`chem-element`},{label:`x`,insert:`x`,cls:`chem-element`},{label:`n`,insert:`n`,cls:`chem-element`}]},{id:`chem-molecules`,label:(0,f.jsx)(R,{top:`H₂O`,bottom:`ions`}),isChem:!0,items:[{label:`H₂O`,insert:`H2O`,cls:`chem-element`},{label:`CO₂`,insert:`CO2`,cls:`chem-element`},{label:`NH₃`,insert:`NH3`,cls:`chem-element`},{label:`H₂SO₄`,insert:`H2SO4`,cls:`chem-element`},{label:`HCl`,insert:`HCl`,cls:`chem-element`},{label:`NaOH`,insert:`NaOH`,cls:`chem-element`},{label:`NaCl`,insert:`NaCl`,cls:`chem-element`},{label:`CaCO₃`,insert:`CaCO3`,cls:`chem-element`},{label:`HNO₃`,insert:`HNO3`,cls:`chem-element`},{label:`H₃PO₄`,insert:`H3PO4`,cls:`chem-element`},{label:`CH₃COOH`,insert:`CH3COOH`,cls:`chem-element`},{label:`C₆H₁₂O₆`,insert:`C6H12O6`,cls:`chem-element`},{label:`CH₄`,insert:`CH4`,cls:`chem-element`},{label:`C₂H₅OH`,insert:`C2H5OH`,cls:`chem-element`},{label:`CO₃²⁻`,insert:`CO3^{2-}`,cls:`chem-element`},{label:`SO₄²⁻`,insert:`SO4^{2-}`,cls:`chem-element`},{label:`NO₃⁻`,insert:`NO3^-`,cls:`chem-element`},{label:`PO₄³⁻`,insert:`PO4^{3-}`,cls:`chem-element`},{label:`NH₄⁺`,insert:`NH4^+`,cls:`chem-element`},{label:`OH⁻`,insert:`OH^-`,cls:`chem-element`}]}];function de(e=``){if(String(e).match(/^\\ce\{([\s\S]*)\}$/))return e;let t=e.replace(/\\text\{([^}]*)\}/g,`$1`).replace(/\$/g,``).trim();return t?`\\ce{${t}}`:``}function R({top:e,bottom:t=``,compact:n=!1}){return(0,f.jsxs)(`span`,{className:`cme-tab-icon${n?` compact`:``}`,"aria-hidden":`true`,children:[(0,f.jsx)(`span`,{className:`cme-tab-icon-top`,children:e}),t?(0,f.jsx)(`span`,{className:`cme-tab-icon-bottom`,children:t}):null]})}function z(){return(0,f.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,f.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 48 24`,focusable:`false`,children:[(0,f.jsx)(`path`,{d:`M2 13 L5 13 L7 18 L10 4 L20 4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,f.jsx)(`rect`,{x:`13`,y:`7`,width:`8`,height:`8`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`}),(0,f.jsx)(`rect`,{x:`31`,y:`3`,width:`6`,height:`6`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`}),(0,f.jsx)(`line`,{x1:`29`,y1:`12`,x2:`39`,y2:`12`,stroke:`currentColor`,strokeWidth:`1.7`}),(0,f.jsx)(`rect`,{x:`31`,y:`15`,width:`6`,height:`6`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`})]})})}function fe(){return(0,f.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,f.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 210 110`,focusable:`false`,children:[(0,f.jsx)(`path`,{d:`M12 8 H4 V102 H12`,fill:`none`,stroke:`currentColor`,strokeWidth:`7`}),(0,f.jsx)(`path`,{d:`M96 8 H104 V102 H96`,fill:`none`,stroke:`currentColor`,strokeWidth:`7`}),(0,f.jsx)(`rect`,{x:`24`,y:`15`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,f.jsx)(`rect`,{x:`64`,y:`15`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,f.jsx)(`rect`,{x:`24`,y:`63`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,f.jsx)(`rect`,{x:`64`,y:`63`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,f.jsx)(`path`,{d:`M142 8 C132 8 132 18 132 28 C132 38 128 45 124 49 C128 53 132 60 132 70 C132 80 132 90 142 102`,fill:`none`,stroke:`currentColor`,strokeWidth:`7`}),(0,f.jsx)(`rect`,{x:`154`,y:`15`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,f.jsx)(`rect`,{x:`154`,y:`63`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`})]})})}function B(){return(0,f.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,f.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 70 50`,focusable:`false`,children:[(0,f.jsx)(`rect`,{x:`4`,y:`20`,width:`20`,height:`28`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`}),(0,f.jsx)(`rect`,{x:`24`,y:`6`,width:`12`,height:`22`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`}),(0,f.jsx)(`rect`,{x:`51`,y:`10`,width:`8`,height:`10`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`}),(0,f.jsx)(`rect`,{x:`48`,y:`30`,width:`14`,height:`18`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`})]})})}function pe(){return(0,f.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,f.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 56 28`,focusable:`false`,children:[(0,f.jsx)(`path`,{d:`M18 4 C10 4 6 9 6 14 C6 19 10 24 18 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,f.jsx)(`line`,{x1:`8`,y1:`14`,x2:`18`,y2:`14`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`}),(0,f.jsx)(`text`,{x:`26`,y:`24`,fill:`currentColor`,fontFamily:`Cambria Math, serif`,fontSize:`35`,children:`∞`})]})})}function me(){return(0,f.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,f.jsx)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 40 24`,focusable:`false`,children:(0,f.jsx)(`text`,{x:`2`,y:`20`,fill:`currentColor`,fontFamily:`Segoe UI Symbol, Arial Unicode MS, sans-serif`,fontSize:`25`,children:`α Ω`})})})}function V(){return(0,f.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,f.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 90 50`,focusable:`false`,children:[(0,f.jsx)(`path`,{d:`M12 8 C4 14,4 36,12 42`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,strokeLinecap:`round`}),(0,f.jsx)(`rect`,{x:`20`,y:`10`,width:`18`,height:`30`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`}),(0,f.jsx)(`path`,{d:`M46 8 C54 14,54 36,46 42`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,strokeLinecap:`round`}),(0,f.jsx)(`path`,{d:`M65 10 Q75 2 85 10`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,strokeLinecap:`round`}),(0,f.jsx)(`rect`,{x:`68`,y:`18`,width:`14`,height:`22`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`})]})})}function he(){return(0,f.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,f.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 80 50`,focusable:`false`,children:[(0,f.jsx)(`text`,{x:`2`,y:`40`,fill:`currentColor`,fontSize:`42`,fontFamily:`Cambria Math, Times New Roman, serif`,fontWeight:`500`,children:`∫`}),(0,f.jsx)(`rect`,{x:`30`,y:`1`,width:`10`,height:`10`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`}),(0,f.jsx)(`rect`,{x:`24`,y:`40`,width:`10`,height:`10`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`}),(0,f.jsx)(`text`,{x:`45`,y:`36`,fill:`currentColor`,fontSize:`32`,fontWeight:`500`,fontFamily:`Cambria Math, Times New Roman, serif`,children:`lim`})]})})}function ge(){return(0,f.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,f.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,children:[(0,f.jsx)(`path`,{d:`M12 3V12`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`}),(0,f.jsx)(`path`,{d:`M8.5 8.5L12 12L15.5 8.5`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`}),(0,f.jsx)(`path`,{d:`M4 15C4 19 7.5 22 12 22C16.5 22 20 19 20 15`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,fill:`none`}),(0,f.jsx)(`path`,{d:`M7 15C7 17.5 9 19 12 19C15 19 17 17.5 17 15`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,fill:`none`})]})})}function H(){return(0,f.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,f.jsx)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 64 24`,focusable:`false`,children:(0,f.jsxs)(`g`,{fill:`currentColor`,children:[(0,f.jsx)(`path`,{d:`M4 10h20V5l12 7-12 7v-5H4z`}),(0,f.jsx)(`circle`,{cx:`44`,cy:`18`,r:`2.5`}),(0,f.jsx)(`circle`,{cx:`52`,cy:`12`,r:`2.5`}),(0,f.jsx)(`circle`,{cx:`60`,cy:`6`,r:`2.5`})]})})})}var _e=class extends d.Plugin{static get pluginName(){return`MathInlinePlugin`}static get requires(){return[d.Widget]}init(){let e=this.editor;e.model.schema.register(`mathInline`,{isInline:!0,isObject:!0,allowWhere:`$text`,allowAttributes:[`latex`,`dir`]}),e.model.schema.addChildCheck((e,t)=>{if(t.name===`mathInline`)return!0}),e.conversion.for(`editingDowncast`).elementToElement({model:`mathInline`,view:(t,{writer:n})=>{let r=t.getAttribute(`latex`)||``,i=t.getAttribute(`dir`)===`rtl`?`rtl`:`ltr`,a=`math-`+Math.random().toString(36).substr(2,9);window.__ckMathWidgets.set(a,t);let o=n.createContainerElement(`span`,{class:`ck-math-widget ck-math-inline-word`,contenteditable:`false`,"data-math-id":a,"data-latex":r,"data-dir":i,dir:i}),s=n.createRawElement(`span`,{class:`ck-math-widget-inner`,style:`display:inline-block;vertical-align:middle;margin:0 2px;cursor:pointer;width:auto;max-width:100%;pointer-events:none;`},t=>{let n=document.createElement(`math-field`);n.setAttribute(`read-only`,``),n.setAttribute(`math-virtual-keyboard-policy`,`manual`),n.setAttribute(`tabindex`,`-1`),n.setAttribute(`letter-shape-style`,`upright`),n.setAttribute(`dir`,i),n.style.display=`inline-block`,n.style.width=`auto`,n.style.maxWidth=`100%`,n.style.verticalAlign=`middle`,n.style.border=`none`,n.style.background=`transparent`,n.style.outline=`none`,n.style.fontSize=`inherit`,n.style.minHeight=`auto`,n.style.padding=`0 2px`,n.style.margin=`0`,n.style.pointerEvents=`none`,n.style.direction=i,n.style.textAlign=i===`rtl`?`right`:`left`,n.style.unicodeBidi=i===`rtl`?`plaintext`:`normal`,n.style.color=`#ffffff`;let a=()=>{n.setValue?n.setValue(r,{silenceNotifications:!0}):n.value=r};customElements.get(`math-field`)?requestAnimationFrame(a):customElements.whenDefined(`math-field`).then(()=>requestAnimationFrame(a)),t.appendChild(n);let o=()=>{let n=t.parentElement;n&&S(e,n)};o(),requestAnimationFrame(o)});return n.insert(n.createPositionAt(o,0),s),(0,d.toWidget)(o,n,{label:`math formula`})}});let t=e.editing.view.document;this.listenTo(t,`mousedown`,(t,n)=>{let r=g(n.domTarget);r&&n.domEvent.button===0&&(t.stop(),n.preventDefault(),x(e,null,_(r),r))},{priority:`high`}),e.conversion.for(`dataDowncast`).elementToElement({model:`mathInline`,view:(e,{writer:t})=>{let n=e.getAttribute(`latex`)||``,r=e.getAttribute(`dir`)===`rtl`?`rtl`:`ltr`,i=t.createContainerElement(`span`,{class:`math-tex`,"data-latex":n,"data-dir":r,dir:r,style:`display:inline;`});return t.insert(t.createPositionAt(i,0),t.createText(n)),i}}),e.conversion.for(`upcast`).elementToElement({view:{name:`span`,classes:`math-tex`},model:(e,{writer:t})=>{let n=e.getAttribute(`data-latex`)||``,r=e.getAttribute(`data-dir`)===`rtl`||e.getAttribute(`dir`)===`rtl`?`rtl`:`ltr`;return t.createElement(`mathInline`,{latex:n,dir:r})}})}},U=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20"><path d="M4 12h3l3 6l5-12h5" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`,ve=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20"><rect x="3" y="3" width="18" height="18" rx="3" fill="none" stroke="currentColor" stroke-width="2"/><text x="12" y="16" text-anchor="middle" font-size="12" font-weight="bold" fill="currentColor" font-family="system-ui, sans-serif">C</text><text x="6" y="8" font-size="4" font-weight="bold" fill="currentColor" font-family="system-ui, sans-serif">6</text></svg>`,ye=[{label:`Black`,value:`#000000`},{label:`Dim Gray`,value:`#696969`},{label:`Gray`,value:`#808080`},{label:`Dark Gray`,value:`#a9a9a9`},{label:`Silver`,value:`#c0c0c0`},{label:`White`,value:`#ffffff`},{label:`Red`,value:`#ff0000`},{label:`Orange`,value:`#ffa500`},{label:`Yellow`,value:`#ffff00`},{label:`Lime`,value:`#00ff00`},{label:`Cyan`,value:`#00ffff`},{label:`Blue`,value:`#0000ff`},{label:`Purple`,value:`#800080`},{label:`Magenta`,value:`#ff00ff`},{label:`Pink`,value:`#ffc0cb`},{label:`Brown`,value:`#a52a2a`},{label:`Maroon`,value:`#800000`},{label:`Olive`,value:`#808000`},{label:`Green`,value:`#008000`},{label:`Teal`,value:`#008080`},{label:`Navy`,value:`#000080`},{label:`Indigo`,value:`#4b0082`},{label:`Violet`,value:`#ee82ee`},{label:`Gold`,value:`#ffd700`}];function be(e){let t=String(e||``).trim();if(!t)return``;if(t===`none`)return`none`;if(typeof document>`u`)return t.toLowerCase();let n=document.createElement(`span`);if(n.style.color=``,n.style.color=t,!n.style.color)return``;n.style.position=`absolute`,n.style.opacity=`0`,n.style.pointerEvents=`none`,document.body.appendChild(n);let r=window.getComputedStyle(n).color;n.remove();let i=r.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)/i);return i?`#${[i[1],i[2],i[3]].map(e=>Number(e).toString(16).padStart(2,`0`)).join(``)}`:r.toLowerCase()}function W(e){return`data:image/svg+xml;utf8,${encodeURIComponent(e)}`}function G(e){return W(`
|
|
37
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
38
|
+
<g fill="none" stroke="#1f252b" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
|
39
|
+
${e}
|
|
40
|
+
</g>
|
|
41
|
+
</svg>
|
|
42
|
+
`)}var xe={"fraction-template-image":W(`
|
|
43
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
44
|
+
<rect x="6.1" y="1.8" width="6" height="4.8" rx="0" fill="none" stroke="#2c8a43" stroke-width="1.6"/>
|
|
45
|
+
<line x1="3.2" y1="9" x2="14.8" y2="9" stroke="#000000" stroke-width="1.6" stroke-linecap="square"/>
|
|
46
|
+
<rect x="6.1" y="11.4" width="6" height="4.8" rx="0" fill="none" stroke="#2c8a43" stroke-width="1.6"/>
|
|
47
|
+
</svg>
|
|
48
|
+
`),"superscript-template-image":W(`
|
|
49
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
50
|
+
<rect x="3.1" y="7.3" width="6.5" height="7.4" rx="0.6" fill="none" stroke="#2c8a43" stroke-width="1.5"/>
|
|
51
|
+
<rect x="10.3" y="3.2" width="4.6" height="5.6" rx="0.6" fill="none" stroke="#2c8a43" stroke-width="1.5"/>
|
|
52
|
+
</svg>
|
|
53
|
+
`),"sqrt-template-image":W(`
|
|
54
|
+
<svg width="48" height="32" viewBox="-7 0 48 32" xmlns="http://www.w3.org/2000/svg">
|
|
55
|
+
<path
|
|
56
|
+
d="M4 18 L11 25 L18 4 L38 4"
|
|
57
|
+
fill="none"
|
|
58
|
+
stroke="#222"
|
|
59
|
+
stroke-width="2.5"
|
|
60
|
+
stroke-linecap="round"
|
|
61
|
+
stroke-linejoin="round"
|
|
62
|
+
/>
|
|
63
|
+
<rect
|
|
64
|
+
x="23"
|
|
65
|
+
y="9"
|
|
66
|
+
width="10"
|
|
67
|
+
height="13"
|
|
68
|
+
fill="none"
|
|
69
|
+
stroke="#43A047"
|
|
70
|
+
stroke-width="2"
|
|
71
|
+
/>
|
|
72
|
+
</svg>
|
|
73
|
+
`),"subscript-template-image":W(`
|
|
74
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
75
|
+
<rect x="3.1" y="3.2" width="6.5" height="7.4" rx="0.6" fill="none" stroke="#2c8a43" stroke-width="1.5"/>
|
|
76
|
+
<rect x="10.3" y="9.2" width="4.6" height="5.6" rx="0.6" fill="none" stroke="#2c8a43" stroke-width="1.5"/>
|
|
77
|
+
</svg>
|
|
78
|
+
`),"nth-root-template-image":W(`
|
|
79
|
+
<svg width="48" height="32" viewBox="0 0 48 32" xmlns="http://www.w3.org/2000/svg">
|
|
80
|
+
<!-- index placeholder -->
|
|
81
|
+
<rect
|
|
82
|
+
x="11"
|
|
83
|
+
y="6"
|
|
84
|
+
width="6"
|
|
85
|
+
height="8"
|
|
86
|
+
fill="none"
|
|
87
|
+
stroke="#43A047"
|
|
88
|
+
stroke-width="2"
|
|
89
|
+
/>
|
|
90
|
+
|
|
91
|
+
<!-- radical sign -->
|
|
92
|
+
<path
|
|
93
|
+
d="M10 18 L17 25 L24 4 L44 4"
|
|
94
|
+
fill="none"
|
|
95
|
+
stroke="#222"
|
|
96
|
+
stroke-width="2.5"
|
|
97
|
+
stroke-linecap="round"
|
|
98
|
+
stroke-linejoin="round"
|
|
99
|
+
/>
|
|
100
|
+
|
|
101
|
+
<!-- radicand placeholder -->
|
|
102
|
+
<rect
|
|
103
|
+
x="30"
|
|
104
|
+
y="9"
|
|
105
|
+
width="10"
|
|
106
|
+
height="13"
|
|
107
|
+
fill="none"
|
|
108
|
+
stroke="#43A047"
|
|
109
|
+
stroke-width="2"
|
|
110
|
+
/>
|
|
111
|
+
</svg>
|
|
112
|
+
`),"slash-fraction-template-image":W(`
|
|
113
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 32" fill="none">
|
|
114
|
+
<rect x="2" y="4" width="10" height="18" stroke="#008000" stroke-width="1.5"/>
|
|
115
|
+
<line x1="22" y1="2" x2="14" y2="26" stroke="#000" stroke-width="2" stroke-linecap="round"/>
|
|
116
|
+
<rect x="32" y="10" width="10" height="18" stroke="#008000" stroke-width="1.5"/>
|
|
117
|
+
</svg>
|
|
118
|
+
`),"right-sup-sub-template-image":W(`
|
|
119
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none">
|
|
120
|
+
<rect x="8" y="10" width="10" height="14" stroke="#008000" stroke-width="2.5"/>
|
|
121
|
+
<rect x="20" y="2" width="8" height="10" stroke="#008000" stroke-width="2.5" opacity="1"/>
|
|
122
|
+
<rect x="20" y="20" width="8" height="10" stroke="#008000" stroke-width="2.5" opacity="1"/>
|
|
123
|
+
</svg>
|
|
124
|
+
`),"left-sup-template-image":W(`
|
|
125
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none">
|
|
126
|
+
<rect x="4" y="2" width="8" height="10" stroke="#008000" stroke-width="2.5" opacity="1"/>
|
|
127
|
+
<rect x="16" y="10" width="10" height="14" stroke="#008000" stroke-width="2.5"/>
|
|
128
|
+
</svg>
|
|
129
|
+
`),"left-sub-template-image":W(`
|
|
130
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none">
|
|
131
|
+
<rect x="16" y="6" width="10" height="14" stroke="#008000" stroke-width="2.5"/>
|
|
132
|
+
<rect x="4" y="18" width="8" height="10" stroke="#008000" stroke-width="2.5" opacity="1"/>
|
|
133
|
+
</svg>
|
|
134
|
+
`),"left-sup-sub-template-image":W(`
|
|
135
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 36" fill="none">
|
|
136
|
+
<rect x="4" y="2" width="8" height="10" stroke="#008000" stroke-width="2.5" opacity="1"/>
|
|
137
|
+
<rect x="4" y="22" width="8" height="10" stroke="#008000" stroke-width="2.5" opacity="1"/>
|
|
138
|
+
<rect x="16" y="10" width="10" height="14" stroke="#008000" stroke-width="2.5"/>
|
|
139
|
+
</svg>
|
|
140
|
+
`),"overset-template-image":W(`
|
|
141
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 40" fill="none">
|
|
142
|
+
<rect x="10" y="2" width="10" height="10" stroke="#008000" stroke-width="2.5" opacity="1"/>
|
|
143
|
+
<rect x="8" y="18" width="14" height="14" stroke="#008000" stroke-width="2.5"/>
|
|
144
|
+
</svg>
|
|
145
|
+
`),"underset-template-image":W(`
|
|
146
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 40" fill="none">
|
|
147
|
+
<rect x="8" y="6" width="14" height="14" stroke="#008000" stroke-width="2.5"/>
|
|
148
|
+
<rect x="10" y="28" width="10" height="10" stroke="#008000" stroke-width="2.5" opacity="1"/>
|
|
149
|
+
</svg>
|
|
150
|
+
`),"over-under-template-image":W(`
|
|
151
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 52" fill="none">
|
|
152
|
+
<rect x="10" y="2" width="10" height="10" stroke="#008000" stroke-width="2.5" opacity="1"/>
|
|
153
|
+
<rect x="8" y="18" width="14" height="14" stroke="#008000" stroke-width="2.5"/>
|
|
154
|
+
<rect x="10" y="40" width="10" height="10" stroke="#008000" stroke-width="2.5" opacity="1"/>
|
|
155
|
+
</svg>
|
|
156
|
+
`),"underbrace-template-image":W(`
|
|
157
|
+
<svg xmlns="http://www.w3.org/2000/svg"
|
|
158
|
+
viewBox="0 0 24 24"
|
|
159
|
+
fill="none">
|
|
160
|
+
|
|
161
|
+
<!-- Top placeholder -->
|
|
162
|
+
<rect
|
|
163
|
+
x="8"
|
|
164
|
+
y="1"
|
|
165
|
+
width="8"
|
|
166
|
+
height="8"
|
|
167
|
+
fill="none"
|
|
168
|
+
stroke="#218838"
|
|
169
|
+
stroke-width="1.6"/>
|
|
170
|
+
|
|
171
|
+
<!-- Underbrace (move using translate) -->
|
|
172
|
+
<g transform="translate(0,-1.5)">
|
|
173
|
+
<path
|
|
174
|
+
d="M4 13
|
|
175
|
+
C5.2 13 5.8 15 7.5 15
|
|
176
|
+
H10.5
|
|
177
|
+
C11.4 15 11.7 16.2 12 16.8
|
|
178
|
+
C12.3 16.2 12.6 15 13.5 15
|
|
179
|
+
H16.5
|
|
180
|
+
C18.2 15 18.8 13 20 13"
|
|
181
|
+
fill="none"
|
|
182
|
+
stroke="currentColor"
|
|
183
|
+
stroke-width="1"
|
|
184
|
+
stroke-linecap="round"
|
|
185
|
+
stroke-linejoin="round"/>
|
|
186
|
+
</g>
|
|
187
|
+
|
|
188
|
+
<!-- Bottom placeholder -->
|
|
189
|
+
<rect
|
|
190
|
+
x="9"
|
|
191
|
+
y="18"
|
|
192
|
+
width="6"
|
|
193
|
+
height="5"
|
|
194
|
+
fill="none"
|
|
195
|
+
stroke="#5A9E57"
|
|
196
|
+
stroke-width="1.4"/>
|
|
197
|
+
|
|
198
|
+
</svg>
|
|
199
|
+
`),"overbrace-template-image":W(`
|
|
200
|
+
<svg xmlns="http://www.w3.org/2000/svg"
|
|
201
|
+
viewBox="0 0 24 24"
|
|
202
|
+
fill="none">
|
|
203
|
+
|
|
204
|
+
<!-- Top placeholder -->
|
|
205
|
+
<rect
|
|
206
|
+
x="9"
|
|
207
|
+
y="1"
|
|
208
|
+
width="6"
|
|
209
|
+
height="5"
|
|
210
|
+
fill="none"
|
|
211
|
+
stroke="#5A9E57"
|
|
212
|
+
stroke-width="1.4"/>
|
|
213
|
+
|
|
214
|
+
<!-- Overbrace (move using translate) -->
|
|
215
|
+
<g transform="translate(0,1.5)">
|
|
216
|
+
<path
|
|
217
|
+
d="M4 11
|
|
218
|
+
C5.2 11 5.8 9 7.5 9
|
|
219
|
+
H10.5
|
|
220
|
+
C11.4 9 11.7 7.8 12 7.2
|
|
221
|
+
C12.3 7.8 12.6 9 13.5 9
|
|
222
|
+
H16.5
|
|
223
|
+
C18.2 9 18.8 11 20 11"
|
|
224
|
+
fill="none"
|
|
225
|
+
stroke="currentColor"
|
|
226
|
+
stroke-width="1"
|
|
227
|
+
stroke-linecap="round"
|
|
228
|
+
stroke-linejoin="round"/>
|
|
229
|
+
</g>
|
|
230
|
+
|
|
231
|
+
<!-- Bottom placeholder -->
|
|
232
|
+
<rect
|
|
233
|
+
x="8"
|
|
234
|
+
y="15"
|
|
235
|
+
width="8"
|
|
236
|
+
height="8"
|
|
237
|
+
fill="none"
|
|
238
|
+
stroke="#218838"
|
|
239
|
+
stroke-width="1.6"/>
|
|
240
|
+
|
|
241
|
+
</svg>
|
|
242
|
+
`),"overbrace-arc-template-image":W(`
|
|
243
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
|
|
244
|
+
<path d="M8 10 C8 6,12 6,16 6 C20 6,20 2,20 2 C20 2,20 6,24 6 C28 6,32 6,32 10" stroke="#000000" stroke-width="2"/>
|
|
245
|
+
<rect x="15" y="16" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
246
|
+
</svg>
|
|
247
|
+
`),"overparen-template-image":W(`
|
|
248
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
|
|
249
|
+
<path d="M8 10 Q20 2 32 10" stroke="#000000" stroke-width="2"/>
|
|
250
|
+
<rect x="15" y="16" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
251
|
+
</svg>
|
|
252
|
+
`),"underbrace-arc-template-image":W(`
|
|
253
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
|
|
254
|
+
<rect x="15" y="6" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
255
|
+
<path d="M8 30 C8 34,12 34,16 34 C20 34,20 38,20 38 C20 38,20 34,24 34 C28 34,32 34,32 30" stroke="#000000" stroke-width="2"/>
|
|
256
|
+
</svg>
|
|
257
|
+
`),"underparen-template-image":W(`
|
|
258
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
|
|
259
|
+
<rect x="15" y="6" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
260
|
+
<path d="M8 30 Q20 38 32 30" stroke="#000000" stroke-width="2"/>
|
|
261
|
+
</svg>
|
|
262
|
+
`),"vec-accent-template-image":W(`
|
|
263
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
|
|
264
|
+
<!-- Right harpoon -->
|
|
265
|
+
<path
|
|
266
|
+
d="M10 10 H30
|
|
267
|
+
M26 6 L30 10"
|
|
268
|
+
stroke="#000000"
|
|
269
|
+
stroke-width="2"
|
|
270
|
+
stroke-linecap="round"
|
|
271
|
+
stroke-linejoin="round"
|
|
272
|
+
fill="none"/>
|
|
273
|
+
|
|
274
|
+
<!-- Placeholder -->
|
|
275
|
+
<rect
|
|
276
|
+
x="15"
|
|
277
|
+
y="18"
|
|
278
|
+
width="10"
|
|
279
|
+
height="16"
|
|
280
|
+
stroke="#1b8f3a"
|
|
281
|
+
stroke-width="3"/>
|
|
282
|
+
</svg>
|
|
283
|
+
`),"overrightarrow-accent-template-image":W(`
|
|
284
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
|
|
285
|
+
<path d="M8 10 H30" stroke="#000000" stroke-width="2"/>
|
|
286
|
+
<path d="M26 6 L34 10 L26 14" stroke="#000000" stroke-width="2" fill="none"/>
|
|
287
|
+
<rect x="15" y="18" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
288
|
+
</svg>
|
|
289
|
+
`),"overleftrightarrow-accent-template-image":W(`
|
|
290
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
|
|
291
|
+
<path d="M8 10 H32" stroke="#000000" stroke-width="2"/>
|
|
292
|
+
<path d="M12 6 L4 10 L12 14" stroke="#000000" stroke-width="2" fill="none"/>
|
|
293
|
+
<path d="M28 6 L36 10 L28 14" stroke="#000000" stroke-width="2" fill="none"/>
|
|
294
|
+
<rect x="15" y="18" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
295
|
+
</svg>
|
|
296
|
+
`),"overline-accent-template-image":W(`
|
|
297
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
|
|
298
|
+
<line x1="10" y1="10" x2="30" y2="10" stroke="#000000" stroke-width="2"/>
|
|
299
|
+
<rect x="15" y="18" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
300
|
+
</svg>
|
|
301
|
+
`),"hat-accent-template-image":W(`
|
|
302
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
|
|
303
|
+
<path d="M12 12 L20 6 L28 12" stroke="#000000" stroke-width="2" fill="none"/>
|
|
304
|
+
<rect x="15" y="18" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
305
|
+
</svg>
|
|
306
|
+
`),"tilde-accent-template-image":W(`
|
|
307
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
|
|
308
|
+
<path d="M10 11 C14 6,18 16,22 11 C26 6,30 16,34 11" stroke="#000000" stroke-width="2" fill="none"/>
|
|
309
|
+
<rect x="15" y="18" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
310
|
+
</svg>
|
|
311
|
+
`),"ddot-accent-template-image":W(`
|
|
312
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
|
|
313
|
+
<circle cx="16" cy="10" r="2" fill="#000000"/>
|
|
314
|
+
<circle cx="24" cy="10" r="2" fill="#000000"/>
|
|
315
|
+
<rect x="15" y="18" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
316
|
+
</svg>
|
|
317
|
+
`),"dot-accent-template-image":W(`
|
|
318
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
|
|
319
|
+
<circle cx="20" cy="10" r="2" fill="#000000"/>
|
|
320
|
+
<rect x="15" y="18" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
321
|
+
</svg>
|
|
322
|
+
`),"overline-frame-template-image":W(`
|
|
323
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 40" fill="none">
|
|
324
|
+
<line x1="8" y1="8" x2="40" y2="8" stroke="#000000" stroke-width="2"/>
|
|
325
|
+
<rect x="18" y="14" width="12" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
326
|
+
</svg>
|
|
327
|
+
`),"left-bar-template-image":W(`
|
|
328
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 40" fill="none">
|
|
329
|
+
<line x1="12" y1="6" x2="12" y2="34" stroke="#000000" stroke-width="2"/>
|
|
330
|
+
<rect x="18" y="12" width="12" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
331
|
+
</svg>
|
|
332
|
+
`),"boxed-square-template-image":W(`
|
|
333
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 40" fill="none">
|
|
334
|
+
<rect x="10" y="6" width="28" height="28" stroke="#000000" stroke-width="2"/>
|
|
335
|
+
<rect x="18" y="12" width="12" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
336
|
+
</svg>
|
|
337
|
+
`),"underline-frame-template-image":W(`
|
|
338
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 40" fill="none">
|
|
339
|
+
<rect x="18" y="8" width="12" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
340
|
+
<line x1="8" y1="30" x2="40" y2="30" stroke="#000000" stroke-width="2"/>
|
|
341
|
+
</svg>
|
|
342
|
+
`),"right-bar-template-image":W(`
|
|
343
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 40" fill="none">
|
|
344
|
+
<rect x="18" y="12" width="12" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
345
|
+
<line x1="36" y1="6" x2="36" y2="34" stroke="#000000" stroke-width="2"/>
|
|
346
|
+
</svg>
|
|
347
|
+
`),"paren-frame-template-image":W(`
|
|
348
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 40" fill="none">
|
|
349
|
+
<ellipse cx="24" cy="20" rx="16" ry="14" stroke="#000000" stroke-width="2"/>
|
|
350
|
+
<rect x="18" y="12" width="12" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
351
|
+
</svg>
|
|
352
|
+
`),"overline-right-bar-template-image":W(`
|
|
353
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 40" fill="none">
|
|
354
|
+
<line x1="10" y1="8" x2="36" y2="8" stroke="#000000" stroke-width="2"/>
|
|
355
|
+
<line x1="36" y1="8" x2="36" y2="32" stroke="#000000" stroke-width="2"/>
|
|
356
|
+
<rect x="18" y="12" width="12" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
357
|
+
</svg>
|
|
358
|
+
`),"boxed-rounded-template-image":W(`
|
|
359
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 40" fill="none">
|
|
360
|
+
<rect x="10" y="6" width="28" height="28" rx="6" ry="6" stroke="#000000" stroke-width="2"/>
|
|
361
|
+
<rect x="18" y="12" width="12" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
362
|
+
</svg>
|
|
363
|
+
`),"cancel-diagonal-template-image":W(`
|
|
364
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" fill="none">
|
|
365
|
+
<line x1="10" y1="30" x2="50" y2="10" stroke="#000000" stroke-width="2"/>
|
|
366
|
+
<rect x="22" y="12" width="16" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
367
|
+
</svg>
|
|
368
|
+
`),"sout-template-image":W(`
|
|
369
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" fill="none">
|
|
370
|
+
<line x1="8" y1="20" x2="52" y2="20" stroke="#000000" stroke-width="2"/>
|
|
371
|
+
<rect x="22" y="12" width="16" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
372
|
+
</svg>
|
|
373
|
+
`),"bcancel-template-image":W(`
|
|
374
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" fill="none">
|
|
375
|
+
<line x1="10" y1="10" x2="50" y2="30" stroke="#000000" stroke-width="2"/>
|
|
376
|
+
<rect x="22" y="12" width="16" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
377
|
+
</svg>
|
|
378
|
+
`),"xcancel-template-image":W(`
|
|
379
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" fill="none">
|
|
380
|
+
<line x1="10" y1="10" x2="50" y2="30" stroke="#000000" stroke-width="2"/>
|
|
381
|
+
<line x1="10" y1="30" x2="50" y2="10" stroke="#000000" stroke-width="2"/>
|
|
382
|
+
<rect x="22" y="12" width="16" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
383
|
+
</svg>
|
|
384
|
+
`),"vertical-strike-template-image":W(`
|
|
385
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" fill="none">
|
|
386
|
+
<line x1="30" y1="6" x2="30" y2="34" stroke="#000000" stroke-width="2"/>
|
|
387
|
+
<rect x="22" y="12" width="16" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
388
|
+
</svg>
|
|
389
|
+
`),"overline-left-curve-template-image":W(`
|
|
390
|
+
<svg width="70" height="40" viewBox="0 0 80 60" xmlns="http://www.w3.org/2000/svg">
|
|
391
|
+
<!-- Long division bracket -->
|
|
392
|
+
<path d="M15 5 H65
|
|
393
|
+
M15 5
|
|
394
|
+
Q30 25 15 55"
|
|
395
|
+
fill="none"
|
|
396
|
+
stroke="black"
|
|
397
|
+
stroke-width="3"
|
|
398
|
+
stroke-linecap="round"
|
|
399
|
+
stroke-linejoin="round"/>
|
|
400
|
+
|
|
401
|
+
<!-- Placeholder box -->
|
|
402
|
+
<rect x="33" y="20"
|
|
403
|
+
width="25"
|
|
404
|
+
height="25"
|
|
405
|
+
fill="none"
|
|
406
|
+
stroke="#2ca02c"
|
|
407
|
+
stroke-width="5"/>
|
|
408
|
+
</svg>
|
|
409
|
+
`),"crosshair-strike-template-image":W(`
|
|
410
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" fill="none">
|
|
411
|
+
<line x1="8" y1="20" x2="52" y2="20" stroke="#000000" stroke-width="2"/>
|
|
412
|
+
<line x1="30" y1="6" x2="30" y2="34" stroke="#000000" stroke-width="2"/>
|
|
413
|
+
<rect x="22" y="12" width="16" height="16" stroke="#1b8f3a" stroke-width="3"/>
|
|
414
|
+
</svg>
|
|
415
|
+
`),"operator-limits-both-template-image":W(`
|
|
416
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
|
|
417
|
+
<rect x="14" y="8" width="12" height="16"
|
|
418
|
+
fill="none" stroke="#111" stroke-width="2"/>
|
|
419
|
+
|
|
420
|
+
<rect x="17" y="1" width="5" height="6"
|
|
421
|
+
fill="none" stroke="#2ca02c" stroke-width="1.5"/>
|
|
422
|
+
|
|
423
|
+
<rect x="17" y="25" width="5" height="6"
|
|
424
|
+
fill="none" stroke="#2ca02c" stroke-width="1.5"/>
|
|
425
|
+
</svg>
|
|
426
|
+
`),"operator-lower-limit-template-image":W(`
|
|
427
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
|
|
428
|
+
<rect x="14" y="6" width="12" height="15"
|
|
429
|
+
fill="none" stroke="#111" stroke-width="2"/>
|
|
430
|
+
|
|
431
|
+
<rect x="17" y="26" width="5" height="5"
|
|
432
|
+
fill="none" stroke="#2ca02c" stroke-width="1.5"/>
|
|
433
|
+
</svg>
|
|
434
|
+
`),"operator-right-sup-sub-template-image":W(`
|
|
435
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
|
|
436
|
+
<rect x="12" y="4" width="16" height="24"
|
|
437
|
+
fill="none" stroke="#111" stroke-width="2"/>
|
|
438
|
+
|
|
439
|
+
<rect x="30" y="1" width="6" height="8"
|
|
440
|
+
fill="none" stroke="#2ca02c" stroke-width="1.5"/>
|
|
441
|
+
|
|
442
|
+
<rect x="30" y="21" width="6" height="8"
|
|
443
|
+
fill="none" stroke="#2ca02c" stroke-width="1.5"/>
|
|
444
|
+
</svg>
|
|
445
|
+
`),"operator-right-sub-template-image":W(`
|
|
446
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
|
|
447
|
+
<rect x="12" y="4" width="16" height="24"
|
|
448
|
+
fill="none" stroke="#111" stroke-width="2"/>
|
|
449
|
+
|
|
450
|
+
<rect x="30" y="22" width="6" height="8"
|
|
451
|
+
fill="none" stroke="#2ca02c" stroke-width="1.5"/>
|
|
452
|
+
</svg>
|
|
453
|
+
`),"hphantom-space-template-image":W(`
|
|
454
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 52 32" fill="none">
|
|
455
|
+
<rect x="4" y="4" width="12" height="20" stroke="#008000" stroke-width="2"/>
|
|
456
|
+
<rect x="36" y="4" width="12" height="20" stroke="#008000" stroke-width="2"/>
|
|
457
|
+
</svg>
|
|
458
|
+
`),"thin-space-template-image":W(`
|
|
459
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 32" fill="none">
|
|
460
|
+
<rect x="4" y="4" width="12" height="20" stroke="#008000" stroke-width="2"/>
|
|
461
|
+
<rect x="24" y="4" width="12" height="20" stroke="#008000" stroke-width="2"/>
|
|
462
|
+
</svg>
|
|
463
|
+
`),"negative-thin-space-template-image":W(`
|
|
464
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none">
|
|
465
|
+
<rect x="4" y="4" width="12" height="20" stroke="#008000" stroke-width="2"/>
|
|
466
|
+
<rect x="12" y="4" width="12" height="20" stroke="#008000" stroke-width="2"/>
|
|
467
|
+
</svg>
|
|
468
|
+
`),"move-text-up-template-image":W(`
|
|
469
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
470
|
+
<rect x="5" y="2" width="14" height="20" fill="none" stroke="#2e7d32" stroke-width="2"/>
|
|
471
|
+
<rect x="5" y="14" width="14" height="8" fill="#ffffff"/>
|
|
472
|
+
<rect x="5" y="14" width="14" height="8" fill="none" stroke="#2e7d32" stroke-width="2" stroke-dasharray="2 2"/>
|
|
473
|
+
<path d="M12 17V8" stroke="#546e7a" stroke-width="2" stroke-linecap="round"/>
|
|
474
|
+
<path d="M9 11L12 8L15 11" fill="none" stroke="#546e7a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
475
|
+
</svg>
|
|
476
|
+
`),"move-text-right-template-image":W(`
|
|
477
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
478
|
+
<rect x="2" y="5" width="20" height="14" fill="none" stroke="#2e7d32" stroke-width="2"/>
|
|
479
|
+
<rect x="2" y="5" width="8" height="14" fill="none" stroke="#2e7d32" stroke-width="2" stroke-dasharray="2 2"/>
|
|
480
|
+
<path d="M7 12H16" stroke="#546e7a" stroke-width="2" stroke-linecap="round"/>
|
|
481
|
+
<path d="M13 9L16 12L13 15" fill="none" stroke="#546e7a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
482
|
+
</svg>
|
|
483
|
+
`),"move-text-left-template-image":W(`
|
|
484
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
485
|
+
<rect x="2" y="5" width="20" height="14" fill="none" stroke="#2e7d32" stroke-width="2"/>
|
|
486
|
+
<rect x="14" y="5" width="8" height="14" fill="none" stroke="#2e7d32" stroke-width="2" stroke-dasharray="2 2"/>
|
|
487
|
+
<path d="M17 12H8" stroke="#546e7a" stroke-width="2" stroke-linecap="round"/>
|
|
488
|
+
<path d="M11 9L8 12L11 15" fill="none" stroke="#546e7a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
489
|
+
</svg>
|
|
490
|
+
`),"move-text-down-template-image":W(`
|
|
491
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
492
|
+
<rect x="5" y="2" width="14" height="20" fill="none" stroke="#2e7d32" stroke-width="2"/>
|
|
493
|
+
<rect x="5" y="2" width="14" height="8" fill="none" stroke="#2e7d32" stroke-width="2" stroke-dasharray="2 2"/>
|
|
494
|
+
<path d="M12 7V16" stroke="#546e7a" stroke-width="2" stroke-linecap="round"/>
|
|
495
|
+
<path d="M9 13L12 16L15 13" fill="none" stroke="#546e7a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
496
|
+
</svg>
|
|
497
|
+
`),"sum-limits-both-template-image":W(`
|
|
498
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
|
|
499
|
+
<!-- Upper box -->
|
|
500
|
+
<rect x="17" y="1" width="6" height="4"
|
|
501
|
+
fill="none" stroke="#2ca02c" stroke-width="1.5"/>
|
|
502
|
+
|
|
503
|
+
<!-- Small summation -->
|
|
504
|
+
<text x="14" y="20"
|
|
505
|
+
font-family="Cambria Math, Times New Roman, serif"
|
|
506
|
+
font-size="16"
|
|
507
|
+
fill="#111">∑</text>
|
|
508
|
+
|
|
509
|
+
<!-- Lower box -->
|
|
510
|
+
<rect x="17" y="25" width="6" height="4"
|
|
511
|
+
fill="none" stroke="#2ca02c" stroke-width="1.5"/>
|
|
512
|
+
</svg>
|
|
513
|
+
`),"sum-right-both-template-image":W(`
|
|
514
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
|
|
515
|
+
<text x="6" y="22"
|
|
516
|
+
font-family="Cambria Math, Times New Roman, serif"
|
|
517
|
+
font-size="24"
|
|
518
|
+
fill="#111">∑</text>
|
|
519
|
+
|
|
520
|
+
<rect x="28" y="4" width="8" height="8"
|
|
521
|
+
fill="none" stroke="#2ca02c" stroke-width="1.5"/>
|
|
522
|
+
|
|
523
|
+
<rect x="28" y="20" width="8" height="8"
|
|
524
|
+
fill="none" stroke="#2ca02c" stroke-width="1.5"/>
|
|
525
|
+
</svg>
|
|
526
|
+
`),"sum-limits-lower-template-image":W(`
|
|
527
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
|
|
528
|
+
<!-- Small summation -->
|
|
529
|
+
<text x="15" y="16"
|
|
530
|
+
font-family="Cambria Math, Times New Roman, serif"
|
|
531
|
+
font-size="16"
|
|
532
|
+
fill="#111">∑</text>
|
|
533
|
+
|
|
534
|
+
<!-- Lower box -->
|
|
535
|
+
<rect x="18" y="24"
|
|
536
|
+
width="6" height="4"
|
|
537
|
+
fill="none"
|
|
538
|
+
stroke="#2ca02c"
|
|
539
|
+
stroke-width="1.5"/>
|
|
540
|
+
</svg>
|
|
541
|
+
`),"sum-right-lower-template-image":W(`
|
|
542
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
|
|
543
|
+
<text x="6" y="22"
|
|
544
|
+
font-family="Cambria Math, Times New Roman, serif"
|
|
545
|
+
font-size="24"
|
|
546
|
+
fill="#111">∑</text>
|
|
547
|
+
|
|
548
|
+
<rect x="28" y="20" width="8" height="8"
|
|
549
|
+
fill="none" stroke="#2ca02c" stroke-width="1.5"/>
|
|
550
|
+
</svg>
|
|
551
|
+
`),"prod-limits-both-template-image":W(`
|
|
552
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
|
|
553
|
+
<rect x="18" y="1" width="6" height="4"
|
|
554
|
+
fill="none" stroke="#2ca02c" stroke-width="1.5"/>
|
|
555
|
+
|
|
556
|
+
<text x="14" y="20"
|
|
557
|
+
font-family="Cambria Math, Times New Roman, serif"
|
|
558
|
+
font-size="16"
|
|
559
|
+
fill="#111">∏</text>
|
|
560
|
+
|
|
561
|
+
<rect x="18" y="25" width="6" height="4"
|
|
562
|
+
fill="none" stroke="#2ca02c" stroke-width="1.5"/>
|
|
563
|
+
</svg>
|
|
564
|
+
`),"prod-limits-lower-template-image":W(`
|
|
565
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
|
|
566
|
+
<text x="14" y="16"
|
|
567
|
+
font-family="Cambria Math, Times New Roman, serif"
|
|
568
|
+
font-size="18"
|
|
569
|
+
fill="#111">∏</text>
|
|
570
|
+
|
|
571
|
+
<rect x="18" y="25" width="6" height="4"
|
|
572
|
+
fill="none" stroke="#2ca02c" stroke-width="1.5"/>
|
|
573
|
+
</svg>
|
|
574
|
+
`),"prod-right-lower-template-image":W(`
|
|
575
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
|
|
576
|
+
<text x="6" y="22"
|
|
577
|
+
font-family="Cambria Math, Times New Roman, serif"
|
|
578
|
+
font-size="22"
|
|
579
|
+
fill="#111">∏</text>
|
|
580
|
+
|
|
581
|
+
<rect x="28" y="20" width="8" height="8"
|
|
582
|
+
fill="none"
|
|
583
|
+
stroke="#2ca02c"
|
|
584
|
+
stroke-width="1.5"/>
|
|
585
|
+
</svg>
|
|
586
|
+
`),"prod-right-both-template-image":W(`
|
|
587
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
|
|
588
|
+
<text x="6" y="22"
|
|
589
|
+
font-family="Cambria Math, Times New Roman, serif"
|
|
590
|
+
font-size="22"
|
|
591
|
+
fill="#111">∏</text>
|
|
592
|
+
|
|
593
|
+
<rect x="28" y="4" width="8" height="8"
|
|
594
|
+
fill="none" stroke="#2ca02c" stroke-width="1.5"/>
|
|
595
|
+
|
|
596
|
+
<rect x="28" y="20" width="8" height="8"
|
|
597
|
+
fill="none" stroke="#2ca02c" stroke-width="1.5"/>
|
|
598
|
+
</svg>
|
|
599
|
+
`),"overline-template-image":W(`
|
|
600
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
601
|
+
<line x1="4" y1="3.4" x2="14" y2="3.4" stroke="#2c8a43" stroke-width="1.6" stroke-linecap="round"/>
|
|
602
|
+
<rect x="4.6" y="5.6" width="8.8" height="9.4" rx="1.1" fill="none" stroke="#56646d" stroke-width="1.2"/>
|
|
603
|
+
</svg>
|
|
604
|
+
`),"underline-template-image":W(`
|
|
605
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
606
|
+
<rect x="4.6" y="3" width="8.8" height="9.4" rx="1.1" fill="none" stroke="#56646d" stroke-width="1.2"/>
|
|
607
|
+
<line x1="4" y1="14.6" x2="14" y2="14.6" stroke="#2c8a43" stroke-width="1.6" stroke-linecap="round"/>
|
|
608
|
+
</svg>
|
|
609
|
+
`),"limit-template-image":W(`
|
|
610
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
611
|
+
<text x="9" y="8.1" text-anchor="middle" fill="#2f3b43" font-size="6.4" font-weight="500" font-family="Cambria Math, Times New Roman, serif">lim</text>
|
|
612
|
+
<rect x="6.7" y="10.1" width="4.6" height="5.2" rx="0.55" fill="none" stroke="#2c8a43" stroke-width="1.2"/>
|
|
613
|
+
</svg>
|
|
614
|
+
`),"integral-template-image":W(`
|
|
615
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="90" height="60" viewBox="0 0 90 60">
|
|
616
|
+
<!-- Integral -->
|
|
617
|
+
<text x="8"
|
|
618
|
+
y="42"
|
|
619
|
+
font-family="Times New Roman, Cambria Math, serif"
|
|
620
|
+
font-size="40"
|
|
621
|
+
fill="#111">
|
|
622
|
+
∫
|
|
623
|
+
</text>
|
|
624
|
+
|
|
625
|
+
<!-- Integrand box -->
|
|
626
|
+
<rect x="38"
|
|
627
|
+
y="16"
|
|
628
|
+
width="14"
|
|
629
|
+
height="18"
|
|
630
|
+
fill="none"
|
|
631
|
+
stroke="#2ca02c"
|
|
632
|
+
stroke-width="2"/>
|
|
633
|
+
|
|
634
|
+
<!-- d -->
|
|
635
|
+
<text x="54"
|
|
636
|
+
y="31"
|
|
637
|
+
font-family="Times New Roman, Cambria Math, serif"
|
|
638
|
+
font-size="20"
|
|
639
|
+
fill="#111">
|
|
640
|
+
d
|
|
641
|
+
</text>
|
|
642
|
+
|
|
643
|
+
<!-- Variable box -->
|
|
644
|
+
<rect x="64"
|
|
645
|
+
y="16"
|
|
646
|
+
width="14"
|
|
647
|
+
height="18"
|
|
648
|
+
fill="none"
|
|
649
|
+
stroke="#2ca02c"
|
|
650
|
+
stroke-width="2"/>
|
|
651
|
+
|
|
652
|
+
<!-- Lower limit box -->
|
|
653
|
+
<rect x="26"
|
|
654
|
+
y="42"
|
|
655
|
+
width="8"
|
|
656
|
+
height="12"
|
|
657
|
+
fill="none"
|
|
658
|
+
stroke="#2ca02c"
|
|
659
|
+
stroke-width="2"/>
|
|
660
|
+
</svg>
|
|
661
|
+
`),"definite-integral-template-image":W(`
|
|
662
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
663
|
+
<text x="0.95" y="14.05" font-size="14.2" font-family="Cambria Math, STIX Two Math, Times New Roman, serif" font-weight="700" fill="#37474f">∫</text>
|
|
664
|
+
<rect x="5.1" y="1.2" width="2.55" height="2.55" rx="0.42" fill="none" stroke="#4a5559" stroke-width="1.15"/>
|
|
665
|
+
<rect x="2.1" y="13.15" width="2.55" height="2.55" rx="0.42" fill="none" stroke="#4a5559" stroke-width="1.15"/>
|
|
666
|
+
<rect x="8.45" y="6.15" width="3.8" height="3.8" rx="0.58" fill="none" stroke="#4a5559" stroke-width="1.2"/>
|
|
667
|
+
</svg>
|
|
668
|
+
`),"integral-with-differential-template-image":W(`
|
|
669
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
670
|
+
<text x="0.95" y="13.85" font-size="14.6" font-family="Cambria Math, STIX Two Math, Times New Roman, serif" font-weight="700" fill="#37474f">∫</text>
|
|
671
|
+
<rect x="6.55" y="6.15" width="3.05" height="3.05" rx="0.48" fill="none" stroke="#4a5559" stroke-width="1.15"/>
|
|
672
|
+
<text x="10.55" y="8.95" font-size="4.95" font-family="Arial, Helvetica, sans-serif" font-weight="700" fill="#37474f">d</text>
|
|
673
|
+
<rect x="13.15" y="6.15" width="3.05" height="3.05" rx="0.48" fill="none" stroke="#4a5559" stroke-width="1.15"/>
|
|
674
|
+
</svg>
|
|
675
|
+
`),"integral-box-differential-template-image":W(`
|
|
676
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="90" height="64" viewBox="0 0 90 64">
|
|
677
|
+
<!-- Integral -->
|
|
678
|
+
<text x="8" y="48"
|
|
679
|
+
font-family="Times New Roman, serif"
|
|
680
|
+
font-size="42"
|
|
681
|
+
fill="#222">∫</text>
|
|
682
|
+
|
|
683
|
+
<!-- Upper limit -->
|
|
684
|
+
<rect x="28" y="6"
|
|
685
|
+
width="10" height="12"
|
|
686
|
+
fill="none"
|
|
687
|
+
stroke="#1f9d2f"
|
|
688
|
+
stroke-width="2"/>
|
|
689
|
+
|
|
690
|
+
<!-- Lower limit -->
|
|
691
|
+
<rect x="20" y="48"
|
|
692
|
+
width="10" height="12"
|
|
693
|
+
fill="none"
|
|
694
|
+
stroke="#1f9d2f"
|
|
695
|
+
stroke-width="2"/>
|
|
696
|
+
|
|
697
|
+
<!-- Integrand -->
|
|
698
|
+
<rect x="40" y="24"
|
|
699
|
+
width="16" height="16"
|
|
700
|
+
fill="none"
|
|
701
|
+
stroke="#1f9d2f"
|
|
702
|
+
stroke-width="2"/>
|
|
703
|
+
|
|
704
|
+
<!-- d -->
|
|
705
|
+
<text x="57" y="38"
|
|
706
|
+
font-family="Times New Roman, serif"
|
|
707
|
+
font-size="20"
|
|
708
|
+
fill="#222">d</text>
|
|
709
|
+
|
|
710
|
+
<!-- Variable -->
|
|
711
|
+
<rect x="67" y="24"
|
|
712
|
+
width="16" height="16"
|
|
713
|
+
fill="none"
|
|
714
|
+
stroke="#1f9d2f"
|
|
715
|
+
stroke-width="2"/>
|
|
716
|
+
</svg>
|
|
717
|
+
`),"single-integral-template-image":W(`
|
|
718
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="32" viewBox="0 0 24 32">
|
|
719
|
+
<text x="2" y="25" font-family="Cambria Math, Times New Roman, serif" font-size="28" fill="#111">∫</text>
|
|
720
|
+
</svg>
|
|
721
|
+
`),"contour-integral-template-image":W(`
|
|
722
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="32" viewBox="0 0 28 32">
|
|
723
|
+
<text x="1" y="25" font-family="Cambria Math, Times New Roman, serif" font-size="28" fill="#111">∮</text>
|
|
724
|
+
</svg>
|
|
725
|
+
`),"double-integral-template-image":W(`
|
|
726
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="32" viewBox="0 0 30 32">
|
|
727
|
+
<text x="1" y="25" font-family="Cambria Math, Times New Roman, serif" font-size="28" fill="#111">∬</text>
|
|
728
|
+
</svg>
|
|
729
|
+
`),"double-contour-integral-template-image":W(`
|
|
730
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="36" height="32" viewBox="0 0 36 32">
|
|
731
|
+
<text x="1" y="25" font-family="Cambria Math, Times New Roman, serif" font-size="28" fill="#111">∯</text>
|
|
732
|
+
</svg>
|
|
733
|
+
`),"triple-integral-template-image":W(`
|
|
734
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="38" height="32" viewBox="0 0 38 32">
|
|
735
|
+
<text x="1" y="25" font-family="Cambria Math, Times New Roman, serif" font-size="28" fill="#111">∭</text>
|
|
736
|
+
</svg>
|
|
737
|
+
`),"triple-contour-integral-template-image":W(`
|
|
738
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
|
|
739
|
+
<text x="1" y="25" font-family="Cambria Math, Times New Roman, serif" font-size="28" fill="#111">∰</text>
|
|
740
|
+
</svg>
|
|
741
|
+
`),"integral-with-differential":W(`
|
|
742
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
743
|
+
<text x="0.95" y="13.85" font-size="14.6" font-family="Cambria Math, STIX Two Math, Times New Roman, serif" font-weight="700" fill="#37474f">∫</text>
|
|
744
|
+
<rect x="6.55" y="6.15" width="3.05" height="3.05" rx="0.48" fill="none" stroke="#4a5559" stroke-width="1.15"/>
|
|
745
|
+
<text x="10.55" y="8.95" font-size="4.95" font-family="Arial, Helvetica, sans-serif" font-weight="700" fill="#37474f">d</text>
|
|
746
|
+
<rect x="13.15" y="6.15" width="3.05" height="3.05" rx="0.48" fill="none" stroke="#4a5559" stroke-width="1.15"/>
|
|
747
|
+
</svg>
|
|
748
|
+
`),"integral-with-limits-differential":W(`
|
|
749
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 60">
|
|
750
|
+
<text x="10" y="42" font-size="42" font-family="Times New Roman, serif" fill="#000">∫</text>
|
|
751
|
+
<rect x="34" y="2" width="8" height="18" fill="none" stroke="#2e8b57" stroke-width="2"/>
|
|
752
|
+
<rect x="18" y="40" width="8" height="18" fill="none" stroke="#2e8b57" stroke-width="2"/>
|
|
753
|
+
<rect x="48" y="22" width="12" height="22" fill="none" stroke="#2e8b57" stroke-width="2"/>
|
|
754
|
+
<text x="64" y="39" font-size="18" font-family="Times New Roman, serif" fill="#000">d</text>
|
|
755
|
+
<rect x="76" y="22" width="12" height="22" fill="none" stroke="#2e8b57" stroke-width="2"/>
|
|
756
|
+
</svg>
|
|
757
|
+
`),"integral-both-template-image":W(`
|
|
758
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 55 70">
|
|
759
|
+
<text x="8" y="48" font-size="46" font-family="Times New Roman">∫</text>
|
|
760
|
+
<rect x="34" y="4" width="8" height="18" fill="none" stroke="#2e8b57" stroke-width="2"/>
|
|
761
|
+
<rect x="18" y="46" width="8" height="18" fill="none" stroke="#2e8b57" stroke-width="2"/>
|
|
762
|
+
</svg>
|
|
763
|
+
`),"integral-lower-template-image":W(`
|
|
764
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 60">
|
|
765
|
+
<text x="8" y="42" font-size="44" font-family="Times New Roman">∫</text>
|
|
766
|
+
<rect x="20" y="40" width="8" height="18" fill="none" stroke="#2e8b57" stroke-width="2"/>
|
|
767
|
+
</svg>
|
|
768
|
+
`),"first-derivative-template-image":W(`
|
|
769
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-10 0 50 50">
|
|
770
|
+
<text x="5" y="18" font-size="18">d</text>
|
|
771
|
+
<rect x="18" y="4" width="8" height="16" fill="none" stroke="#2e8b57" stroke-width="2"/>
|
|
772
|
+
<line x1="2" y1="25" x2="32" y2="25" stroke="#000" stroke-width="2"/>
|
|
773
|
+
<text x="5" y="44" font-size="18">d</text>
|
|
774
|
+
<rect x="18" y="30" width="8" height="16" fill="none" stroke="#2e8b57" stroke-width="2"/>
|
|
775
|
+
</svg>
|
|
776
|
+
`),"partial-derivative-template-image":W(`
|
|
777
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-10 0 55 50">
|
|
778
|
+
<text x="4" y="18" font-size="18">∂</text>
|
|
779
|
+
<rect x="20" y="4" width="8" height="16" fill="none" stroke="#2e8b57" stroke-width="2"/>
|
|
780
|
+
<line x1="2" y1="25" x2="34" y2="25" stroke="#000" stroke-width="2"/>
|
|
781
|
+
<text x="4" y="44" font-size="18">∂</text>
|
|
782
|
+
<rect x="20" y="30" width="8" height="16" fill="none" stroke="#2e8b57" stroke-width="2"/>
|
|
783
|
+
</svg>
|
|
784
|
+
`),"limit-infinity-template-image":W(`
|
|
785
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-10 0 70 40">
|
|
786
|
+
<text x="18" y="15" font-size="18">lim</text>
|
|
787
|
+
<rect x="4" y="22" width="8" height="14" fill="none" stroke="#2e8b57" stroke-width="2"/>
|
|
788
|
+
<text x="16" y="33" font-size="16">→∞</text>
|
|
789
|
+
</svg>
|
|
790
|
+
`),"limit-generic-template-image":W(`
|
|
791
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-5 0 55 40">
|
|
792
|
+
<text x="14" y="15" font-size="18">lim</text>
|
|
793
|
+
<rect x="20" y="22" width="8" height="14" fill="none" stroke="#2e8b57" stroke-width="2"/>
|
|
794
|
+
</svg>
|
|
795
|
+
`),"log-base-template-image":W(`
|
|
796
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 28" preserveAspectRatio="xMidYMid meet">
|
|
797
|
+
<text
|
|
798
|
+
x="1"
|
|
799
|
+
y="19"
|
|
800
|
+
font-family="Arial, sans-serif"
|
|
801
|
+
font-size="18"
|
|
802
|
+
font-weight="500"
|
|
803
|
+
fill="#111"
|
|
804
|
+
>
|
|
805
|
+
log
|
|
806
|
+
</text>
|
|
807
|
+
|
|
808
|
+
<rect
|
|
809
|
+
x="27"
|
|
810
|
+
y="16"
|
|
811
|
+
width="5"
|
|
812
|
+
height="7"
|
|
813
|
+
fill="none"
|
|
814
|
+
stroke="#2ca02c"
|
|
815
|
+
stroke-width="1.6"
|
|
816
|
+
/>
|
|
817
|
+
|
|
818
|
+
<text
|
|
819
|
+
x="33"
|
|
820
|
+
y="20"
|
|
821
|
+
font-family="Cambria Math, Times New Roman, serif"
|
|
822
|
+
font-size="22"
|
|
823
|
+
fill="#111"
|
|
824
|
+
>
|
|
825
|
+
(
|
|
826
|
+
</text>
|
|
827
|
+
|
|
828
|
+
<rect
|
|
829
|
+
x="43"
|
|
830
|
+
y="8"
|
|
831
|
+
width="10"
|
|
832
|
+
height="13"
|
|
833
|
+
fill="none"
|
|
834
|
+
stroke="#2ca02c"
|
|
835
|
+
stroke-width="1.6"
|
|
836
|
+
/>
|
|
837
|
+
|
|
838
|
+
<text
|
|
839
|
+
x="54"
|
|
840
|
+
y="20"
|
|
841
|
+
font-family="Cambria Math, Times New Roman, serif"
|
|
842
|
+
font-size="22"
|
|
843
|
+
fill="#111"
|
|
844
|
+
>
|
|
845
|
+
)
|
|
846
|
+
</text>
|
|
847
|
+
</svg>
|
|
848
|
+
`),"integral-limits-template-image":W(`
|
|
849
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
850
|
+
<path d="M6.2 15.5C5.7 10.7 7 4.7 9.1 3.1C9.9 2.5 10.8 2.6 11.2 3.4C11.55 4.05 11.45 5.05 11.05 6.15" fill="none" stroke="#2f3b43" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
851
|
+
<rect x="11.7" y="2.2" width="3.2" height="3.2" rx="0.4" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
|
|
852
|
+
<rect x="10.2" y="12.3" width="3.2" height="3.2" rx="0.4" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
|
|
853
|
+
</svg>
|
|
854
|
+
`),"vector-template-image":W(`
|
|
855
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
856
|
+
<path d="M5.2 4.3H12.7" fill="none" stroke="#2c8a43" stroke-width="1.35" stroke-linecap="round"/>
|
|
857
|
+
<path d="M10.9 2.95L12.95 4.3L10.9 5.65" fill="none" stroke="#2c8a43" stroke-width="1.35" stroke-linecap="round" stroke-linejoin="round"/>
|
|
858
|
+
<rect x="4.6" y="6.4" width="8.8" height="9" rx="1.1" fill="none" stroke="#56646d" stroke-width="1.2"/>
|
|
859
|
+
</svg>
|
|
860
|
+
`),"summation-template-image":W(`
|
|
861
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
862
|
+
<rect x="1.9" y="2.2" width="3.1" height="3.1" rx="0.4" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
|
|
863
|
+
<path d="M12.9 3.1H6.55L10.25 8.85L6.45 14.8H13.1" fill="none" stroke="#2f3b43" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
864
|
+
<rect x="1.9" y="12.7" width="3.1" height="3.1" rx="0.4" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
|
|
865
|
+
</svg>
|
|
866
|
+
`),"paren-fraction-template-image":W(`
|
|
867
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
868
|
+
<path d="M4.55 2.5C3.15 3.85 2.5 5.8 2.5 9C2.5 12.2 3.15 14.15 4.55 15.5" fill="none" stroke="#2f3b43" stroke-width="1.2" stroke-linecap="round"/>
|
|
869
|
+
<path d="M13.45 2.5C14.85 3.85 15.5 5.8 15.5 9C15.5 12.2 14.85 14.15 13.45 15.5" fill="none" stroke="#2f3b43" stroke-width="1.2" stroke-linecap="round"/>
|
|
870
|
+
<rect x="6.65" y="3.2" width="4.7" height="4.1" rx="0.5" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
|
|
871
|
+
<line x1="6.15" y1="9" x2="11.85" y2="9" stroke="#2c8a43" stroke-width="1.2" stroke-linecap="round"/>
|
|
872
|
+
<rect x="6.65" y="10.7" width="4.7" height="4.1" rx="0.5" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
|
|
873
|
+
</svg>
|
|
874
|
+
`),"brace-fraction-template-image":W(`
|
|
875
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
876
|
+
<path d="M5.15 2.55C3.9 2.55 3.2 3.3 3.2 4.55V6.15C3.2 6.9 2.85 7.35 2.25 7.7C2.85 8.05 3.2 8.5 3.2 9.25V10.85C3.2 12.1 3.9 12.85 5.15 12.85" fill="none" stroke="#2f3b43" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round"/>
|
|
877
|
+
<path d="M12.85 2.55C14.1 2.55 14.8 3.3 14.8 4.55V6.15C14.8 6.9 15.15 7.35 15.75 7.7C15.15 8.05 14.8 8.5 14.8 9.25V10.85C14.8 12.1 14.1 12.85 12.85 12.85" fill="none" stroke="#2f3b43" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round"/>
|
|
878
|
+
<rect x="6.45" y="3.2" width="4.1" height="4.1" rx="0.5" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
|
|
879
|
+
<line x1="6.05" y1="9" x2="10.95" y2="9" stroke="#2c8a43" stroke-width="1.2" stroke-linecap="round"/>
|
|
880
|
+
<rect x="6.45" y="10.7" width="4.1" height="4.1" rx="0.5" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
|
|
881
|
+
</svg>
|
|
882
|
+
`),"bracket-fraction-template-image":W(`
|
|
883
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
884
|
+
<path d="M4.65 2.6H2.95V15.4H4.65" fill="none" stroke="#2f3b43" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
885
|
+
<path d="M13.35 2.6H15.05V15.4H13.35" fill="none" stroke="#2f3b43" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
886
|
+
<rect x="6.55" y="3.2" width="4.9" height="4.1" rx="0.5" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
|
|
887
|
+
<line x1="6.05" y1="9" x2="11.95" y2="9" stroke="#2c8a43" stroke-width="1.2" stroke-linecap="round"/>
|
|
888
|
+
<rect x="6.55" y="10.7" width="4.9" height="4.1" rx="0.5" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
|
|
889
|
+
</svg>
|
|
890
|
+
`),"subsup-template-image":W(`
|
|
891
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
892
|
+
<rect x="2.9" y="5.7" width="6.1" height="8.2" rx="0.75" fill="none" stroke="#56646d" stroke-width="1.2"/>
|
|
893
|
+
<rect x="10.5" y="2.35" width="4.05" height="4.15" rx="0.5" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
|
|
894
|
+
<rect x="10.5" y="10.2" width="4.05" height="4.15" rx="0.5" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
|
|
895
|
+
</svg>
|
|
896
|
+
`),"fraction-exponent-template-image":W(`
|
|
897
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
898
|
+
<rect x="2.6" y="7.2" width="5.8" height="7.6" rx="0.75" fill="none" stroke="#56646d" stroke-width="1.2"/>
|
|
899
|
+
<rect x="10.25" y="2.75" width="3.35" height="2.7" rx="0.4" fill="none" stroke="#2c8a43" stroke-width="1.05"/>
|
|
900
|
+
<line x1="9.8" y1="8.05" x2="14.15" y2="8.05" stroke="#2c8a43" stroke-width="1.1" stroke-linecap="round"/>
|
|
901
|
+
<rect x="10.25" y="10.1" width="3.35" height="2.7" rx="0.4" fill="none" stroke="#2c8a43" stroke-width="1.05"/>
|
|
902
|
+
</svg>
|
|
903
|
+
`),"double-integral-area-template-image":W(`
|
|
904
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
905
|
+
<text x="0.7" y="13.55" font-size="11.1" font-family="Cambria Math, STIX Two Math, Times New Roman, serif" font-weight="700" fill="#263238">∫∫</text>
|
|
906
|
+
<rect x="10.85" y="2.05" width="3.45" height="3.45" rx="0.55" fill="none" stroke="#465257" stroke-width="1.2"/>
|
|
907
|
+
<rect x="8.05" y="12.05" width="3.1" height="3.1" rx="0.5" fill="none" stroke="#465257" stroke-width="1.2"/>
|
|
908
|
+
<text x="10.95" y="9.75" font-size="5.45" font-family="Arial, Helvetica, sans-serif" font-weight="700" fill="#263238">dA</text>
|
|
909
|
+
</svg>
|
|
910
|
+
`),"exp-e-template-image":W(`
|
|
911
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
912
|
+
<text x="4.95" y="12.85" fill="#2f3b43" font-size="7.6" font-weight="700" font-family="Cambria Math, Times New Roman, serif">e</text>
|
|
913
|
+
<rect x="10.15" y="2.95" width="3.6" height="3.35" rx="0.42" fill="none" stroke="#2c8a43" stroke-width="1.05"/>
|
|
914
|
+
</svg>
|
|
915
|
+
`),"exp-generic-template-image":W(`
|
|
916
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
917
|
+
<rect x="3.15" y="8.15" width="5.35" height="5.45" rx="0.55" fill="none" stroke="#56646d" stroke-width="1.15"/>
|
|
918
|
+
<rect x="10.2" y="3.05" width="3.75" height="3.55" rx="0.45" fill="none" stroke="#2c8a43" stroke-width="1.05"/>
|
|
919
|
+
</svg>
|
|
920
|
+
`),"evaluated-expression-template-image":W(`
|
|
921
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
922
|
+
<path d="M4.45 2.7H2.9V15.3H4.45" fill="none" stroke="#2f3b43" stroke-width="1.15" stroke-linecap="round" stroke-linejoin="round"/>
|
|
923
|
+
<rect x="5.8" y="5.55" width="4.55" height="7.2" rx="0.6" fill="none" stroke="#56646d" stroke-width="1.1"/>
|
|
924
|
+
<rect x="11.95" y="2.95" width="2.8" height="3.05" rx="0.38" fill="none" stroke="#2c8a43" stroke-width="1"/>
|
|
925
|
+
<rect x="11.95" y="11.95" width="2.8" height="3.05" rx="0.38" fill="none" stroke="#2c8a43" stroke-width="1"/>
|
|
926
|
+
</svg>
|
|
927
|
+
`),"rtl-input-template-image":W(`
|
|
928
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="70" height="40" viewBox="0 0 70 40">
|
|
929
|
+
<!-- Arabic text -->
|
|
930
|
+
<text x="22"
|
|
931
|
+
y="31"
|
|
932
|
+
text-anchor="middle"
|
|
933
|
+
direction="rtl"
|
|
934
|
+
font-family="Amiri, Noto Naskh Arabic, serif"
|
|
935
|
+
font-size="26"
|
|
936
|
+
font-weight="600"
|
|
937
|
+
fill="#111">
|
|
938
|
+
س
|
|
939
|
+
</text>
|
|
940
|
+
|
|
941
|
+
<!-- Complete radical -->
|
|
942
|
+
<path d="M6 10
|
|
943
|
+
H40
|
|
944
|
+
L44 10
|
|
945
|
+
L54 35
|
|
946
|
+
L66 15"
|
|
947
|
+
fill="none"
|
|
948
|
+
stroke="#111"
|
|
949
|
+
stroke-width="2"
|
|
950
|
+
stroke-linecap="round"
|
|
951
|
+
stroke-linejoin="round"/>
|
|
952
|
+
</svg>
|
|
953
|
+
`),"negate-template-image":W(`
|
|
954
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
|
|
955
|
+
<rect x="6.2" y="3.05" width="4.35" height="10.35" rx="0.55" fill="none" stroke="#2c8a43" stroke-width="1.15"/>
|
|
956
|
+
<path d="M5.1 14.7L11.85 2.6" fill="none" stroke="#2f3b43" stroke-width="1.55" stroke-linecap="round" stroke-linejoin="round"/>
|
|
957
|
+
</svg>
|
|
958
|
+
`),"slash-operator-template-image":W(`
|
|
959
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
960
|
+
<path d="M8 4L16 20" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>
|
|
961
|
+
</svg>
|
|
962
|
+
`),"setminus-operator-template-image":W(`
|
|
963
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
964
|
+
<path d="M16 4L8 20" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>
|
|
965
|
+
</svg>
|
|
966
|
+
`),"minus-plus-operator-template-image":W(`
|
|
967
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
968
|
+
<line x1="7" y1="8" x2="17" y2="8" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>
|
|
969
|
+
<line x1="7" y1="16" x2="17" y2="16" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>
|
|
970
|
+
<line x1="12" y1="11" x2="12" y2="21" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>
|
|
971
|
+
</svg>
|
|
972
|
+
`),"not-equal-template-image":W(`
|
|
973
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
974
|
+
<line x1="6" y1="9" x2="18" y2="9" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
|
|
975
|
+
<line x1="6" y1="15" x2="18" y2="15" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
|
|
976
|
+
<line x1="16" y1="5" x2="8" y2="19" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
|
|
977
|
+
</svg>
|
|
978
|
+
`),"not-approx-equal-template-image":W(`
|
|
979
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
980
|
+
<path d="M6 8C8 6 10 10 12 8C14 6 16 10 18 8" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
|
|
981
|
+
<path d="M6 14C8 12 10 16 12 14C14 12 16 16 18 14" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
|
|
982
|
+
<line x1="16" y1="5" x2="8" y2="19" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
|
|
983
|
+
</svg>
|
|
984
|
+
`),"not-similar-template-image":W(`
|
|
985
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
986
|
+
<path d="M6 12C8 10 10 14 12 12C14 10 16 14 18 12" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
|
|
987
|
+
<line x1="16" y1="5" x2="8" y2="19" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
|
|
988
|
+
</svg>
|
|
989
|
+
`),"not-identical-template-image":W(`
|
|
990
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
991
|
+
<line x1="6" y1="7" x2="18" y2="7" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
|
|
992
|
+
<line x1="6" y1="12" x2="18" y2="12" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
|
|
993
|
+
<line x1="6" y1="17" x2="18" y2="17" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
|
|
994
|
+
<line x1="16" y1="4" x2="8" y2="20" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
|
|
995
|
+
</svg>
|
|
996
|
+
`),"less-than-not-equal-template-image":W(`
|
|
997
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
998
|
+
<text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor" font-family="Cambria Math, STIX Two Math, Times New Roman">≨</text>
|
|
999
|
+
</svg>
|
|
1000
|
+
`),"much-greater-than-template-image":W(`
|
|
1001
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1002
|
+
<text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">≫</text>
|
|
1003
|
+
</svg>
|
|
1004
|
+
`),"succeeds-template-image":W(`
|
|
1005
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1006
|
+
<text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">≻</text>
|
|
1007
|
+
</svg>
|
|
1008
|
+
`),"greater-than-not-equal-template-image":W(`
|
|
1009
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1010
|
+
<text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor" font-family="Cambria Math, STIX Two Math, Times New Roman">≩</text>
|
|
1011
|
+
</svg>
|
|
1012
|
+
`),"proportional-to-template-image":W(`
|
|
1013
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1014
|
+
<text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">∝</text>
|
|
1015
|
+
</svg>
|
|
1016
|
+
`),"normal-subgroup-template-image":W(`
|
|
1017
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1018
|
+
<text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">⊲</text>
|
|
1019
|
+
</svg>
|
|
1020
|
+
`),"much-less-than-template-image":W(`
|
|
1021
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1022
|
+
<text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">≪</text>
|
|
1023
|
+
</svg>
|
|
1024
|
+
`),"precedes-template-image":W(`
|
|
1025
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1026
|
+
<text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">≺</text>
|
|
1027
|
+
</svg>
|
|
1028
|
+
`),"contains-normal-subgroup-template-image":W(`
|
|
1029
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1030
|
+
<text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">▷</text>
|
|
1031
|
+
</svg>
|
|
1032
|
+
`),"not-element-of-template-image":W(`
|
|
1033
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1034
|
+
<text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">∉</text>
|
|
1035
|
+
</svg>
|
|
1036
|
+
`),"not-contains-member-template-image":W(`
|
|
1037
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1038
|
+
<text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">∌</text>
|
|
1039
|
+
</svg>
|
|
1040
|
+
`),"subset-equal-template-image":W(`
|
|
1041
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1042
|
+
<text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">⊆</text>
|
|
1043
|
+
</svg>
|
|
1044
|
+
`),"superset-equal-template-image":W(`
|
|
1045
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1046
|
+
<text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">⊇</text>
|
|
1047
|
+
</svg>
|
|
1048
|
+
`),"square-subset-template-image":W(`
|
|
1049
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1050
|
+
<text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">⊏</text>
|
|
1051
|
+
</svg>
|
|
1052
|
+
`),"square-superset-template-image":W(`
|
|
1053
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1054
|
+
<text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">⊐</text>
|
|
1055
|
+
</svg>
|
|
1056
|
+
`),"square-subset-equal-template-image":W(`
|
|
1057
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1058
|
+
<text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">⊑</text>
|
|
1059
|
+
</svg>
|
|
1060
|
+
`),"square-superset-equal-template-image":W(`
|
|
1061
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1062
|
+
<text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">⊒</text>
|
|
1063
|
+
</svg>
|
|
1064
|
+
`),"square-cap-template-image":W(`
|
|
1065
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1066
|
+
<text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">⊓</text>
|
|
1067
|
+
</svg>
|
|
1068
|
+
`),"square-cup-template-image":W(`
|
|
1069
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1070
|
+
<text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">⊔</text>
|
|
1071
|
+
</svg>
|
|
1072
|
+
`),"therefore-template-image":W(`
|
|
1073
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
|
1074
|
+
<circle cx="12" cy="6" r="1.8" />
|
|
1075
|
+
<circle cx="7" cy="16" r="1.8" />
|
|
1076
|
+
<circle cx="17" cy="16" r="1.8" />
|
|
1077
|
+
</svg>
|
|
1078
|
+
`),"because-template-image":W(`
|
|
1079
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
|
1080
|
+
<circle cx="7" cy="8" r="1.8" />
|
|
1081
|
+
<circle cx="17" cy="8" r="1.8" />
|
|
1082
|
+
<circle cx="12" cy="18" r="1.8" />
|
|
1083
|
+
</svg>
|
|
1084
|
+
`),"not-parallel-template-image":W(`
|
|
1085
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
1086
|
+
<line x1="8" y1="3" x2="8" y2="21" stroke="currentColor" stroke-width="2.2" />
|
|
1087
|
+
<line x1="16" y1="3" x2="16" y2="21" stroke="currentColor" stroke-width="2.2" />
|
|
1088
|
+
<line x1="18" y1="4" x2="6" y2="20" stroke="currentColor" stroke-width="2.2" />
|
|
1089
|
+
</svg>
|
|
1090
|
+
`),"measured-angle-template-image":W(`
|
|
1091
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1092
|
+
<text
|
|
1093
|
+
x="12"
|
|
1094
|
+
y="17"
|
|
1095
|
+
text-anchor="middle"
|
|
1096
|
+
font-size="20"
|
|
1097
|
+
fill="currentColor"
|
|
1098
|
+
font-family="Cambria Math, STIX Two Math, Times New Roman"
|
|
1099
|
+
>
|
|
1100
|
+
∡
|
|
1101
|
+
</text>
|
|
1102
|
+
</svg>
|
|
1103
|
+
`),"spherical-angle-template-image":W(`
|
|
1104
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
1105
|
+
<text
|
|
1106
|
+
x="12"
|
|
1107
|
+
y="17"
|
|
1108
|
+
text-anchor="middle"
|
|
1109
|
+
font-size="20"
|
|
1110
|
+
fill="currentColor"
|
|
1111
|
+
font-family="Cambria Math, STIX Two Math, Times New Roman"
|
|
1112
|
+
>
|
|
1113
|
+
∢
|
|
1114
|
+
</text>
|
|
1115
|
+
</svg>
|
|
1116
|
+
`),"diamond-template-image":W(`
|
|
1117
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
1118
|
+
<path d="M12 3L18 12L12 21L6 12Z" stroke="currentColor" stroke-width="2.2" stroke-linejoin="round" />
|
|
1119
|
+
</svg>
|
|
1120
|
+
`),"rectangle-template-image":W(`
|
|
1121
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
1122
|
+
<rect x="4" y="7" width="16" height="10" stroke="currentColor" stroke-width="2.2" />
|
|
1123
|
+
</svg>
|
|
1124
|
+
`),"parallelogram-template-image":W(`
|
|
1125
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
1126
|
+
<path d="M8 5H18L16 19H6L8 5Z" stroke="currentColor" stroke-width="2.2" stroke-linejoin="round" />
|
|
1127
|
+
</svg>
|
|
1128
|
+
`),"circled-minus-template-image":W(`
|
|
1129
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
1130
|
+
<circle cx="12" cy="12" r="9" stroke="currentColor" stroke-width="2.2" />
|
|
1131
|
+
<line x1="8" y1="12" x2="16" y2="12" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" />
|
|
1132
|
+
</svg>
|
|
1133
|
+
`),"circled-asterisk-template-image":W(`
|
|
1134
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
1135
|
+
<circle cx="12" cy="12" r="9" stroke="currentColor" stroke-width="2.2" />
|
|
1136
|
+
<line x1="12" y1="7" x2="12" y2="17" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" />
|
|
1137
|
+
<line x1="7" y1="12" x2="17" y2="12" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" />
|
|
1138
|
+
<line x1="8.5" y1="8.5" x2="15.5" y2="15.5" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" />
|
|
1139
|
+
<line x1="15.5" y1="8.5" x2="8.5" y2="15.5" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" />
|
|
1140
|
+
</svg>
|
|
1141
|
+
`),"circled-divide-template-image":W(`
|
|
1142
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
1143
|
+
<circle cx="12" cy="12" r="9" stroke="currentColor" stroke-width="2.2" />
|
|
1144
|
+
<rect x="10.9" y="5.8" width="2.2" height="2.2" fill="currentColor" />
|
|
1145
|
+
<rect x="7.2" y="10.9" width="9.6" height="2.2" fill="currentColor" />
|
|
1146
|
+
<rect x="10.9" y="16" width="2.2" height="2.2" fill="currentColor" />
|
|
1147
|
+
</svg>
|
|
1148
|
+
`),"raised-bullet-template-image":W(`
|
|
1149
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
1150
|
+
<circle cx="12" cy="8" r="3" fill="currentColor" />
|
|
1151
|
+
</svg>
|
|
1152
|
+
`),"matrix-grid-template-image":W(`
|
|
1153
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32" fill="none">
|
|
1154
|
+
<rect x="6" y="3" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1155
|
+
<rect x="17" y="3" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1156
|
+
<rect x="28" y="3" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1157
|
+
<rect x="6" y="13" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1158
|
+
<rect x="17" y="13" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1159
|
+
<rect x="28" y="13" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1160
|
+
<rect x="6" y="23" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1161
|
+
<rect x="17" y="23" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1162
|
+
<rect x="28" y="23" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1163
|
+
</svg>
|
|
1164
|
+
`),"matrix-brackets-template-image":W(`
|
|
1165
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32" fill="none">
|
|
1166
|
+
<path d="M8 2 H4 V30 H8" stroke="#111" stroke-width="2" fill="none"/>
|
|
1167
|
+
<path d="M32 2 H36 V30 H32" stroke="#111" stroke-width="2" fill="none"/>
|
|
1168
|
+
<rect x="11" y="3" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1169
|
+
<rect x="24" y="3" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1170
|
+
<rect x="11" y="13" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1171
|
+
<rect x="24" y="13" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1172
|
+
<rect x="11" y="23" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1173
|
+
<rect x="24" y="23" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1174
|
+
</svg>
|
|
1175
|
+
`),"matrix-bars-template-image":W(`
|
|
1176
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32" fill="none">
|
|
1177
|
+
<line x1="4" y1="2" x2="4" y2="30" stroke="#111" stroke-width="2"/>
|
|
1178
|
+
<line x1="36" y1="2" x2="36" y2="30" stroke="#111" stroke-width="2"/>
|
|
1179
|
+
<rect x="10" y="3" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1180
|
+
<rect x="24" y="3" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1181
|
+
<rect x="10" y="13" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1182
|
+
<rect x="24" y="13" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1183
|
+
<rect x="10" y="23" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1184
|
+
<rect x="24" y="23" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1185
|
+
</svg>
|
|
1186
|
+
`),"matrix-parens-template-image":W(`
|
|
1187
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32" fill="none">
|
|
1188
|
+
<path d="M6 2 C2 8,2 24,6 30" stroke="#111" stroke-width="2" stroke-linecap="round"/>
|
|
1189
|
+
<path d="M34 2 C38 8,38 24,34 30" stroke="#111" stroke-width="2" stroke-linecap="round"/>
|
|
1190
|
+
<rect x="11" y="3" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1191
|
+
<rect x="24" y="3" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1192
|
+
<rect x="11" y="13" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1193
|
+
<rect x="24" y="13" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1194
|
+
<rect x="11" y="23" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1195
|
+
<rect x="24" y="23" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
|
|
1196
|
+
</svg>
|
|
1197
|
+
`),"cases-template-image":W(`
|
|
1198
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 48" fill="none">
|
|
1199
|
+
<path
|
|
1200
|
+
d="M9 2 C4 2 4 5 4 8 L4 16 C4 19 3 21 1 24 C3 27 4 29 4 32 L4 40 C4 43 4 46 9 46"
|
|
1201
|
+
stroke="#000000"
|
|
1202
|
+
stroke-width="2.5"
|
|
1203
|
+
stroke-linecap="round"
|
|
1204
|
+
stroke-linejoin="round"
|
|
1205
|
+
/>
|
|
1206
|
+
<rect x="15" y="7" width="8" height="13" stroke="#008000" stroke-width="2.5"/>
|
|
1207
|
+
<rect x="15" y="28" width="8" height="13" stroke="#008000" stroke-width="2.5"/>
|
|
1208
|
+
</svg>
|
|
1209
|
+
`),"rcases-template-image":W(`
|
|
1210
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 72" fill="none">
|
|
1211
|
+
<rect x="10" y="8" width="9" height="22" stroke="#0a7a18" stroke-width="4"/>
|
|
1212
|
+
<rect x="10" y="42" width="9" height="22" stroke="#0a7a18" stroke-width="4"/>
|
|
1213
|
+
<path
|
|
1214
|
+
d="M30 2 C36 2,36 8,36 14 L36 28 C36 32,38 34,40 36 C38 38,36 40,36 44 L36 58 C36 64,36 70,30 70"
|
|
1215
|
+
stroke="currentColor"
|
|
1216
|
+
stroke-width="4"
|
|
1217
|
+
stroke-linecap="round"
|
|
1218
|
+
stroke-linejoin="round"
|
|
1219
|
+
/>
|
|
1220
|
+
</svg>
|
|
1221
|
+
`),"cases-two-by-two-template-image":W(`
|
|
1222
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 48" fill="none">
|
|
1223
|
+
<path
|
|
1224
|
+
d="M8 2 C4 2 4 5 4 8 L4 16 C4 18 3 20 1 24 C3 28 4 30 4 32 L4 40 C4 43 4 46 8 46"
|
|
1225
|
+
stroke="#000"
|
|
1226
|
+
stroke-width="2.5"
|
|
1227
|
+
stroke-linecap="round"
|
|
1228
|
+
stroke-linejoin="round"
|
|
1229
|
+
/>
|
|
1230
|
+
<rect x="14" y="8" width="6" height="12" stroke="#008000" stroke-width="2.5"/>
|
|
1231
|
+
<rect x="28" y="8" width="6" height="12" stroke="#008000" stroke-width="2.5"/>
|
|
1232
|
+
<rect x="14" y="28" width="6" height="12" stroke="#008000" stroke-width="2.5"/>
|
|
1233
|
+
<rect x="28" y="28" width="6" height="12" stroke="#008000" stroke-width="2.5"/>
|
|
1234
|
+
</svg>
|
|
1235
|
+
`),"aligned-equals-template-image":W(`
|
|
1236
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 48" fill="none">
|
|
1237
|
+
<rect x="6" y="6" width="8" height="12" stroke="#008000" stroke-width="2.5"/>
|
|
1238
|
+
<text x="21" y="16" font-size="15" text-anchor="middle" fill="#000">=</text>
|
|
1239
|
+
<rect x="28" y="6" width="8" height="12" stroke="#008000" stroke-width="2.5"/>
|
|
1240
|
+
<rect x="6" y="28" width="8" height="12" stroke="#008000" stroke-width="2.5"/>
|
|
1241
|
+
<text x="21" y="38" font-size="15" text-anchor="middle" fill="#000">=</text>
|
|
1242
|
+
<rect x="28" y="28" width="8" height="12" stroke="#008000" stroke-width="2.5"/>
|
|
1243
|
+
</svg>
|
|
1244
|
+
`),"vertical-ellipsis-template-image":W(`
|
|
1245
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
1246
|
+
<circle cx="12" cy="5.5" r="1.35" fill="#22343d" />
|
|
1247
|
+
<circle cx="12" cy="12" r="1.35" fill="#22343d" />
|
|
1248
|
+
<circle cx="12" cy="18.5" r="1.35" fill="#22343d" />
|
|
1249
|
+
</svg>
|
|
1250
|
+
`),"midline-ellipsis-template-image":W(`
|
|
1251
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
1252
|
+
<circle cx="5.5" cy="12" r="1.35" fill="#22343d" />
|
|
1253
|
+
<circle cx="12" cy="12" r="1.35" fill="#22343d" />
|
|
1254
|
+
<circle cx="18.5" cy="12" r="1.35" fill="#22343d" />
|
|
1255
|
+
</svg>
|
|
1256
|
+
`),"upright-ellipsis-template-image":W(`
|
|
1257
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
1258
|
+
<circle cx="6.2" cy="17.8" r="1.35" fill="#22343d" />
|
|
1259
|
+
<circle cx="12" cy="12" r="1.35" fill="#22343d" />
|
|
1260
|
+
<circle cx="17.8" cy="6.2" r="1.35" fill="#22343d" />
|
|
1261
|
+
</svg>
|
|
1262
|
+
`),"downright-ellipsis-template-image":W(`
|
|
1263
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
1264
|
+
<circle cx="6.2" cy="6.2" r="1.35" fill="#22343d" />
|
|
1265
|
+
<circle cx="12" cy="12" r="1.35" fill="#22343d" />
|
|
1266
|
+
<circle cx="17.8" cy="17.8" r="1.35" fill="#22343d" />
|
|
1267
|
+
</svg>
|
|
1268
|
+
`),"sum-array-template-image":W(`
|
|
1269
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
|
|
1270
|
+
<!-- Upper placeholder -->
|
|
1271
|
+
<rect x="24" y="1"
|
|
1272
|
+
width="8" height="8"
|
|
1273
|
+
fill="none"
|
|
1274
|
+
stroke="#2ca02c"
|
|
1275
|
+
stroke-width="1.5"/>
|
|
1276
|
+
|
|
1277
|
+
<!-- Plus sign -->
|
|
1278
|
+
<text x="6" y="20"
|
|
1279
|
+
font-family="Cambria Math, Arial, sans-serif"
|
|
1280
|
+
font-size="18"
|
|
1281
|
+
fill="#111">+</text>
|
|
1282
|
+
|
|
1283
|
+
<!-- Main placeholder -->
|
|
1284
|
+
<rect x="24" y="11"
|
|
1285
|
+
width="8" height="8"
|
|
1286
|
+
fill="none"
|
|
1287
|
+
stroke="#2ca02c"
|
|
1288
|
+
stroke-width="1.5"/>
|
|
1289
|
+
|
|
1290
|
+
<!-- Fraction bar -->
|
|
1291
|
+
<line x1="2" y1="22"
|
|
1292
|
+
x2="34" y2="22"
|
|
1293
|
+
stroke="#111"
|
|
1294
|
+
stroke-width="2"/>
|
|
1295
|
+
|
|
1296
|
+
<!-- Lower placeholder -->
|
|
1297
|
+
<rect x="24" y="24"
|
|
1298
|
+
width="8" height="8"
|
|
1299
|
+
fill="none"
|
|
1300
|
+
stroke="#2ca02c"
|
|
1301
|
+
stroke-width="1.5"/>
|
|
1302
|
+
</svg>
|
|
1303
|
+
`),"difference-array-template-image":W(`
|
|
1304
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
|
|
1305
|
+
<!-- Upper placeholder -->
|
|
1306
|
+
<rect x="24" y="1"
|
|
1307
|
+
width="8" height="8"
|
|
1308
|
+
fill="none"
|
|
1309
|
+
stroke="#2ca02c"
|
|
1310
|
+
stroke-width="1.5"/>
|
|
1311
|
+
|
|
1312
|
+
<!-- Minus sign -->
|
|
1313
|
+
<text x="8" y="19"
|
|
1314
|
+
font-family="Cambria Math, Arial, sans-serif"
|
|
1315
|
+
font-size="18"
|
|
1316
|
+
fill="#111">−</text>
|
|
1317
|
+
|
|
1318
|
+
<!-- Main placeholder -->
|
|
1319
|
+
<rect x="24" y="11"
|
|
1320
|
+
width="8" height="8"
|
|
1321
|
+
fill="none"
|
|
1322
|
+
stroke="#2ca02c"
|
|
1323
|
+
stroke-width="1.5"/>
|
|
1324
|
+
|
|
1325
|
+
<!-- Fraction bar -->
|
|
1326
|
+
<line x1="2" y1="22"
|
|
1327
|
+
x2="34" y2="22"
|
|
1328
|
+
stroke="#111"
|
|
1329
|
+
stroke-width="2"/>
|
|
1330
|
+
|
|
1331
|
+
<!-- Lower placeholder -->
|
|
1332
|
+
<rect x="24" y="24"
|
|
1333
|
+
width="8" height="8"
|
|
1334
|
+
fill="none"
|
|
1335
|
+
stroke="#2ca02c"
|
|
1336
|
+
stroke-width="1.5"/>
|
|
1337
|
+
</svg>
|
|
1338
|
+
`),"stack-line-template-image":W(`
|
|
1339
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
|
|
1340
|
+
<!-- Top placeholder -->
|
|
1341
|
+
<rect x="24" y="1"
|
|
1342
|
+
width="8" height="8"
|
|
1343
|
+
fill="none"
|
|
1344
|
+
stroke="#2ca02c"
|
|
1345
|
+
stroke-width="1.5"/>
|
|
1346
|
+
|
|
1347
|
+
<!-- Middle placeholder -->
|
|
1348
|
+
<rect x="24" y="11"
|
|
1349
|
+
width="8" height="8"
|
|
1350
|
+
fill="none"
|
|
1351
|
+
stroke="#2ca02c"
|
|
1352
|
+
stroke-width="1.5"/>
|
|
1353
|
+
|
|
1354
|
+
<!-- Fraction bar -->
|
|
1355
|
+
<line x1="2" y1="22"
|
|
1356
|
+
x2="34" y2="22"
|
|
1357
|
+
stroke="#111"
|
|
1358
|
+
stroke-width="2"/>
|
|
1359
|
+
|
|
1360
|
+
<!-- Bottom placeholder -->
|
|
1361
|
+
<rect x="24" y="24"
|
|
1362
|
+
width="8" height="8"
|
|
1363
|
+
fill="none"
|
|
1364
|
+
stroke="#2ca02c"
|
|
1365
|
+
stroke-width="1.5"/>
|
|
1366
|
+
</svg>
|
|
1367
|
+
`),"division-layout-template-image":W(`
|
|
1368
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
|
|
1369
|
+
<!-- Top placeholder -->
|
|
1370
|
+
<rect x="24" y="1"
|
|
1371
|
+
width="8" height="8"
|
|
1372
|
+
fill="none"
|
|
1373
|
+
stroke="#2ca02c"
|
|
1374
|
+
stroke-width="1.5"/>
|
|
1375
|
+
|
|
1376
|
+
<!-- Left placeholder -->
|
|
1377
|
+
<rect x="2" y="14"
|
|
1378
|
+
width="8" height="8"
|
|
1379
|
+
fill="none"
|
|
1380
|
+
stroke="#2ca02c"
|
|
1381
|
+
stroke-width="1.5"/>
|
|
1382
|
+
|
|
1383
|
+
<!-- Delimiter -->
|
|
1384
|
+
<text x="13" y="21"
|
|
1385
|
+
font-family="Cambria Math, Times New Roman, serif"
|
|
1386
|
+
font-size="22"
|
|
1387
|
+
fill="#111">)</text>
|
|
1388
|
+
|
|
1389
|
+
<!-- Horizontal bar -->
|
|
1390
|
+
<line x1="24" y1="12"
|
|
1391
|
+
x2="38" y2="12"
|
|
1392
|
+
stroke="#111"
|
|
1393
|
+
stroke-width="2"/>
|
|
1394
|
+
|
|
1395
|
+
<!-- Bottom placeholder -->
|
|
1396
|
+
<rect x="24" y="16"
|
|
1397
|
+
width="8" height="8"
|
|
1398
|
+
fill="none"
|
|
1399
|
+
stroke="#2ca02c"
|
|
1400
|
+
stroke-width="1.5"/>
|
|
1401
|
+
</svg>
|
|
1402
|
+
`),"product-array-template-image":W(`
|
|
1403
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
|
|
1404
|
+
<!-- Upper placeholder -->
|
|
1405
|
+
<rect x="24" y="1"
|
|
1406
|
+
width="8" height="8"
|
|
1407
|
+
fill="none"
|
|
1408
|
+
stroke="#2ca02c"
|
|
1409
|
+
stroke-width="1.5"/>
|
|
1410
|
+
|
|
1411
|
+
<!-- Multiplication sign -->
|
|
1412
|
+
<text x="7" y="19"
|
|
1413
|
+
font-family="Cambria Math, Arial, sans-serif"
|
|
1414
|
+
font-size="18"
|
|
1415
|
+
fill="#111">×</text>
|
|
1416
|
+
|
|
1417
|
+
<!-- Main placeholder -->
|
|
1418
|
+
<rect x="24" y="11"
|
|
1419
|
+
width="8" height="8"
|
|
1420
|
+
fill="none"
|
|
1421
|
+
stroke="#2ca02c"
|
|
1422
|
+
stroke-width="1.5"/>
|
|
1423
|
+
|
|
1424
|
+
<!-- Fraction bar -->
|
|
1425
|
+
<line x1="2" y1="22"
|
|
1426
|
+
x2="34" y2="22"
|
|
1427
|
+
stroke="#111"
|
|
1428
|
+
stroke-width="2"/>
|
|
1429
|
+
|
|
1430
|
+
<!-- Lower placeholder -->
|
|
1431
|
+
<rect x="24" y="24"
|
|
1432
|
+
width="8" height="8"
|
|
1433
|
+
fill="none"
|
|
1434
|
+
stroke="#2ca02c"
|
|
1435
|
+
stroke-width="1.5"/>
|
|
1436
|
+
</svg>
|
|
1437
|
+
`),"mixed-fraction-template-image":W(`
|
|
1438
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
|
|
1439
|
+
<!-- Left top box -->
|
|
1440
|
+
<rect x="3" y="6"
|
|
1441
|
+
width="8" height="10"
|
|
1442
|
+
fill="none"
|
|
1443
|
+
stroke="#2ca02c"
|
|
1444
|
+
stroke-width="1.5"/>
|
|
1445
|
+
|
|
1446
|
+
<!-- Right top box -->
|
|
1447
|
+
<rect x="26" y="6"
|
|
1448
|
+
width="8" height="10"
|
|
1449
|
+
fill="none"
|
|
1450
|
+
stroke="#2ca02c"
|
|
1451
|
+
stroke-width="1.5"/>
|
|
1452
|
+
|
|
1453
|
+
<!-- L-shaped separator -->
|
|
1454
|
+
<line x1="20" y1="1"
|
|
1455
|
+
x2="20" y2="21"
|
|
1456
|
+
stroke="#111"
|
|
1457
|
+
stroke-width="2"/>
|
|
1458
|
+
|
|
1459
|
+
<line x1="20" y1="21"
|
|
1460
|
+
x2="38" y2="21"
|
|
1461
|
+
stroke="#111"
|
|
1462
|
+
stroke-width="2"/>
|
|
1463
|
+
|
|
1464
|
+
<!-- Bottom box -->
|
|
1465
|
+
<rect x="26" y="24"
|
|
1466
|
+
width="8" height="8"
|
|
1467
|
+
fill="none"
|
|
1468
|
+
stroke="#2ca02c"
|
|
1469
|
+
stroke-width="1.5"/>
|
|
1470
|
+
</svg>
|
|
1471
|
+
`),"array-cc-template-image":W(`
|
|
1472
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
|
|
1473
|
+
<!-- Top left -->
|
|
1474
|
+
<rect x="3" y="4"
|
|
1475
|
+
width="8" height="10"
|
|
1476
|
+
fill="none"
|
|
1477
|
+
stroke="#2ca02c"
|
|
1478
|
+
stroke-width="1.5"/>
|
|
1479
|
+
|
|
1480
|
+
<!-- Bottom left -->
|
|
1481
|
+
<rect x="3" y="22"
|
|
1482
|
+
width="8" height="10"
|
|
1483
|
+
fill="none"
|
|
1484
|
+
stroke="#2ca02c"
|
|
1485
|
+
stroke-width="1.5"/>
|
|
1486
|
+
|
|
1487
|
+
<!-- Top right -->
|
|
1488
|
+
<rect x="26" y="4"
|
|
1489
|
+
width="8" height="10"
|
|
1490
|
+
fill="none"
|
|
1491
|
+
stroke="#2ca02c"
|
|
1492
|
+
stroke-width="1.5"/>
|
|
1493
|
+
|
|
1494
|
+
<!-- Bottom right -->
|
|
1495
|
+
<rect x="26" y="22"
|
|
1496
|
+
width="8" height="10"
|
|
1497
|
+
fill="none"
|
|
1498
|
+
stroke="#2ca02c"
|
|
1499
|
+
stroke-width="1.5"/>
|
|
1500
|
+
|
|
1501
|
+
<!-- L shape -->
|
|
1502
|
+
<line x1="20" y1="1"
|
|
1503
|
+
x2="20" y2="18"
|
|
1504
|
+
stroke="#111"
|
|
1505
|
+
stroke-width="2"/>
|
|
1506
|
+
|
|
1507
|
+
<line x1="20" y1="18"
|
|
1508
|
+
x2="38" y2="18"
|
|
1509
|
+
stroke="#111"
|
|
1510
|
+
stroke-width="2"/>
|
|
1511
|
+
</svg>
|
|
1512
|
+
`),"division-remainder-template-image":W(`
|
|
1513
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 80" fill="none">
|
|
1514
|
+
<!-- Top placeholder -->
|
|
1515
|
+
<rect x="32" y="2" width="14" height="18"
|
|
1516
|
+
stroke="#008000" stroke-width="2.5"/>
|
|
1517
|
+
|
|
1518
|
+
<!-- Left placeholder -->
|
|
1519
|
+
<rect x="2" y="30" width="14" height="18"
|
|
1520
|
+
stroke="#008000" stroke-width="2.5"/>
|
|
1521
|
+
|
|
1522
|
+
<!-- Middle placeholder -->
|
|
1523
|
+
<rect x="32" y="30" width="14" height="18"
|
|
1524
|
+
stroke="#008000" stroke-width="2.5"/>
|
|
1525
|
+
|
|
1526
|
+
<!-- Bottom placeholder -->
|
|
1527
|
+
<rect x="32" y="58" width="14" height="18"
|
|
1528
|
+
stroke="#008000" stroke-width="2.5"/>
|
|
1529
|
+
|
|
1530
|
+
<!-- Large bold parenthesis -->
|
|
1531
|
+
<path d="M18 16 C32 28,32 52,18 64"
|
|
1532
|
+
stroke="#000"
|
|
1533
|
+
stroke-width="4"
|
|
1534
|
+
stroke-linecap="round"
|
|
1535
|
+
stroke-linejoin="round"/>
|
|
1536
|
+
|
|
1537
|
+
<!-- Large bold horizontal bar -->
|
|
1538
|
+
<line x1="28" y1="24"
|
|
1539
|
+
x2="54" y2="24"
|
|
1540
|
+
stroke="#000"
|
|
1541
|
+
stroke-width="4"/>
|
|
1542
|
+
</svg>
|
|
1543
|
+
`),"vertical-line-picker-template-image":W(`
|
|
1544
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
|
|
1545
|
+
<rect x="8.6" y="2.5" width="4.3" height="18.5" rx="1.4" fill="#89a5b6" />
|
|
1546
|
+
<path d="M12.8 15L17 18.1L12.8 21.2Z" fill="#ffffff" />
|
|
1547
|
+
</svg>
|
|
1548
|
+
`),"right-left-arrows-over":G(`
|
|
1549
|
+
<rect
|
|
1550
|
+
x="10"
|
|
1551
|
+
y="1"
|
|
1552
|
+
width="4"
|
|
1553
|
+
height="6"
|
|
1554
|
+
fill="none"
|
|
1555
|
+
stroke="#5A9E57"
|
|
1556
|
+
stroke-width="0.8"
|
|
1557
|
+
/>
|
|
1558
|
+
|
|
1559
|
+
<line
|
|
1560
|
+
x1="4"
|
|
1561
|
+
y1="14"
|
|
1562
|
+
x2="20"
|
|
1563
|
+
y2="14"
|
|
1564
|
+
stroke="currentColor"
|
|
1565
|
+
stroke-width="0.8"
|
|
1566
|
+
stroke-linecap="round"
|
|
1567
|
+
/>
|
|
1568
|
+
|
|
1569
|
+
<polyline
|
|
1570
|
+
points="7,12 4,14 7,16"
|
|
1571
|
+
fill="none"
|
|
1572
|
+
stroke="currentColor"
|
|
1573
|
+
stroke-width="0.8"
|
|
1574
|
+
stroke-linecap="round"
|
|
1575
|
+
stroke-linejoin="round"
|
|
1576
|
+
/>
|
|
1577
|
+
|
|
1578
|
+
<polyline
|
|
1579
|
+
points="17,12 20,14 17,16"
|
|
1580
|
+
fill="none"
|
|
1581
|
+
stroke="currentColor"
|
|
1582
|
+
stroke-width="0.8"
|
|
1583
|
+
stroke-linecap="round"
|
|
1584
|
+
stroke-linejoin="round"
|
|
1585
|
+
/>
|
|
1586
|
+
`),"right-left-arrows-under":G(`
|
|
1587
|
+
<rect
|
|
1588
|
+
x="10"
|
|
1589
|
+
y="16"
|
|
1590
|
+
width="4"
|
|
1591
|
+
height="6"
|
|
1592
|
+
fill="none"
|
|
1593
|
+
stroke="#5A9E57"
|
|
1594
|
+
stroke-width="0.8"
|
|
1595
|
+
/>
|
|
1596
|
+
|
|
1597
|
+
<line
|
|
1598
|
+
x1="4"
|
|
1599
|
+
y1="8"
|
|
1600
|
+
x2="20"
|
|
1601
|
+
y2="8"
|
|
1602
|
+
stroke="currentColor"
|
|
1603
|
+
stroke-width="0.8"
|
|
1604
|
+
stroke-linecap="round"
|
|
1605
|
+
/>
|
|
1606
|
+
|
|
1607
|
+
<polyline
|
|
1608
|
+
points="7,6 4,8 7,10"
|
|
1609
|
+
fill="none"
|
|
1610
|
+
stroke="currentColor"
|
|
1611
|
+
stroke-width="0.8"
|
|
1612
|
+
stroke-linecap="round"
|
|
1613
|
+
stroke-linejoin="round"
|
|
1614
|
+
/>
|
|
1615
|
+
|
|
1616
|
+
<polyline
|
|
1617
|
+
points="17,6 20,8 17,10"
|
|
1618
|
+
fill="none"
|
|
1619
|
+
stroke="currentColor"
|
|
1620
|
+
stroke-width="0.8"
|
|
1621
|
+
stroke-linecap="round"
|
|
1622
|
+
stroke-linejoin="round"
|
|
1623
|
+
/>
|
|
1624
|
+
`),"right-left-arrows-over-under":G(`
|
|
1625
|
+
<rect
|
|
1626
|
+
x="10"
|
|
1627
|
+
y="1"
|
|
1628
|
+
width="4"
|
|
1629
|
+
height="6"
|
|
1630
|
+
fill="none"
|
|
1631
|
+
stroke="#5A9E57"
|
|
1632
|
+
stroke-width="0.8"
|
|
1633
|
+
/>
|
|
1634
|
+
|
|
1635
|
+
<line
|
|
1636
|
+
x1="4"
|
|
1637
|
+
y1="11"
|
|
1638
|
+
x2="20"
|
|
1639
|
+
y2="11"
|
|
1640
|
+
stroke="currentColor"
|
|
1641
|
+
stroke-width="0.8"
|
|
1642
|
+
stroke-linecap="round"
|
|
1643
|
+
/>
|
|
1644
|
+
|
|
1645
|
+
<polyline
|
|
1646
|
+
points="7,9 4,11 7,13"
|
|
1647
|
+
fill="none"
|
|
1648
|
+
stroke="currentColor"
|
|
1649
|
+
stroke-width="0.8"
|
|
1650
|
+
stroke-linecap="round"
|
|
1651
|
+
stroke-linejoin="round"
|
|
1652
|
+
/>
|
|
1653
|
+
|
|
1654
|
+
<polyline
|
|
1655
|
+
points="17,9 20,11 17,13"
|
|
1656
|
+
fill="none"
|
|
1657
|
+
stroke="currentColor"
|
|
1658
|
+
stroke-width="0.8"
|
|
1659
|
+
stroke-linecap="round"
|
|
1660
|
+
stroke-linejoin="round"
|
|
1661
|
+
/>
|
|
1662
|
+
|
|
1663
|
+
<rect
|
|
1664
|
+
x="10"
|
|
1665
|
+
y="16"
|
|
1666
|
+
width="4"
|
|
1667
|
+
height="6"
|
|
1668
|
+
fill="none"
|
|
1669
|
+
stroke="#5A9E57"
|
|
1670
|
+
stroke-width="0.8"
|
|
1671
|
+
/>
|
|
1672
|
+
`),"left-right-arrows-over":G(`
|
|
1673
|
+
<rect
|
|
1674
|
+
x="10"
|
|
1675
|
+
y="1"
|
|
1676
|
+
width="4"
|
|
1677
|
+
height="6"
|
|
1678
|
+
fill="none"
|
|
1679
|
+
stroke="#5A9E57"
|
|
1680
|
+
stroke-width="0.8"
|
|
1681
|
+
/>
|
|
1682
|
+
|
|
1683
|
+
<line
|
|
1684
|
+
x1="4"
|
|
1685
|
+
y1="10"
|
|
1686
|
+
x2="20"
|
|
1687
|
+
y2="10"
|
|
1688
|
+
stroke="currentColor"
|
|
1689
|
+
stroke-width="0.8"
|
|
1690
|
+
stroke-linecap="round"
|
|
1691
|
+
/>
|
|
1692
|
+
|
|
1693
|
+
<polyline
|
|
1694
|
+
points="17,8 20,10 17,12"
|
|
1695
|
+
fill="none"
|
|
1696
|
+
stroke="currentColor"
|
|
1697
|
+
stroke-width="0.8"
|
|
1698
|
+
stroke-linecap="round"
|
|
1699
|
+
stroke-linejoin="round"
|
|
1700
|
+
/>
|
|
1701
|
+
|
|
1702
|
+
<line
|
|
1703
|
+
x1="20"
|
|
1704
|
+
y1="14"
|
|
1705
|
+
x2="4"
|
|
1706
|
+
y2="14"
|
|
1707
|
+
stroke="currentColor"
|
|
1708
|
+
stroke-width="0.8"
|
|
1709
|
+
stroke-linecap="round"
|
|
1710
|
+
/>
|
|
1711
|
+
|
|
1712
|
+
<polyline
|
|
1713
|
+
points="7,12 4,14 7,16"
|
|
1714
|
+
fill="none"
|
|
1715
|
+
stroke="currentColor"
|
|
1716
|
+
stroke-width="0.8"
|
|
1717
|
+
stroke-linecap="round"
|
|
1718
|
+
stroke-linejoin="round"
|
|
1719
|
+
/>
|
|
1720
|
+
`),"left-right-arrows-under":G(`
|
|
1721
|
+
<line
|
|
1722
|
+
x1="4"
|
|
1723
|
+
y1="8"
|
|
1724
|
+
x2="20"
|
|
1725
|
+
y2="8"
|
|
1726
|
+
stroke="currentColor"
|
|
1727
|
+
stroke-width="0.8"
|
|
1728
|
+
stroke-linecap="round"
|
|
1729
|
+
/>
|
|
1730
|
+
|
|
1731
|
+
<polyline
|
|
1732
|
+
points="17,6 20,8 17,10"
|
|
1733
|
+
fill="none"
|
|
1734
|
+
stroke="currentColor"
|
|
1735
|
+
stroke-width="0.8"
|
|
1736
|
+
stroke-linecap="round"
|
|
1737
|
+
stroke-linejoin="round"
|
|
1738
|
+
/>
|
|
1739
|
+
|
|
1740
|
+
<line
|
|
1741
|
+
x1="20"
|
|
1742
|
+
y1="12"
|
|
1743
|
+
x2="4"
|
|
1744
|
+
y2="12"
|
|
1745
|
+
stroke="currentColor"
|
|
1746
|
+
stroke-width="0.8"
|
|
1747
|
+
stroke-linecap="round"
|
|
1748
|
+
/>
|
|
1749
|
+
|
|
1750
|
+
<polyline
|
|
1751
|
+
points="7,10 4,12 7,14"
|
|
1752
|
+
fill="none"
|
|
1753
|
+
stroke="currentColor"
|
|
1754
|
+
stroke-width="0.8"
|
|
1755
|
+
stroke-linecap="round"
|
|
1756
|
+
stroke-linejoin="round"
|
|
1757
|
+
/>
|
|
1758
|
+
|
|
1759
|
+
<rect
|
|
1760
|
+
x="10"
|
|
1761
|
+
y="16"
|
|
1762
|
+
width="4"
|
|
1763
|
+
height="6"
|
|
1764
|
+
fill="none"
|
|
1765
|
+
stroke="#5A9E57"
|
|
1766
|
+
stroke-width="0.8"
|
|
1767
|
+
/>
|
|
1768
|
+
`),"left-right-arrows-over-under":G(`
|
|
1769
|
+
<rect
|
|
1770
|
+
x="10"
|
|
1771
|
+
y="1"
|
|
1772
|
+
width="4"
|
|
1773
|
+
height="4"
|
|
1774
|
+
fill="none"
|
|
1775
|
+
stroke="#5A9E57"
|
|
1776
|
+
stroke-width="0.8"
|
|
1777
|
+
/>
|
|
1778
|
+
|
|
1779
|
+
<line
|
|
1780
|
+
x1="4"
|
|
1781
|
+
y1="10"
|
|
1782
|
+
x2="20"
|
|
1783
|
+
y2="10"
|
|
1784
|
+
stroke="currentColor"
|
|
1785
|
+
stroke-width="0.8"
|
|
1786
|
+
stroke-linecap="round"
|
|
1787
|
+
/>
|
|
1788
|
+
|
|
1789
|
+
<polyline
|
|
1790
|
+
points="17,8 20,10 17,12"
|
|
1791
|
+
fill="none"
|
|
1792
|
+
stroke="currentColor"
|
|
1793
|
+
stroke-width="0.8"
|
|
1794
|
+
stroke-linecap="round"
|
|
1795
|
+
stroke-linejoin="round"
|
|
1796
|
+
/>
|
|
1797
|
+
|
|
1798
|
+
<line
|
|
1799
|
+
x1="20"
|
|
1800
|
+
y1="14"
|
|
1801
|
+
x2="4"
|
|
1802
|
+
y2="14"
|
|
1803
|
+
stroke="currentColor"
|
|
1804
|
+
stroke-width="0.8"
|
|
1805
|
+
stroke-linecap="round"
|
|
1806
|
+
/>
|
|
1807
|
+
|
|
1808
|
+
<polyline
|
|
1809
|
+
points="7,12 4,14 7,16"
|
|
1810
|
+
fill="none"
|
|
1811
|
+
stroke="currentColor"
|
|
1812
|
+
stroke-width="0.8"
|
|
1813
|
+
stroke-linecap="round"
|
|
1814
|
+
stroke-linejoin="round"
|
|
1815
|
+
/>
|
|
1816
|
+
|
|
1817
|
+
<rect
|
|
1818
|
+
x="10"
|
|
1819
|
+
y="18"
|
|
1820
|
+
width="4"
|
|
1821
|
+
height="4"
|
|
1822
|
+
fill="none"
|
|
1823
|
+
stroke="#5A9E57"
|
|
1824
|
+
stroke-width="0.8"
|
|
1825
|
+
/>
|
|
1826
|
+
`),"right-left-stacked-arrows-over":G(`
|
|
1827
|
+
<rect
|
|
1828
|
+
x="10"
|
|
1829
|
+
y="1"
|
|
1830
|
+
width="4"
|
|
1831
|
+
height="4"
|
|
1832
|
+
fill="none"
|
|
1833
|
+
stroke="#5A9E57"
|
|
1834
|
+
stroke-width="0.8"
|
|
1835
|
+
/>
|
|
1836
|
+
|
|
1837
|
+
<!-- Top arrow (←) -->
|
|
1838
|
+
<line
|
|
1839
|
+
x1="20"
|
|
1840
|
+
y1="10"
|
|
1841
|
+
x2="4"
|
|
1842
|
+
y2="10"
|
|
1843
|
+
stroke="currentColor"
|
|
1844
|
+
stroke-width="0.8"
|
|
1845
|
+
stroke-linecap="round"
|
|
1846
|
+
/>
|
|
1847
|
+
|
|
1848
|
+
<polyline
|
|
1849
|
+
points="7,8 4,10 7,12"
|
|
1850
|
+
fill="none"
|
|
1851
|
+
stroke="currentColor"
|
|
1852
|
+
stroke-width="0.8"
|
|
1853
|
+
stroke-linecap="round"
|
|
1854
|
+
stroke-linejoin="round"
|
|
1855
|
+
/>
|
|
1856
|
+
|
|
1857
|
+
<!-- Bottom arrow (→) -->
|
|
1858
|
+
<line
|
|
1859
|
+
x1="4"
|
|
1860
|
+
y1="14"
|
|
1861
|
+
x2="20"
|
|
1862
|
+
y2="14"
|
|
1863
|
+
stroke="currentColor"
|
|
1864
|
+
stroke-width="0.8"
|
|
1865
|
+
stroke-linecap="round"
|
|
1866
|
+
/>
|
|
1867
|
+
|
|
1868
|
+
<polyline
|
|
1869
|
+
points="17,12 20,14 17,16"
|
|
1870
|
+
fill="none"
|
|
1871
|
+
stroke="currentColor"
|
|
1872
|
+
stroke-width="0.8"
|
|
1873
|
+
stroke-linecap="round"
|
|
1874
|
+
stroke-linejoin="round"
|
|
1875
|
+
/>
|
|
1876
|
+
`),"right-left-stacked-arrows-under":G(`
|
|
1877
|
+
<line
|
|
1878
|
+
x1="20"
|
|
1879
|
+
y1="8"
|
|
1880
|
+
x2="4"
|
|
1881
|
+
y2="8"
|
|
1882
|
+
stroke="currentColor"
|
|
1883
|
+
stroke-width="0.8"
|
|
1884
|
+
stroke-linecap="round"
|
|
1885
|
+
/>
|
|
1886
|
+
|
|
1887
|
+
<polyline
|
|
1888
|
+
points="7,6 4,8 7,10"
|
|
1889
|
+
fill="none"
|
|
1890
|
+
stroke="currentColor"
|
|
1891
|
+
stroke-width="0.8"
|
|
1892
|
+
stroke-linecap="round"
|
|
1893
|
+
stroke-linejoin="round"
|
|
1894
|
+
/>
|
|
1895
|
+
|
|
1896
|
+
<line
|
|
1897
|
+
x1="4"
|
|
1898
|
+
y1="12"
|
|
1899
|
+
x2="20"
|
|
1900
|
+
y2="12"
|
|
1901
|
+
stroke="currentColor"
|
|
1902
|
+
stroke-width="0.8"
|
|
1903
|
+
stroke-linecap="round"
|
|
1904
|
+
/>
|
|
1905
|
+
|
|
1906
|
+
<polyline
|
|
1907
|
+
points="17,10 20,12 17,14"
|
|
1908
|
+
fill="none"
|
|
1909
|
+
stroke="currentColor"
|
|
1910
|
+
stroke-width="0.8"
|
|
1911
|
+
stroke-linecap="round"
|
|
1912
|
+
stroke-linejoin="round"
|
|
1913
|
+
/>
|
|
1914
|
+
|
|
1915
|
+
<rect
|
|
1916
|
+
x="10"
|
|
1917
|
+
y="18"
|
|
1918
|
+
width="4"
|
|
1919
|
+
height="4"
|
|
1920
|
+
fill="none"
|
|
1921
|
+
stroke="#5A9E57"
|
|
1922
|
+
stroke-width="0.8"
|
|
1923
|
+
/>
|
|
1924
|
+
`),"right-left-stacked-arrows-over-under":G(`
|
|
1925
|
+
<rect
|
|
1926
|
+
x="10"
|
|
1927
|
+
y="1"
|
|
1928
|
+
width="4"
|
|
1929
|
+
height="4"
|
|
1930
|
+
fill="none"
|
|
1931
|
+
stroke="#5A9E57"
|
|
1932
|
+
stroke-width="0.8"
|
|
1933
|
+
/>
|
|
1934
|
+
|
|
1935
|
+
<!-- Top arrow (←) -->
|
|
1936
|
+
<line
|
|
1937
|
+
x1="20"
|
|
1938
|
+
y1="10"
|
|
1939
|
+
x2="4"
|
|
1940
|
+
y2="10"
|
|
1941
|
+
stroke="currentColor"
|
|
1942
|
+
stroke-width="0.8"
|
|
1943
|
+
stroke-linecap="round"
|
|
1944
|
+
/>
|
|
1945
|
+
|
|
1946
|
+
<polyline
|
|
1947
|
+
points="7,8 4,10 7,12"
|
|
1948
|
+
fill="none"
|
|
1949
|
+
stroke="currentColor"
|
|
1950
|
+
stroke-width="0.8"
|
|
1951
|
+
stroke-linecap="round"
|
|
1952
|
+
stroke-linejoin="round"
|
|
1953
|
+
/>
|
|
1954
|
+
|
|
1955
|
+
<!-- Bottom arrow (→) -->
|
|
1956
|
+
<line
|
|
1957
|
+
x1="4"
|
|
1958
|
+
y1="14"
|
|
1959
|
+
x2="20"
|
|
1960
|
+
y2="14"
|
|
1961
|
+
stroke="currentColor"
|
|
1962
|
+
stroke-width="0.8"
|
|
1963
|
+
stroke-linecap="round"
|
|
1964
|
+
/>
|
|
1965
|
+
|
|
1966
|
+
<polyline
|
|
1967
|
+
points="17,12 20,14 17,16"
|
|
1968
|
+
fill="none"
|
|
1969
|
+
stroke="currentColor"
|
|
1970
|
+
stroke-width="0.8"
|
|
1971
|
+
stroke-linecap="round"
|
|
1972
|
+
stroke-linejoin="round"
|
|
1973
|
+
/>
|
|
1974
|
+
|
|
1975
|
+
<rect
|
|
1976
|
+
x="10"
|
|
1977
|
+
y="18"
|
|
1978
|
+
width="4"
|
|
1979
|
+
height="4"
|
|
1980
|
+
fill="none"
|
|
1981
|
+
stroke="#5A9E57"
|
|
1982
|
+
stroke-width="0.8"
|
|
1983
|
+
/>
|
|
1984
|
+
`),"left-right-harpoons-over":G(`
|
|
1985
|
+
<rect
|
|
1986
|
+
x="10"
|
|
1987
|
+
y="1"
|
|
1988
|
+
width="4"
|
|
1989
|
+
height="4"
|
|
1990
|
+
fill="none"
|
|
1991
|
+
stroke="#5A9E57"
|
|
1992
|
+
stroke-width="0.8"
|
|
1993
|
+
/>
|
|
1994
|
+
|
|
1995
|
+
<!-- Top left harpoon -->
|
|
1996
|
+
<line
|
|
1997
|
+
x1="20"
|
|
1998
|
+
y1="10"
|
|
1999
|
+
x2="4"
|
|
2000
|
+
y2="10"
|
|
2001
|
+
stroke="currentColor"
|
|
2002
|
+
stroke-width="0.8"
|
|
2003
|
+
stroke-linecap="round"
|
|
2004
|
+
/>
|
|
2005
|
+
|
|
2006
|
+
<polyline
|
|
2007
|
+
points="7,8 4,10 7,10"
|
|
2008
|
+
fill="none"
|
|
2009
|
+
stroke="currentColor"
|
|
2010
|
+
stroke-width="0.8"
|
|
2011
|
+
stroke-linecap="round"
|
|
2012
|
+
stroke-linejoin="round"
|
|
2013
|
+
/>
|
|
2014
|
+
|
|
2015
|
+
<!-- Bottom right harpoon -->
|
|
2016
|
+
<line
|
|
2017
|
+
x1="4"
|
|
2018
|
+
y1="14"
|
|
2019
|
+
x2="20"
|
|
2020
|
+
y2="14"
|
|
2021
|
+
stroke="currentColor"
|
|
2022
|
+
stroke-width="0.8"
|
|
2023
|
+
stroke-linecap="round"
|
|
2024
|
+
/>
|
|
2025
|
+
|
|
2026
|
+
<polyline
|
|
2027
|
+
points="17,14 20,14 17,16"
|
|
2028
|
+
fill="none"
|
|
2029
|
+
stroke="currentColor"
|
|
2030
|
+
stroke-width="0.8"
|
|
2031
|
+
stroke-linecap="round"
|
|
2032
|
+
stroke-linejoin="round"
|
|
2033
|
+
/>
|
|
2034
|
+
`),"left-right-harpoons-under":G(`
|
|
2035
|
+
<!-- Top left harpoon -->
|
|
2036
|
+
<line
|
|
2037
|
+
x1="20"
|
|
2038
|
+
y1="8"
|
|
2039
|
+
x2="4"
|
|
2040
|
+
y2="8"
|
|
2041
|
+
stroke="currentColor"
|
|
2042
|
+
stroke-width="0.8"
|
|
2043
|
+
stroke-linecap="round"
|
|
2044
|
+
/>
|
|
2045
|
+
|
|
2046
|
+
<polyline
|
|
2047
|
+
points="7,6 4,8 7,8"
|
|
2048
|
+
fill="none"
|
|
2049
|
+
stroke="currentColor"
|
|
2050
|
+
stroke-width="0.8"
|
|
2051
|
+
stroke-linecap="round"
|
|
2052
|
+
stroke-linejoin="round"
|
|
2053
|
+
/>
|
|
2054
|
+
|
|
2055
|
+
<!-- Bottom right harpoon -->
|
|
2056
|
+
<line
|
|
2057
|
+
x1="4"
|
|
2058
|
+
y1="12"
|
|
2059
|
+
x2="20"
|
|
2060
|
+
y2="12"
|
|
2061
|
+
stroke="currentColor"
|
|
2062
|
+
stroke-width="0.8"
|
|
2063
|
+
stroke-linecap="round"
|
|
2064
|
+
/>
|
|
2065
|
+
|
|
2066
|
+
<polyline
|
|
2067
|
+
points="17,12 20,12 17,14"
|
|
2068
|
+
fill="none"
|
|
2069
|
+
stroke="currentColor"
|
|
2070
|
+
stroke-width="0.8"
|
|
2071
|
+
stroke-linecap="round"
|
|
2072
|
+
stroke-linejoin="round"
|
|
2073
|
+
/>
|
|
2074
|
+
|
|
2075
|
+
<!-- Placeholder -->
|
|
2076
|
+
<rect
|
|
2077
|
+
x="10"
|
|
2078
|
+
y="18"
|
|
2079
|
+
width="4"
|
|
2080
|
+
height="4"
|
|
2081
|
+
fill="none"
|
|
2082
|
+
stroke="#5A9E57"
|
|
2083
|
+
stroke-width="0.8"
|
|
2084
|
+
/>
|
|
2085
|
+
`),"left-right-harpoons-over-under":G(`
|
|
2086
|
+
<rect
|
|
2087
|
+
x="10"
|
|
2088
|
+
y="1"
|
|
2089
|
+
width="4"
|
|
2090
|
+
height="4"
|
|
2091
|
+
fill="none"
|
|
2092
|
+
stroke="#5A9E57"
|
|
2093
|
+
stroke-width="0.8"
|
|
2094
|
+
/>
|
|
2095
|
+
|
|
2096
|
+
<!-- Top left harpoon -->
|
|
2097
|
+
<line
|
|
2098
|
+
x1="20"
|
|
2099
|
+
y1="10"
|
|
2100
|
+
x2="4"
|
|
2101
|
+
y2="10"
|
|
2102
|
+
stroke="currentColor"
|
|
2103
|
+
stroke-width="0.8"
|
|
2104
|
+
stroke-linecap="round"
|
|
2105
|
+
/>
|
|
2106
|
+
|
|
2107
|
+
<polyline
|
|
2108
|
+
points="7,8 4,10 7,10"
|
|
2109
|
+
fill="none"
|
|
2110
|
+
stroke="currentColor"
|
|
2111
|
+
stroke-width="0.8"
|
|
2112
|
+
stroke-linecap="round"
|
|
2113
|
+
stroke-linejoin="round"
|
|
2114
|
+
/>
|
|
2115
|
+
|
|
2116
|
+
<!-- Bottom right harpoon -->
|
|
2117
|
+
<line
|
|
2118
|
+
x1="4"
|
|
2119
|
+
y1="14"
|
|
2120
|
+
x2="20"
|
|
2121
|
+
y2="14"
|
|
2122
|
+
stroke="currentColor"
|
|
2123
|
+
stroke-width="0.8"
|
|
2124
|
+
stroke-linecap="round"
|
|
2125
|
+
/>
|
|
2126
|
+
|
|
2127
|
+
<polyline
|
|
2128
|
+
points="17,14 20,14 17,16"
|
|
2129
|
+
fill="none"
|
|
2130
|
+
stroke="currentColor"
|
|
2131
|
+
stroke-width="0.8"
|
|
2132
|
+
stroke-linecap="round"
|
|
2133
|
+
stroke-linejoin="round"
|
|
2134
|
+
/>
|
|
2135
|
+
|
|
2136
|
+
<rect
|
|
2137
|
+
x="10"
|
|
2138
|
+
y="18"
|
|
2139
|
+
width="4"
|
|
2140
|
+
height="4"
|
|
2141
|
+
fill="none"
|
|
2142
|
+
stroke="#5A9E57"
|
|
2143
|
+
stroke-width="0.8"
|
|
2144
|
+
/>
|
|
2145
|
+
`),"right-left-harpoons-over":G(`
|
|
2146
|
+
<rect
|
|
2147
|
+
x="10"
|
|
2148
|
+
y="1"
|
|
2149
|
+
width="4"
|
|
2150
|
+
height="4"
|
|
2151
|
+
fill="none"
|
|
2152
|
+
stroke="#5A9E57"
|
|
2153
|
+
stroke-width="0.8"
|
|
2154
|
+
/>
|
|
2155
|
+
|
|
2156
|
+
<!-- Top right harpoon -->
|
|
2157
|
+
<line
|
|
2158
|
+
x1="4"
|
|
2159
|
+
y1="10"
|
|
2160
|
+
x2="20"
|
|
2161
|
+
y2="10"
|
|
2162
|
+
stroke="currentColor"
|
|
2163
|
+
stroke-width="0.8"
|
|
2164
|
+
stroke-linecap="round"
|
|
2165
|
+
/>
|
|
2166
|
+
<polyline
|
|
2167
|
+
points="17,8 20,10 17,10"
|
|
2168
|
+
fill="none"
|
|
2169
|
+
stroke="currentColor"
|
|
2170
|
+
stroke-width="0.8"
|
|
2171
|
+
stroke-linecap="round"
|
|
2172
|
+
stroke-linejoin="round"
|
|
2173
|
+
/>
|
|
2174
|
+
|
|
2175
|
+
<!-- Bottom left harpoon -->
|
|
2176
|
+
<line
|
|
2177
|
+
x1="20"
|
|
2178
|
+
y1="14"
|
|
2179
|
+
x2="4"
|
|
2180
|
+
y2="14"
|
|
2181
|
+
stroke="currentColor"
|
|
2182
|
+
stroke-width="0.8"
|
|
2183
|
+
stroke-linecap="round"
|
|
2184
|
+
/>
|
|
2185
|
+
<polyline
|
|
2186
|
+
points="7,14 4,14 7,16"
|
|
2187
|
+
fill="none"
|
|
2188
|
+
stroke="currentColor"
|
|
2189
|
+
stroke-width="0.8"
|
|
2190
|
+
stroke-linecap="round"
|
|
2191
|
+
stroke-linejoin="round"
|
|
2192
|
+
/>
|
|
2193
|
+
`),"right-left-harpoons-under":G(`
|
|
2194
|
+
<!-- Top right harpoon -->
|
|
2195
|
+
<line
|
|
2196
|
+
x1="4"
|
|
2197
|
+
y1="8"
|
|
2198
|
+
x2="20"
|
|
2199
|
+
y2="8"
|
|
2200
|
+
stroke="currentColor"
|
|
2201
|
+
stroke-width="0.8"
|
|
2202
|
+
stroke-linecap="round"
|
|
2203
|
+
/>
|
|
2204
|
+
<polyline
|
|
2205
|
+
points="17,6 20,8 17,8"
|
|
2206
|
+
fill="none"
|
|
2207
|
+
stroke="currentColor"
|
|
2208
|
+
stroke-width="0.8"
|
|
2209
|
+
stroke-linecap="round"
|
|
2210
|
+
stroke-linejoin="round"
|
|
2211
|
+
/>
|
|
2212
|
+
|
|
2213
|
+
<!-- Bottom left harpoon -->
|
|
2214
|
+
<line
|
|
2215
|
+
x1="20"
|
|
2216
|
+
y1="12"
|
|
2217
|
+
x2="4"
|
|
2218
|
+
y2="12"
|
|
2219
|
+
stroke="currentColor"
|
|
2220
|
+
stroke-width="0.8"
|
|
2221
|
+
stroke-linecap="round"
|
|
2222
|
+
/>
|
|
2223
|
+
<polyline
|
|
2224
|
+
points="7,12 4,12 7,14"
|
|
2225
|
+
fill="none"
|
|
2226
|
+
stroke="currentColor"
|
|
2227
|
+
stroke-width="0.8"
|
|
2228
|
+
stroke-linecap="round"
|
|
2229
|
+
stroke-linejoin="round"
|
|
2230
|
+
/>
|
|
2231
|
+
|
|
2232
|
+
<!-- Placeholder -->
|
|
2233
|
+
<rect
|
|
2234
|
+
x="10"
|
|
2235
|
+
y="18"
|
|
2236
|
+
width="4"
|
|
2237
|
+
height="4"
|
|
2238
|
+
fill="none"
|
|
2239
|
+
stroke="#5A9E57"
|
|
2240
|
+
stroke-width="0.8"
|
|
2241
|
+
/>
|
|
2242
|
+
`),"right-left-harpoons-over-under":G(`
|
|
2243
|
+
<rect
|
|
2244
|
+
x="10"
|
|
2245
|
+
y="1"
|
|
2246
|
+
width="4"
|
|
2247
|
+
height="4"
|
|
2248
|
+
fill="none"
|
|
2249
|
+
stroke="#5A9E57"
|
|
2250
|
+
stroke-width="0.8"
|
|
2251
|
+
/>
|
|
2252
|
+
|
|
2253
|
+
<!-- Top right harpoon -->
|
|
2254
|
+
<line
|
|
2255
|
+
x1="4"
|
|
2256
|
+
y1="10"
|
|
2257
|
+
x2="20"
|
|
2258
|
+
y2="10"
|
|
2259
|
+
stroke="currentColor"
|
|
2260
|
+
stroke-width="0.8"
|
|
2261
|
+
stroke-linecap="round"
|
|
2262
|
+
/>
|
|
2263
|
+
|
|
2264
|
+
<polyline
|
|
2265
|
+
points="17,8 20,10 17,10"
|
|
2266
|
+
fill="none"
|
|
2267
|
+
stroke="currentColor"
|
|
2268
|
+
stroke-width="0.8"
|
|
2269
|
+
stroke-linecap="round"
|
|
2270
|
+
stroke-linejoin="round"
|
|
2271
|
+
/>
|
|
2272
|
+
|
|
2273
|
+
<!-- Bottom left harpoon -->
|
|
2274
|
+
<line
|
|
2275
|
+
x1="20"
|
|
2276
|
+
y1="14"
|
|
2277
|
+
x2="4"
|
|
2278
|
+
y2="14"
|
|
2279
|
+
stroke="currentColor"
|
|
2280
|
+
stroke-width="0.8"
|
|
2281
|
+
stroke-linecap="round"
|
|
2282
|
+
/>
|
|
2283
|
+
|
|
2284
|
+
<polyline
|
|
2285
|
+
points="7,14 4,14 7,16"
|
|
2286
|
+
fill="none"
|
|
2287
|
+
stroke="currentColor"
|
|
2288
|
+
stroke-width="0.8"
|
|
2289
|
+
stroke-linecap="round"
|
|
2290
|
+
stroke-linejoin="round"
|
|
2291
|
+
/>
|
|
2292
|
+
|
|
2293
|
+
<rect
|
|
2294
|
+
x="10"
|
|
2295
|
+
y="18"
|
|
2296
|
+
width="4"
|
|
2297
|
+
height="4"
|
|
2298
|
+
fill="none"
|
|
2299
|
+
stroke="#5A9E57"
|
|
2300
|
+
stroke-width="0.8"
|
|
2301
|
+
/>
|
|
2302
|
+
`),"long-right-short-left-over":G(`
|
|
2303
|
+
<rect
|
|
2304
|
+
x="10"
|
|
2305
|
+
y="1"
|
|
2306
|
+
width="4"
|
|
2307
|
+
height="6"
|
|
2308
|
+
fill="none"
|
|
2309
|
+
stroke="#5A9E57"
|
|
2310
|
+
stroke-width="0.8"
|
|
2311
|
+
/>
|
|
2312
|
+
|
|
2313
|
+
<!-- Top right arrow -->
|
|
2314
|
+
<line
|
|
2315
|
+
x1="6"
|
|
2316
|
+
y1="12"
|
|
2317
|
+
x2="18"
|
|
2318
|
+
y2="12"
|
|
2319
|
+
stroke="currentColor"
|
|
2320
|
+
stroke-width="0.8"
|
|
2321
|
+
stroke-linecap="round"
|
|
2322
|
+
/>
|
|
2323
|
+
<polyline
|
|
2324
|
+
points="15,10 18,12 15,14"
|
|
2325
|
+
fill="none"
|
|
2326
|
+
stroke="currentColor"
|
|
2327
|
+
stroke-width="0.8"
|
|
2328
|
+
stroke-linecap="round"
|
|
2329
|
+
stroke-linejoin="round"
|
|
2330
|
+
/>
|
|
2331
|
+
|
|
2332
|
+
<!-- Bottom left arrow -->
|
|
2333
|
+
<line
|
|
2334
|
+
x1="12"
|
|
2335
|
+
y1="17"
|
|
2336
|
+
x2="6"
|
|
2337
|
+
y2="17"
|
|
2338
|
+
stroke="currentColor"
|
|
2339
|
+
stroke-width="0.8"
|
|
2340
|
+
stroke-linecap="round"
|
|
2341
|
+
/>
|
|
2342
|
+
<polyline
|
|
2343
|
+
points="9,15 6,17 9,19"
|
|
2344
|
+
fill="none"
|
|
2345
|
+
stroke="currentColor"
|
|
2346
|
+
stroke-width="0.8"
|
|
2347
|
+
stroke-linecap="round"
|
|
2348
|
+
stroke-linejoin="round"
|
|
2349
|
+
/>
|
|
2350
|
+
`),"long-right-short-left-under":G(`
|
|
2351
|
+
<!-- Top right arrow -->
|
|
2352
|
+
<line
|
|
2353
|
+
x1="6"
|
|
2354
|
+
y1="8"
|
|
2355
|
+
x2="18"
|
|
2356
|
+
y2="8"
|
|
2357
|
+
stroke="currentColor"
|
|
2358
|
+
stroke-width="0.8"
|
|
2359
|
+
stroke-linecap="round"
|
|
2360
|
+
/>
|
|
2361
|
+
<polyline
|
|
2362
|
+
points="15,6 18,8 15,10"
|
|
2363
|
+
fill="none"
|
|
2364
|
+
stroke="currentColor"
|
|
2365
|
+
stroke-width="0.8"
|
|
2366
|
+
stroke-linecap="round"
|
|
2367
|
+
stroke-linejoin="round"
|
|
2368
|
+
/>
|
|
2369
|
+
|
|
2370
|
+
<!-- Bottom left arrow -->
|
|
2371
|
+
<line
|
|
2372
|
+
x1="12"
|
|
2373
|
+
y1="13"
|
|
2374
|
+
x2="6"
|
|
2375
|
+
y2="13"
|
|
2376
|
+
stroke="currentColor"
|
|
2377
|
+
stroke-width="0.8"
|
|
2378
|
+
stroke-linecap="round"
|
|
2379
|
+
/>
|
|
2380
|
+
<polyline
|
|
2381
|
+
points="9,11 6,13 9,15"
|
|
2382
|
+
fill="none"
|
|
2383
|
+
stroke="currentColor"
|
|
2384
|
+
stroke-width="0.8"
|
|
2385
|
+
stroke-linecap="round"
|
|
2386
|
+
stroke-linejoin="round"
|
|
2387
|
+
/>
|
|
2388
|
+
|
|
2389
|
+
<!-- Placeholder -->
|
|
2390
|
+
<rect
|
|
2391
|
+
x="10"
|
|
2392
|
+
y="18"
|
|
2393
|
+
width="4"
|
|
2394
|
+
height="4"
|
|
2395
|
+
fill="none"
|
|
2396
|
+
stroke="#5A9E57"
|
|
2397
|
+
stroke-width="0.8"
|
|
2398
|
+
/>
|
|
2399
|
+
`),"long-right-short-left-over-under":G(`
|
|
2400
|
+
<rect
|
|
2401
|
+
x="10"
|
|
2402
|
+
y="1"
|
|
2403
|
+
width="4"
|
|
2404
|
+
height="4"
|
|
2405
|
+
fill="none"
|
|
2406
|
+
stroke="#5A9E57"
|
|
2407
|
+
stroke-width="0.8"
|
|
2408
|
+
/>
|
|
2409
|
+
|
|
2410
|
+
<!-- Top right arrow -->
|
|
2411
|
+
<line
|
|
2412
|
+
x1="6"
|
|
2413
|
+
y1="10"
|
|
2414
|
+
x2="18"
|
|
2415
|
+
y2="10"
|
|
2416
|
+
stroke="currentColor"
|
|
2417
|
+
stroke-width="0.8"
|
|
2418
|
+
stroke-linecap="round"
|
|
2419
|
+
/>
|
|
2420
|
+
<polyline
|
|
2421
|
+
points="15,8 18,10 15,12"
|
|
2422
|
+
fill="none"
|
|
2423
|
+
stroke="currentColor"
|
|
2424
|
+
stroke-width="0.8"
|
|
2425
|
+
stroke-linecap="round"
|
|
2426
|
+
stroke-linejoin="round"
|
|
2427
|
+
/>
|
|
2428
|
+
|
|
2429
|
+
<!-- Bottom left arrow -->
|
|
2430
|
+
<line
|
|
2431
|
+
x1="12"
|
|
2432
|
+
y1="15"
|
|
2433
|
+
x2="6"
|
|
2434
|
+
y2="15"
|
|
2435
|
+
stroke="currentColor"
|
|
2436
|
+
stroke-width="0.8"
|
|
2437
|
+
stroke-linecap="round"
|
|
2438
|
+
/>
|
|
2439
|
+
<polyline
|
|
2440
|
+
points="9,13 6,15 9,17"
|
|
2441
|
+
fill="none"
|
|
2442
|
+
stroke="currentColor"
|
|
2443
|
+
stroke-width="0.8"
|
|
2444
|
+
stroke-linecap="round"
|
|
2445
|
+
stroke-linejoin="round"
|
|
2446
|
+
/>
|
|
2447
|
+
|
|
2448
|
+
<rect
|
|
2449
|
+
x="10"
|
|
2450
|
+
y="19"
|
|
2451
|
+
width="4"
|
|
2452
|
+
height="4"
|
|
2453
|
+
fill="none"
|
|
2454
|
+
stroke="#5A9E57"
|
|
2455
|
+
stroke-width="0.8"
|
|
2456
|
+
/>
|
|
2457
|
+
`),"short-right-long-left-over":G(`
|
|
2458
|
+
<rect
|
|
2459
|
+
x="10"
|
|
2460
|
+
y="1"
|
|
2461
|
+
width="4"
|
|
2462
|
+
height="6"
|
|
2463
|
+
fill="none"
|
|
2464
|
+
stroke="#5A9E57"
|
|
2465
|
+
stroke-width="0.8"
|
|
2466
|
+
/>
|
|
2467
|
+
|
|
2468
|
+
<!-- Short right arrow -->
|
|
2469
|
+
<line
|
|
2470
|
+
x1="10"
|
|
2471
|
+
y1="10"
|
|
2472
|
+
x2="18"
|
|
2473
|
+
y2="10"
|
|
2474
|
+
stroke="currentColor"
|
|
2475
|
+
stroke-width="0.8"
|
|
2476
|
+
stroke-linecap="round"
|
|
2477
|
+
/>
|
|
2478
|
+
|
|
2479
|
+
<polyline
|
|
2480
|
+
points="15,8 18,10 15,12"
|
|
2481
|
+
fill="none"
|
|
2482
|
+
stroke="currentColor"
|
|
2483
|
+
stroke-width="0.8"
|
|
2484
|
+
stroke-linecap="round"
|
|
2485
|
+
stroke-linejoin="round"
|
|
2486
|
+
/>
|
|
2487
|
+
|
|
2488
|
+
<!-- Long left arrow -->
|
|
2489
|
+
<line
|
|
2490
|
+
x1="18"
|
|
2491
|
+
y1="15"
|
|
2492
|
+
x2="4"
|
|
2493
|
+
y2="15"
|
|
2494
|
+
stroke="currentColor"
|
|
2495
|
+
stroke-width="0.8"
|
|
2496
|
+
stroke-linecap="round"
|
|
2497
|
+
/>
|
|
2498
|
+
|
|
2499
|
+
<polyline
|
|
2500
|
+
points="7,13 4,15 7,17"
|
|
2501
|
+
fill="none"
|
|
2502
|
+
stroke="currentColor"
|
|
2503
|
+
stroke-width="0.8"
|
|
2504
|
+
stroke-linecap="round"
|
|
2505
|
+
stroke-linejoin="round"
|
|
2506
|
+
/>
|
|
2507
|
+
`),"short-right-long-left-under":G(`
|
|
2508
|
+
<rect
|
|
2509
|
+
x="10"
|
|
2510
|
+
y="17"
|
|
2511
|
+
width="4"
|
|
2512
|
+
height="6"
|
|
2513
|
+
fill="none"
|
|
2514
|
+
stroke="#5A9E57"
|
|
2515
|
+
stroke-width="0.8"
|
|
2516
|
+
/>
|
|
2517
|
+
|
|
2518
|
+
<!-- Short right arrow -->
|
|
2519
|
+
<line
|
|
2520
|
+
x1="9"
|
|
2521
|
+
y1="8"
|
|
2522
|
+
x2="17"
|
|
2523
|
+
y2="8"
|
|
2524
|
+
stroke="currentColor"
|
|
2525
|
+
stroke-width="0.8"
|
|
2526
|
+
stroke-linecap="round"
|
|
2527
|
+
/>
|
|
2528
|
+
<polyline
|
|
2529
|
+
points="14,6 17,8 14,10"
|
|
2530
|
+
fill="none"
|
|
2531
|
+
stroke="currentColor"
|
|
2532
|
+
stroke-width="0.8"
|
|
2533
|
+
stroke-linecap="round"
|
|
2534
|
+
stroke-linejoin="round"
|
|
2535
|
+
/>
|
|
2536
|
+
|
|
2537
|
+
<!-- Long left arrow -->
|
|
2538
|
+
<line
|
|
2539
|
+
x1="18"
|
|
2540
|
+
y1="13"
|
|
2541
|
+
x2="4"
|
|
2542
|
+
y2="13"
|
|
2543
|
+
stroke="currentColor"
|
|
2544
|
+
stroke-width="0.8"
|
|
2545
|
+
stroke-linecap="round"
|
|
2546
|
+
/>
|
|
2547
|
+
<polyline
|
|
2548
|
+
points="7,11 4,13 7,15"
|
|
2549
|
+
fill="none"
|
|
2550
|
+
stroke="currentColor"
|
|
2551
|
+
stroke-width="0.8"
|
|
2552
|
+
stroke-linecap="round"
|
|
2553
|
+
stroke-linejoin="round"
|
|
2554
|
+
/>
|
|
2555
|
+
`),"short-right-long-left-over-under":G(`
|
|
2556
|
+
<rect
|
|
2557
|
+
x="10"
|
|
2558
|
+
y="1"
|
|
2559
|
+
width="4"
|
|
2560
|
+
height="6"
|
|
2561
|
+
fill="none"
|
|
2562
|
+
stroke="#5A9E57"
|
|
2563
|
+
stroke-width="0.8"
|
|
2564
|
+
/>
|
|
2565
|
+
|
|
2566
|
+
<!-- Short right arrow -->
|
|
2567
|
+
<line
|
|
2568
|
+
x1="10"
|
|
2569
|
+
y1="10"
|
|
2570
|
+
x2="18"
|
|
2571
|
+
y2="10"
|
|
2572
|
+
stroke="currentColor"
|
|
2573
|
+
stroke-width="0.8"
|
|
2574
|
+
stroke-linecap="round"
|
|
2575
|
+
/>
|
|
2576
|
+
<polyline
|
|
2577
|
+
points="15,8 18,10 15,12"
|
|
2578
|
+
fill="none"
|
|
2579
|
+
stroke="currentColor"
|
|
2580
|
+
stroke-width="0.8"
|
|
2581
|
+
stroke-linecap="round"
|
|
2582
|
+
stroke-linejoin="round"
|
|
2583
|
+
/>
|
|
2584
|
+
|
|
2585
|
+
<!-- Long left arrow -->
|
|
2586
|
+
<line
|
|
2587
|
+
x1="18"
|
|
2588
|
+
y1="15"
|
|
2589
|
+
x2="4"
|
|
2590
|
+
y2="15"
|
|
2591
|
+
stroke="currentColor"
|
|
2592
|
+
stroke-width="0.8"
|
|
2593
|
+
stroke-linecap="round"
|
|
2594
|
+
/>
|
|
2595
|
+
<polyline
|
|
2596
|
+
points="7,13 4,15 7,17"
|
|
2597
|
+
fill="none"
|
|
2598
|
+
stroke="currentColor"
|
|
2599
|
+
stroke-width="0.8"
|
|
2600
|
+
stroke-linecap="round"
|
|
2601
|
+
stroke-linejoin="round"
|
|
2602
|
+
/>
|
|
2603
|
+
|
|
2604
|
+
<rect
|
|
2605
|
+
x="10"
|
|
2606
|
+
y="18"
|
|
2607
|
+
width="4"
|
|
2608
|
+
height="6"
|
|
2609
|
+
fill="none"
|
|
2610
|
+
stroke="#5A9E57"
|
|
2611
|
+
stroke-width="0.8"
|
|
2612
|
+
/>
|
|
2613
|
+
`),"arabic-indic-numerals-template-image":W(`
|
|
2614
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
|
|
2615
|
+
<text x="4" y="36" font-family="Amiri, Noto Naskh Arabic, serif" font-size="38" fill="#000">٤٦</text>
|
|
2616
|
+
</svg>
|
|
2617
|
+
`),"eastern-arabic-indic-numerals-template-image":W(`
|
|
2618
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
|
|
2619
|
+
<text x="4" y="36" font-size="36" font-family="sans-serif" fill="#000">۴۶</text>
|
|
2620
|
+
</svg>
|
|
2621
|
+
`)};function Se(e,t={}){if(e.cls?.includes(`arrow-picker-tool`))return(0,f.jsx)(`span`,{className:`cme-toolbar-chevron-indicator`,"aria-hidden":`true`,children:`⏵`});if(e.icon&&xe[e.icon])return(0,f.jsx)(`span`,{className:`cme-toolbar-icon-image-wrapper cme-toolbar-icon-image-wrapper--${e.icon}`,"aria-hidden":`true`,children:(0,f.jsx)(`img`,{className:`cme-toolbar-icon-image cme-toolbar-icon-image--${e.icon}`,src:xe[e.icon],alt:``})});if(e.icon===`stacked-fraction`)return(0,f.jsx)(`span`,{className:`cme-fraction-icon cme-fraction-stack${e.cls?.includes(`black-glyph-template`)?` cme-fraction-stack--black-glyph-template`:``}`,"aria-hidden":`true`,children:(0,f.jsxs)(`svg`,{className:`cme-fraction-svg`,viewBox:`0 0 24 24`,focusable:`false`,"aria-hidden":`true`,children:[(0,f.jsx)(`rect`,{x:`7.5`,y:`-0.2`,width:`9`,height:`9`}),(0,f.jsx)(`line`,{x1:`5.5`,y1:`12`,x2:`18.5`,y2:`12`}),(0,f.jsx)(`rect`,{x:`7.5`,y:`15.3`,width:`9`,height:`9`})]})});if(e.icon===`arrow-label-right-above`||e.icon===`arrow-label-left-above`||e.icon===`arrow-label-both-above`||e.icon===`arrow-label-right-below`||e.icon===`arrow-label-left-below`||e.icon===`arrow-label-both-below`||e.icon===`arrow-label-both-above-below`||e.icon===`arrow-label-right-above-below`||e.icon===`arrow-label-left-above-below`||e.icon===`harpoon-label-right-left-above`||e.icon===`harpoon-label-right-left-below`||e.icon===`harpoon-label-right-left-above-below`||e.icon===`harpoon-label-left-right-above-below`||e.icon===`bar-harpoon-label-right-left-above-below`||e.icon===`bar-harpoon-label-right-left-above`||e.icon===`bar-harpoon-label-right-left-below`||e.icon===`bar-harpoon-label-left-right-above-below`||e.icon===`bar-arrow-label-right-left-above`||e.icon===`bar-arrow-label-right-left-above-below`||e.icon===`bar-arrow-label-left-right-above`||e.icon===`bar-arrow-label-left-right-above-below`){let{direction:t,arrowY:n,topBox:r,bottomBox:i}={"arrow-label-right-above":{direction:`right`,arrowY:11.25,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"arrow-label-left-above":{direction:`left`,arrowY:11.25,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"arrow-label-both-above":{direction:`both`,arrowY:11.25,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"arrow-label-right-below":{direction:`right`,arrowY:6.7,bottomBox:{x:6.5,y:10.35,width:4.8,height:5.7}},"arrow-label-left-below":{direction:`left`,arrowY:6.7,bottomBox:{x:6.5,y:10.35,width:4.8,height:5.7}},"arrow-label-both-below":{direction:`both`,arrowY:6.7,bottomBox:{x:6.5,y:10.35,width:4.8,height:5.7}},"arrow-label-both-above-below":{direction:`both`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"arrow-label-right-above-below":{direction:`right`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"arrow-label-left-above-below":{direction:`left`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"harpoon-label-right-left-above":{direction:`harpoon-rl`,arrowY:11.15,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"harpoon-label-right-left-below":{direction:`harpoon-rl`,arrowY:6.6,bottomBox:{x:6.5,y:10.35,width:4.8,height:5.7}},"harpoon-label-right-left-above-below":{direction:`harpoon-rl`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"harpoon-label-left-right-above-below":{direction:`harpoon-lr`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"bar-harpoon-label-right-left-above-below":{direction:`bar-harpoon-rl`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"bar-harpoon-label-right-left-above":{direction:`bar-harpoon-rl`,arrowY:11.15,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"bar-harpoon-label-right-left-below":{direction:`bar-harpoon-rl`,arrowY:6.6,bottomBox:{x:6.5,y:10.35,width:4.8,height:5.7}},"bar-harpoon-label-left-right-above-below":{direction:`bar-harpoon-lr`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"bar-arrow-label-right-left-above":{direction:`bar-arrow-rl`,arrowY:11.15,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"bar-arrow-label-right-left-above-below":{direction:`bar-arrow-rl`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"bar-arrow-label-left-right-above":{direction:`bar-arrow-lr`,arrowY:11.15,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"bar-arrow-label-left-right-above-below":{direction:`bar-arrow-lr`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}}}[e.icon],a=t===`left`?(0,f.jsx)(`path`,{d:`M5.1 ${n-1.55}L2.55 ${n}L5.1 ${n+1.55}M2.95 ${n}H14.9`}):t===`both`?(0,f.jsx)(`path`,{d:`M5.1 ${n-1.55}L2.55 ${n}L5.1 ${n+1.55}M2.95 ${n}H15.05M12.5 ${n-1.55}L15.05 ${n}L12.5 ${n+1.55}`}):t===`harpoon-rl`?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{d:`M3.1 ${n-1.95}H14.35M12.05 ${n-3.15}L14.55 ${n-1.95}L12.05 ${n-.75}`}),(0,f.jsx)(`path`,{d:`M14.45 ${n+1.65}H3.2M5.45 ${n+.45}L2.95 ${n+1.65}L5.45 ${n+2.85}`})]}):t===`harpoon-lr`?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{d:`M14.45 ${n-1.95}H3.2M5.45 ${n-3.15}L2.95 ${n-1.95}L5.45 ${n-.75}`}),(0,f.jsx)(`path`,{d:`M3.1 ${n+1.65}H14.35M12.05 ${n+.45}L14.55 ${n+1.65}L12.05 ${n+2.85}`})]}):t===`bar-harpoon-rl`?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{d:`M4.3 ${n-1.95}H14.1M11.8 ${n-3.15}L14.3 ${n-1.95}L11.8 ${n-.75}`}),(0,f.jsx)(`path`,{d:`M14.2 ${n+1.65}H4.1M6.35 ${n+.45}L3.85 ${n+1.65}L6.35 ${n+2.85}`}),(0,f.jsx)(`line`,{x1:`2.95`,y1:n-1.95,x2:`4.15`,y2:n-1.95}),(0,f.jsx)(`line`,{x1:`14.2`,y1:n+1.65,x2:`15.3`,y2:n+1.65})]}):t===`bar-harpoon-lr`?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{d:`M14.2 ${n-1.95}H4.1M6.35 ${n-3.15}L3.85 ${n-1.95}L6.35 ${n-.75}`}),(0,f.jsx)(`path`,{d:`M4.3 ${n+1.65}H14.1M11.8 ${n+.45}L14.3 ${n+1.65}L11.8 ${n+2.85}`}),(0,f.jsx)(`line`,{x1:`14.2`,y1:n-1.95,x2:`15.3`,y2:n-1.95}),(0,f.jsx)(`line`,{x1:`2.95`,y1:n+1.65,x2:`4.15`,y2:n+1.65})]}):t===`bar-arrow-rl`?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{d:`M4.2 ${n-1.95}H14.05M11.75 ${n-3.15}L14.25 ${n-1.95}L11.75 ${n-.75}`}),(0,f.jsx)(`path`,{d:`M14.15 ${n+1.65}H4.25M6.55 ${n+.45}L4.05 ${n+1.65}L6.55 ${n+2.85}`}),(0,f.jsx)(`line`,{x1:`4.05`,y1:n+1.65,x2:`14.15`,y2:n+1.65})]}):t===`bar-arrow-lr`?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`path`,{d:`M14.15 ${n-1.95}H4.25M6.55 ${n-3.15}L4.05 ${n-1.95}L6.55 ${n-.75}`}),(0,f.jsx)(`path`,{d:`M4.2 ${n+1.65}H14.05M11.75 ${n+.45}L14.25 ${n+1.65}L11.75 ${n+2.85}`}),(0,f.jsx)(`line`,{x1:`4.05`,y1:n-1.95,x2:`14.15`,y2:n-1.95})]}):(0,f.jsx)(`path`,{d:`M12.5 ${n-1.55}L15.05 ${n}L12.5 ${n+1.55}M2.95 ${n}H14.65`});return(0,f.jsx)(`span`,{className:`cme-arrow-label-icon`,"aria-hidden":`true`,children:(0,f.jsxs)(`svg`,{className:`cme-arrow-label-svg`,viewBox:`0 0 18 18`,focusable:`false`,"aria-hidden":`true`,children:[r?(0,f.jsx)(`rect`,{...r,rx:`0.45`,className:`cme-arrow-label-placeholder-box`}):null,a,i?(0,f.jsx)(`rect`,{...i,rx:`0.45`,className:`cme-arrow-label-placeholder-box`}):null]})})}if(e.insert===`matrix`||e.insert===`bmatrix`||e.insert===`pmatrix`||e.insert===`vmatrix`){let t=e.insert,n=t===`matrix`?[[2.3,3.1],[7.1,3.1],[11.9,3.1],[2.3,7.25],[7.1,7.25],[11.9,7.25],[2.3,11.4],[7.1,11.4],[11.9,11.4]]:[[5.3,2.95],[10.1,2.95],[5.3,7.1],[10.1,7.1],[5.3,11.25],[10.1,11.25]],r;return t===`bmatrix`?r=(0,f.jsx)(`path`,{d:`M3 1.8H1.95V15.85H3M12.95 1.8H14V15.85H12.95`}):t===`pmatrix`?r=(0,f.jsx)(`path`,{d:`M3.15 1.8C1.85 3.05 1.35 4.75 1.35 8.85C1.35 12.95 1.85 14.65 3.15 15.85M12.85 1.8C14.15 3.05 14.65 4.75 14.65 8.85C14.65 12.95 14.15 14.65 12.85 15.85`}):t===`vmatrix`&&(r=(0,f.jsx)(`path`,{d:`M2.6 1.9V15.75M13.4 1.9V15.75`})),(0,f.jsx)(`span`,{className:`cme-matrix-icon`,"aria-hidden":`true`,children:(0,f.jsxs)(`svg`,{className:`cme-matrix-svg`,viewBox:`0 0 16 18`,focusable:`false`,"aria-hidden":`true`,children:[r,n.map(([e,n],r)=>(0,f.jsx)(`rect`,{x:e,y:n,width:`2.35`,height:`2.9`,rx:`0.28`,className:`cme-matrix-svg-cell`},`${t}-${r}`))]})})}let n={"\\begin{matrix} #? & #? & #? \\end{matrix}":{frame:`none`,cells:[[2.15,7.05],[6.85,7.05],[11.55,7.05]]},"\\begin{bmatrix} #? \\\\ #? \\end{bmatrix}":{frame:`brackets`,cells:[[7.05,3.25],[7.05,10.2]]},"\\begin{bmatrix} #? & #? \\end{bmatrix}":{frame:`brackets`,cells:[[4.85,7.05],[9.25,7.05]]},"\\begin{pmatrix} #? \\\\ #? \\end{pmatrix}":{frame:`parentheses`,cells:[[7.05,3.25],[7.05,10.2]]},"\\begin{pmatrix} #? & #? \\end{pmatrix}":{frame:`parentheses`,cells:[[4.85,7.05],[9.25,7.05]]},"\\begin{bmatrix} #? \\\\ #? \\\\ #? \\end{bmatrix}":{frame:`brackets`,cells:[[7.05,1.9],[7.05,7.05],[7.05,12.2]]},"\\begin{pmatrix} #? \\\\ #? \\\\ #? \\end{pmatrix}":{frame:`parentheses`,cells:[[7.05,1.9],[7.05,7.05],[7.05,12.2]]},"\\begin{matrix} #? \\\\ #? \\\\ #? \\end{matrix}":{frame:`none`,cells:[[7.05,1.9],[7.05,7.05],[7.05,12.2]]}}[e.insert];if(n){let e;return n.frame===`brackets`?e=(0,f.jsx)(`path`,{d:`M2.7 1.4H1.75V16.1H2.7M13.3 1.4H14.25V16.1H13.3`}):n.frame===`parentheses`&&(e=(0,f.jsx)(`path`,{d:`M3 1.4C1.95 2.7 1.55 4.65 1.55 8.75C1.55 12.85 1.95 14.8 3 16.1M13 1.4C14.05 2.7 14.45 4.65 14.45 8.75C14.45 12.85 14.05 14.8 13 16.1`})),(0,f.jsx)(`span`,{className:`cme-matrix-template-icon`,"aria-hidden":`true`,children:(0,f.jsxs)(`svg`,{className:`cme-matrix-template-svg`,viewBox:`0 0 16 18`,focusable:`false`,"aria-hidden":`true`,children:[e,n.cells.map(([e,t],n)=>(0,f.jsx)(`rect`,{x:e,y:t,width:`2.35`,height:`3`,rx:`0.28`,className:`cme-matrix-svg-cell`},`matrix-template-${n}`))]})})}if(e.icon===`superscript-template`||e.icon===`subscript-template`)return(0,f.jsx)(`span`,{className:`cme-script-icon`,"aria-hidden":`true`,children:(0,f.jsx)(`svg`,{className:`cme-script-svg`,viewBox:`0 0 18 18`,focusable:`false`,"aria-hidden":`true`,children:e.icon===`superscript-template`?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`rect`,{x:`3`,y:`7`,width:`6`,height:`8`,rx:`0.5`}),(0,f.jsx)(`rect`,{x:`10`,y:`3`,width:`5`,height:`7`,rx:`0.5`})]}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`rect`,{x:`3`,y:`3`,width:`6`,height:`8`,rx:`0.5`}),(0,f.jsx)(`rect`,{x:`10`,y:`8`,width:`5`,height:`7`,rx:`0.5`})]})})});if(e.icon===`square-root-template`||e.icon===`nth-root-template`){let t=e.icon===`nth-root-template`;return(0,f.jsx)(`span`,{className:`cme-root-icon`,"aria-hidden":`true`,children:(0,f.jsxs)(`svg`,{className:`cme-root-svg`,width:`48`,height:`32`,viewBox:`0 0 46 32`,focusable:`false`,"aria-hidden":`true`,children:[t?(0,f.jsx)(`rect`,{x:`8`,y:`4`,width:`8`,height:`10`,className:`cme-root-svg-box cme-root-svg-box--small`}):null,(0,f.jsx)(`path`,{d:t?`M10 18 L17 25 L24 4 L46 4`:`M4 18 L11 25 L18 4 L42 4`}),(0,f.jsx)(`rect`,{x:t?`30`:`24`,y:`9`,width:`11`,height:`15`,className:`cme-root-svg-box`})]})})}if(e.icon===`accent-harpoon-right`||e.icon===`accent-arrow-right`||e.icon===`accent-arrow-both`||e.icon===`accent-bar`){let t;return t=e.icon===`accent-bar`?(0,f.jsx)(`line`,{x1:`3.5`,y1:`4.5`,x2:`14.5`,y2:`4.5`}):e.icon===`accent-arrow-both`?(0,f.jsx)(`path`,{d:`M3.3 5.5L5 3.9M3.3 5.5L5 7.1M3.5 5.5H14.5M13 3.9L14.7 5.5L13 7.1`}):e.icon===`accent-harpoon-right`?(0,f.jsx)(`path`,{d:`M3.5 5.5H14.5M12 3.9L14.7 5.5M14 5.5V5`}):(0,f.jsx)(`path`,{d:`M3.5 5.5H14.2M11.8 3.9L14.7 5.5L11.8 7.1`}),(0,f.jsx)(`span`,{className:`cme-accent-icon`,"aria-hidden":`true`,children:(0,f.jsxs)(`svg`,{className:`cme-accent-svg`,viewBox:`0 0 18 18`,focusable:`false`,"aria-hidden":`true`,children:[t,(0,f.jsx)(`rect`,{x:`6.4`,y:`8.6`,width:`5.2`,height:`7`,rx:`0.45`,className:`cme-accent-svg-box`})]})})}if(t.isMathMode||t.isChemMode){let n=[`cme-toolbar-glyph`],r=e.cls||``,i=t.groupId===`roots-main`,a=t.groupId===`relations`,o=t.groupId===`greek`,s=!!t.isChemMode,c=String(e.label||``),l=c.length;if(s){let t=/^(?:[⁰¹²³⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾ⁿⁱ₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎ₐₑₒₓᵢⱼₙ])+$/u.test(String(e.label||``));n.push(`cme-toolbar-glyph--chem`);let i=/^(?:[+-]|[²³][⁺⁻])$/u.test(String(e.label||``));r.includes(`chem-element`)&&n.push(`cme-toolbar-glyph--chem-element`),r.includes(`chem-arrow`)&&n.push(`cme-toolbar-glyph--chem-arrow`),r.includes(`chem-state`)&&n.push(`cme-toolbar-glyph--chem-state`),t&&n.push(`cme-toolbar-glyph--chem-script`),i&&n.push(`cme-toolbar-glyph--chem-charge`)}else i&&n.push(`cme-toolbar-glyph--roots-main`),a&&n.push(`cme-toolbar-glyph--relations`),!i&&!a&&n.push(`cme-toolbar-glyph--math`),o&&n.push(`cme-toolbar-glyph--greek`);return r.includes(`green-template`)&&n.push(`cme-toolbar-glyph--template`),r.includes(`soft-tool`)&&n.push(`cme-toolbar-glyph--tool`),r.includes(`format-tool`)&&n.push(`cme-toolbar-glyph--format`),l>=4&&n.push(`cme-toolbar-glyph--wide`),l>=8&&n.push(`cme-toolbar-glyph--very-wide`),(0,f.jsx)(`span`,{className:n.join(` `),"aria-hidden":`true`,children:r.includes(`green-placeholder-glyph`)||r.includes(`black-glyph-template`)||r.includes(`black-placeholder-glyph`)?Array.from(c).map((e,t)=>e===`□`?(0,f.jsx)(`span`,{className:r.includes(`black-placeholder-glyph`)?`cme-toolbar-placeholder-box-black`:`cme-toolbar-placeholder-box-green`,children:e},`placeholder-${t}`):(0,f.jsx)(`span`,{children:e},`glyph-${t}`)):e.label})}return e.label}function Ce({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-6,8),window.innerWidth-348),r=Math.min(e.y+2,window.innerHeight-148),i=e=>e.preview===`rightleft-short-left`?(0,f.jsxs)(`svg`,{width:`22`,height:`18`,viewBox:`0 0 50 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,f.jsx)(`line`,{x1:`10`,y1:`8`,x2:`38`,y2:`8`}),(0,f.jsx)(`polyline`,{points:`30,2 38,8 30,14`}),(0,f.jsx)(`line`,{x1:`34`,y1:`16`,x2:`18`,y2:`16`}),(0,f.jsx)(`polyline`,{points:`26,10 18,16 26,22`})]}):e.preview===`right-short-over-left-long`?(0,f.jsxs)(`svg`,{width:`22`,height:`18`,viewBox:`0 0 50 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,f.jsx)(`line`,{x1:`14`,y1:`8`,x2:`30`,y2:`8`}),(0,f.jsx)(`polyline`,{points:`22,2 30,8 22,14`}),(0,f.jsx)(`line`,{x1:`40`,y1:`16`,x2:`12`,y2:`16`}),(0,f.jsx)(`polyline`,{points:`20,10 12,16 20,22`})]}):(0,f.jsx)(`span`,{"aria-hidden":`true`,style:{fontSize:`18px`,lineHeight:1,fontFamily:`"Cambria Math", "STIX Two Math", "Segoe UI Symbol", "Segoe UI", sans-serif`,whiteSpace:`pre-line`},children:e.label});return(0,f.jsx)(`div`,{className:`cme-arrow-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,f.jsx)(`div`,{className:`cme-arrow-picker-grid`,children:te.map(e=>(0,f.jsx)(`button`,{type:`button`,className:`cme-arrow-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:i(e)},`${e.insert}-${e.title||e.label}`))})})}function we({position:e,items:t=[],onInsert:n,popupBounds:r=null,picker:i=``}){let a=i===`trigFunctionExtras`||i===`bracketDelimiterExtras`||i===`enclosureFrameExtras`||i===`strikeDecorationExtras`||i===`arithmeticLayoutExtras`,o=a?2:Math.max(1,Math.min(t.length,5)),s=a?88:30,c=a?34:30,l=a?10:8,u=a?8:6,d=a?18:20,p=a?18:16,m=Math.max(1,Math.ceil(t.length/o)),h=o*s+(o-1)*l+d,g=m*c+(m-1)*u+p,_=r?{left:r.left,top:r.top,right:r.right,bottom:r.bottom}:{left:8,top:8,right:window.innerWidth-8,bottom:window.innerHeight-8},v=_.left+8,y=Math.max(v,_.right-h-8),b=_.top+8,x=Math.max(b,_.bottom-g-8),S=Math.min(Math.max(e.x-6,v),y),C=e.y+2,ee=e.y-g-6,w=C<=x?C:Math.max(b,Math.min(ee,x));return(0,f.jsx)(`div`,{className:`cme-arrow-picker-popup cme-relation-more-picker-popup`,style:{position:`fixed`,left:`${S}px`,top:`${w}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,f.jsx)(`div`,{className:`cme-arrow-picker-grid`,style:{gridTemplateColumns:`repeat(${o}, ${s}px)`,gridAutoRows:`${c}px`,gap:`${u}px ${l}px`},children:t.map(e=>(0,f.jsx)(`button`,{type:`button`,className:`cme-arrow-picker-btn${e.cls?` ${e.cls}`:``}`,title:e.title||e.label,style:{width:`${s}px`,height:`${c}px`,padding:a?`0 8px`:0},onMouseDown:t=>{t.preventDefault(),n(e.insert)},children:Se(e,{groupId:`relations`,isMathMode:!0,isChemMode:!1})},`${e.insert}-${e.title||e.label}`))})})}function Te({position:e,onInsert:t}){let n=Math.ceil(E.length/4),r=n*34+(n-1)*4+12,i=Math.min(Math.max(e.x-8,8),Math.max(8,window.innerWidth-220-8)),a=Math.min(e.y+2,Math.max(8,window.innerHeight-r-8));return(0,f.jsx)(`div`,{className:`cme-arrow-label-picker-popup`,style:{position:`fixed`,left:`${i}px`,top:`${a}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,f.jsx)(`div`,{className:`cme-arrow-label-picker-grid`,style:{gridTemplateColumns:`repeat(4, 48px)`},children:E.map(e=>(0,f.jsx)(`button`,{type:`button`,className:`cme-arrow-label-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:Se(e,{groupId:`arrows`,isMathMode:!0,isChemMode:!1})},`${e.icon}-${e.title}`))})})}function Ee({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-8,8),window.innerWidth-356),r=Math.min(e.y+2,window.innerHeight-148);return(0,f.jsx)(`div`,{className:`cme-greek-italic-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,f.jsx)(`div`,{className:`cme-greek-italic-picker-grid`,children:D.map(e=>(0,f.jsx)(`button`,{type:`button`,className:`cme-greek-italic-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:(0,f.jsx)(`span`,{className:`cme-greek-italic-picker-glyph`,"aria-hidden":`true`,children:e.label})},e.label))})})}function De({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-8,8),window.innerWidth-356),r=Math.min(e.y+2,window.innerHeight-308);return(0,f.jsx)(`div`,{className:`cme-blackboard-bold-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,f.jsx)(`div`,{className:`cme-blackboard-bold-picker-grid`,children:O.map(e=>(0,f.jsx)(`button`,{type:`button`,className:`cme-blackboard-bold-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:(0,f.jsx)(`span`,{className:`cme-blackboard-bold-picker-glyph`,"aria-hidden":`true`,children:e.label})},e.insert))})})}function Oe({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-8,8),window.innerWidth-356),r=Math.min(e.y+2,window.innerHeight-348);return(0,f.jsx)(`div`,{className:`cme-fraktur-script-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,f.jsx)(`div`,{className:`cme-fraktur-script-picker-grid`,children:k.map(e=>(0,f.jsx)(`button`,{type:`button`,className:`cme-fraktur-script-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:(0,f.jsx)(`span`,{className:`cme-fraktur-script-picker-glyph`,"aria-hidden":`true`,children:e.label})},e.insert))})})}function ke({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-8,8),window.innerWidth-248),r=Math.min(e.y+2,window.innerHeight-88);return(0,f.jsx)(`div`,{className:`cme-hebrew-symbol-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,f.jsx)(`div`,{className:`cme-hebrew-symbol-picker-grid`,children:A.map(e=>(0,f.jsx)(`button`,{type:`button`,className:`cme-hebrew-symbol-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:(0,f.jsx)(`span`,{className:`cme-hebrew-symbol-picker-glyph`,"aria-hidden":`true`,children:e.label})},e.insert))})})}function Ae({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-8,8),window.innerWidth-612),r=Math.min(e.y+2,window.innerHeight-313),i=2*P+Math.floor(N/2),a=5*P+Math.floor(N/2),o=7*P+Math.floor(N/2),s=8*P+Math.floor(N/2),c=3*P;return(0,f.jsx)(`div`,{className:`cme-periodic-table-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,f.jsxs)(`div`,{className:`cme-periodic-table-board`,style:{width:`${F}px`,height:`${I}px`},children:[(0,f.jsx)(`div`,{className:`cme-periodic-table-connector cme-periodic-table-connector--vertical`,style:{left:`${i}px`,top:`${a}px`,height:`${s-a}px`}}),(0,f.jsx)(`div`,{className:`cme-periodic-table-connector cme-periodic-table-connector--horizontal`,style:{left:`${i}px`,top:`${o}px`,width:`${c-i}px`}}),(0,f.jsx)(`div`,{className:`cme-periodic-table-connector cme-periodic-table-connector--horizontal`,style:{left:`${i}px`,top:`${s}px`,width:`${c-i}px`}}),L.map(e=>(0,f.jsx)(`button`,{type:`button`,className:`cme-periodic-table-cell cme-periodic-table-cell--${e.tone}`,title:e.title,style:{left:`${(e.col-1)*P}px`,top:`${(e.row-1)*P}px`,width:`${N}px`,height:`${N}px`},onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:e.label},`${e.label}-${e.row}-${e.col}`))]})})}function je({position:e,options:t,value:n,onSelect:r,width:i=132}){let a=Math.min(Math.max(e.x,8),window.innerWidth-i-8),o=Math.max(8,Math.min(e.y+4,window.innerHeight-290));return(0,f.jsx)(`div`,{className:`cme-style-dropdown-popup`,style:{position:`fixed`,left:`${a}px`,top:`${o}px`,width:`${i}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:t.map(e=>(0,f.jsx)(`button`,{type:`button`,className:`cme-style-dropdown-option${n===e.value?` active`:``}`,onMouseDown:t=>{t.preventDefault(),r(e.value)},children:e.label},e.value))})}function K(e){return class extends d.Plugin{init(){let t=this.editor;t.ui.componentFactory.add(`mathType`,()=>{let t=new d.ButtonView;return t.set({label:`Math`,icon:U,tooltip:`Insert Math Formula`}),t.on(`execute`,()=>e(`math`)),t}),t.ui.componentFactory.add(`chemType`,()=>{let t=new d.ButtonView;return t.set({label:`Chemistry`,icon:ve,tooltip:`Insert Chemistry Formula`}),t.on(`execute`,()=>e(`chem`)),t})}}}function Me({matrixType:e,x:t,y:n,onSelect:r,onMouseEnter:i,onMouseLeave:a}){let[o,s]=(0,c.useState)({r:2,c:2}),l={matrix:`Plain Matrix`,bmatrix:`Square Matrix`,pmatrix:`Parenthesis Matrix`,vmatrix:`Vertical Matrix`},u=(0,c.useCallback)((e,t)=>{let n=Number.parseInt(t,10);Number.isNaN(n)||s(t=>({...t,[e]:Math.min(20,Math.max(1,n))}))},[]);return(0,c.useEffect)(()=>{let e=e=>{e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),r(o.r,o.c))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},[o.r,o.c,r]),(0,f.jsxs)(`div`,{className:`cme-matrix-hover-popover ck-only`,style:{top:`${n}px`,left:`${t}px`},onMouseDown:e=>e.stopPropagation(),onMouseEnter:i,onMouseLeave:a,children:[(0,f.jsxs)(`div`,{className:`cme-matrix-hover-title-wrap`,children:[(0,f.jsx)(`div`,{className:`cme-matrix-hover-title`,children:l[e]||`Matrix`}),(0,f.jsxs)(`div`,{className:`cme-matrix-hover-subtitle`,children:[o.r,` × `,o.c]})]}),(0,f.jsx)(`div`,{className:`cme-matrix-hover-grid`,children:Array.from({length:6}).map((e,t)=>(0,f.jsx)(`div`,{className:`cme-matrix-hover-row`,children:Array.from({length:6}).map((e,n)=>(0,f.jsx)(`div`,{className:`cme-matrix-hover-cell${t<o.r&&n<o.c?` selected`:``}`,onMouseEnter:()=>s({r:t+1,c:n+1}),onClick:e=>{e.preventDefault(),e.stopPropagation(),r(t+1,n+1)}},`${t}-${n}`))},t))}),(0,f.jsxs)(`div`,{className:`cme-matrix-hover-footer`,children:[(0,f.jsxs)(`div`,{className:`cme-matrix-counter`,children:[(0,f.jsx)(`span`,{className:`cme-counter-label`,children:`R`}),(0,f.jsx)(`input`,{type:`number`,min:`1`,max:`20`,value:o.r,className:`cme-counter-input`,onChange:e=>u(`r`,e.target.value),onMouseDown:e=>e.stopPropagation()}),(0,f.jsxs)(`div`,{className:`cme-counter-btns`,children:[(0,f.jsx)(`button`,{type:`button`,onClick:()=>s(e=>({...e,r:Math.min(20,e.r+1)})),children:`+`}),(0,f.jsx)(`button`,{type:`button`,onClick:()=>s(e=>({...e,r:Math.max(1,e.r-1)})),children:`-`})]})]}),(0,f.jsxs)(`div`,{className:`cme-matrix-counter`,children:[(0,f.jsx)(`span`,{className:`cme-counter-label`,children:`C`}),(0,f.jsx)(`input`,{type:`number`,min:`1`,max:`20`,value:o.c,className:`cme-counter-input`,onChange:e=>u(`c`,e.target.value),onMouseDown:e=>e.stopPropagation()}),(0,f.jsxs)(`div`,{className:`cme-counter-btns`,children:[(0,f.jsx)(`button`,{type:`button`,onClick:()=>s(e=>({...e,c:Math.min(20,e.c+1)})),children:`+`}),(0,f.jsx)(`button`,{type:`button`,onClick:()=>s(e=>({...e,c:Math.max(1,e.c-1)})),children:`-`})]})]})]})]})}function Ne({mode:e,onInsert:t,onClose:n,initialLatex:r,initialDirection:i=`ltr`,isEditing:a}){let o=(0,c.useRef)(null),s=(0,c.useRef)(null),u=(0,c.useRef)(null),d=(0,c.useRef)(null),p=(0,c.useRef)(()=>{}),m=(0,c.useRef)(null),[g,_]=(0,c.useState)(0),[v,y]=(0,c.useState)(null),[b,x]=(0,c.useState)(null),[S,C]=(0,c.useState)(null),[w,T]=(0,c.useState)(null),[te,E]=(0,c.useState)(null),[D,O]=(0,c.useState)(null),[k,A]=(0,c.useState)(null),[j,M]=(0,c.useState)(null),[N,P]=(0,c.useState)(null),[F,I]=(0,c.useState)(null),[L,R]=(0,c.useState)(null),[z,fe]=(0,c.useState)(null),[B,pe]=(0,c.useState)(`normal`),[me,V]=(0,c.useState)(null),[he,ge]=(0,c.useState)(!1),[H,_e]=(0,c.useState)(i===`rtl`),[U,ve]=(0,c.useState)(``),[W,G]=(0,c.useState)(``),xe=e===`math`?le:ue,K=e===`math`,Ne=e===`chem`,q=K||Ne,J=xe[g]||{},Pe=K&&J.id?` cme-symbol-subgroup--tab-${J.id}`:``,Fe=(0,c.useMemo)(()=>ye.map(e=>({...e,normalized:be(e.value)||e.value.toLowerCase()})),[]),[Y,Ie]=(0,c.useState)({bold:!1,italic:!1,boldItalic:!1,color:`none`,fontOption:``,fontSize:`auto`}),[X,Le]=(0,c.useState)(`western`),[Re,ze]=(0,c.useState)(`thin`),Z=(0,c.useCallback)((e,t)=>{let n=s.current,r=n?.offsetWidth||720,i=n?.offsetHeight||384,a=Math.max(12,window.innerWidth-r-12),o=Math.max(12,window.innerHeight-i-12);return{x:Math.min(Math.max(12,e),a),y:Math.min(Math.max(12,t),o)}},[]),Be=(0,c.useCallback)(()=>{p.current(),p.current=()=>{},d.current=null,ge(!1)},[]);(0,c.useEffect)(()=>()=>Be(),[Be]),(0,c.useEffect)(()=>{u.current=me},[me]),(0,c.useEffect)(()=>{B===`minimized`&&(y(null),x(null),C(null),T(null),E(null),O(null),A(null),M(null),P(null),I(null),R(null),fe(null))},[B]),(0,c.useEffect)(()=>{if(B===`maximized`)return;let e=()=>{let e=s.current;if(!e)return;let t=u.current;if(t){let e=Z(t.x,t.y);u.current=e,V(e);return}let n=e.getBoundingClientRect(),r=Z(window.innerWidth-n.width-24,window.innerHeight-n.height-24);u.current=r,V(r)},t=requestAnimationFrame(e),n=s.current,r=t=>{t.target===n&&(t.propertyName!==`width`&&t.propertyName!==`height`||e())};return n?.addEventListener(`transitionend`,r),()=>{cancelAnimationFrame(t),n?.removeEventListener(`transitionend`,r)}},[Z,B]),(0,c.useEffect)(()=>{if(B===`maximized`)return;let e=()=>{let e=u.current;if(!e)return;let t=Z(e.x,e.y);u.current=t,V(t)};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[Z,B]);let Ve=(0,c.useCallback)(e=>{if(B===`maximized`||e.button!==void 0&&e.button!==0||e.target.closest(`.cme-popup-actions`))return;let t=s.current;if(!t)return;e.preventDefault(),ge(!0);let n=t.getBoundingClientRect(),r=u.current||{x:n.left,y:n.top};u.current=r,V(r),d.current={offsetX:e.clientX-n.left,offsetY:e.clientY-n.top};let i=e=>{if(!d.current)return;e.preventDefault();let t=Z(e.clientX-d.current.offsetX,e.clientY-d.current.offsetY);u.current=t,V(t)},a=()=>Be();p.current=()=>{window.removeEventListener(`pointermove`,i),window.removeEventListener(`pointerup`,a)},window.addEventListener(`pointermove`,i),window.addEventListener(`pointerup`,a)},[Z,Be,B]);(0,c.useEffect)(()=>{_e(i===`rtl`)},[i]),(0,c.useEffect)(()=>{let e=o.current;if(!e)return;let t=H?`rtl`:`ltr`;e.setAttribute(`dir`,t),e.style.direction=t,e.style.textAlign=H?`right`:`left`,e.style.unicodeBidi=H?`plaintext`:`normal`},[H]);let Q=(0,c.useCallback)(()=>{let e=o.current;if(!(!e||typeof e.queryStyle!=`function`))try{let t=e.queryStyle({variantStyle:`bolditalic`})===`all`,n=t||e.queryStyle({fontSeries:`b`})===`all`||e.queryStyle({variantStyle:`bold`})===`all`,r=t||e.queryStyle({fontShape:`it`})===`all`||e.queryStyle({variantStyle:`italic`})===`all`,i=re.find(({style:t})=>Object.entries(t).every(([t,n])=>e.queryStyle({[t]:n})===`all`))||null,a=ae.find(({value:t})=>e.queryStyle({fontSize:parseInt(t,10)})===`all`)?.value||`auto`,o=be(U),s=[...new Set(Fe.flatMap(e=>[e.normalized,e.value]).concat(Y.color===`none`?[]:[Y.color]).concat(o?[o,U.trim()]:[]).filter(Boolean))].find(t=>e.queryStyle({color:t})===`all`),c=s?be(s)||s:`none`;Ie({bold:n,italic:r,boldItalic:t,fontOption:i?.value||``,fontSize:String(a),color:c})}catch(e){console.warn(`Failed to query active styles:`,e)}},[Y.color,Fe,U]),He=(0,c.useCallback)(e=>{let t=o.current;if(!t||typeof t.applyStyle!=`function`)return;let n=!!e.bold,r=!!e.italic,i=n&&r?`bolditalic`:n?`bold`:r?`italic`:`up`;t.applyStyle({variantStyle:i,fontSeries:n?`b`:`m`,fontShape:r?`it`:`n`}),t.applyStyle({color:e.color===`none`?`none`:e.color}),t.applyStyle(ie);let a=re.find(({value:t})=>t===e.fontOption);if(a&&t.applyStyle(a.style),e.fontSize!==`auto`){let n=parseInt(e.fontSize,10);t.applyStyle({fontSize:n,size:n})}},[]),Ue=(0,c.useCallback)((e,t)=>{let n=o.current;n&&(n.focus(),He({...Y,bold:e,italic:t,boldItalic:e&&t}),requestAnimationFrame(Q))},[Y,He,Q]),We=(0,c.useCallback)(e=>{let t=o.current;if(!t||typeof t.applyStyle!=`function`)return!1;let n=e===`none`?`none`:be(e);if(e!==`none`&&!n)return G(`Enter a valid hex code or CSS color name.`),!1;let r=e===`none`?`none`:n;return t.focus(),t.applyStyle({color:r}),Ie(e=>({...e,color:r})),ve(r===`none`?``:r),G(``),requestAnimationFrame(Q),!0},[Q]),Ge=(0,c.useCallback)((e,t)=>{let n=o.current;if(!(!n||typeof n.applyStyle!=`function`)){if(n.focus(),e===`font`){n.applyStyle(ie);let e=re.find(e=>e.value===t);e&&n.applyStyle(e.style),Ie(e=>({...e,fontOption:t}))}else{let e=t?parseInt(t,10):`auto`;n.applyStyle({fontSize:e,size:e}),Ie(e=>({...e,fontSize:t||`auto`}))}requestAnimationFrame(Q)}},[Q]);(0,c.useEffect)(()=>{if(!v&&!L&&!z&&!S&&!w&&!te&&!D&&!k&&!j&&!N&&!F)return;let e=e=>{!e.target.closest(`.cme-matrix-hover-popover`)&&!e.target.closest(`.cme-matrix-btn-wrapper`)&&y(null),!e.target.closest(`.cme-color-picker-popup`)&&!e.target.closest(`[title="Text Color"]`)&&R(null),!e.target.closest(`.cme-style-dropdown-popup`)&&!e.target.closest(`.cme-style-select-trigger`)&&fe(null),!e.target.closest(`.cme-arrow-picker-popup`)&&!e.target.closest(`.arrow-picker-tool`)&&C(null),!e.target.closest(`.cme-relation-more-picker-popup`)&&!e.target.closest(`.relation-more-picker-tool`)&&T(null),!e.target.closest(`.cme-arrow-label-picker-popup`)&&!e.target.closest(`.arrow-label-picker-tool`)&&E(null),!e.target.closest(`.cme-greek-italic-picker-popup`)&&!e.target.closest(`.greek-italic-picker-tool`)&&O(null),!e.target.closest(`.cme-blackboard-bold-picker-popup`)&&!e.target.closest(`.blackboard-bold-picker-tool`)&&A(null),!e.target.closest(`.cme-fraktur-script-picker-popup`)&&!e.target.closest(`.fraktur-script-picker-tool`)&&M(null),!e.target.closest(`.cme-hebrew-symbol-picker-popup`)&&!e.target.closest(`.hebrew-symbol-picker-tool`)&&P(null),!e.target.closest(`.cme-periodic-table-picker-popup`)&&!e.target.closest(`.periodic-table-picker-tool`)&&I(null)};return window.addEventListener(`mousedown`,e,!0),window.addEventListener(`pointerdown`,e,!0),()=>{window.removeEventListener(`mousedown`,e,!0),window.removeEventListener(`pointerdown`,e,!0)}},[v,L,z,S,w,te,D,k,j,N,F]),(0,c.useEffect)(()=>{let t=o.current;if(!t)return;t.defaultMode=e===`chem`?`text`:`math`,t.letterShapeStyle=`upright`;let n=()=>{let n=r||``;if(e===`chem`&&n){let e=n.match(/^\\ce\{([\s\S]*)\}$/);e&&(n=e[1])}t.setValue?t.setValue(n,{silenceNotifications:!0}):t.value=n,requestAnimationFrame(()=>t.focus())};customElements.get(`math-field`)?requestAnimationFrame(n):customElements.whenDefined(`math-field`).then(()=>requestAnimationFrame(n))},[e,r]),(0,c.useEffect)(()=>{let e=o.current;if(!e)return;let t=()=>e.getValue?e.getValue():e.value||``,n=()=>{try{if(typeof e.executeCommand==`function`)for(let t of[`moveToMathFieldStart`,`moveToMathfieldStart`,`moveToStart`])try{e.executeCommand(t);return}catch{}}catch{}try{typeof e.setSelectionRange==`function`&&e.setSelectionRange(0,0)}catch{}},r=t=>{typeof e.setValue==`function`?e.setValue(t):e.value=t,requestAnimationFrame(()=>{e.focus?.(),n(),Q()})},i=n=>{let i=n.key.length===1&&n.key!==` `&&!n.ctrlKey&&!n.metaKey&&!n.altKey,a=/^\d$/.test(n.key)&&!n.ctrlKey&&!n.metaKey&&!n.altKey;if(Re===`negativeThin`&&i){n.preventDefault();let i=X!==`western`&&a?ne(n.key,X):n.key;H?r(`\\!${i}${t()}`):e.executeCommand([`insert`,`\\!${i}`]);return}if(X!==`western`&&a){n.preventDefault();let i=ne(n.key,X);H?r(`${i}${t()}`):e.executeCommand([`insert`,i]);return}if(n.key===` `){n.preventDefault();let i=Re===`negativeThin`?`\\!`:`\\, `;H?r(`${i}${t()}`):e.executeCommand([`insert`,i]);return}else if(n.key===`Enter`){n.preventDefault(),H?r(`\\\\${t()}`):e.executeCommand([`insert`,`\\\\`]),setTimeout(()=>{He(Y),Q()},10);return}if(H&&n.key===`Backspace`){n.preventDefault(),r(t().slice(1));return}H&&i&&(n.preventDefault(),r(`${n.key}${t()}`))};return e.addEventListener(`keydown`,i),()=>e.removeEventListener(`keydown`,i)},[e,Y,He,Q,H,X,Re]),(0,c.useEffect)(()=>{let e=o.current;if(!e)return;let t=()=>{setTimeout(()=>{let t=e.shadowRoot;if(!t)return;let n=t.querySelector(`.ML__caret`)||t.querySelector(`[class*="caret"]`);n&&n.scrollIntoView({behavior:`auto`,block:`nearest`,inline:`nearest`}),Q()},0)};return e.addEventListener(`selection-change`,t),e.addEventListener(`input`,t),e.addEventListener(`keydown`,t),setTimeout(Q,50),()=>{e.removeEventListener(`selection-change`,t),e.removeEventListener(`input`,t),e.removeEventListener(`keydown`,t)}},[Q]);let $=(0,c.useCallback)(e=>{let t=o.current;if(!t)return;let n=/#(?:0|\?)/.test(e);t.focus(),typeof t.insert==`function`?t.insert(e,{format:`latex`,insertionMode:`replaceSelection`,selectionMode:n?`placeholder`:`after`}):t.executeCommand([`insert`,e]),requestAnimationFrame(()=>t.focus?.())},[]),Ke=(0,c.useCallback)(e=>{let t=o.current;if(t){if(t.focus(),e===`\\hphantom{0}`){t.executeCommand([`insert`,`\\hphantom{0}`]);return}if(e===`\\,`){ze(`thin`),t.executeCommand([`insert`,`\\,`]);return}e===`\\!`&&(ze(`negativeThin`),t.executeCommand([`insert`,`\\!`]))}},[]),qe=(0,c.useCallback)(e=>{let t=o.current,n=oe[e];if(!t||!n)return;let r=t.selection||t.model?.selection;if(!(r&&Array.isArray(r.ranges)&&r.ranges.length>0&&r.ranges.some(([e,t])=>e!==t))){m.current=null;return}if(t.focus(),`selection`in t)try{t.selection=r}catch{}let i=typeof t.getValue==`function`?t.getValue(r,`latex`)||``:t.model?.getValue?.(r,`latex`)||``;if(!i){m.current=null;return}let a=se(i),s=m.current,c=a.baseLatex,l=s?.baseLatex===c,u=l?s.offsetX:a.offsetX,d=l?s.offsetY:a.offsetY,f=u+n.x,p=d+n.y,h=ce(c,f,p);if(m.current={baseLatex:c,offsetX:f,offsetY:p},typeof t.insert==`function`){t.insert(h,{format:`latex`,insertionMode:`replaceSelection`,selectionMode:`item`});return}t.executeCommand([`insert`,h])},[]),Je=(0,c.useCallback)((e,t,n)=>{let r=`\\begin{${e}} `;for(let e=0;e<t;e++){for(let e=0;e<n;e++)r+=`#?`,e<n-1&&(r+=` & `);e<t-1&&(r+=` \\\\ `)}r+=` \\end{${e}}`,$(r)},[$]),Ye=()=>{let r=o.current;if(!r)return;let i=r.getValue?r.getValue():r.value;if(!i||i.trim()===``){n();return}e===`chem`&&(i=de(i)),t(i,{direction:H?`rtl`:`ltr`}),r.setValue?r.setValue(``):r.value=``,n()},Xe=B!==`maximized`&&me?{left:`${me.x}px`,top:`${me.y}px`,right:`auto`,bottom:`auto`}:void 0;return(0,f.jsxs)(`div`,{ref:s,className:`cme-editor-popup ${B}${he?` dragging`:``}`,style:Xe,onMouseDown:e=>e.stopPropagation(),children:[(0,f.jsxs)(`div`,{className:`cme-popup-header`,onPointerDown:Ve,children:[(0,f.jsx)(`span`,{children:e===`math`?`MathType`:`ChemType`}),(0,f.jsxs)(`div`,{className:`cme-popup-actions`,onPointerDown:e=>e.stopPropagation(),children:[(0,f.jsx)(`button`,{type:`button`,className:`cme-popup-window-btn`,"aria-label":B===`minimized`?`Restore window`:`Minimize window`,onClick:()=>pe(e=>e===`minimized`?`normal`:`minimized`),children:B===`minimized`?`+`:`-`}),(0,f.jsx)(`button`,{type:`button`,className:`cme-popup-window-btn`,"aria-label":B===`maximized`?`Restore window`:`Maximize window`,onClick:()=>pe(e=>e===`maximized`?`normal`:`maximized`),children:B===`maximized`?`o`:`⤢ `}),(0,f.jsx)(`button`,{type:`button`,className:`cme-popup-close`,onClick:()=>{Be(),n()},children:`x`})]})]}),(0,f.jsxs)(`div`,{className:`cme-toolbar`,role:`toolbar`,"aria-label":`Symbol palette`,children:[(0,f.jsx)(`div`,{className:`cme-toolbar-groups`,children:xe.map((e,t)=>(0,f.jsx)(`button`,{className:`cme-group-tab${q?` cme-group-tab--popup`:``}${K?` cme-group-tab--math`:``}${Ne?` cme-group-tab--chem`:``}${g===t?` active`:``}`,type:`button`,onClick:()=>{_(t),y(null)},children:(0,f.jsx)(`span`,{className:`cme-group-tab-label`,children:e.label})},e.id||t))}),(0,f.jsx)(`div`,{className:`cme-toolbar-items${g===0&&K?` cme-toolbar-items--first-tab`:``}${J.id===`greek`?` cme-toolbar-items--greek`:``}${J.id===`relations`?` cme-toolbar-items--relations`:``}${J.id===`arrows`?` cme-toolbar-items--arrows`:``}${J.id===`brackets`?` cme-toolbar-items--brackets`:``}${J.id===`matrix`?` cme-toolbar-items--matrix`:``}${q?` cme-toolbar-items--popup-compact`:``}`,children:(()=>{let e=J.items||[];if(J.id===`greek`){let t=e.reduce((e,t)=>{let n=t.category||`Greek Letters`;return e[n]||(e[n]=[]),e[n].push(t),e},{}),n={"Lowercase Greek Letters":{cols:10,rows:3},"Greek Letter Picker":{cols:1,rows:3},"Blackboard Bold / Number Sets":{cols:2,rows:3},"Blackboard Bold Picker":{cols:1,rows:3},"Fraktur Symbols":{cols:1,rows:3},"Script Symbols":{cols:1,rows:3},"Fraktur / Script Picker":{cols:1,rows:3},"Hebrew Mathematical Symbols":{cols:1,rows:3},"Hebrew Symbol Picker":{cols:1,rows:3},"Arabic-Indic Numeral Systems":{cols:1,rows:3},"Periodic Table Symbols":{cols:2,rows:3},"Periodic Table Picker":{cols:1,rows:3}},r=Object.entries(t);return(0,f.jsx)(`div`,{className:`cme-greek-panel`,children:r.map(([e,t],i)=>{let a=n[e]||{cols:2,rows:Math.max(1,Math.ceil(t.length/2))},s=a.cols,c=a.rows,l=t.every(e=>e.cls?.includes(`arrow-picker-tool`)),u=r[i+1]?.[1]||[],d=u.length>0&&u.every(e=>e.cls?.includes(`arrow-picker-tool`));return(0,f.jsx)(`section`,{className:`cme-symbol-subgroup cme-greek-subgroup${e===`Fraktur Symbols`?` cme-greek-subgroup--no-right-border`:``}${l?` cme-greek-subgroup--picker`:``}${d?` cme-greek-subgroup--before-picker`:``}${q?` cme-symbol-subgroup--compact`:``}${Pe}`,style:{gridTemplateColumns:`repeat(${s}, auto)`,gridTemplateRows:`repeat(${c}, auto)`,"--cme-greek-rows":`repeat(${c}, auto)`},children:t.map((t,n)=>{let r=J,i=`${r.id||r.label||g}-${e}-${n}-${t.insert||t.action||t.label}`,a=t.action===`GREEK_ITALIC_PICKER`,s=t.action===`BLACKBOARD_BOLD_PICKER`,c=t.action===`FRAKTUR_SCRIPT_PICKER`,l=t.action===`HEBREW_SYMBOL_PICKER`,u=t.action===`PERIODIC_TABLE_PICKER`,d=t.action===`ARABIC_INDIC_NUMERALS`,p=t.action===`EASTERN_ARABIC_INDIC_NUMERALS`,m=a?!!D:s?!!k:c?!!j:l?!!N:u?!!F:d?X===`arabicIndic`:p?X===`easternArabicIndic`:!1;return(0,f.jsx)(`button`,{type:`button`,className:`cme-btn cme-greek-btn${q?` cme-btn--compact`:``}${t.cls?` ${t.cls}`:``}${m?` active`:``}`,title:t.title||t.insert,onMouseDown:e=>{if(e.preventDefault(),t.action===`GREEK_ITALIC_PICKER`){let t=e.currentTarget.getBoundingClientRect();C(null),E(null),R(null),x(null),A(null),M(null),P(null),I(null),O(e=>e?null:{x:t.left,y:t.bottom+4});return}if(t.action===`BLACKBOARD_BOLD_PICKER`){let t=e.currentTarget.getBoundingClientRect();C(null),E(null),R(null),x(null),O(null),M(null),P(null),I(null),A(e=>e?null:{x:t.left,y:t.bottom+4});return}if(t.action===`FRAKTUR_SCRIPT_PICKER`){let t=e.currentTarget.getBoundingClientRect();C(null),E(null),R(null),x(null),O(null),A(null),P(null),I(null),M(e=>e?null:{x:t.left,y:t.bottom+4});return}if(t.action===`HEBREW_SYMBOL_PICKER`){let t=e.currentTarget.getBoundingClientRect();C(null),E(null),R(null),x(null),O(null),A(null),M(null),I(null),P(e=>e?null:{x:t.left,y:t.bottom+4});return}if(t.action===`PERIODIC_TABLE_PICKER`){let t=e.currentTarget.getBoundingClientRect();C(null),E(null),R(null),x(null),O(null),A(null),M(null),P(null),I(e=>e?null:{x:t.left,y:t.bottom+4});return}if(t.action===`ARABIC_INDIC_NUMERALS`){C(null),E(null),R(null),x(null),O(null),A(null),M(null),P(null),I(null),Le(e=>e===`arabicIndic`?`western`:`arabicIndic`),requestAnimationFrame(()=>o.current?.focus?.());return}if(t.action===`EASTERN_ARABIC_INDIC_NUMERALS`){C(null),E(null),R(null),x(null),O(null),A(null),M(null),P(null),I(null),Le(e=>e===`easternArabicIndic`?`western`:`easternArabicIndic`),requestAnimationFrame(()=>o.current?.focus?.());return}$(t.insert)},children:Se(t,{groupId:r.id,isMathMode:K,isChemMode:Ne})},i)})},e)})})}let t=e.some(e=>e.type===`sep`),n=[];if(t){let t={cols:2,items:[]};for(let r of e)r.type===`sep`?(t.items.length>0&&n.push(t),t={cols:r.cols||2,items:[]}):t.items.push(r);if(t.items.length>0&&n.push(t),J.id===`relations`&&(n=n.map(e=>({...e,cols:Math.max(1,Math.ceil(e.items.length/3))}))),J.id===`roots-main`){let[e=[],t=[],r=[],i=[],a=[],o=[],s=[],c=[],l=[],u=[]]=n.map(e=>e.items||[]),d=(e,t)=>t.map(t=>e[t]).filter(Boolean);n=[{cols:2,rows:2,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup`,items:d(e,[0,2,1,3])},{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--stack`,items:d(t,[0,1])},{cols:2,rows:2,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup`,items:d(r,[0,2,1,3])},{cols:2,rows:3,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup`,items:d(i,[0,4,2,5,1,3])},{cols:2,rows:3,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup`,items:d(a,[0,1,5,4,3,2])},{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--stack`,items:[]},{cols:1,rows:3,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--stack`,items:d(o,[0,1,2])},{cols:2,rows:3,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup`,items:d(s,[1,3,0,4,2,5])},{cols:2,rows:3,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--format`,items:d(c,[0,5,1,3,2,4])},{cols:1,rows:1,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--stack`,items:d(l,[0])},{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--dropdown`,items:d(u,[0,1])}].filter(e=>e.items.length>0)}if(J.id===`arrows`){let[e=[],t=[],r=[],i=[],a=[]]=n.map(e=>e.items||[]),o=(e,t)=>t.map(t=>e[t]).filter(Boolean),s=e=>({regular:e.filter(e=>e?.action!==`ARROW_PICKER`&&e?.action!==`ARROW_LABEL_PICKER`),picker:e.find(e=>e?.action===`ARROW_PICKER`||e?.action===`ARROW_LABEL_PICKER`)||null}),c=s(e),l=s(i);n=[{cols:3,trackCols:6,rows:3,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup cme-arrows-subgroup--before-picker`,items:o(c.regular,[1,0,2,4,3,5,6,7])},c.picker?{cols:1,rows:3,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup cme-arrows-subgroup--picker`,items:[c.picker]}:null,{cols:2,trackCols:2,rows:3,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup`,items:o(t,[0,1,2,3,4])},{cols:1,rows:3,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup cme-arrows-subgroup--stack`,items:o(r,[0,1,2])},{cols:3,rows:2,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup cme-arrows-subgroup--before-picker`,items:o(l.regular,[0,2,4,1,3,5])},l.picker?{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup cme-arrows-subgroup--picker`,items:[l.picker]}:null,{cols:2,trackCols:2,rows:2,flow:`row`,equalColumns:!0,stretchLastRow:!0,className:` cme-arrows-subgroup`,items:o(a,[0,1,2,3])}].filter(e=>e&&e.items.length>0)}if(J.id===`brackets`){let[e=[],t=[],r=[],i=[],a=[]]=n.map(e=>e.items||[]),o=(e,t)=>t.map(t=>e[t]).filter(Boolean),s=e=>({regular:e.filter(e=>e?.action!==`RELATION_MORE_PICKER`),picker:e.find(e=>e?.action===`RELATION_MORE_PICKER`)||null}),c=s(e),l=s(i),u=s(a),d=o(r,[0,1,2,3,4,5,6,7]);d[6]&&={...d[6],gridColumn:`2`},n=[{cols:3,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--before-picker`,items:o(c.regular,[0,2,4,1,3,5])},c.picker?{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--picker`,items:[c.picker]}:null,{cols:2,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup`,items:o(t,[0,2,1,3])},{cols:3,rows:3,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup`,items:d},{cols:3,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--before-picker`,items:o(l.regular,[0,2,4,1,3,5])},l.picker?{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--picker`,items:[l.picker]}:null,{cols:2,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--before-picker`,items:o(u.regular,[0,2,1,3])},u.picker?{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--picker`,items:[u.picker]}:null].filter(e=>e&&e.items.length>0)}}else for(let t=0;t<e.length;t+=4)n.push({cols:2,items:e.slice(t,t+4)});return n.map((e,t)=>{let n=e.cols||1,r=e.trackCols||n,i=e.items.length,a=n>0?i%n:0,s=a===0?n:a,c=i-s,l=Math.max(1,Math.floor(r/n));return(0,f.jsx)(`div`,{className:`cme-symbol-subgroup${e.className||``}${q?` cme-symbol-subgroup--compact`:``}${Pe}`,style:{gridTemplateColumns:`repeat(${r}, ${e.equalColumns?`minmax(0, 1fr)`:`auto`})`,gridTemplateRows:`repeat(${e.rows||Math.ceil(e.items.length/n)}, auto)`,gridAutoFlow:e.flow||`column`,...e.rows?{"--cme-subgroup-rows":`repeat(${e.rows}, minmax(0, 1fr))`}:{}},children:e.items.map((a,u)=>{let d=e.stretchLastRow&&i>0&&u>=c&&s<n?`span ${Math.max(1,Math.floor(r/s))}`:l>1?`span ${l}`:void 0,p=J,m=p.id||p.label||g,h=`${m}-${t*4+u}-${a.insert||a.action||a.label}`;if(a.type===`dropdown`){let t=a.label===`Font...`,n=a.label===`Size`,r=t&&Y.fontOption!==``,i=n&&Y.fontSize!==`auto`&&Y.fontSize!==`5`,o=t?Y.fontOption:n?Y.fontSize===`auto`||Y.fontSize===`5`?``:Y.fontSize:``,s=(t?re:ae).find(e=>e.value===o)?.label||a.label,c=z?.buttonKey===h;return(0,f.jsx)(`button`,{type:`button`,className:`cme-style-select-trigger cme-select cme-btn template${r||i||c?` active`:``}`,title:a.label,style:{width:a.width||`60px`,boxSizing:`border-box`,margin:`2px 0`,gridColumn:a.gridColumn||d||(e.cols===3||e.cols===1?`span 1`:`span 2`),gridRow:a.gridRow},onMouseDown:e=>{e.preventDefault(),e.stopPropagation();let n=e.currentTarget.getBoundingClientRect();fe(e=>e?.buttonKey===h?null:{x:n.left,y:n.bottom,type:t?`font`:`size`,buttonKey:h})},children:s},u)}if(p.isMatrix&&!a.directInsert&&!a.action)return(0,f.jsx)(`div`,{className:`cme-matrix-btn-wrapper`,children:(0,f.jsx)(`button`,{type:`button`,className:`cme-btn template${q?` cme-btn--compact`:``}${a.cls?` ${a.cls}`:``}${v?.type===a.insert?` active`:``}`,title:a.insert,onMouseDown:e=>{if(e.preventDefault(),e.stopPropagation(),v?.type===a.insert)y(null);else{let t=e.currentTarget.getBoundingClientRect();y({type:a.insert,x:t.left+t.width/2,y:t.bottom})}},children:Se(a,{groupId:p.id,isMathMode:K,isChemMode:Ne})})},u);let _=a.action===`BOLD`,b=a.action===`ITALIC`,ee=a.action===`BOLD_ITALIC`,D=a.action===`TEXT_COLOR`,L=a.action===`TOGGLE_RTL`,ie=a.action===`ARROW_PICKER`,oe=a.action===`RELATION_MORE_PICKER`,se=a.action===`ARROW_LABEL_PICKER`,ce=a.action===`BLACKBOARD_BOLD_PICKER`,le=a.action===`FRAKTUR_SCRIPT_PICKER`,ue=a.action===`HEBREW_SYMBOL_PICKER`,de=a.action===`PERIODIC_TABLE_PICKER`,B=_&&Y.bold&&!Y.italic||b&&Y.italic&&!Y.bold||ee&&Y.boldItalic||L&&H||ie&&!!S||oe&&w?.picker===a.picker||se&&!!te||ce&&!!k||le&&!!j||ue&&!!N||de&&!!F||D&&Y.color!==`none`;return(0,f.jsx)(`button`,{type:`button`,className:`cme-btn${p.isTemplate?` template`:``}${q?` cme-btn--compact`:``}${a.cls?` ${a.cls}`:``}${B?` active`:``}`,title:a.title||a.insert,style:a.gridColumn||a.gridRow||d?{gridColumn:a.gridColumn||d,gridRow:a.gridRow}:void 0,onMouseDown:e=>{e.preventDefault();let t=o.current;if(a.action===`SPECIAL_CHARS`){let t=e.currentTarget.getBoundingClientRect();C(null),T(null),E(null),O(null),A(null),M(null),P(null),I(null),R(null),x({x:t.left,y:t.bottom+4})}else if(a.action===`ARROW_PICKER`){let t=e.currentTarget.getBoundingClientRect();x(null),T(null),E(null),O(null),A(null),M(null),P(null),I(null),R(null),C(e=>e?null:{x:t.left,y:t.bottom+4})}else if(a.action===`RELATION_MORE_PICKER`){let t=e.currentTarget.getBoundingClientRect();x(null),C(null),E(null),O(null),A(null),M(null),P(null),I(null),R(null),T(e=>e?.picker===a.picker?null:{x:t.left,y:t.bottom+4,picker:a.picker})}else if(a.action===`ARROW_LABEL_PICKER`){let t=e.currentTarget.getBoundingClientRect();x(null),C(null),T(null),O(null),A(null),M(null),P(null),I(null),R(null),E(e=>e?null:{x:t.left,y:t.bottom+4})}else if(a.action===`BLACKBOARD_BOLD_PICKER`){let t=e.currentTarget.getBoundingClientRect();x(null),C(null),E(null),R(null),T(null),O(null),M(null),P(null),I(null),A(e=>e?null:{x:t.left,y:t.bottom+4})}else if(a.action===`FRAKTUR_SCRIPT_PICKER`){let t=e.currentTarget.getBoundingClientRect();x(null),C(null),E(null),R(null),T(null),O(null),A(null),P(null),I(null),M(e=>e?null:{x:t.left,y:t.bottom+4})}else if(a.action===`HEBREW_SYMBOL_PICKER`){let t=e.currentTarget.getBoundingClientRect();x(null),C(null),E(null),R(null),T(null),O(null),A(null),M(null),I(null),P(e=>e?null:{x:t.left,y:t.bottom+4})}else if(a.action===`PERIODIC_TABLE_PICKER`){let t=e.currentTarget.getBoundingClientRect();x(null),C(null),E(null),R(null),T(null),O(null),A(null),M(null),P(null),I(e=>e?null:{x:t.left,y:t.bottom+4})}else if(a.action===`TEXT_COLOR`){let t=e.currentTarget.getBoundingClientRect();C(null),T(null),E(null),O(null),A(null),M(null),P(null),I(null),ve(Y.color===`none`?``:Y.color),G(``),R({x:t.left,y:t.bottom+4})}else if(a.action===`TOGGLE_RTL`)_e(e=>!e),requestAnimationFrame(()=>o.current?.focus?.());else if(a.action===`BOLD`)Ue(!Y.bold,Y.italic);else if(a.action===`BOLD_ITALIC`){let e=!Y.boldItalic;Ue(e,e)}else if(a.action===`CUT`){let e=t?t.getValue?t.getValue():t.value||``:``;e&&navigator.clipboard?.writeText&&navigator.clipboard.writeText(e).catch(()=>{}),t&&(typeof t.setValue==`function`?t.setValue(``):t.value=``,t.focus?.())}else if(a.action===`COPY`){let e=t?t.getValue?t.getValue():t.value||``:``;e&&navigator.clipboard?.writeText&&navigator.clipboard.writeText(e).catch(()=>{})}else a.action===`PASTE`?navigator.clipboard?.readText&&navigator.clipboard.readText().then(e=>{e&&$(ne(e,X))}).catch(()=>{}):a.action===`ARABIC_INDIC_NUMERALS`?(Le(e=>e===`arabicIndic`?`western`:`arabicIndic`),requestAnimationFrame(()=>o.current?.focus?.())):a.action===`EASTERN_ARABIC_INDIC_NUMERALS`?(Le(e=>e===`easternArabicIndic`?`western`:`easternArabicIndic`),requestAnimationFrame(()=>o.current?.focus?.())):a.action===`MOVE_TEXT_UP`?qe(`up`):a.action===`MOVE_TEXT_RIGHT`?qe(`right`):a.action===`MOVE_TEXT_LEFT`?qe(`left`):a.action===`MOVE_TEXT_DOWN`?qe(`down`):a.action===`BLACKBOARD`?$(`\\mathbb{#0}`):a.action===`GREEK`?$(`\\Omega`):a.action===`TILDE`?$(`\\widetilde{#0}`):a.action===`ITALIC`?Ue(Y.bold,!Y.italic):a.action===`TEXT`?$(`\\text{#0}`):a.action===`UNDO`?o.current?.executeCommand(`undo`):a.action===`REDO`?o.current?.executeCommand(`redo`):a.action===`CLEAR`?t&&(typeof t.setValue==`function`?t.setValue(``):t.value=``,t.focus?.()):a.insert===`\\hphantom{0}`||a.insert===`\\,`||a.insert===`\\!`?Ke(a.insert):$(a.insert)},children:Se(a,{groupId:p.id,isMathMode:K,isChemMode:Ne})},`${m}-${t*4+u}`)})},t)})})()})]}),(0,f.jsx)(`div`,{className:`cme-mathfield-container${H?` cme-mathfield-container--rtl`:``}`,onMouseDown:e=>{o.current&&(e.target===o.current||o.current.contains(e.target))||(e.preventDefault(),requestAnimationFrame(()=>{o.current?.focus?.()}))},children:(0,f.jsx)(`math-field`,{ref:o,class:`cme-mathfield${H?` cme-mathfield--rtl`:``}`,dir:H?`rtl`:`ltr`,"letter-shape-style":`upright`,tabIndex:0,"math-virtual-keyboard-policy":`manual`,placeholder:``})}),(0,f.jsxs)(`div`,{className:`cme-popup-footer`,children:[(0,f.jsx)(`button`,{type:`button`,className:`cme-insert-btn`,onClick:Ye,children:a?`Update`:`Insert`}),(0,f.jsx)(`button`,{type:`button`,className:`cme-cancel-btn`,onClick:n,children:`Cancel`})]}),v&&(0,f.jsx)(Me,{matrixType:v.type,x:v.x,y:v.y,onSelect:(e,t)=>{Je(v.type,e,t),y(null)},onMouseEnter:()=>{},onMouseLeave:()=>{}}),b&&(0,l.createPortal)((0,f.jsx)(h,{isOpen:!!b,position:b,onClose:()=>x(null),onInsert:e=>{$(e),x(null)}}),document.body),S&&(0,l.createPortal)((0,f.jsx)(Ce,{position:S,onInsert:e=>{$(e),C(null)}}),document.body),w&&(0,l.createPortal)((0,f.jsx)(we,{position:w,picker:w.picker,popupBounds:s.current?.getBoundingClientRect?.()||null,items:ee[w.picker]||[],onInsert:e=>{$(e),T(null)}}),document.body),te&&(0,l.createPortal)((0,f.jsx)(Te,{position:te,onInsert:e=>{$(e),E(null)}}),document.body),D&&(0,l.createPortal)((0,f.jsx)(Ee,{position:D,onInsert:e=>{$(e),O(null)}}),document.body),k&&(0,l.createPortal)((0,f.jsx)(De,{position:k,onInsert:e=>{$(e),A(null)}}),document.body),j&&(0,l.createPortal)((0,f.jsx)(Oe,{position:j,onInsert:e=>{$(e),M(null)}}),document.body),N&&(0,l.createPortal)((0,f.jsx)(ke,{position:N,onInsert:e=>{$(e),P(null)}}),document.body),F&&(0,l.createPortal)((0,f.jsx)(Ae,{position:F,onInsert:e=>{$(e),I(null)}}),document.body),z&&(0,l.createPortal)((0,f.jsx)(je,{position:z,options:z.type===`font`?re:ae,value:z.type===`font`?Y.fontOption:Y.fontSize,width:z.type===`font`?142:96,onSelect:e=>{Ge(z.type,e),fe(null)}}),document.body),L&&(0,l.createPortal)((0,f.jsxs)(`div`,{className:`cme-color-picker-popup`,style:{position:`fixed`,left:Math.min(L.x,window.innerWidth-260)+`px`,top:Math.min(L.y,window.innerHeight-235)+`px`,zIndex:1e5,width:`244px`,background:`linear-gradient(180deg, #ffffff 0%, #f6fafc 100%)`,border:`1px solid #c8d4dc`,padding:`12px`,display:`flex`,flexDirection:`column`,gap:`10px`,borderRadius:`10px`,boxShadow:`0 16px 28px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.08)`},children:[(0,f.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`10px`},children:[(0,f.jsxs)(`div`,{children:[(0,f.jsx)(`div`,{style:{fontSize:`12px`,fontWeight:700,color:`#1f2f37`,lineHeight:1.1},children:`Text Color`}),(0,f.jsx)(`div`,{style:{fontSize:`10px`,color:`#667b88`,marginTop:`2px`},children:`Pick a swatch or enter a custom value`})]}),(0,f.jsx)(`div`,{style:{width:`28px`,height:`28px`,borderRadius:`8px`,border:`1px solid #b8c8d2`,background:Y.color===`none`?`linear-gradient(135deg, #ffffff 0%, #eef3f7 100%)`:be(U)||Y.color,boxShadow:`inset 0 1px 0 rgba(255,255,255,0.8)`},title:Y.color===`none`?`No color selected`:Y.color})]}),(0,f.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(6, 1fr)`,gap:`6px`,padding:`8px`,border:`1px solid #d7e1e8`,borderRadius:`8px`,background:`rgba(255,255,255,0.78)`},children:Fe.map(e=>{let t=Y.color===e.normalized;return(0,f.jsx)(`div`,{title:e.label,style:{width:`22px`,height:`22px`,backgroundColor:e.value,cursor:`pointer`,border:t?`2px solid #d6a528`:`1px solid rgba(31, 47, 55, 0.22)`,borderRadius:`6px`,boxSizing:`border-box`,boxShadow:t?`0 0 0 2px rgba(214, 165, 40, 0.16)`:`inset 0 1px 0 rgba(255,255,255,0.6)`},onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),We(e.normalized)&&R(null)}},e.normalized)})}),(0,f.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`6px`},children:[(0,f.jsx)(`div`,{style:{fontSize:`10px`,fontWeight:700,color:`#5f7481`,letterSpacing:`0.04em`,textTransform:`uppercase`},children:`Custom Value`}),(0,f.jsx)(`input`,{type:`text`,value:U,placeholder:`#2c8a43 or tomato`,style:{width:`100%`,minWidth:0,height:`32px`,border:`1px solid ${W?`#dc2626`:`#b7c7d1`}`,borderRadius:`8px`,padding:`0 10px`,fontSize:`12px`,color:`#22343d`,background:`#fff`,boxSizing:`border-box`,outline:`none`},onChange:e=>{ve(e.target.value),W&&G(``)},onMouseDown:e=>e.stopPropagation(),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),We(U)&&R(null))}})]}),(0,f.jsxs)(`div`,{style:{display:`flex`,gap:`8px`},children:[(0,f.jsx)(`button`,{type:`button`,style:{flex:1,border:`1px solid #7a92a1`,borderRadius:`8px`,background:`linear-gradient(180deg, #8ea3b0 0%, #738d9d 100%)`,color:`#fff`,fontSize:`11px`,fontWeight:600,height:`30px`,minWidth:0,padding:`0 10px`,cursor:`pointer`},onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),We(U)&&R(null)},children:`Apply Color`}),(0,f.jsx)(`button`,{type:`button`,style:{width:`32px`,minWidth:`32px`,border:`1px solid #c4d0d8`,borderRadius:`8px`,background:`#ffffff`,color:`#647987`,fontSize:`12px`,fontWeight:700,height:`30px`,padding:0,cursor:`pointer`},title:`Clear color`,onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),We(`none`),R(null)},children:`×`})]}),W?(0,f.jsx)(`div`,{style:{fontSize:`10px`,color:`#b91c1c`,lineHeight:1.2,marginTop:`-2px`},children:W}):null]}),document.body)]})}function q(e){let t=e,n=t.match(/^\\ce\{([\s\S]*)\}$/);n&&(t=n[1]);let r=[[`\\varepsilon`,`ε`],[`\\varphi`,`φ`],[`\\alpha`,`α`],[`\\beta`,`β`],[`\\gamma`,`γ`],[`\\delta`,`δ`],[`\\epsilon`,`ε`],[`\\zeta`,`ζ`],[`\\eta`,`η`],[`\\theta`,`θ`],[`\\iota`,`ι`],[`\\kappa`,`κ`],[`\\lambda`,`λ`],[`\\mu`,`μ`],[`\\nu`,`ν`],[`\\xi`,`ξ`],[`\\pi`,`π`],[`\\rho`,`ρ`],[`\\sigma`,`σ`],[`\\tau`,`τ`],[`\\upsilon`,`υ`],[`\\phi`,`φ`],[`\\chi`,`χ`],[`\\psi`,`ψ`],[`\\omega`,`ω`],[`\\Gamma`,`Γ`],[`\\Delta`,`Δ`],[`\\Theta`,`Θ`],[`\\Lambda`,`Λ`],[`\\Xi`,`Ξ`],[`\\Pi`,`Π`],[`\\Sigma`,`Σ`],[`\\Upsilon`,`Υ`],[`\\Phi`,`Φ`],[`\\Psi`,`Ψ`],[`\\Omega`,`Ω`],[`\\pm`,`±`],[`\\mp`,`∓`],[`\\times`,`×`],[`\\div`,`÷`],[`\\backslash`,`\\`],[`\\cdot`,`·`],[`\\neq`,`≠`],[`\\leq`,`≤`],[`\\geq`,`≥`],[`\\approx`,`≈`],[`\\equiv`,`≡`],[`\\infty`,`∞`],[`\\sum`,`∑`],[`\\prod`,`∏`],[`\\int`,`∫`],[`\\oint`,`∮`],[`\\iint`,`∬`],[`\\iiint`,`∭`],[`\\oiint`,`∯`],[`\\partial`,`∂`],[`\\nabla`,`∇`],[`\\in`,`∈`],[`\\notin`,`∉`],[`\\subset`,`⊂`],[`\\subseteq`,`⊆`],[`\\supset`,`⊃`],[`\\supseteq`,`⊇`],[`\\cup`,`∪`],[`\\cap`,`∩`],[`\\emptyset`,`∅`],[`\\setminus`,`﹨`],[`\\forall`,`∀`],[`\\exists`,`∃`],[`\\neg`,`¬`],[`\\land`,`∧`],[`\\lor`,`∨`],[`\\leftrightarrow`,`↔`],[`\\Leftrightarrow`,`⇔`],[`\\rightarrow`,`→`],[`\\leftarrow`,`←`],[`\\Rightarrow`,`⇒`],[`\\Leftarrow`,`⇐`],[`\\uparrow`,`↑`],[`\\downarrow`,`↓`],[`\\sin`,`sin`],[`\\cos`,`cos`],[`\\tan`,`tan`],[`\\cot`,`cot`],[`\\sec`,`sec`],[`\\csc`,`csc`],[`\\log`,`log`],[`\\ln`,`ln`],[`\\exp`,`exp`],[`\\lim`,`lim`],...O.map(({insert:e,label:t})=>[e,t]),...k.map(({insert:e,label:t})=>[e,t]),...A.map(({insert:e,label:t})=>[e,t]),[`\\wp`,`℘`],[`\\left(`,`(`],[`\\right)`,`)`],[`\\left[`,`[`],[`\\right]`,`]`],[`\\left|`,`|`],[`\\right|`,`|`],[`\\left\\{`,`{`],[`\\right\\}`,`}`],[`\\,`,` `],[`\\;`,` `],[`\\quad`,` `],[`\\qquad`,` `],[`\\prime`,`′`],[`\\vdots`,`⋮`],[`\\cdots`,`⋯`],[`\\ddots`,`⋱`],[`\\ldots`,`…`]];for(let[e,n]of r){let r=e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);t=t.replace(new RegExp(r,`g`),n)}t=t.replace(/\\frac\{([^}]*)\}\{([^}]*)\}/g,`$1/$2`),t=t.replace(/\\sqrt\[([^\]]*)\]\{([^}]*)\}/g,`$1√($2)`),t=t.replace(/\\sqrt\{([^}]*)\}/g,`√($1)`),t=t.replace(/\\vec\{([^}]*)\}/g,`$1⃗`),t=t.replace(/\\hat\{([^}]*)\}/g,`$1̂`),t=t.replace(/\\bar\{([^}]*)\}/g,`$1̄`),t=t.replace(/\\ddot\{([^}]*)\}/g,`$1̈`),t=t.replace(/\\dot\{([^}]*)\}/g,`$1̇`),t=t.replace(/\\text\{([^}]*)\}/g,`$1`),t=t.replace(/\\begin\{pmatrix\}([\s\S]*?)\\end\{pmatrix\}/g,(e,t)=>`[`+t.replace(/\\\\/g,`; `).replace(/&/g,`, `).trim()+`]`);let i={0:`⁰`,1:`¹`,2:`²`,3:`³`,4:`⁴`,5:`⁵`,6:`⁶`,7:`⁷`,8:`⁸`,9:`⁹`,"+":`⁺`,"-":`⁻`,"=":`⁼`,"(":`⁽`,")":`⁾`,n:`ⁿ`,i:`ⁱ`};t=t.replace(/\^\{([^}]*)\}/g,(e,t)=>t.split(``).map(e=>i[e]||e).join(``)),t=t.replace(/\^([a-zA-Z0-9])/g,(e,t)=>i[t]||t);let a={0:`₀`,1:`₁`,2:`₂`,3:`₃`,4:`₄`,5:`₅`,6:`₆`,7:`₇`,8:`₈`,9:`₉`,"+":`₊`,"-":`₋`,"=":`₌`,"(":`₍`,")":`₎`,a:`ₐ`,e:`ₑ`,o:`ₒ`,x:`ₓ`,i:`ᵢ`,j:`ⱼ`,n:`ₙ`};return t=t.replace(/_\{([^}]*)\}/g,(e,t)=>t.split(``).map(e=>a[e]||e).join(``)),t=t.replace(/_([a-zA-Z0-9])/g,(e,t)=>a[t]||t),t=t.replace(/->/g,`→`),t=t.replace(/<=>/g,`⇌`),t=t.replace(/\\[a-zA-Z]+/g,``),t=t.replace(/[{}]/g,``),t=t.replace(/\s+/g,` `),t=t.replace(/\\\\/g,`
|
|
2622
|
+
`),t.trim()}function J({value:e,onChange:t,className:n=``}){let r=(0,c.useRef)(null),i=(0,c.useRef)(!1),[a,o]=(0,c.useState)(null),[s,l]=(0,c.useState)(null);(0,c.useEffect)(()=>{i.current=!!a},[a]),(0,c.useEffect)(()=>()=>{window.__ckMathWidgetClickHandler=null},[]);let p=(0,c.useCallback)(e=>{l(null),i.current=!0,o(e)},[]),m=(0,c.useCallback)(()=>{i.current=!1,o(null),l(null);let e=r.current;e&&e.model.change(e=>{e.setSelection(null)})},[]),[h,v]=(0,c.useState)(!1),b=(0,c.useCallback)((e,{direction:t=`ltr`}={})=>{let n=r.current;if(!n||!e?.trim())return;let i={latex:e.trim(),dir:t===`rtl`?`rtl`:`ltr`};if(s){let e=y(n,s.modelElement)?s.modelElement:null;e?n.model.change(t=>{let n=t.createElement(`mathInline`,i),r=t.createPositionBefore(e);t.insert(n,r),t.remove(e),t.setSelection(t.createPositionAfter(n))}):n.model.change(e=>{let t=e.createElement(`mathInline`,i);n.model.insertContent(t)}),l(null)}else if(h){let t=q(e.trim());if(!t)return;n.model.change(e=>{let r=e.createText(t);n.model.insertContent(r)})}else n.model.change(e=>{let t=e.createElement(`mathInline`,i);n.model.insertContent(t),n.model.insertContent(e.createText(` `))});n.editing.view.focus()},[h,s]),S=(0,c.useMemo)(()=>K(p),[p]),C=(0,c.useCallback)(e=>{r.current=e;let t=(e,t,n=`ltr`)=>{if(!t)return;let r=/^\\ce\{/.test(t),a=e?.getAttribute(`dir`)===`rtl`||n===`rtl`?`rtl`:`ltr`;i.current=!0,l({modelElement:e,latex:t,direction:a}),o(r?`chem`:`math`)};e.mathWidgetClickHandler=t,window.__ckMathWidgetClickHandler=t;let n=e.ui.getEditableElement();if(!n||n._ckMathClickAttached)return;n._ckMathClickAttached=!0;let a=t=>{let n=g(t.target);n&&t.button===0&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation?.(),x(e,null,_(n),n))};n.addEventListener(`mousedown`,a,!0),n.addEventListener(`click`,a,!0)},[]);return(0,f.jsxs)(`div`,{className:`ck-editor-shell ${n}`.trim(),children:[(0,f.jsx)(`style`,{children:`
|
|
2623
|
+
.ck-powered-by { display: none !important; }
|
|
2624
|
+
.ck-math-widget {
|
|
2625
|
+
display: inline-block !important;
|
|
2626
|
+
position: relative !important;
|
|
2627
|
+
width: auto !important;
|
|
2628
|
+
max-width: 100% !important;
|
|
2629
|
+
cursor: pointer !important;
|
|
2630
|
+
vertical-align: middle !important;
|
|
2631
|
+
}
|
|
2632
|
+
.ck-math-widget::after {
|
|
2633
|
+
content: '';
|
|
2634
|
+
position: absolute;
|
|
2635
|
+
inset: 0;
|
|
2636
|
+
z-index: 2;
|
|
2637
|
+
cursor: pointer;
|
|
2638
|
+
}
|
|
2639
|
+
.ck-math-widget .ck-math-widget-inner,
|
|
2640
|
+
.ck-math-widget math-field {
|
|
2641
|
+
display: inline-block !important;
|
|
2642
|
+
width: auto !important;
|
|
2643
|
+
max-width: 100% !important;
|
|
2644
|
+
pointer-events: none !important;
|
|
2645
|
+
color: #ffffff !important;
|
|
2646
|
+
}
|
|
2647
|
+
.ck-math-widget[data-dir="rtl"] {
|
|
2648
|
+
direction: rtl !important;
|
|
2649
|
+
unicode-bidi: plaintext !important;
|
|
2650
|
+
}
|
|
2651
|
+
.ck-math-widget[data-dir="rtl"] .ck-math-widget-inner,
|
|
2652
|
+
.ck-math-widget[data-dir="rtl"] math-field {
|
|
2653
|
+
direction: rtl !important;
|
|
2654
|
+
text-align: right !important;
|
|
2655
|
+
}
|
|
2656
|
+
.ck-math-widget:hover,
|
|
2657
|
+
.ck-math-widget.ck-widget_selected { outline: 2px solid #0f766e; outline-offset: 1px; border-radius: 4px; }
|
|
2658
|
+
`}),(0,f.jsx)(u.CKEditor,{editor:d.ClassicEditor,data:e,onReady:C,config:{licenseKey:`GPL`,plugins:[d.Essentials,d.Bold,d.Italic,d.Underline,d.Paragraph,d.Heading,d.Table,d.TableToolbar,d.TableCellProperties,d.TableProperties,d.List,d.Link,d.Undo,_e,S],toolbar:{items:[`heading`,`|`,`bold`,`italic`,`underline`,`|`,`bulletedList`,`numberedList`,`|`,`insertTable`,`|`,`link`,`|`,`mathType`,`chemType`,`|`,`undo`,`redo`]},table:{contentToolbar:[`tableColumn`,`tableRow`,`mergeTableCells`,`tableProperties`,`tableCellProperties`]}},onChange:(e,n)=>{t&&t(n.getData())}}),a&&(0,f.jsx)(Ne,{mode:a,onInsert:b,onClose:m,initialLatex:s?.latex||``,initialDirection:s?.direction||`ltr`,isEditing:!!s})]})}var Pe=`§MATH§`,Fe=`§END§`;function Y(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Ie(e=``){let t=new Set([`color`,`background`,`background-color`,`caret-color`,`-webkit-text-fill-color`]);return e.split(`;`).map(e=>e.trim()).filter(Boolean).filter(e=>{let[n]=e.split(`:`);return n&&!t.has(n.trim().toLowerCase())}).join(`; `)}function X(e,t=`dark`){let n=document.createElement(`math-field`),r=t===`light`,i=r?`#22343d`:`#f4f4fb`,a=r?`#556e7b`:`#d8b4fe`;return n.setAttribute(`read-only`,``),n.setAttribute(`letter-shape-style`,`upright`),n.setAttribute(`style`,[`display:inline-block`,`vertical-align:middle`,`border:none`,`background:transparent`,`outline:none`,`padding:0 2px`,`margin:0 1px`,`font-size:inherit`,`min-height:auto`,`color:${i}`,`--primary-color:${a}`,`--caret-color:transparent`,`--smart-fence-color:${a}`].join(`;`)),requestAnimationFrame(()=>{n.setValue?n.setValue(e):n.value=e}),n}function Le(e,t,n=`dark`){if(!t)return;let r=document.createElement(`div`);r.innerHTML=t;let i=new Set(`B.STRONG.I.EM.U.BR.DIV.P.SPAN.UL.OL.LI.SUB.SUP.H1.H2.H3.H4.BLOCKQUOTE.A.TABLE.THEAD.TBODY.TR.TH.TD.FIGURE.FIGCAPTION.COLGROUP.COL`.split(`.`)),a=(e,t)=>{Array.from(e.childNodes).forEach(e=>{if(e.nodeType===Node.TEXT_NODE)t.appendChild(document.createTextNode(e.textContent));else if(e.nodeType===Node.ELEMENT_NODE){let r=e.nodeName;if(r===`MATH-FIELD`){let r=typeof e.getValue==`function`&&e.getValue()||e.value||e.getAttribute(`data-latex`)||e.textContent||``;t.appendChild(X(r,n))}else if(r===`BR`)t.appendChild(document.createElement(`br`));else if(r===`SPAN`&&e.classList.contains(`math-tex`)){let n=document.createElement(`span`);n.className=`math-tex`,e.getAttribute(`data-latex`)&&n.setAttribute(`data-latex`,e.getAttribute(`data-latex`)),n.textContent=e.textContent,t.appendChild(n)}else if(i.has(r)){let n=document.createElement({STRONG:`b`,EM:`i`}[r]||r.toLowerCase());r===`A`&&e.getAttribute(`href`)&&(n.setAttribute(`href`,e.getAttribute(`href`)),n.setAttribute(`target`,`_blank`),n.setAttribute(`rel`,`noopener noreferrer`)),[`class`,`colspan`,`rowspan`].forEach(t=>{e.getAttribute(t)&&n.setAttribute(t,e.getAttribute(t))});let i=Ie(e.getAttribute(`style`)||``);i&&n.setAttribute(`style`,i),a(e,n),t.appendChild(n)}else a(e,t)}})},o=document.createElement(`span`);for(a(r,o);o.firstChild;)e.appendChild(o.firstChild)}function Re({value:e=``,className:t=``,tone:n=`dark`}){let r=(0,c.useRef)(null),i=n===`light`?`#22343d`:`#f2f2f8`;return(0,c.useEffect)(()=>{let t=r.current;if(!t)return;t.innerHTML=``;let i=RegExp(Y(Pe)+`([\\s\\S]*?)`+Y(Fe),`g`),a=0,o;for(;(o=i.exec(e))!==null;)o.index>a&&Le(t,e.slice(a,o.index),n),t.appendChild(X(o[1],n)),a=o.index+o[0].length;a<e.length&&Le(t,e.slice(a),n),t.querySelectorAll(`span.math-tex`).forEach(e=>{let t=e.getAttribute(`data-latex`)||e.textContent||``;t&&e.replaceWith(X(t,n))})},[n,e]),(0,f.jsx)(`span`,{ref:r,className:t,style:{display:`inline`,lineHeight:1.7,verticalAlign:`middle`,color:i}})}function ze({value:e,defaultValue:t=``,onChange:n,title:r=`Custom CK Editor`,previewButtonLabel:i=`Show Preview`,previewTone:a=`light`,className:o=``}){let[s,l]=(0,c.useState)(t),[u,d]=(0,c.useState)(!1),p=(0,c.useId)(),m=e!==void 0,h=m?e:s,g=(0,c.useMemo)(()=>h.trim().length>0,[h]);return(0,f.jsxs)(`section`,{className:`custom-ck-package ${o}`.trim(),children:[(0,f.jsx)(`header`,{className:`custom-ck-package__header`,children:(0,f.jsx)(`h1`,{className:`custom-ck-package__title`,children:r})}),(0,f.jsx)(`div`,{className:`custom-ck-package__actions`,children:(0,f.jsx)(`button`,{type:`button`,className:`custom-ck-package__preview-button`,"aria-expanded":u,"aria-controls":p,onClick:()=>d(e=>!e),children:u?`Hide Preview`:i})}),(0,f.jsx)(`div`,{className:`custom-ck-package__editor`,children:(0,f.jsx)(J,{value:h,onChange:e=>{m||l(e),n?.(e)}})}),u&&(0,f.jsxs)(`section`,{id:p,className:`custom-ck-package__preview`,"aria-label":`Question preview`,children:[(0,f.jsx)(`div`,{className:`custom-ck-package__preview-header`,children:`Question Preview`}),g?(0,f.jsx)(`div`,{className:`question-preview custom-ck-package__preview-content`,children:(0,f.jsx)(Re,{value:h,tone:a})}):(0,f.jsx)(`p`,{className:`custom-ck-package__preview-empty`,children:`Type in the editor to preview math and chemistry content here.`})]})]})}exports.CkEditor=J,exports.CustomCkEditorPackage=ze,exports.default=ze,exports.QuestionPreview=Re;
|