n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 378 kB
JavaScript
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.13.4"}}catch(e){}}(),System.register(["./chunk-legacy-TXBRODOR.js","./vue.runtime.esm-bundler-legacy-IafOlCW8.js","./_MapCache-legacy-DwgdC8YO.js","./src-legacy-Dwzr7bD0.js","./_plugin-vue_export-helper-legacy-DEZAmQqp.js","./users.store-legacy-OKuN0qAC.js","./constants-legacy-DNCca_FT.js","./_baseOrderBy-legacy-PsQY_Pvh.js","./useClipboard-legacy-D5bRgqfO.js","./VueMarkdown-legacy-CWoKVTxo.js","./pushConnection.store-legacy-CdZe0qqo.js","./constants-legacy-iKNx7WD2.js","./chat.store-legacy-pzWGyzhB.js","./ChatAgentAvatar-legacy-CvUQTvDe.js","./useResizablePanel-legacy-B6OPZUoB.js","./ToolsSelector-legacy-D06iGNrU.js"],(function(e,t){var n,s,a,r,i,o,l,c,h,m,d,u,p,g,f,b,y,x,k,w,z,v,_,S,M,A,T,B,C,I,q,D,H,N,R,E,P,O,L,F,V,X,$,K,U,G,W,j,Y,Z,Q,J,ee,te,ne,se,ae,re,ie,oe,le,ce,he,me,de,ue,pe,ge,fe,be,ye,xe,ke,we,ze,ve,_e,Se,Me,Ae,Te,Be,Ce,Ie,qe,De,He,Ne,Re,Ee,Pe,Oe,Le,Fe,Ve,Xe,$e,Ke,Ue,Ge,We,je,Ye;function Ze(){const e=ie(),t=ge(),n=l(new Map),s=l(null),a=l(null);function r(e){switch(e.type){case"chatHubHumanMessageCreated":!function(e){t.handleHumanMessageCreated(e.data)}(e);break;case"chatHubMessageEdited":!function(e){t.handleMessageEdited(e.data)}(e);break;case"chatHubExecutionBegin":!function(e){const{sessionId:n}=e.data;t.handleWebSocketExecutionBegin({sessionId:n})}(e);break;case"chatHubExecutionEnd":!function(e){const{sessionId:s,status:a}=e.data;n.value.delete(s),t.handleWebSocketExecutionEnd({sessionId:s,status:a})}(e);break;case"chatHubStreamBegin":!function(e){const{sessionId:s,messageId:a,sequenceNumber:r,previousMessageId:i,retryOfMessageId:o}=e.data;n.value.set(s,{sessionId:s,messageId:a,lastSequenceNumber:r,content:""}),t.streaming?.sessionId===s&&t.streaming.messageId!==a&&(t.streaming.messageId=a),t.handleWebSocketStreamBegin({sessionId:s,messageId:a,previousMessageId:i,retryOfMessageId:o})}(e);break;case"chatHubStreamChunk":!function(e){const{sessionId:s,messageId:a,sequenceNumber:r,content:i}=e.data,o=n.value.get(s);o&&o.messageId===a&&(r<=o.lastSequenceNumber||(o.lastSequenceNumber=r,o.content+=i,t.handleWebSocketStreamChunk({sessionId:s,messageId:a,content:i})))}(e);break;case"chatHubStreamEnd":!function(e){const{sessionId:s,messageId:a,status:r}=e.data;n.value.delete(s),t.handleWebSocketStreamEnd({sessionId:s,messageId:a,status:r})}(e);break;case"chatHubStreamError":!function(e){const{sessionId:s,messageId:a,error:r}=e.data;n.value.delete(s),t.handleWebSocketStreamError({sessionId:s,messageId:a,error:r})}(e)}}return{activeStreams:n,initialize:function(){s.value||(e.pushConnect(),s.value=e.addEventListener(r),a.value=k((()=>e.isConnected),(async(e,s)=>{e&&!s&&await async function(){for(const[e,s]of n.value.entries()){const n=await t.reconnectToStream(e,s.lastSequenceNumber);if(n?.pendingChunks?.length)for(const e of n.pendingChunks)e.sequenceNumber>s.lastSequenceNumber&&(s.lastSequenceNumber=e.sequenceNumber)}}()})))},terminate:function(){a.value&&(a.value(),a.value=null),s.value&&(s.value(),s.value=null),n.value.clear(),e.pushDisconnect()},getStreamState:function(e){return n.value.get(e)},hasActiveStream:function(e){return!!n.value.get(e)},getLastSequenceNumber:function(e){return n.value.get(e)?.lastSequenceNumber??0},initializeStreamState:function(e,t,s){n.value.set(e,{sessionId:e,messageId:t,lastSequenceNumber:s,content:""})}}}function Qe(e,t){return a(),o("span",{class:y(e.$style.typing),"data-test-id":"chat-typing-indicator"},[...t[0]||(t[0]=[i("i",null,null,-1),i("i",null,null,-1),i("i",null,null,-1)])],2)}function Je(e,t,n,s){const a=Number(e[t].meta.id+1).toString();let r="";return"string"==typeof s.docId&&(r=`-${s.docId}-`),r+a}function et(e,t){let n=Number(e[t].meta.id+1).toString();return e[t].meta.subId>0&&(n+=`:${e[t].meta.subId}`),`[${n}]`}function tt(e,t,n,s,a){const r=a.rules.footnote_anchor_name(e,t,n,s,a),i=a.rules.footnote_caption(e,t,n,s,a);let o=r;return e[t].meta.subId>0&&(o+=`:${e[t].meta.subId}`),`<sup class="footnote-ref"><a href="#fn${r}" id="fnref${o}">${i}</a></sup>`}function nt(e,t,n){return(n.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n')+'<section class="footnotes">\n<ol class="footnotes-list">\n'}function st(){return"</ol>\n</section>\n"}function at(e,t,n,s,a){let r=a.rules.footnote_anchor_name(e,t,n,s,a);return e[t].meta.subId>0&&(r+=`:${e[t].meta.subId}`),`<li id="fn${r}" class="footnote-item">`}function rt(){return"</li>\n"}function it(e,t,n,s,a){let r=a.rules.footnote_anchor_name(e,t,n,s,a);return e[t].meta.subId>0&&(r+=`:${e[t].meta.subId}`),` <a href="#fnref${r}" class="footnote-backref">↩︎</a>`}function ot(e){const t=e.helpers.parseLinkLabel,n=e.utils.isSpace;e.renderer.rules.footnote_ref=tt,e.renderer.rules.footnote_block_open=nt,e.renderer.rules.footnote_block_close=st,e.renderer.rules.footnote_open=at,e.renderer.rules.footnote_close=rt,e.renderer.rules.footnote_anchor=it,e.renderer.rules.footnote_caption=et,e.renderer.rules.footnote_anchor_name=Je,e.block.ruler.before("reference","footnote_def",(function(e,t,s,a){const r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(r+4>i)return!1;if(91!==e.src.charCodeAt(r))return!1;if(94!==e.src.charCodeAt(r+1))return!1;let o;for(o=r+2;o<i;o++){if(32===e.src.charCodeAt(o))return!1;if(93===e.src.charCodeAt(o))break}if(o===r+2)return!1;if(o+1>=i||58!==e.src.charCodeAt(++o))return!1;if(a)return!0;o++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={});const l=e.src.slice(r+2,o-2);e.env.footnotes.refs[`:${l}`]=-1;const c=new e.Token("footnote_reference_open","",1);c.meta={label:l},c.level=e.level++,e.tokens.push(c);const h=e.bMarks[t],m=e.tShift[t],d=e.sCount[t],u=e.parentType,p=o,g=e.sCount[t]+o-(e.bMarks[t]+e.tShift[t]);let f=g;for(;o<i;){const t=e.src.charCodeAt(o);if(!n(t))break;9===t?f+=4-f%4:f++,o++}e.tShift[t]=o-p,e.sCount[t]=f-g,e.bMarks[t]=p,e.blkIndent+=4,e.parentType="footnote",e.sCount[t]<e.blkIndent&&(e.sCount[t]+=e.blkIndent),e.md.block.tokenize(e,t,s,!0),e.parentType=u,e.blkIndent-=4,e.tShift[t]=m,e.sCount[t]=d,e.bMarks[t]=h;const b=new e.Token("footnote_reference_close","",-1);return b.level=--e.level,e.tokens.push(b),!0}),{alt:["paragraph","reference"]}),e.inline.ruler.after("image","footnote_inline",(function(e,n){const s=e.posMax,a=e.pos;if(a+2>=s)return!1;if(94!==e.src.charCodeAt(a))return!1;if(91!==e.src.charCodeAt(a+1))return!1;const r=a+2,i=t(e,a+1);if(i<0)return!1;if(!n){e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]);const t=e.env.footnotes.list.length,n=[];e.md.inline.parse(e.src.slice(r,i),e.md,e.env,n),e.push("footnote_ref","",0).meta={id:t},e.env.footnotes.list[t]={content:e.src.slice(r,i),tokens:n}}return e.pos=i+1,e.posMax=s,!0})),e.inline.ruler.after("footnote_inline","footnote_ref",(function(e,t){const n=e.posMax,s=e.pos;if(s+3>n)return!1;if(!e.env.footnotes||!e.env.footnotes.refs)return!1;if(91!==e.src.charCodeAt(s))return!1;if(94!==e.src.charCodeAt(s+1))return!1;let a;for(a=s+2;a<n;a++){if(32===e.src.charCodeAt(a))return!1;if(10===e.src.charCodeAt(a))return!1;if(93===e.src.charCodeAt(a))break}if(a===s+2)return!1;if(a>=n)return!1;a++;const r=e.src.slice(s+2,a-1);if(void 0===e.env.footnotes.refs[`:${r}`])return!1;if(!t){let t;e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[`:${r}`]<0?(t=e.env.footnotes.list.length,e.env.footnotes.list[t]={label:r,count:0},e.env.footnotes.refs[`:${r}`]=t):t=e.env.footnotes.refs[`:${r}`];const n=e.env.footnotes.list[t].count;e.env.footnotes.list[t].count++,e.push("footnote_ref","",0).meta={id:t,subId:n,label:r}}return e.pos=a,e.posMax=n,!0})),e.core.ruler.after("inline","footnote_tail",(function(e){let t,n,s,a=!1;const r={};if(!e.env.footnotes)return;if(e.tokens=e.tokens.filter((function(e){return"footnote_reference_open"===e.type?(a=!0,n=[],s=e.meta.label,!1):"footnote_reference_close"===e.type?(a=!1,r[":"+s]=n,!1):(a&&n.push(e),!a)})),!e.env.footnotes.list)return;const i=e.env.footnotes.list;e.tokens.push(new e.Token("footnote_block_open","",1));for(let o=0,l=i.length;o<l;o++){const n=new e.Token("footnote_open","",1);if(n.meta={id:o,label:i[o].label},e.tokens.push(n),i[o].tokens){t=[];const n=new e.Token("paragraph_open","p",1);n.block=!0,t.push(n);const s=new e.Token("inline","",0);s.children=i[o].tokens,s.content=i[o].content,t.push(s);const a=new e.Token("paragraph_close","p",-1);a.block=!0,t.push(a)}else i[o].label&&(t=r[`:${i[o].label}`]);let s;t&&(e.tokens=e.tokens.concat(t)),s="paragraph_close"===e.tokens[e.tokens.length-1].type?e.tokens.pop():null;const a=i[o].count>0?i[o].count:1;for(let t=0;t<a;t++){const n=new e.Token("footnote_anchor","",0);n.meta={id:o,subId:t,label:i[o].label},e.tokens.push(n)}s&&e.tokens.push(s),e.tokens.push(new e.Token("footnote_close","",-1))}e.tokens.push(new e.Token("footnote_block_close","",-1))}))}function lt(e){for(const t of e.tokens)if("inline"===t.type&&t.children)for(const e of t.children)"text"===e.type&&(e.content=e.content.replace(/\[\^[^\]]+\]/g,""))}function ct(e){const t=e.env.footnotes?.list;if(!t)return;let n=-1;for(const s of e.tokens)"footnote_open"===s.type?n=s.meta.id:"inline"===s.type&&n>=0?(t[n].content||(t[n].content=s.content),n=-1):"footnote_close"===s.type&&(n=-1)}function ht(e,n,s){const a=l(0),r=l();return{options:{breaks:!0,highlight(e,n){if(!n)return"";const s=n.toLowerCase();if(Be?.getLanguage(s))try{return Be.highlight(e,{language:s}).value}catch{}return async function(){if("done"!==Ce.status){if("inProgress"===Ce.status)return await Ce.promise,void a.value++;try{Ce={status:"inProgress",promise:Promise.all([Y((()=>t.import("./es-legacy-D7ynlZdJ.js")),void 0),Y((()=>t.import("./languageModules-legacy-Dnu5mykE.js")),void 0)])};const[e,n]=await Ce.promise;Ce={status:"done"},Be=e.default.newInstance();for(const[t,s]of Object.entries(n))Be.registerLanguage(t,s);a.value++}catch(e){console.warn("Failed to load syntax highlighting modules",e)}}}(),""}},forceReRenderKey:a,plugins:d((()=>[e=>{e.use(Ae.default,{attrs:{target:"_blank",rel:"noopener"}})},t=>{const n=t.renderer.rules.fence;r.value=new Map,t.renderer.rules.fence=(t,s,a,i,o)=>{const l=n?.(t,s,a,i,o)??o.renderToken(t,s,a),c=t[s]?.content.trim();return c&&r.value?.set(String(s),c),l.replace("<pre>",`<pre><div data-markdown-token-idx="${s}" class="${e}"></div>`)}},e=>{const t=e.renderer.rules.table_open,s=e.renderer.rules.table_close;e.renderer.rules.table_open=(e,s,a,r,i)=>(t?.(e,s,a,r,i)??i.renderToken(e,s,a)).replace("<table",`<div class="${n}"><table`),e.renderer.rules.table_close=(e,t,n,a,r)=>(s?.(e,t,n,a,r)??r.renderToken(e,t,n)).replace("</table>","</table></div>")},e=>{const t=Te.default.default??Te.default;e.use(t,{throwOnError:!1})},e=>{e.use(ot),e.core.ruler.push("hide_orphan_footnote_refs",lt),s&&(e.core.ruler.push("footnote_content_extractor",ct),e.renderer.rules.footnote_ref=(t,n,a,r)=>{const i=t[n].meta.id,o=r.footnotes?.list?.[i]?.content??String(i+1),l=P(o,25,11,4);return`<span class="${s}" title="${e.utils.escapeHtml(o)}">${e.utils.escapeHtml(l)}</span>`},e.renderer.rules.footnote_block_open=()=>'<div style="display:none" aria-hidden="true">',e.renderer.rules.footnote_block_close=()=>"</div>",e.renderer.rules.footnote_open=()=>"",e.renderer.rules.footnote_close=()=>"",e.renderer.rules.footnote_anchor=()=>"")}])),codeBlockContents:r}}return e("a",(function(e){const{sessionId:t,scrollableRef:n,extendMessagingState:s,shouldSkipScroll:a}=e,r=ge(),i=Ze();c((()=>{i.initialize()})),S((()=>{i.terminate()}));const o=d((()=>r.getActiveMessages(t.value))),l=d((()=>r.isResponding(t.value))),h=e.isNewSession??d((()=>0===o.value.length)),m=d((()=>{if(r.streaming?.sessionId===t.value)return r.streaming.messageId?"receiving":"waitingFirstChunk";if(fe(r.lastMessage(t.value)))return"waitingForApproval";if(s){const e=s();if(null!==e)return e}return"idle"})),u=d((()=>n.value?.parentElement??null)),{arrivedState:p,measure:f}=q(u,{throttle:100,offset:{bottom:100}});function b(e){u.value?.scrollTo({top:n.value?.scrollHeight,behavior:e?"smooth":"instant"})}function y(e){n.value?.querySelector(`[data-message-id="${e}"]`)?.scrollIntoView({behavior:"smooth"})}return k((()=>o.value[o.value.length-1]?.id),(e=>{e&&(a?.()||(g(f),r.streaming?.sessionId!==t.value?b(!1):y(r.streaming.promptId)))}),{immediate:!0,flush:"post"}),{chatMessages:o,isResponding:l,isNewSession:h,messagingState:m,scrollContainerRef:u,arrivedState:p,scrollToBottom:b,scrollToMessage:y,loadSession:async function(e){r.getConversation(e)||await r.fetchMessages(e);const t=await r.reconnectToStream(e,0);t?.hasActiveStream&&t.currentMessageId&&i.initializeStreamState(e,t.currentMessageId,t.lastSequenceNumber)}}})),{setters:[function(e){n=e.o,s=e.t},function(e){a=e.$,r=e.A,i=e.C,o=e.E,l=e.Ft,c=e.K,h=e.N,m=e.O,d=e.S,u=e.Sn,p=e.T,g=e.W,f=e.Wt,b=e._,y=e._n,x=e.c,k=e.gt,w=e.h,z=e.it,v=e.j,_=e.pt,S=e.q,M=e.rt,A=e.w,T=e.y,B=e.yn,C=e.yt},function(e){I=e.D,q=e.F,D=e.L,H=e.R,N=e.bt,R=e.xt},function(e){E=e.$i,P=e.Bi,O=e.Fi,L=e.Ht,F=e.Ii,V=e.Mi,X=e.Ni,$=e.Qi,K=e.Xi,U=e.Yi,G=e.Zi,W=e._t,j=e.lt,Y=e.na,Z=e.zi,Q=e.zt},function(e){J=e.t},function(e){ee=e.Tr,te=e.s},function(e){ne=e.ms},function(e){se=e.r},function(e){ae=e.t},function(e){re=e.t},function(e){ie=e.t},function(e){oe=e.y},function(e){le=e.S,ce=e.T,he=e._,me=e.b,de=e.g,ue=e.m,pe=e.o,ge=e.t,fe=e.v},function(e){be=e.t},function(e){ye=e.n},function(e){xe=e.t}],execute:function(){(ke=document.createElement("style")).textContent='._typing_v8rma_125{gap:6px;display:inline-flex}._typing_v8rma_125 i{opacity:.35;background:currentColor;border-radius:50%;width:6px;height:6px;animation:1.2s infinite _blink_v8rma_1}._typing_v8rma_125 i:nth-child(2){animation-delay:.2s}._typing_v8rma_125 i:nth-child(3){animation-delay:.4s}@keyframes _blink_v8rma_1{0%,80%,to{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}._button_1pgkm_125 g,._button_1pgkm_125 path{color:var(--color--text--tint-1);stroke-width:2.5px}._actions_1dz1l_125{align-items:center;display:flex}._actions_1dz1l_125 g,._actions_1dz1l_125 path{color:var(--color--text--tint-1);stroke-width:2.5px}.fade-enter-active[data-v-ec3f5f08],.fade-leave-active[data-v-ec3f5f08]{transition:opacity .15s}.fade-enter-from[data-v-ec3f5f08],.fade-leave-to[data-v-ec3f5f08]{opacity:0}@font-face{font-display:block;font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2)format("woff2"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_AMS-Regular-DMm9YOAa.woff)format("woff"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_AMS-Regular-DRggAlZN.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2)format("woff2"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff)format("woff"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2)format("woff2"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff)format("woff"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2)format("woff2"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff)format("woff"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2)format("woff2"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff)format("woff"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Fraktur-Regular-CB_wures.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Main-Bold-Cx986IdX.woff2)format("woff2"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Main-Bold-Jm3AIy58.woff)format("woff"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Main-Bold-waoOVXN0.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2)format("woff2"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff)format("woff"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2)format("woff2"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Main-Italic-BMLOBm91.woff)format("woff"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Main-Italic-3WenGoN9.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Main-Regular-B22Nviop.woff2)format("woff2"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Main-Regular-Dr94JaBh.woff)format("woff"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Main-Regular-ypZvNtVU.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2)format("woff2"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff)format("woff"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Math-Italic-t53AETM-.woff2)format("woff2"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Math-Italic-DA0__PXp.woff)format("woff"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Math-Italic-flOr_0UB.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2)format("woff2"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff)format("woff"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2)format("woff2"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff)format("woff"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2)format("woff2"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff)format("woff"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Script-Regular-D3wIWfF6.woff2)format("woff2"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Script-Regular-D5yQViql.woff)format("woff"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Script-Regular-C5JkGWo-.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2)format("woff2"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Size1-Regular-C195tn64.woff)format("woff"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2)format("woff2"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Size2-Regular-oD1tc_U0.woff)format("woff"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC)format("woff2"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Size3-Regular-CTq5MqoE.woff)format("woff"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2)format("woff2"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Size4-Regular-BF-4gkZK.woff)format("woff"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Size4-Regular-DWFBv043.ttf)format("truetype")}@font-face{font-display:block;font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2)format("woff2"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff)format("woff"),url(/%7B%7BBASE_PATH%7D%7D/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf)format("truetype")}.katex{text-indent:0;text-rendering:auto;font:1.21em/1.2 KaTeX_Main,Times New Roman,serif}.katex *{border-color:currentColor;-ms-high-contrast-adjust:none!important}.katex .katex-version:after{content:"0.16.27"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.katex .katex-html>.newline{display:block}.katex .base{white-space:nowrap;width:min-content;position:relative}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;table-layout:fixed;display:inline-table}.katex .vlist-r{display:table-row}.katex .vlist{vertical-align:bottom;display:table-cell;position:relative}.katex .vlist>span{height:0;display:block;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{width:0;overflow:hidden}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{vertical-align:bottom;width:2px;min-width:2px;font-size:1px;display:table-cell}.katex .vbox{flex-direction:column;align-items:baseline;display:inline-flex}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{flex-direction:row;display:inline-flex}.katex .thinbox{width:0;max-width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;width:100%;display:inline-block}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{width:0;position:relative}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;width:100%;display:inline-block}.katex .hdashline{border-bottom-style:dashed;width:100%;display:inline-block}.katex .sqrt>.root{margin-left:.277778em;margin-right:-.555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.833333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.16667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.66667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.45667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.714286em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.857143em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.14286em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71429em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96286em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55429em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.11111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.30444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.416667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.583333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.833333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72833em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.347222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.416667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.486111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.694444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.833333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.44028em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.289352em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.347222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.405093em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.520833em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.578704em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.694444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.833333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20023em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.289296em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.385728em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.433944em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.578592em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.694311em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.833173em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.19961em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.200965em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.241158em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.281351em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.321543em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.361736em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.401929em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.482315em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.694534em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.833601em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{width:.12em;display:inline-block}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{min-width:1px;display:inline-block}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;height:inherit;width:100%;display:block;position:absolute}.katex svg path{stroke:none}.katex img{border-style:none;min-width:0;max-width:none;min-height:0;max-height:none}.katex .stretchy{width:100%;display:block;position:relative;overflow:hidden}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{width:100%;position:relative;overflow:hidden}.katex .halfarrow-left{width:50.2%;position:absolute;left:0;overflow:hidden}.katex .halfarrow-right{width:50.2%;position:absolute;right:0;overflow:hidden}.katex .brace-left{width:25.1%;position:absolute;left:0;overflow:hidden}.katex .brace-center{width:50%;position:absolute;left:25%;overflow:hidden}.katex .brace-right{width:25.1%;position:absolute;right:0;overflow:hidden}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{box-sizing:border-box;border:.04em solid}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{box-sizing:border-box;border-top:.049em solid;border-right:.049em solid;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo)")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo)")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{text-align:left;display:inline-block;position:absolute;right:calc(50% + .3em)}.katex .cd-label-right{text-align:right;display:inline-block;position:absolute;left:calc(50% + .3em)}.katex-display{text-align:center;margin:1em 0;display:block}.katex-display>.katex{text-align:center;white-space:nowrap;display:block}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{text-align:left;padding-left:2em}body{counter-reset:katexEqnNo mmlEqnNo}._buttons_f542l_125{gap:var(--spacing--xs);display:flex}._container_g63zs_125{flex-direction:column;display:flex}._container_g63zs_125>:first-child>:first-child{margin-top:0}._chatMessageMarkdown_g63zs_133{--markdown--spacing:var(--spacing--2xs);color:var(--color--text--shade-1);display:block}._chatMessageMarkdown_g63zs_133 p,._chatMessageMarkdown_g63zs_133 li{font-size:var(--font-size--md);line-height:var(--line-height--xl);margin:calc(var(--markdown--spacing)*2)0}._chatMessageMarkdown_g63zs_133 li{margin:0}._chatMessageMarkdown_g63zs_133 h1,._chatMessageMarkdown_g63zs_133 h2,._chatMessageMarkdown_g63zs_133 h3,._chatMessageMarkdown_g63zs_133 h4,._chatMessageMarkdown_g63zs_133 h5,._chatMessageMarkdown_g63zs_133 h6{color:var(--color--text--shade-1);line-height:var(--line-height--md);font-weight:var(--font-weight--bold);scroll-margin-top:calc(var(--markdown--spacing)*4);margin:0}._chatMessageMarkdown_g63zs_133 h1{font-size:var(--font-size--xl);margin-top:calc(var(--markdown--spacing)*3)}._chatMessageMarkdown_g63zs_133 h2{font-size:var(--font-size--lg);margin-top:calc(var(--markdown--spacing)*4)}._chatMessageMarkdown_g63zs_133 h3{font-size:var(--font-size--md);margin-top:calc(var(--markdown--spacing)*4)}._chatMessageMarkdown_g63zs_133 h4{font-size:var(--font-size--sm);margin-top:calc(var(--markdown--spacing)*4)}._chatMessageMarkdown_g63zs_133 h5,._chatMessageMarkdown_g63zs_133 h6{font-size:var(--font-size--sm);margin-top:calc(var(--markdown--spacing)*3)}._chatMessageMarkdown_g63zs_133 h2+h3{margin-top:calc(var(--markdown--spacing)*3)}._chatMessageMarkdown_g63zs_133 li>:-webkit-any(h1,h2,h3,h4,h5,h6,p,strong):first-child{margin-top:0;display:inline-block}._chatMessageMarkdown_g63zs_133 li>:is(h1,h2,h3,h4,h5,h6,p,strong):first-child{margin-top:0;display:inline-block}._chatMessageMarkdown_g63zs_133 strong,._chatMessageMarkdown_g63zs_133 b{color:var(--color--text--shade-1);font-weight:var(--font-weight--bold)}._chatMessageMarkdown_g63zs_133 a:not(:where(h1,h2,h3,h4,h5,h6) *){color:var(--color--text--shade-1);font-weight:var(--font-weight--medium);text-underline-offset:3px;text-decoration:underline;text-decoration-thickness:1px;transition:color .15s}._chatMessageMarkdown_g63zs_133 a:not(:where(h1,h2,h3,h4,h5,h6) *):hover{color:var(--color--primary)}._chatMessageMarkdown_g63zs_133 a:not(:where(h1,h2,h3,h4,h5,h6) *) code{font-weight:var(--font-weight--medium)}._chatMessageMarkdown_g63zs_133 :not(pre)>code{font-family:var(--font-family--monospace);font-weight:var(--font-weight--medium);font-size:var(--font-size--sm);padding:calc(var(--markdown--spacing)*.25)calc(var(--markdown--spacing)*.5);line-height:var(--line-height--lg);background-color:var(--chat--message--pre--background);border-radius:var(--radius--sm);font-variant-ligatures:none}._chatMessageMarkdown_g63zs_133 :-webkit-any(h1,h2,h3,h4,h5,h6) code{font-weight:var(--font-weight--bold)}._chatMessageMarkdown_g63zs_133 :is(h1,h2,h3,h4,h5,h6) code{font-weight:var(--font-weight--bold)}._chatMessageMarkdown_g63zs_133 pre{width:100%;font-family:var(--font-family--monospace);font-size:var(--font-size--sm);line-height:var(--line-height--xl);margin:var(--markdown--spacing)0 calc(var(--markdown--spacing)*2.5);white-space:pre-wrap;box-sizing:border-box;padding:calc(var(--markdown--spacing)*2);background:var(--chat--message--pre--background);border-radius:var(--radius--lg);position:relative}._chatMessageMarkdown_g63zs_133 pre code{font-family:var(--font-family--monospace);font-variant-ligatures:none}._chatMessageMarkdown_g63zs_133 pre code:before,._chatMessageMarkdown_g63zs_133 pre code:after{content:none}._chatMessageMarkdown_g63zs_133 pre code:last-of-type{padding-bottom:0}._chatMessageMarkdown_g63zs_133 pre code *+*{margin-top:0}._chatMessageMarkdown_g63zs_133 pre ._codeBlockActions_g63zs_245{top:var(--markdown--spacing);right:var(--markdown--spacing);pointer-events:none;z-index:1;justify-content:flex-end;height:0;display:flex;position:sticky}._chatMessageMarkdown_g63zs_133 pre ._codeBlockActions_g63zs_245>*{pointer-events:auto}._chatMessageMarkdown_g63zs_133 pre~pre{margin-bottom:calc(var(--markdown--spacing)*2.5)}._chatMessageMarkdown_g63zs_133._singlePre_g63zs_261 pre{background:0 0;border-radius:0;margin:0}._chatMessageMarkdown_g63zs_133 blockquote{border-left:calc(var(--markdown--spacing)*.5)solid var(--color--foreground--shade-1);padding-left:calc(var(--markdown--spacing)*2);margin:calc(var(--markdown--spacing)*2)0;color:var(--color--text--tint-1);font-style:italic}._chatMessageMarkdown_g63zs_133 blockquote p:first-of-type:before{content:open-quote}._chatMessageMarkdown_g63zs_133 blockquote p:last-of-type:after{content:close-quote}._chatMessageMarkdown_g63zs_133 hr{border:none;border-top:var(--border-width)var(--border-style)var(--color--foreground);margin:calc(var(--markdown--spacing)*3)0}._chatMessageMarkdown_g63zs_133 hr+h2{margin-top:calc(var(--markdown--spacing)*3)}._chatMessageMarkdown_g63zs_133 ol{padding-left:calc(var(--markdown--spacing)*2);margin:calc(var(--markdown--spacing)*2)0;list-style-type:decimal;list-style-position:inside}._chatMessageMarkdown_g63zs_133 ol li+li{margin-top:calc(var(--markdown--spacing)*1.5)}._chatMessageMarkdown_g63zs_133 ol li::marker{font-family:var(--font-family--monospace);color:var(--color--text)}._chatMessageMarkdown_g63zs_133 ul{padding-left:calc(var(--markdown--spacing)*2);margin:calc(var(--markdown--spacing)*2)0;list-style-type:disc;list-style-position:inside}._chatMessageMarkdown_g63zs_133 ul li+li{margin-top:var(--markdown--spacing)}._chatMessageMarkdown_g63zs_133 ul li::marker{color:var(--color--foreground--shade-1)}._chatMessageMarkdown_g63zs_133 ul ul,._chatMessageMarkdown_g63zs_133 ol ol,._chatMessageMarkdown_g63zs_133 ul ol,._chatMessageMarkdown_g63zs_133 ol ul{margin-top:var(--markdown--spacing);padding-left:calc(var(--markdown--spacing)*3);margin-bottom:0}._chatMessageMarkdown_g63zs_133 ._footnoteRef_g63zs_320{font-size:var(--font-size--3xs);color:var(--color--text);background:var(--color--foreground--tint-1);border-radius:var(--radius--xl);padding:var(--spacing--4xs)var(--spacing--2xs);margin-inline:var(--spacing--5xs);vertical-align:middle;white-space:nowrap;line-height:1;font-weight:var(--font-weight--regular);display:inline-block}._chatMessageMarkdown_g63zs_133 ._tableContainer_g63zs_333{width:100%;overflow-x:auto}._chatMessageMarkdown_g63zs_133 table{table-layout:auto;width:100%;margin:calc(var(--markdown--spacing)*2)0;font-size:var(--font-size--sm);line-height:var(--line-height--lg)}._chatMessageMarkdown_g63zs_133 thead{border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:var(--color--neutral-300)}._chatMessageMarkdown_g63zs_133 thead th{color:var(--color--text--shade-1);font-weight:var(--font-weight--bold);vertical-align:bottom;padding-left:.6em;padding-right:.6em;text-align:start;padding-bottom:.8em}._chatMessageMarkdown_g63zs_133 thead th:first-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){padding-left:0}._chatMessageMarkdown_g63zs_133 thead th:first-child:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){padding-left:0}._chatMessageMarkdown_g63zs_133 thead th:first-child:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){padding-right:0}._chatMessageMarkdown_g63zs_133 thead th:first-child:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){padding-right:0}._chatMessageMarkdown_g63zs_133 thead th:last-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){padding-right:0}._chatMessageMarkdown_g63zs_133 thead th:last-child:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){padding-right:0}._chatMessageMarkdown_g63zs_133 thead th:last-child:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){padding-left:0}._chatMessageMarkdown_g63zs_133 thead th:last-child:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){padding-left:0}._chatMessageMarkdown_g63zs_133 tbody tr{border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:var(--color--neutral-200)}._chatMessageMarkdown_g63zs_133 tbody tr:last-child{border-bottom-width:0}._chatMessageMarkdown_g63zs_133 tbody td{vertical-align:baseline;padding-top:.8em;padding-left:.6em;padding-right:.6em;padding-bottom:.8em}._chatMessageMarkdown_g63zs_133 tbody td:first-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){padding-left:0}._chatMessageMarkdown_g63zs_133 tbody td:first-child:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){padding-left:0}._chatMessageMarkdown_g63zs_133 tbody td:first-child:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){padding-right:0}._chatMessageMarkdown_g63zs_133 tbody td:first-child:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){padding-right:0}._chatMessageMarkdown_g63zs_133 tbody td:last-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){padding-right:0}._chatMessageMarkdown_g63zs_133 tbody td:last-child:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){padding-right:0}._chatMessageMarkdown_g63zs_133 tbody td:last-child:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){padding-left:0}._chatMessageMarkdown_g63zs_133 tbody td:last-child:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){padding-left:0}._chatMessageMarkdown_g63zs_133 tfoot{border-top-style:solid;border-top-width:1px;border-top-color:var(--color--neutral-300)}._chatMessageMarkdown_g63zs_133 tfoot td{vertical-align:top;padding-top:.8em;padding-left:.6em;padding-right:.6em;padding-bottom:.8em}._chatMessageMarkdown_g63zs_133 tfoot td:first-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){padding-left:0}._chatMessageMarkdown_g63zs_133 tfoot td:first-child:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){padding-left:0}._chatMessageMarkdown_g63zs_133 tfoot td:first-child:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){padding-right:0}._chatMessageMarkdown_g63zs_133 tfoot td:first-child:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){padding-right:0}._chatMessageMarkdown_g63zs_133 tfoot td:last-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){padding-right:0}._chatMessageMarkdown_g63zs_133 tfoot td:last-child:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){padding-right:0}._chatMessageMarkdown_g63zs_133 tfoot td:last-child:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){padding-left:0}._chatMessageMarkdown_g63zs_133 tfoot td:last-child:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){padding-left:0}._chatMessageMarkdown_g63zs_133 td code{font-size:var(--font-size--xs)}._chatMessageMarkdown_g63zs_133 th,._chatMessageMarkdown_g63zs_133 td{text-align:start}._chatMessageMarkdown_g63zs_133 figure{margin:calc(var(--markdown--spacing)*2)0}._chatMessageMarkdown_g63zs_133 figcaption{margin-top:calc(var(--markdown--spacing)*1.5);text-align:center;font-size:var(--font-size--sm);color:var(--color--text--tint-1);font-style:italic}._command_g63zs_421{border:var(--border);border-radius:var(--radius--lg);padding:var(--spacing--sm);margin-bottom:var(--spacing--sm);text-align:left;width:100%;font-weight:var(--font-weight--regular);cursor:pointer;background-color:transparent;display:block}._message_bz6ov_125{scroll-margin-block:var(--spacing--sm);position:relative}._markdownContent_bz6ov_130>:last-child>:last-child{margin-bottom:0}._markdownContent_bz6ov_130>:first-child>:first-child{margin-top:0}._codeBlockActions_bz6ov_137>*{margin-top:-2px}._avatar_bz6ov_141{margin-right:var(--spacing--xs);background:var(--color--background);width:28px;height:28px;color:var(--color--text--tint-1);border-radius:50%;place-items:center;display:grid;position:absolute;top:0;right:100%}._compact_bz6ov_154 ._avatar_bz6ov_141{margin-left:calc(-1*var(--spacing--2xs));margin-bottom:var(--spacing--xs);position:static}._content_bz6ov_160{flex-direction:column;align-items:stretch;display:flex}@media (hover:hover){._content_bz6ov_160:hover ._actions_bz6ov_166,._content_bz6ov_160:focus-within ._actions_bz6ov_166{opacity:1;pointer-events:auto}}._attachments_bz6ov_172{gap:var(--spacing--2xs);flex-wrap:wrap;display:flex}._chatMessage_bz6ov_177 ._attachments_bz6ov_172{margin-top:var(--spacing--xs)}._editContainer_bz6ov_180 ._attachments_bz6ov_172{padding:var(--spacing--sm);padding-bottom:0;position:absolute;top:0}._chatMessage_bz6ov_177{gap:var(--spacing--2xs);overflow-wrap:break-word;font-size:var(--font-size--sm);flex-direction:column;line-height:1.5;display:flex;position:relative}._user_bz6ov_196 ._chatMessage_bz6ov_177{padding:var(--spacing--2xs)var(--spacing--sm);border-radius:var(--radius--xl);background-color:var(--color--background);white-space-collapse:preserve-breaks;width:fit-content;max-width:100%;font-size:var(--font-size--md);line-height:var(--line-height--xl)}._errorMessage_bz6ov_207{padding:var(--spacing--xs)var(--spacing--sm);border-radius:var(--radius--lg);background-color:var(--color--danger--tint-4);border:var(--border-width)var(--border-style)var(--color--danger--tint-3);color:var(--color--danger)}._errorMessage_bz6ov_207 p,._errorMessage_bz6ov_207 a{color:var(--color--danger)}._actions_bz6ov_166{margin-top:var(--spacing--2xs);transition:opacity .15s}@media (hover:hover){._actions_bz6ov_166{opacity:0;pointer-events:none}._actions_bz6ov_166:hover{opacity:1;pointer-events:auto}}._editContainer_bz6ov_180{width:100%;position:relative}._textarea_bz6ov_239{scroll-margin-block:var(--spacing--sm)}._textarea_bz6ov_239 textarea{padding:var(--spacing--sm);padding-top:calc(var(--spacing--sm) + var(--attachments--height));color:var(--color--text--shade-1);padding-bottom:64px;font-family:inherit;line-height:1.5em}._fileInput_bz6ov_252{display:none}._editFooter_bz6ov_256{width:100%;padding:var(--spacing--xs);pointer-events:none;justify-content:space-between;align-items:center;display:flex;position:absolute;bottom:0}._editFooter_bz6ov_256>*{pointer-events:auto}._editActions_bz6ov_270{gap:var(--spacing--2xs);margin-left:auto;display:flex}._typingIndicator_bz6ov_276{margin-top:var(--spacing--xs)}._callout_50o58_125{padding:var(--spacing--sm);border-radius:16px 16px 0 0;margin:-1px}._calloutCompact_50o58_131{width:100%;box-shadow:0 10px 24px rgba(0,0,0,.063)}._prompt_omdff_125{place-items:center;gap:0;width:100%;display:grid;position:static}._prompt_omdff_125 textarea{box-shadow:none;border-radius:0;padding:0}._prompt_omdff_125 .n8n-input__wrapper{--input--radius:0}._fileInput_omdff_143{display:none}._inputWrap_omdff_147{flex-direction:column;align-items:center;width:100%;display:flex;position:relative}._inputWrapper_omdff_155{gap:var(--spacing--xs);width:100%;padding:var(--spacing--xs);border-radius:var(--radius--xl);--compact--border-color:var(--lightningcss-light,var(--color--black-alpha-200))var(--lightningcss-dark,var(--color--white-alpha-100));--compact--border-color--hover:var(--lightningcss-light,var(--color--black-alpha-200))var(--lightningcss-dark,var(--color--white-alpha-200));--compact--border-color--focus:var(--lightningcss-light,var(--color--black-alpha-300))var(--lightningcss-dark,var(--color--white-alpha-300));box-shadow:0 10px 24px 0 rgba(0,0,0,.063),inset 0 0 0 1px var(--compact--border-color);background-color:transparent;flex-direction:column;display:flex}._inputWrapper_omdff_155:hover:not(:focus-within){box-shadow:0 10px 24px 0 rgba(0,0,0,.063),inset 0 0 0 1px var(--compact--border-color--hover)}._inputWrapper_omdff_155:focus-within{box-shadow:0 10px 24px 0 rgba(0,0,0,.063),inset 0 0 0 1px var(--compact--border-color--focus);outline:var(--focus--border-width)solid var(--focus--border-color);outline-offset:2px;transition:outline .15s ease-out}._inputWrapper_omdff_155 textarea{font-size:var(--font-size--md);color:var(--color--text--shade-1);box-shadow:none;border:none;border-radius:0;padding:0;line-height:1.5em}._inputWrapper_omdff_155 textarea::placeholder{color:var(--color--text--tint-1)}._inputWrapper_omdff_155 .n8n-input__wrapper{--input--border--shadow:0 0 0 0 transparent;--input--border--shadow--hover:0 0 0 0 transparent;--input--border--shadow--focus:0 0 0 0 transparent;--input--shadow:0 0 0 0 transparent;--input--shadow--hover:0 0 0 0 transparent;--input--shadow--focus:0 0 0 0 transparent;--input--radius:0;--input--color--background:transparent;outline:none}._inputWrapper_omdff_155 .n8n-input__wrapper:focus-within{outline:none}._inputWrapper_omdff_155._calloutVisible_omdff_209{border-radius:0 0 var(--radius--xl)var(--radius--xl)}._compactAttachments_omdff_213{gap:var(--spacing--2xs);flex-wrap:wrap;display:flex}._compactRow_omdff_219{align-items:center;gap:var(--spacing--4xs);width:100%;display:flex}._compactRow_omdff_219 .n8n-input{flex:1;min-width:0}._actions_omdff_230{align-self:flex-end;align-items:center;gap:var(--spacing--2xs);display:flex}._actions_omdff_230 button path{stroke-width:2.5px}._recording_omdff_240{animation:1.5s ease-in-out infinite _chatHubPromptRecordingPulse_omdff_1}@keyframes _chatHubPromptRecordingPulse_omdff_1{0%,to{opacity:1}50%{opacity:.6}}._prompt_2i08r_125{gap:var(--spacing--md);flex-direction:column;width:100%;display:flex;position:relative}._prompt_2i08r_125 textarea{font-size:var(--font-size--md);padding:var(--spacing--sm);padding-top:calc(var(--spacing--sm) + var(--attachments-el--height));color:var(--color--text--shade-1);border-radius:16px;padding-bottom:64px;line-height:1.5em;box-shadow:0 10px 24px rgba(0,0,0,.063)}._prompt_2i08r_125 textarea::placeholder{color:var(--color--text--tint-1)}._prompt_2i08r_125 .n8n-input__wrapper{--input--radius:16px}._prompt_2i08r_125._hasCallout_2i08r_148 textarea{padding-top:calc(var(--spacing--sm) + var(--attachments-el--height) + 52px)}._fileInput_2i08r_152{display:none}._header_2i08r_156,._footer_2i08r_157{z-index:10;background:var(--color--background--light-2);pointer-events:none;border-radius:16px;width:calc(100% - 2px);position:absolute;left:1px}._header_2i08r_156>*,._footer_2i08r_157>*{pointer-events:auto}._header_2i08r_156{top:1px}._footer_2i08r_157{padding:var(--spacing--sm);justify-content:space-between;align-items:flex-end;gap:var(--spacing--sm);display:flex;bottom:1px}._tools_2i08r_184{flex-grow:1}._toolsButton_2i08r_188{height:30px}._actions_2i08r_193{align-items:center;gap:var(--spacing--2xs);display:flex}._actions_2i08r_193 button path{stroke-width:2.5px}._attachments_2i08r_202{gap:var(--spacing--2xs);padding:var(--spacing--sm);flex-wrap:wrap;padding-bottom:0;display:flex}._recording_2i08r_210{animation:1.5s ease-in-out infinite _chatHubPromptRecordingPulse_2i08r_1}@keyframes _chatHubPromptRecordingPulse_2i08r_1{0%,to{opacity:1}50%{opacity:.6}}._container_140do_125{gap:var(--spacing--xs);flex-wrap:wrap;justify-content:center;display:flex}._chip_140do_132{padding-right:var(--spacing--sm);gap:var(--spacing--3xs);border-radius:999px;font-weight:500}._emoji_140do_139{font-size:var(--font-size--sm);line-height:1}._greetings_17frw_125{flex-direction:column;align-self:center;align-items:center;display:flex}._agentCard_17frw_132{text-align:center;flex-direction:column;align-items:center;max-width:640px;display:flex}._agentName_17frw_140{margin-top:var(--spacing--2xs);color:var(--color--text--shade-1);font-size:24px;font-weight:600;line-height:32px}._agentDescription_17frw_148{line-clamp:9;-webkit-line-clamp:8;color:var(--color--text--tint-1);font-size:var(--font-size--sm);-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}._suggestions_17frw_158{margin-top:var(--spacing--md)}._skeletonName_17frw_162{width:160px;margin-top:var(--spacing--2xs)}._skeletonDescription_17frw_167{width:300px;margin-top:var(--spacing--2xs)}._skeletonPrompts_17frw_172{gap:var(--spacing--3xs);justify-content:center;display:flex}._skeletonChip_17frw_178{width:140px}._header_17frw_182{align-items:center;gap:var(--spacing--4xs);display:flex}._inlineIcon_17frw_188{flex-shrink:0;margin-top:-4px;margin-bottom:-4px}\n/*$vite$:1*/',document.head.appendChild(ke);try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(g=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[g]="eb944a45-8e62-4e1f-ad56-18d1ec2027ab",t._sentryDebugIdIdentifier="sentry-dbid-eb944a45-8e62-4e1f-ad56-18d1ec2027ab")}catch(t){}var t,g;we=J({},[["render",Qe],["__cssModules",{$style:{typing:"_typing_v8rma_125",blink:"_blink_v8rma_1"}}]]),ze=J(h({__name:"CopyButton",props:{content:{}},setup(e){const t=N(),n=ae(),s=l(!1),i=d((()=>s.value?t.baseText("generic.copied"):t.baseText("generic.copy")));async function o(){await n.copy(e.content),s.value=!0,setTimeout((()=>{s.value=!1}),1e3)}return(e,t)=>(a(),A(f(V),{placement:"bottom","show-after":300},{content:C((()=>[r(u(i.value),1)])),default:C((()=>[v(f(F),{variant:"ghost",icon:s.value?"check":"copy",size:"medium",class:y(e.$style.button),tabindex:"0","aria-label":i.value,onClick:o},null,8,["icon","class","aria-label"])])),_:1}))}}),[["__cssModules",{$style:{button:"_button_1pgkm_125"}}]]),ve=h({__name:"ChatMessageActions",props:{message:{},isSpeechSynthesisAvailable:{type:Boolean},isSpeaking:{type:Boolean},hasSessionStreaming:{type:Boolean}},emits:["edit","regenerate","switchAlternative","readAloud"],setup(e,{emit:t}){const n=N(),s=W(),i=te(),l=t,c=d((()=>e.message.alternatives.findIndex((t=>t===e.message.id)))),h=d((()=>e.message.content.map((e=>e.content)).join("\n\n"))),m=d((()=>{if(i.canViewWorkflows&&"ai"===e.message.type&&"n8n"===e.message.provider&&e.message.executionId)return s.resolve({name:ne.EXECUTION_PREVIEW,params:{name:e.message.workflowId,executionId:e.message.executionId}}).href})),g=d((()=>ue(e.message))),x=d((()=>he(e.message)));function k(){l("edit")}function w(){l("regenerate")}function z(){l("readAloud")}return(t,s)=>(a(),o("div",{class:y(t.$style.actions),"data-test-id":"chat-message-actions"},[v(ze,{content:h.value,"data-test-id":"chat-message-copy"},null,8,["content"]),e.isSpeechSynthesisAvailable&&"ai"===e.message.type?(a(),A(f(V),{key:0,placement:"bottom","show-after":300},{content:C((()=>[r(u(e.isSpeaking?f(n).baseText("chatHub.message.actions.stopReading"):f(n).baseText("chatHub.message.actions.readAloud")),1)])),default:C((()=>[v(f(F),{variant:"ghost",icon:e.isSpeaking?"volume-x":"volume-2",size:"medium",onClick:z},null,8,["icon"])])),_:1})):p("",!0),g.value?(a(),A(f(V),{key:1,placement:"bottom","show-after":300},{content:C((()=>[r(u(f(n).baseText("chatHub.message.actions.edit")),1)])),default:C((()=>[v(f(F),{variant:"ghost",icon:"pen",size:"medium","data-test-id":"chat-message-edit",disabled:e.hasSessionStreaming,onClick:k},null,8,["disabled"])])),_:1})):p("",!0),x.value?(a(),A(f(V),{key:2,placement:"bottom","show-after":300},{content:C((()=>[r(u(f(n).baseText("chatHub.message.actions.regenerate")),1)])),default:C((()=>[v(f(F),{variant:"ghost",icon:"refresh-cw",size:"medium","data-test-id":"chat-message-regenerate",disabled:e.hasSessionStreaming,onClick:w},null,8,["disabled"])])),_:1})):p("",!0),m.value?(a(),A(f(V),{key:3,placement:"bottom","show-after":300},{content:C((()=>[r(u(f(n).baseText("chatHub.message.actions.executionId"))+": ",1),v(f(j),{to:m.value,"new-window":!0},{default:C((()=>[r(u(e.message.executionId),1)])),_:1},8,["to"])])),default:C((()=>[v(f(F),{variant:"ghost",icon:"info",size:"medium","data-test-id":"chat-message-info"})])),_:1})):p("",!0),e.message.alternatives.length>1?(a(),o(b,{key:4},[v(f(F),{variant:"ghost",icon:"chevron-left",size:"medium",disabled:e.hasSessionStreaming||0===c.value,"data-test-id":"chat-message-prev-alternative",onClick:s[0]||(s[0]=n=>t.$emit("switchAlternative",e.message.alternatives[c.value-1]))},null,8,["disabled"]),v(f(G),{size:"medium",color:"text-base"},{default:C((()=>[r(u(`${c.value+1}/${e.message.alternatives.length}`),1)])),_:1}),v(f(F),{variant:"ghost",icon:"chevron-right",size:"medium",disabled:e.hasSessionStreaming||c.value===e.message.alternatives.length-1,"data-test-id":"chat-message-next-alternative",onClick:s[1]||(s[1]=n=>t.$emit("switchAlternative",e.message.alternatives[c.value+1]))},null,8,["disabled"])],64)):p("",!0)],2))}}),_e=J(ve,[["__cssModules",{$style:{actions:"_actions_1dz1l_125"}}],["__scopeId","data-v-ec3f5f08"]]),Se=s(((e,t)=>{var n,s;n="undefined"!=typeof self?self:e,s=function(){return function(){var e={d:function(t,n){for(var s in n)e.o(n,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:n[s]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{default:function(){return Fs}});class n{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;let s,a,r="KaTeX parse error: "+e;const i=t&&t.loc;if(i&&i.start<=i.end){const e=i.lexer.input;s=i.start,a=i.end,s===e.length?r+=" at end of input: ":r+=" at position "+(s+1)+": ";const t=e.slice(s,a).replace(/[^]/g,"$&̲");let n,o;n=s>15?"…"+e.slice(s-15,s):e.slice(0,s),o=a+15<e.length?e.slice(a,a+15)+"…":e.slice(a),r+=n+t+o}const o=new Error(r);return o.name="ParseError",o.__proto__=n.prototype,o.position=s,null!=s&&null!=a&&(o.length=a-s),o.rawMessage=e,o}}n.prototype.__proto__=Error.prototype;var s=n;const a=/([A-Z])/g,r={"&":"&",">":">","<":"<",'"':""","'":"'"},i=/[&><"']/g,o=function(e){return"ordgroup"===e.type||"color"===e.type?1===e.body.length?o(e.body[0]):e:"font"===e.type?o(e.body):e};var l={deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(i,(e=>r[e]))},hyphenate:function(e){return e.replace(a,"-$1").toLowerCase()},getBaseElem:o,isCharacterBox:function(e){const t=o(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){const t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?":"!==t[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"}};const c={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function h(e){if(e.default)return e.default;const t=e.type,n=Array.isArray(t)?t[0]:t;if("string"!=typeof n)return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class m{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(const t in c)if(c.hasOwnProperty(t)){const n=c[t];this[t]=void 0!==e[t]?n.processor?n.processor(e[t]):e[t]:h(n)}}reportNonstrict(e,t,n){let a=this.strict;if("function"==typeof a&&(a=a(e,t,n)),a&&"ignore"!==a){if(!0===a||"error"===a)throw new s("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n);"warn"===a?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+a+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,n){let s=this.strict;if("function"==typeof s)try{s=s(e,t,n)}catch(a){s="error"}return!(!s||"ignore"===s||!0!==s&&"error"!==s&&("warn"===s?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+s+"': "+t+" ["+e+"]"),1)))}isTrusted(e){if(e.url&&!e.protocol){const t=l.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}const t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)}}class d{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return u[p[this.id]]}sub(){return u[g[this.id]]}fracNum(){return u[f[this.id]]}fracDen(){return u[b[this.id]]}cramp(){return u[y[this.id]]}text(){return u[x[this.id]]}isTight(){return this.size>=2}}const u=[new d(0,0,!1),new d(1,0,!0),new d(2,1,!1),new d(3,1,!0),new d(4,2,!1),new d(5,2,!0),new d(6,3,!1),new d(7,3,!0)],p=[4,5,4,5,6,7,6,7],g=[5,5,5,5,7,7,7,7],f=[2,3,4,5,6,7,6,7],b=[3,3,5,5,7,7,7,7],y=[1,1,3,3,5,5,7,7],x=[0,1,2,3,2,3,2,3];var k={DISPLAY:u[0],TEXT:u[2],SCRIPT:u[4],SCRIPTSCRIPT:u[6]};const w=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],z=[];function v(e){for(let t=0;t<z.length;t+=2)if(e>=z[t]&&e<=z[t+1])return!0;return!1}w.forEach((e=>e.blocks.forEach((e=>z.push(...e)))));const _=80,S=function(e,t,n){t*=1e3;let s="";switch(e){case"sqrtMain":s=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,_);break;case"sqrtSize1":s=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,_);break;case"sqrtSize2":s=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,_);break;case"sqrtSize3":s=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,_);break;case"sqrtSize4":s=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,_);break;case"sqrtTall":s=function(e,t,n){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(n-54-t-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"}(t,_,n)}return s},M=function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}},A={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};var T={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}};const B={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},C={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function I(e,t,n){if(!T[t])throw new Error("Font metrics not found for font: "+t+".");let s=e.charCodeAt(0),a=T[t][s];if(!a&&e[0]in C&&(s=C[e[0]].charCodeAt(0),a=T[t][s]),a||"text"!==n||v(s)&&(a=T[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}const q={},D=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],H=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],N=function(e,t){return t.size<2?e:D[e-1][t.size-1]};class R{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||R.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=H[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){const t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(const n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return new R(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:N(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:H[e-1]})}havingBaseStyle(e){e=e||this.style.text();const t=N(R.BASESIZE,e);return this.size===t&&this.textSize===R.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){let e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==R.BASESIZE?["sizing","reset-size"+this.size,"size"+R.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){let t;if(t=e>=5?0:e>=3?1:2,!q[t]){const e=q[t]={cssEmPerMu:B.quad[t]/18};for(const n in B)B.hasOwnProperty(n)&&(e[n]=B[n][t])}return q[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}R.BASESIZE=6;var E=R;const P={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},O={ex:!0,em:!0,mu:!0},L=function(e){return"string"!=typeof e&&(e=e.unit),e in P||e in O||"ex"===e},F=function(e,t){let n;if(e.unit in P)n=P[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{let a;if(a=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=a.fontMetrics().xHeight;else{if("em"!==e.unit)throw new s("Invalid unit: '"+e.unit+"'");n=a.fontMetrics().quad}a!==t&&(n*=a.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},V=function(e){return+e.toFixed(4)+"em"},X=function(e){return e.filter((e=>e)).join(" ")},$=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");const e=t.getColor();e&&(this.style.color=e)}},K=function(e){const t=document.createElement(e);t.className=X(this.classes);for(const n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(const n in this.attributes)this.attributes.hasOwnProperty(n)&&t.setAttribute(n,this.attributes[n]);for(let n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t},U=/[\s"'>/=\x00-\x1f]/,G=function(e){let t="<"+e;this.classes.length&&(t+=' class="'+l.escape(X(this.classes))+'"');let n="";for(const s in this.style)this.style.hasOwnProperty(s)&&(n+=l.hyphenate(s)+":"+this.style[s]+";");n&&(t+=' style="'+l.escape(n)+'"');for(const a in this.attributes)if(this.attributes.hasOwnProperty(a)){if(U.test(a))throw new s("Invalid attribute name '"+a+"'");t+=" "+a+'="'+l.escape(this.attributes[a])+'"'}t+=">";for(let s=0;s<this.children.length;s++)t+=this.children[s].toMarkup();return t+="</"+e+">",t};class W{constructor(e,t,n,s){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,$.call(this,e,n,s),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return K.call(this,"span")}toMarkup(){return G.call(this,"span")}}class j{constructor(e,t,n,s){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,$.call(this,t,s),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return K.call(this,"a")}toMarkup(){return G.call(this,"a")}}class Y{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){const e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(const t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){let e='<img src="'+l.escape(this.src)+'" alt="'+l.escape(this.alt)+'"',t="";for(const n in this.style)this.style.hasOwnProperty(n)&&(t+=l.hyphenate(n)+":"+this.style[n]+";");return t&&(e+=' style="'+l.escape(t)+'"'),e+="'/>",e}}const Z={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"};class Q{constructor(e,t,n,s,a,r,i,o){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=s||0,this.skew=a||0,this.width=r||0,this.classes=i||[],this.style=o||{},this.maxFontSize=0;const l=function(e){for(let t=0;t<w.length;t++){const n=w[t];for(let t=0;t<n.blocks.length;t++){const s=n.blocks[t];if(e>=s[0]&&e<=s[1])return n.name}}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Z[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){const e=document.createTextNode(this.text);let t=null;this.italic>0&&(t=document.createElement("span"),t.style.marginRight=V(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=X(this.classes));for(const n in this.style)this.style.hasOwnProperty(n)&&(t=t||document.createElement("span"),t.style[n]=this.style[n]);return t?(t.appendChild(e),t):e}toMarkup(){let e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=l.escape(X(this.classes)),t+='"');let n="";this.italic>0&&(n+="margin-right:"+this.italic+"em;");for(const a in this.style)this.style.hasOwnProperty(a)&&(n+=l.hyphenate(a)+":"+this.style[a]+";");n&&(e=!0,t+=' style="'+l.escape(n)+'"');const s=l.escape(this.text);return e?(t+=">",t+=s,t+="</span>",t):s}}class J{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){const e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(let t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){let e='<svg xmlns="http://www.w3.org/2000/svg"';for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+l.escape(this.attributes[t])+'"');e+=">";for(let t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e+="</svg>",e}}class ee{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){const e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",A[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+l.escape(this.alternate)+'"/>':'<path d="'+l.escape(A[this.pathName])+'"/>'}}class te{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){const e=document.createElementNS("http://www.w3.org/2000/svg","line");for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){let e="<line";for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+l.escape(this.attributes[t])+'"');return e+="/>",e}}function ne(e){if(e instanceof Q)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}const se={bin:1,close:1,inner:1,open:1,punct:1,rel:1},ae={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},re={math:{},text:{}};var ie=re;function oe(e,t,n,s,a,r){re[e][a]={font:t,group:n,replace:s},r&&s&&(re[e][s]=re[e][a])}const le="math",ce="text",he="main",me="ams",de="accent-token",ue="bin",pe="close",ge="inner",fe="mathord",be="op-token",ye="open",xe="punct",ke="rel",we="spacing",ze="textord";oe(le,he,ke,"≡","\\equiv",!0),oe(le,he,ke,"≺","\\prec",!0),oe(le,he,ke,"≻","\\succ",!0),oe(le,he,ke,"∼","\\sim",!0),oe(le,he,ke,"⊥","\\perp"),oe(le,he,ke,"⪯","\\preceq",!0),oe(le,he,ke,"⪰","\\succeq",!0),oe(le,he,ke,"≃","\\simeq",!0),oe(le,he,ke,"∣","\\mid",!0),oe(le,he,ke,"≪","\\ll",!0),oe(le,he,ke,"≫","\\gg",!0),oe(le,he,ke,"≍","\\asymp",!0),oe(le,he,ke,"∥","\\parallel"),oe(le,he,ke,"⋈","\\bowtie",!0),oe(le,he,ke,"⌣","\\smile",!0),oe(le,he,ke,"⊑","\\sqsubseteq",!0),oe(le,he,ke,"⊒","\\sqsupseteq",!0),oe(le,he,ke,"≐","\\doteq",!0),oe(le,he,ke,"⌢","\\frown",!0),oe(le,he,ke,"∋","\\ni",!0),oe(le,he,ke,"∝","\\propto",!0),oe(le,he,ke,"⊢","\\vdash",!0),oe(le,he,ke,"⊣","\\dashv",!0),oe(le,he,ke,"∋","\\owns"),oe(le,he,xe,".","\\ldotp"),oe(le,he,xe,"⋅","\\cdotp"),oe(le,he,ze,"#","\\#"),oe(ce,he,ze,"#","\\#"),oe(le,he,ze,"&","\\&"),oe(ce,he,ze,"&","\\&"),oe(le,he,ze,"ℵ","\\aleph",!0),oe(le,he,ze,"∀","\\forall",!0),oe(le,he,ze,"ℏ","\\hbar",!0),oe(le,he,ze,"∃","\\exists",!0),oe(le,he,ze,"∇","\\nabla",!0),oe(le,he,ze,"♭","\\flat",!0),oe(le,he,ze,"ℓ","\\ell",!0),oe(le,he,ze,"♮","\\natural",!0),oe(le,he,ze,"♣","\\clubsuit",!0),oe(le,he,ze,"℘","\\wp",!0),oe(le,he,ze,"♯","\\sharp",!0),oe(le,he,ze,"♢","\\diamondsuit",!0),oe(le,he,ze,"ℜ","\\Re",!0),oe(le,he,ze,"♡","\\heartsuit",!0),oe(le,he,ze,"ℑ","\\Im",!0),oe(le,he,ze,"♠","\\spadesuit",!0),oe(le,he,ze,"§","\\S",!0),oe(ce,he,ze,"§","\\S"),oe(le,he,ze,"¶","\\P",!0),oe(ce,he,ze,"¶","\\P"),oe(le,he,ze,"†","\\dag"),oe(ce,he,ze,"†","\\dag"),oe(ce,he,ze,"†","\\textdagger"),oe(le,he,ze,"‡","\\ddag"),oe(ce,he,ze,"‡","\\ddag"),oe(ce,he,ze,"‡","\\textdaggerdbl"),oe(le,he,pe,"⎱","\\rmoustache",!0),oe(le,he,ye,"⎰","\\lmoustache",!0),oe(le,he,pe,"⟯","\\rgroup",!0),oe(le,he,ye,"⟮","\\lgroup",!0),oe(le,he,ue,"∓","\\mp",!0),oe(le,he,ue,"⊖","\\ominus",!0),oe(le,he,ue,"⊎","\\uplus",!0),oe(le,he,ue,"⊓","\\sqcap",!0),oe(le,he,ue,"∗","\\ast"),oe(le,he,ue,"⊔","\\sqcup",!0),oe(le,he,ue,"◯","\\bigcirc",!0),oe(le,he,ue,"∙","\\bullet",!0),oe(le,he,ue,"‡","\\ddagger"),oe(le,he,ue,"≀","\\wr",!0),oe(le,he,ue,"⨿","\\amalg"),oe(le,he,ue,"&","\\And"),oe(le,he,ke,"⟵","\\longleftarrow",!0),oe(le,he,ke,"⇐","\\Leftarrow",!0),oe(le,he,ke,"⟸","\\Longleftarrow",!0),oe(le,he,ke,"⟶","\\longrightarrow",!0),oe(le,he,ke,"⇒","\\Rightarrow",!0),oe(le,he,ke,"⟹","\\Longrightarrow",!0),oe(le,he,ke,"↔","\\leftrightarrow",!0),oe(le,he,ke,"⟷","\\longleftrightarrow",!0),oe(le,he,ke,"⇔","\\Leftrightarrow",!0),oe(le,he,ke,"⟺","\\Longleftrightarrow",!0),oe(le,he,ke,"↦","\\mapsto",!0),oe(le,he,ke,"⟼","\\longmapsto",!0),oe(le,he,ke,"↗","\\nearrow",!0),oe(le,he,ke,"↩","\\hookleftarrow",!0),oe(le,he,ke,"↪","\\hookrightarrow",!0),oe(le,he,ke,"↘","\\searrow",!0),oe(le,he,ke,"↼","\\leftharpoonup",!0),oe(le,he,ke,"⇀","\\rightharpoonup",!0),oe(le,he,ke,"↙","\\swarrow",!0),oe(le,he,ke,"↽","\\leftharpoondown",!0),oe(le,he,ke,"⇁","\\rightharpoondown",!0),oe(le,he,ke,"↖","\\nwarrow",!0),oe(le,he,ke,"⇌","\\rightleftharpoons",!0),oe(le,me,ke,"≮","\\nless",!0),oe(le,me,ke,"","\\@nleqslant"),oe(le,me,ke,"","\\@nleqq"),oe(le,me,ke,"⪇","\\lneq",!0),oe(le,me,ke,"≨","\\lneqq",!0),oe(le,me,ke,"","\\@lvertneqq"),oe(le,me,ke,"⋦","\\lnsim",!0),oe(le,me,ke,"⪉","\\lnapprox",!0),oe(le,me,ke,"⊀","\\nprec",!0),oe(le,me,ke,"⋠","\\npreceq",!0),oe(le,me,ke,"⋨","\\precnsim",!0),oe(le,me,ke,"⪹","\\precnapprox",!0),oe(le,me,ke,"≁","\\nsim",!0),oe(le,me,ke,"","\\@nshortmid"),oe(le,me,ke,"∤","\\nmid",!0),oe(le,me,ke,"⊬","\\nvdash",!0),oe(le,me,ke,"⊭","\\nvDash",!0),oe(le,me,ke,"⋪","\\ntriangleleft"),oe(le,me,ke,"⋬","\\ntrianglelefteq",!0),oe(le,me,ke,"⊊","\\subsetneq",!0),oe(le,me,ke,"","\\@varsubsetneq"),oe(le,me,ke,"⫋","\\subsetneqq",!0),oe(le,me,ke,"","\\@varsubsetneqq"),oe(le,me,ke,"≯","\\ngtr",!0),oe(le,me,ke,"","\\@ngeqslant"),oe(le,me,ke,"","\\@ngeqq"),oe(le,me,ke,"⪈","\\gneq",!0),oe(le,me,ke,"≩","\\gneqq",!0),oe(le,me,ke,"","\\@gvertneqq"),oe(le,me,ke,"⋧","\\gnsim",!0),oe(le,me,ke,"⪊","\\gnapprox",!0),oe(le,me,ke,"⊁","\\nsucc",!0),oe(le,me,ke,"⋡","\\nsucceq",!0),oe(le,me,ke,"⋩","\\succnsim",!0),oe(le,me,ke,"⪺","\\succnapprox",!0),oe(le,me,ke,"≆","\\ncong",!0),oe(le,me,ke,"","\\@nshortparallel"),oe(le,me,ke,"∦","\\nparallel",!0),oe(le,me,ke,"⊯","\\nVDash",!0),oe(le,me,ke,"⋫","\\ntriangleright"),oe(le,me,ke,"⋭","\\ntrianglerighteq",!0),oe(le,me,ke,"","\\@nsupseteqq"),oe(le,me,ke,"⊋","\\supsetneq",!0),oe(le,me,ke,"","\\@varsupsetneq"),oe(le,me,ke,"⫌","\\supsetneqq",!0),oe(le,me,ke,"","\\@varsupsetneqq"),oe(le,me,ke,"⊮","\\nVdash",!0),oe(le,me,ke,"⪵","\\precneqq",!0),oe(le,me,ke,"⪶","\\succneqq",!0),oe(le,me,ke,"","\\@nsubseteqq"),oe(le,me,ue,"⊴","\\unlhd"),oe(le,me,ue,"⊵","\\unrhd"),oe(le,me,ke,"↚","\\nleftarrow",!0),oe(le,me,ke,"↛","\\nrightarrow",!0),oe(le,me,ke,"⇍","\\nLeftarrow",!0),oe(le,me,ke,"⇏","\\nRightarrow",!0),oe(le,me,ke,"↮","\\nleftrightarrow",!0),oe(le,me,ke,"⇎","\\nLeftrightarrow",!0),oe(le,me,ke,"△","\\vartriangle"),oe(le,me,ze,"ℏ","\\hslash"),oe(le,me,ze,"▽","\\triangledown"),oe(le,me,ze,"◊","\\lozenge"),oe(le,me,ze,"Ⓢ","\\circledS"),oe(le,me,ze,"®","\\circledR"),oe(ce,me,ze,"®","\\circledR"),oe(le,me,ze,"∡","\\measuredangle",!0),oe(le,me,ze,"∄","\\nexists"),oe(le,me,ze,"℧","\\mho"),oe(le,me,ze,"Ⅎ","\\Finv",!0),oe(le,me,ze,"⅁","\\Game",!0),oe(le,me,ze,"‵","\\backprime"),oe(le,me,ze,"▲","\\blacktriangle"),oe(le,me,ze,"▼","\\blacktriangledown"),oe(le,me,ze,"■","\\blacksquare"),oe(le,me,ze,"⧫","\\blacklozenge"),oe(le,me,ze,"★","\\bigstar"),oe(le,me,ze,"∢","\\sphericalangle",!0),oe(le,me,ze,"∁","\\complement",!0),oe(le,me,ze,"ð","\\eth",!0),oe(ce,he,ze,"ð","ð"),oe(le,me,ze,"╱","\\diagup"),oe(le,me,ze,"╲","\\diagdown"),oe(le,me,ze,"□","\\square"),oe(le,me,ze,"□","\\Box"),oe(le,me,ze,"◊","\\Diamond"),oe(le,me,ze,"¥","\\yen",!0),oe(ce,me,ze,"¥","\\yen",!0),oe(le,me,ze,"✓","\\checkmark",!0),oe(ce,me,ze,"✓","\\checkmark"),oe(le,me,ze,"ℶ","\\beth",!0),oe(le,me,ze,"ℸ","\\daleth",!0),oe(le,me,ze,"ℷ","\\gimel",!0),oe(le,me,ze,"ϝ","\\digamma",!0),oe(le,me,ze,"ϰ","\\varkappa"),oe(le,me,ye,"┌","\\@ulcorner",!0),oe(le,me,pe,"┐","\\@urcorner",!0),oe(le,me,ye,"└","\\@llcorner",!0),oe(le,me,pe,"┘","\\@lrcorner",!0),oe(le,me,ke,"≦","\\leqq",!0),oe(le,me,ke,"⩽","\\leqslant",!0),oe(le,me,ke,"⪕","\\eqslantless",!0),oe(le,me,ke,"≲","\\lesssim",!0),oe(le,me,ke,"⪅","\\lessapprox",!0),oe(le,me,ke,"≊","\\approxeq",!0),oe(le,me,ue,"⋖","\\lessdot"),oe(le,me,ke,"⋘","\\lll",!0),oe(le,me,ke,"≶","\\lessgtr",!0),oe(le,me,ke,"⋚","\\lesseqgtr",!0),oe(le,me,ke,"⪋","\\lesseqqgtr",!0),oe(le,me,ke,"≑","\\doteqdot"),oe(le,me,ke,"≓","\\risingdotseq",!0),oe(le,me,ke,"≒","\\fallingdotseq",!0),oe(le,me,ke,"∽","\\backsim",!0),oe(le,me,ke,"⋍","\\backsimeq",!0),oe(le,me,ke,"⫅","\\subseteqq",!0),oe(le,me,ke,"⋐","\\Subset",!0),oe(le,me,ke,"⊏","\\sqsubset",!0),oe(le,me,ke,"≼","\\preccurlyeq",!0),oe(le,me,ke,"⋞","\\curlyeqprec",!0),oe(le,me,ke,"≾","\\precsim",!0),oe(le,me,ke,"⪷","\\precapprox",!0),oe(le,me,ke,"⊲","\\vartriangleleft"),oe(le,me,ke,"⊴","\\trianglelefteq"),oe(le,me,ke,"⊨","\\vDash",!0),oe(le,me,ke,"⊪","\\Vvdash",!0),oe(le,me,ke,"⌣","\\smallsmile"),oe(le,me,ke,"⌢","\\smallfrown"),oe(le,me,ke,"≏","\\bumpeq",!0),oe(le,me,ke,"≎","\\Bumpeq",!0),oe(le,me,ke,"≧","\\geqq",!0),oe(le,me,ke,"⩾","\\geqslant",!0),oe(le,me,ke,"⪖","\\eqslantgtr",!0),oe(le,me,ke,"≳","\\gtrsim",!0),oe(le,me,ke,"⪆","\\gtrapprox",!0),oe(le,me,ue,"⋗","\\gtrdot"),oe(le,me,ke,"⋙","\\ggg",!0),oe(le,me,ke,"≷","\\gtrless",!0),oe(le,me,ke,"⋛","\\gtreqless",!0),oe(le,me,ke,"⪌","\\gtreqqless",!0),oe(le,me,ke,"≖","\\eqcirc",!0),oe(le,me,ke,"≗","\\circeq",!0),oe(le,me,ke,"≜","\\triangleq",!0),oe(le,me,ke,"∼","\\thicksim"),oe(le,me,ke,"≈","\\thickapprox"),oe(le,me,ke,"⫆","\\supseteqq",!0),oe(le,me,ke,"⋑","\\Supset",!0),oe(le,me,ke,"⊐","\\sqsupset",!0),oe(le,me,ke,"≽","\\succcurlyeq",!0),oe(le,me,ke,"⋟","\\curlyeqsucc",!0),oe(le,me,ke,"≿","\\succsim",!0),oe(le,me,ke,"⪸","\\succapprox",!0),oe(le,me,ke,"⊳","\\vartriangleright"),oe(le,me,ke,"⊵","\\trianglerighteq"),oe(le,me,ke,"⊩","\\Vdash",!0),oe(le,me,ke,"∣","\\shortmid"),oe(le,me,ke,"∥","\\shortparallel"),oe(le,me,ke,"≬","\\between",!0),oe(le,me,ke,"⋔","\\pitchfork",!0),oe(le,me,ke,"∝","\\varpropto"),oe(le,me,ke,"◀","\\blacktriangleleft"),oe(le,me,ke,"∴","\\therefore",!0),oe(le,me,ke,"∍","\\backepsilon"),oe(le,me,ke,"▶","\\blacktriangleright"),oe(le,me,ke,"∵","\\because",!0),oe(le,me,ke,"⋘","\\llless"),oe(le,me,ke,"⋙","\\gggtr"),oe(le,me,ue,"⊲","\\lhd"),oe(le,me,ue,"⊳","\\rhd"),oe(le,me,ke,"≂","\\eqsim",!0),oe(le,he,ke,"⋈","\\Join"),oe(le,me,ke,"≑","\\Doteq",!0),oe(le,me,ue,"∔","\\dotplus",!0),oe(le,me,ue,"∖","\\smallsetminus"),oe(le,me,ue,"⋒","\\Cap",!0),oe(le,me,ue,"⋓","\\Cup",!0),oe(le,me,ue,"⩞","\\doublebarwedge",!0),oe(le,me,ue,"⊟","\\boxminus",!0),oe(le,me,ue,"⊞","\\boxplus",!0),oe(le,me,ue,"⋇","\\divideontimes",!0),oe(le,me,ue,"⋉","\\ltimes",!0),oe(le,me,ue,"⋊","\\rtimes",!0),oe(le,me,ue,"⋋","\\leftthreetimes",!0),oe(le,me,ue,"⋌","\\rightthreetimes",!0),oe(le,me,ue,"⋏","\\curlywedge",!0),oe(le,me,ue,"⋎","\\curlyvee",!0),oe(le,me,ue,"⊝","\\circleddash",!0),oe(le,me,ue,"⊛","\\circledast",!0),oe(le,me,ue,"⋅","\\centerdot"),oe(le,me,ue,"⊺","\\intercal",!0),oe(le,me,ue,"⋒","\\doublecap"),oe(le,me,ue,"⋓","\\doublecup"),oe(le,me,ue,"⊠","\\boxtimes",!0),oe(le,me,ke,"⇢","\\dashrightarrow",!0),oe(le,me,ke,"⇠","\\dashleftarrow",!0),oe(le,me,ke,"⇇","\\leftleftarrows",!0),oe(le,me,ke,"⇆","\\leftrightarrows",!0),oe(le,me,ke,"⇚","\\Lleftarrow",!0),oe(le,me,ke,"↞","\\twoheadleftarrow",!0),oe(le,me,ke,"↢","\\leftarrowtail",!0),oe(le,me,ke,"↫","\\looparrowleft",!0),oe(le,me,ke,"⇋","\\leftrightharpoons",!0),oe(le,me,ke,"↶","\\curvearrowleft",!0),oe(le,me,ke,"↺","\\circlearrowleft",!0),oe(le,me,ke,"↰","\\Lsh",!0),oe(le,me,ke,"⇈","\\upuparrows",!0),oe(le,me,ke,"↿","\\upharpoonleft",!0),oe(le,me,ke,"⇃","\\downharpoonleft",!0),oe(le,he,ke,"⊶","\\origof",!0),oe(le,he,ke,"⊷","\\imageof",!0),oe(le,me,ke,"⊸","\\multimap",!0),oe(le,me,ke,"↭","\\leftrightsquigarrow",!0),oe(le,me,ke,"⇉","\\rightrightarrows",!0),oe(le,me,ke,"⇄","\\rightleftarrows",!0),oe(le,me,ke,"↠","\\twoheadrightarrow",!0),oe(le,me,ke,"↣","\\rightarrowtail",!0),oe(le,me,ke,"↬","\\looparrowright",!0),oe(le,me,ke,"↷","\\curvearrowright",!0),oe(le,me,ke,"↻","\\circlearrowright",!0),oe(le,me,ke,"↱","\\Rsh",!0),oe(le,me,ke,"⇊","\\downdownarrows",!0),oe(le,me,ke,"↾","\\upharpoonright",!0),oe(le,me,ke,"⇂","\\downharpoonright",!0),oe(le,me,ke,"⇝","\\rightsquigarrow",!0),oe(le,me,ke,"⇝","\\leadsto"),oe(le,me,ke,"⇛","\\Rrightarrow",!0),oe(le,me,ke,"↾","\\restriction"),oe(le,he,ze,"‘","`"),oe(le,he,ze,"$","\\$"),oe(ce,he,ze,"$","\\$"),oe(ce,he,ze,"$","\\textdollar"),oe(le,he,ze,"%","\\%"),oe(ce,he,ze,"%","\\%"),oe(le,he,ze,"_","\\_"),oe(ce,he,ze,"_","\\_"),oe(ce,he,ze,"_","\\textunderscore"),oe(le,he,ze,"∠","\\angle",!0),oe(le,he,ze,"∞","\\infty",!0),oe(le,he,ze,"′","\\prime"),oe(le,he,ze,"△","\\triangle"),oe(le,he,ze,"Γ","\\Gamma",!0),oe(le,he,ze,"Δ","\\Delta",!0),oe(le,he,ze,"Θ","\\Theta",!0),oe(le,he,ze,"Λ","\\Lambda",!0),oe(le,he,ze,"Ξ","\\Xi",!0),oe(le,he,ze,"Π","\\Pi",!0),oe(le,he,ze,"Σ","\\Sigma",!0),oe(le,he,ze,"Υ","\\Upsilon",!0),oe(le,he,ze,"Φ","\\Phi",!0),oe(le,he,ze,"Ψ","\\Psi",!0),oe(le,he,ze,"Ω","\\Omega",!0),oe(le,he,ze,"A","Α"),oe(le,he,ze,"B","Β"),oe(le,he,ze,"E","Ε"),oe(le,he,ze,"Z","Ζ"),oe(le,he,ze,"H","Η"),oe(le,he,ze,"I","Ι"),oe(le,he,ze,"K","Κ"),oe(le,he,ze,"M","Μ"),oe(le,he,ze,"N","Ν"),oe(le,he,ze,"O","Ο"),oe(le,he,ze,"P","Ρ"),oe(le,he,ze,"T","Τ"),oe(le,he,ze,"X","Χ"),oe(le,he,ze,"¬","\\neg",!0),oe(le,he,ze,"¬","\\lnot"),oe(le,he,ze,"⊤","\\top"),oe(le,he,ze,"⊥","\\bot"),oe(le,he,ze,"∅","\\emptyset"),oe(le,me,ze,"∅","\\varnothing"),oe(le,he,fe,"α","\\alpha",!0),oe(le,he,fe,"β","\\beta",!0),oe(le,he,fe,"γ","\\gamma",!0),oe(le,he,fe,"δ","\\delta",!0),oe(le,he,fe,"ϵ","\\epsilon",!0),oe(le,he,fe,"ζ","\\zeta",!0),oe(le,he,fe,"η","\\eta",!0),oe(le,he,fe,"θ","\\theta",!0),oe(le,he,fe,"ι","\\iota",!0),oe(le,he,fe,"κ","\\kappa",!0),oe(le,he,fe,"λ","\\lambda",!0),oe(le,he,fe,"μ","\\mu",!0),oe(le,he,fe,"ν","\\nu",!0),oe(le,he,fe,"ξ","\\xi",!0),oe(le,he,fe,"ο","\\omicron",!0),oe(le,he,fe,"π","\\pi",!0),oe(le,he,fe,"ρ","\\rho",!0),oe(le,he,fe,"σ","\\sigma",!0),oe(le,he,fe,"τ","\\tau",!0),oe(le,he,fe,"υ","\\upsilon",!0),oe(le,he,fe,"ϕ","\\phi",!0),oe(le,he,fe,"χ","\\chi",!0),oe(le,he,fe,"ψ","\\psi",!0),oe(le,he,fe,"ω","\\omega",!0),oe(le,he,fe,"ε","\\varepsilon",!0),oe(le,he,fe,"ϑ","\\vartheta",!0),oe(le,he,fe,"ϖ","\\varpi",!0),oe(le,he,fe,"ϱ","\\varrho",!0),oe(le,he,fe,"ς","\\varsigma",!0),oe(le,he,fe,"φ","\\varphi",!0),oe(le,he,ue,"∗","*",!0),oe(le,he,ue,"+","+"),oe(le,he,ue,"−","-",!0),oe(le,he,ue,"⋅","\\cdot",!0),oe(le,he,ue,"∘","\\circ",!0),oe(le,he,ue,"÷","\\div",!0),oe(le,he,ue,"±","\\pm",!0),oe(le,he,ue,"×","\\times",!0),oe(le,he,ue,"∩","\\cap",!0),oe(le,he,ue,"∪","\\cup",!0),oe(le,he,ue,"∖","\\setminus",!0),oe(le,he,ue,"∧","\\land"),oe(le,he,ue,"∨","\\lor"),oe(le,he,ue,"∧","\\wedge",!0),oe(le,he,ue,"∨","\\vee",!0),oe(le,he,ze,"√","\\surd"),oe(le,he,ye,"⟨","\\langle",!0),oe(le,he,ye,"∣","\\lvert"),oe(le,he,ye,"∥","\\lVert"),oe(le,he,pe,"?","?"),oe(le,he,pe,"!","!"),oe(le,he,pe,"⟩","\\rangle",!0),oe(le,he,pe,"∣","\\rvert"),oe(le,he,pe,"∥","\\rVert"),oe(le,he,ke,"=","="),oe(le,he,ke,":",":"),oe(le,he,ke,"≈","\\approx",!0),oe(le,he,ke,"≅","\\cong",!0),oe(le,he,ke,"≥","\\ge"),oe(le,he,ke,"≥","\\geq",!0),oe(le,he,ke,"←","\\gets"),oe(le,he,ke,">","\\gt",!0),oe(le,he,ke,"∈","\\in",!0),oe(le,he,ke,"","\\@not"),oe(le,he,ke,"⊂","\\subset",!0),oe(le,he,ke,"⊃","\\supset",!0),oe(le,he,ke,"⊆","\\subseteq",!0),oe(le,he,ke,"⊇","\\supseteq",!0),oe(le,me,ke,"⊈","\\nsubseteq",!0),oe(le,me,ke,"⊉","\\nsupseteq",!0),oe(le,he,ke,"⊨","\\models"),oe(le,he,ke,"←","\\leftarrow",!0),oe(le,he,ke,"≤","\\le"),oe(le,he,ke,"≤","\\leq",!0),oe(le,he,ke,"<","\\lt",!0),oe(le,he,ke,"→","\\rightarrow",!0),oe(le,he,ke,"→","\\to"),oe(le,me,ke,"≱","\\ngeq",!0),oe(le,me,ke,"≰","\\nleq",!0),oe(le,he,we," ","\\ "),oe(le,he,we," ","\\space"),oe(le,he,we," ","\\nobreakspace"),oe(ce,he,we," ","\\ "),oe(ce,he,we," "," "),oe(ce,he,we," ","\\space"),oe(ce,he,we," ","\\nobreakspace"),oe(le,he,we,null,"\\nobreak"),oe(le,he,we,null,"\\allowbreak"),oe(le,he,xe,",",","),oe(le,he,xe,";",";"),oe(le,me,ue,"⊼","\\barwedge",!0),oe(le,me,ue,"⊻","\\veebar",!0),oe(le,he,ue,"⊙","\\odot",!0),oe(le,he,ue,"⊕","\\oplus",!0),oe(le,he,ue,"⊗","\\otimes",!0),oe(le,he,ze,"∂","\\partial",!0),oe(le,he,ue,"⊘","\\oslash",!0),oe(le,me,ue,"⊚","\\circledcirc",!0),oe(le,me,ue,"⊡","\\boxdot",!0),oe(le,he,ue,"△","\\bigtriangleup"),oe(le,he,ue,"▽","\\bigtriangledown"),oe(le,he,ue,"†","\\dagger"),oe(le,he,ue,"⋄","\\diamond"),oe(le,he,ue,"⋆","\\star"),oe(le,he,ue,"◃","\\triangleleft"),oe(le,he,ue,"▹","\\triangleright"),oe(le,he,ye,"{","\\{"),oe(ce,he,ze,"{","\\{"),oe(ce,he,ze,"{","\\textbraceleft"),oe(le,he,pe,"}","\\}"),oe(ce,he,ze,"}","\\}"),oe(ce,he,ze,"}","\\textbraceright"),oe(le,he,ye,"{","\\lbrace"),oe(le,he,pe,"}","\\rbrace"),oe(le,he,ye,"[","\\lbrack",!0),oe(ce,he,ze,"[","\\lbrack",!0),oe(le,he,pe,"]","\\rbrack",!0),oe(ce,he,ze,"]","\\rbrack",!0),oe(le,he,ye,"(","\\lparen",!0),oe(le,he,pe,")","\\rparen",!0),oe(ce,he,ze,"<","\\textless",!0),oe(ce,he,ze,">","\\textgreater",!0),oe(le,he,ye,"⌊","\\lfloor",!0),oe(le,he,pe,"⌋","\\rfloor",!0),oe(le,he,ye,"⌈","\\lceil",!0),oe(le,he,pe,"⌉","\\rceil",!0),oe(le,he,ze,"\\","\\backslash"),oe(le,he,ze,"∣","|"),oe(le,he,ze,"∣","\\vert"),oe(ce,he,ze,"|","\\textbar",!0),oe(le,he,ze,"∥","\\|"),oe(le,he,ze,"∥","\\Vert"),oe(ce,he,ze,"∥","\\textbardbl"),oe(ce,he,ze,"~","\\textasciitilde"),oe(ce,he,ze,"\\","\\textbackslash"),oe(ce,he,ze,"^","\\textasciicircum"),oe(le,he,ke,"↑","\\uparrow",!0),oe(le,he,ke,"⇑","\\Uparrow",!0),oe(le,he,ke,"↓","\\downarrow",!0),oe(le,he,ke,"⇓","\\Downarrow",!0),oe(le,he,ke,"↕","\\updownarrow",!0),oe(le,he,ke,"⇕","\\Updownarrow",!0),oe(le,he,be,"∐","\\coprod"),oe(le,he,be,"⋁","\\bigvee"),oe(le,he,be,"⋀","\\bigwedge"),oe(le,he,be,"⨄","\\biguplus"),oe(le,he,be,"⋂","\\bigcap"),oe(le,he,be,"⋃","\\bigcup"),oe(le,he,be,"∫","\\int"),oe(le,he,be,"∫","\\intop"),oe(le,he,be,"∬","\\iint"),oe(le,he,be,"∭","\\iiint"),oe(le,he,be,"∏","\\prod"),oe(le,he,be,"∑","\\sum"),oe(le,he,be,"⨂","\\bigotimes"),oe(le,he,be,"⨁","\\bigoplus"),oe(le,he,be,"⨀","\\bigodot"),oe(le,he,be,"∮","\\oint"),oe(le,he,be,"∯","\\oiint"),oe(le,he,be,"∰","\\oiiint"),oe(le,he,be,"⨆","\\bigsqcup"),oe(le,he,be,"∫","\\smallint"),oe(ce,he,ge,"…","\\textellipsis"),oe(le,he,ge,"…","\\mathellipsis"),oe(ce,he,ge,"…","\\ldots",!0),oe(le,he,ge,"…","\\ldots",!0),oe(le,he,ge,"⋯","\\@cdots",!0),oe(le,he,ge,"⋱","\\ddots",!0),oe(le,he,ze,"⋮","\\varvdots"),oe(ce,he,ze,"⋮","\\varvdots"),oe(le,he,de,"ˊ","\\acute"),oe(le,he,de,"ˋ","\\grave"),oe(le,he,de,"¨","\\ddot"),oe(le,he,de,"~","\\tilde"),oe(le,he,de,"ˉ","\\bar"),oe(le,he,de,"˘","\\breve"),oe(le,he,de,"ˇ","\\check"),oe(le,he,de,"^","\\hat"),oe(le,he,de,"⃗","\\vec"),oe(le,he,de,"˙","\\dot"),oe(le,he,de,"˚","\\mathring"),oe(le,he,fe,"","\\@imath"),oe(le,he,fe,"","\\@jmath"),oe(le,he,ze,"ı","ı"),oe(le,he,ze,"ȷ","ȷ"),oe(ce,he,ze,"ı","\\i",!0),oe(ce,he,ze,"ȷ","\\j",!0),oe(ce,he,ze,"ß","\\ss",!0),oe(ce,he,ze,"æ","\\ae",!0),oe(ce,he,ze,"œ","\\oe",!0),oe(ce,he,ze,"ø","\\o",!0),oe(ce,he,ze,"Æ","\\AE",!0),oe(ce,he,ze,"Œ","\\OE",!0),oe(ce,he,ze,"Ø","\\O",!0),oe(ce,he,de,"ˊ","\\'"),oe(ce,he,de,"ˋ","\\`"),oe(ce,he,de,"ˆ","\\^"),oe(ce,he,de,"˜","\\~"),oe(ce,he,de,"ˉ","\\="),oe(ce,he,de,"˘","\\u"),oe(ce,he,de,"˙","\\."),oe(ce,he,de,"¸","\\c"),oe(ce,he,de,"˚","\\r"),oe(ce,he,de,"ˇ","\\v"),oe(ce,he,de,"¨",'\\"'),oe(ce,he,de,"˝","\\H"),oe(ce,he,de,"◯","\\textcircled");const ve={"--":!0,"---":!0,"``":!0,"''":!0};oe(ce,he,ze,"–","--",!0),oe(ce,he,ze,"–","\\textendash"),oe(ce,he,ze,"—","---",!0),oe(ce,he,ze,"—","\\textemdash"),oe(ce,he,ze,"‘","`",!0),oe(ce,he,ze,"‘","\\textquoteleft"),oe(ce,he,ze,"’","'",!0),oe(ce,he,ze,"’","\\textquoteright"),oe(ce,he,ze,"“","``",!0),oe(ce,he,ze,"“","\\textquotedblleft"),oe(ce,he,ze,"”","''",!0),oe(ce,he,ze,"”","\\textquotedblright"),oe(le,he,ze,"°","\\degree",!0),oe(ce,he,ze,"°","\\degree"),oe(ce,he,ze,"°","\\textdegree",!0),oe(le,he,ze,"£","\\pounds"),oe(le,he,ze,"£","\\mathsterling",!0),oe(ce,he,ze,"£","\\pounds"),oe(ce,he,ze,"£","\\textsterling",!0),oe(le,me,ze,"✠","\\maltese"),oe(ce,me,ze,"✠","\\maltese");for(let Vs=0;Vs<14;Vs++){const e='0123456789/@."'.charAt(Vs);oe(le,he,ze,e,e)}for(let Vs=0;Vs<25;Vs++){const e='0123456789!@*()-=+";:?/.,'.charAt(Vs);oe(ce,he,ze,e,e)}const _e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let Vs=0;Vs<52;Vs++){const e=_e.charAt(Vs);oe(le,he,fe,e,e),oe(ce,he,ze,e,e)}oe(le,me,ze,"C","ℂ"),oe(ce,me,ze,"C","ℂ"),oe(le,me,ze,"H","ℍ"),oe(ce,me,ze,"H","ℍ"),oe(le,me,ze,"N","ℕ"),oe(ce,me,ze,"N","ℕ"),oe(le,me,ze,"P","ℙ"),oe(ce,me,ze,"P","ℙ"),oe(le,me,ze,"Q","ℚ"),oe(ce,me,ze,"Q","ℚ"),oe(le,me,ze,"R","ℝ"),oe(ce,me,ze,"R","ℝ"),oe(le,me,ze,"Z","ℤ"),oe(ce,me,ze,"Z","ℤ"),oe(le,he,fe,"h","ℎ"),oe(ce,he,fe,"h","ℎ");let Se="";for(let Vs=0;Vs<52;Vs++){const e=_e.charAt(Vs);Se=String.fromCharCode(55349,56320+Vs),oe(le,he,fe,e,Se),oe(ce,he,ze,e,Se),Se=String.fromCharCode(55349,56372+Vs),oe(le,he,fe,e,Se),oe(ce,he,ze,e,Se),Se=String.fromCharCode(55349,56424+Vs),oe(le,he,fe,e,Se),oe(ce,he,ze,e,Se),Se=String.fromCharCode(55349,56580+Vs),oe(le,he,fe,e,Se),oe(ce,he,ze,e,Se),Se=String.fromCharCode(55349,56684+Vs),oe(le,he,fe,e,Se),oe(ce,he,ze,e,Se),Se=String.fromCharCode(55349,56736+Vs),oe(le,he,fe,e,Se),oe(ce,he,ze,e,Se),Se=String.fromCharCode(55349,56788+Vs),oe(le,he,fe,e,Se),oe(ce,he,ze,e,Se),Se=String.fromCharCode(55349,56840+Vs),oe(le,he,fe,e,Se),oe(ce,he,ze,e,Se),Se=String.fromCharCode(55349,56944+Vs),oe(le,he,fe,e,Se),oe(ce,he,ze,e,Se),Vs<26&&(Se=String.fromCharCode(55349,56632+Vs),oe(le,he,fe,e,Se),oe(ce,he,ze,e,Se),Se=String.fromCharCode(55349,56476+Vs),oe(le,he,fe,e,Se),oe(ce,he,ze,e,Se))}Se=String.fromCharCode(55349,56668),oe(le,he,fe,"k",Se),oe(ce,he,ze,"k",Se);for(let Vs=0;Vs<10;Vs++){const e=Vs.toString();Se=String.fromCharCode(55349,57294+Vs),oe(le,he,fe,e,Se),oe(ce,he,ze,e,Se),Se=String.fromCharCode(55349,57314+Vs),oe(le,he,fe,e,Se),oe(ce,he,ze,e,Se),Se=String.fromCharCode(55349,57324+Vs),oe(le,he,fe,e,Se),oe(ce,he,ze,e,Se),Se=String.fromCharCode(55349,57334+Vs),oe(le,he,fe,e,Se),oe(ce,he,ze,e,Se)}for(let Vs=0;Vs<3;Vs++){const e="ÐÞþ".charAt(Vs);oe(le,he,fe,e,e),oe(ce,he,ze,e,e)}const Me=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Ae=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]];class Te{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){const e=document.createDocumentFragment();for(let t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){let e="";for(let t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map((e=>e.toText())).join("")}}const Be=function(e,t,n){return ie[n][e]&&ie[n][e].replace&&(e=ie[n][e].replace),{value:e,metrics:I(e,t,n)}},Ce=function(e,t,n,s,a){const r=Be(e,t,n),i=r.metrics;let o;if(e=r.value,i){let t=i.italic;("text"===n||s&&"mathit"===s.font)&&(t=0),o=new Q(e,i.height,i.depth,t,i.skew,i.width,a)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+n+"'"),o=new Q(e,0,0,0,0,0,a);if(s){o.maxFontSize=s.sizeMultiplier,s.style.isTight()&&o.classes.push("mtight");const e=s.getColor();e&&(o.style.color=e)}return o},Ie=(e,t)=>{if(X(e.classes)!==X(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){const t=e.classes[0];if("mbin"===t||"mord"===t)return!1}for(const n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(const n in t.style)if(t.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;return!0},qe=function(e){let t=0,n=0,s=0;for(let a=0;a<e.children.length;a++){const r=e.children[a];r.height>t&&(t=r.height),r.depth>n&&(n=r.depth),r.maxFontSize>s&&(s=r.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=s},De=function(e,t,n,s){const a=new W(e,t,n,s);return qe(a),a},He=(e,t,n,s)=>new W(e,t,n,s),Ne=function(e){const t=new Te(e);return qe(t),t},Re=function(e,t,n){let s,a="";switch(e){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=e}return s="textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular",a+"-"+s},Ee={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Pe={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]};var Oe={fontMap:Ee,makeSymbol:Ce,mathsym:function(e,t,n,s){return void 0===s&&(s=[]),"boldsymbol"===n.font&&Be(e,"Main-Bold",t).metrics?Ce(e,"Main-Bold",t,n,s.concat(["mathbf"])):"\\"===e||"main"===ie[t][e].font?Ce(e,"Main-Regular",t,n,s):Ce(e,"AMS-Regular",t,n,s.concat(["amsrm"]))},makeSpan:De,makeSvgSpan:He,makeLineSpan:function(e,t,n){const s=De([e],[],t);return s.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),s.style.borderBottomWidth=V(s.height),s.maxFontSize=1,s},makeAnchor:function(e,t,n,s){const a=new j(e,t,n,s);return qe(a),a},makeFragment:Ne,wrapFragment:function(e,t){return e instanceof Te?De([],[e],t):e},makeVList:function(e,t){const{children:n,depth:s}=function(e){if("individualShift"===e.positionType){const t=e.children,n=[t[0]],s=-t[0].shift-t[0].elem.depth;let a=s;for(let e=1;e<t.length;e++){const s=-t[e].shift-a-t[e].elem.depth,r=s-(t[e-1].elem.height+t[e-1].elem.depth);a+=s,n.push({type:"kern",size:r}),n.push(t[e])}return{children:n,depth:s}}let t;if("top"===e.positionType){let n=e.positionData;for(let t=0;t<e.children.length;t++){const s=e.children[t];n-="kern"===s.type?s.size:s.elem.height+s.elem.depth}t=n}else if("bottom"===e.positionType)t=-e.positionData;else{const n=e.children[0];if("elem"!==n.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)t=-n.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");t=-n.elem.depth}}return{children:e.children,depth:t}}(e);let a=0;for(let u=0;u<n.length;u++){const e=n[u];if("elem"===e.type){const t=e.elem;a=Math.max(a,t.maxFontSize,t.height)}}a+=2;const r=De(["pstrut"],[]);r.style.height=V(a);const i=[];let o=s,l=s,c=s;for(let u=0;u<n.length;u++){const e=n[u];if("kern"===e.type)c+=e.size;else{const t=e.elem,n=e.wrapperClasses||[],s=e.wrapperStyle||{},o=De(n,[r,t],void 0,s);o.style.top=V(-a-c-t.depth),e.marginLeft&&(o.style.marginLeft=e.marginLeft),e.marginRight&&(o.style.marginRight=e.marginRight),i.push(o),c+=t.height+t.depth}o=Math.min(o,c),l=Math.max(l,c)}const h=De(["vlist"],i);let m;if(h.style.height=V(l),o<0){const e=De(["vlist"],[De([],[])]);e.style.height=V(-o),m=[De(["vlist-r"],[h,De(["vlist-s"],[new Q("")])]),De(["vlist-r"],[e])]}else m=[De(["vlist-r"],[h])];const d=De(["vlist-t"],m);return 2===m.length&&d.classes.push("vlist-t2"),d.height=l,d.depth=-o,d},makeOrd:function(e,t,n){const a=e.mode,r=e.text,i=["mord"],o="math"===a||"text"===a&&t.font,l=o?t.font:t.fontFamily;let c="",h="";if(55349===r.charCodeAt(0)&&([c,h]=function(e,t){const n=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,a="math"===t?0:1;if(119808<=n&&n<120484){const e=Math.floor((n-119808)/26);return[Me[e][2],Me[e][a]]}if(120782<=n&&n<=120831){const e=Math.floor((n-120782)/10);return[Ae[e][2],Ae[e][a]]}if(120485===n||120486===n)return[Me[0][2],Me[0][a]];if(120486<n&&n<120782)return["",""];throw new s("Unsupported character: "+e)}(r,a)),c.length>0)return Ce(r,c,a,t,i.concat(h));if(l){let e,s;if("boldsymbol"===l){const t=function(e,t,n,s,a){return"textord"!==a&&Be(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(r,a,0,0,n);e=t.fontName,s=[t.fontClass]}else o?(e=Ee[l].fontName,s=[l]):(e=Re(l,t.fontWeight,t.fontShape),s=[l,t.fontWeight,t.fontShape]);if(Be(r,e,a).metrics)return Ce(r,e,a,t,i.concat(s));if(ve.hasOwnProperty(r)&&"Typewriter"===e.slice(0,10)){const n=[];for(let o=0;o<r.length;o++)n.push(Ce(r[o],e,a,t,i.concat(s)));return Ne(n)}}if("mathord"===n)return Ce(r,"Math-Italic",a,t,i.concat(["mathnormal"]));if("textord"===n){const e=ie[a][r]&&ie[a][r].font;if("ams"===e)return Ce(r,Re("amsrm",t.fontWeight,t.fontShape),a,t,i.concat("amsrm",t.fontWeight,t.fontShape));if("main"!==e&&e){const n=Re(e,t.fontWeight,t.fontShape);return Ce(r,n,a,t,i.concat(n,t.fontWeight,t.fontShape))}return Ce(r,Re("textrm",t.fontWeight,t.fontShape),a,t,i.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+n+" in makeOrd")},makeGlue:(e,t)=>{const n=De(["mspace"],[],t),s=F(e,t);return n.style.marginRight=V(s),n},staticSvg:function(e,t){const[n,s,a]=Pe[e],r=He(["overlay"],[new J([new ee(n)],{width:V(s),height:V(a),style:"width:"+V(s),viewBox:"0 0 "+1e3*s+" "+1e3*a,preserveAspectRatio:"xMinYMin"})],t);return r.height=a,r.style.height=V(a),r.style.width=V(s),r},svgData:Pe,tryCombineChars:e=>{for(let t=0;t<e.length-1;t++){const n=e[t],s=e[t+1];n instanceof Q&&s instanceof Q&&Ie(n,s)&&(n.text+=s.text,n.height=Math.max(n.height,s.height),n.depth=Math.max(n.depth,s.depth),n.italic=s.italic,e.splice(t+1,1),t--)}return e}};const Le={number:3,unit:"mu"},Fe={number:4,unit:"mu"},Ve={number:5,unit:"mu"},Xe={mord:{mop:Le,mbin:Fe,mrel:Ve,minner:Le},mop:{mord:Le,mop:Le,mrel:Ve,minner:Le},mbin:{mord:Fe,mop:Fe,mopen:Fe,minner:Fe},mrel:{mord:Ve,mop:Ve,mopen:Ve,minner:Ve},mopen:{},mclose:{mop:Le,mbin:Fe,mrel:Ve,minner:Le},mpunct:{mord:Le,mop:Le,mrel:Ve,mopen:Le,mclose:Le,mpunct:Le,minner:Le},minner:{mord:Le,mop:Le,mbin:Fe,mrel:Ve,mopen:Le,mpunct:Le,minner:Le}},$e={mord:{mop:Le},mop:{mord:Le,mop:Le},mbin:{},mrel:{},mopen:{},mclose:{mop:Le},mpunct:{},minner:{mop:Le}},Ke={},Ue={},Ge={};function We(e){let{type:t,names:n,props:s,handler:a,htmlBuilder:r,mathmlBuilder:i}=e;const o={type:t,numArgs:s.numArgs,argTypes:s.argTypes,allowedInArgument:!!s.allowedInArgument,allowedInText:!!s.allowedInText,allowedInMath:void 0===s.allowedInMath||s.allowedInMath,numOptionalArgs:s.numOptionalArgs||0,infix:!!s.infix,primitive:!!s.primitive,handler:a};for(let l=0;l<n.length;++l)Ke[n[l]]=o;t&&(r&&(Ue[t]=r),i&&(Ge[t]=i))}function je(e){let{type:t,htmlBuilder:n,mathmlBuilder:s}=e;We({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:s})}const Ye=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},Ze=function(e){return"ordgroup"===e.type?e.body:[e]},Qe=Oe.makeSpan,Je=["leftmost","mbin","mopen","mrel","mop","mpunct"],et=["rightmost","mrel","mclose","mpunct"],tt={display:k.DISPLAY,text:k.TEXT,script:k.SCRIPT,scriptscript:k.SCRIPTSCRIPT},nt={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},st=function(e,t,n,s){void 0===s&&(s=[null,null]);const a=[];for(let c=0;c<e.length;c++){const n=ct(e[c],t);if(n instanceof Te){const e=n.children;a.push(...e)}else a.push(n)}if(Oe.tryCombineChars(a),!n)return a;let r=t;if(1===e.length){const n=e[0];"sizing"===n.type?r=t.havingSize(n.size):"styling"===n.type&&(r=t.havingStyle(tt[n.style]))}const i=Qe([s[0]||"leftmost"],[],t),o=Qe([s[1]||"rightmost"],[],t),l="root"===n;return at(a,((e,t)=>{const n=t.classes[0],s=e.classes[0];"mbin"===n&&et.includes(s)?t.classes[0]="mord":"mbin"===s&&Je.includes(n)&&(e.classes[0]="mord")}),{node:i},o,l),at(a,((e,t)=>{const n=ot(t),s=ot(e),a=n&&s?e.hasClass("mtight")?$e[n][s]:Xe[n][s]:null;if(a)return Oe.makeGlue(a,r)}),{node:i},o,l),a},at=function(e,t,n,s,a){s&&e.push(s);let r=0;for(;r<e.length;r++){const s=e[r],i=rt(s);if(i){at(i.children,t,n,null,a);continue}const o=!s.hasClass("mspace");if(o){const a=t(s,n.node);a&&(n.insertAfter?n.insertAfter(a):(e.unshift(a),r++))}o?n.node=s:a&&s.hasClass("newline")&&(n.node=Qe(["leftmost"])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),r++})(r)}s&&e.pop()},rt=function(e){return e instanceof Te||e instanceof j||e instanceof W&&e.hasClass("enclosing")?e:null},it=function(e,t){const n=rt(e);if(n){const e=n.children;if(e.length){if("right"===t)return it(e[e.length-1],"right");if("left"===t)return it(e[0],"left")}}return e},ot=function(e,t){return e?(t&&(e=it(e,t)),nt[e.classes[0]]||null):null},lt=function(e,t){const n=["nulldelimiter"].concat(e.baseSizingClasses());return Qe(t.concat(n))},ct=function(e,t,n){if(!e)return Qe();if(Ue[e.type]){let s=Ue[e.type](e,t);if(n&&t.size!==n.size){s=Qe(t.sizingClasses(n),[s],t);const e=t.sizeMultiplier/n.sizeMultiplier;s.height*=e,s.depth*=e}return s}throw new s("Got group of unknown type: '"+e.type+"'")};function ht(e,t){const n=Qe(["base"],e,t),s=Qe(["strut"]);return s.style.height=V(n.height+n.depth),n.depth&&(s.style.verticalAlign=V(-n.depth)),n.children.unshift(s),n}function mt(e,t){let n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);const s=st(e,t,"root");let a;2===s.length&&s[1].hasClass("tag")&&(a=s.pop());const r=[];let i,o=[];for(let c=0;c<s.length;c++)if(o.push(s[c]),s[c].hasClass("mbin")||s[c].hasClass("mrel")||s[c].hasClass("allowbreak")){let e=!1;for(;c<s.length-1&&s[c+1].hasClass("mspace")&&!s[c+1].hasClass("newline");)c++,o.push(s[c]),s[c].hasClass("nobreak")&&(e=!0);e||(r.push(ht(o,t)),o=[])}else s[c].hasClass("newline")&&(o.pop(),o.length>0&&(r.push(ht(o,t)),o=[]),r.push(s[c]));o.length>0&&r.push(ht(o,t)),n?(i=ht(st(n,t,!0)),i.classes=["tag"],r.push(i)):a&&r.push(a);const l=Qe(["katex-html"],r);if(l.setAttribute("aria-hidden","true"),i){const e=i.children[0];e.style.height=V(l.height+l.depth),l.depth&&(e.style.verticalAlign=V(-l.depth))}return l}function dt(e){return new Te(e)}class ut{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){const e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=X(this.classes));for(let t=0;t<this.children.length;t++)if(this.children[t]instanceof pt&&this.children[t+1]instanceof pt){let n=this.children[t].toText()+this.children[++t].toText();for(;this.children[t+1]instanceof pt;)n+=this.children[++t].toText();e.appendChild(new pt(n).toNode())}else e.appendChild(this.children[t].toNode());return e}toMarkup(){let e="<"+this.type;for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=l.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+l.escape(X(this.classes))+'"'),e+=">";for(let t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map((e=>e.toText())).join("")}}class pt{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return l.escape(this.toText())}toText(){return this.text}}var gt={MathNode:ut,TextNode:pt,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?" ":e>=-.05556&&e<=-.05555?" ":e>=-.1667&&e<=-.1666?" ":e>=-.2223&&e<=-.2222?" ":e>=-.2778&&e<=-.2777?" ":null}toNode(){if(this.character)return document.createTextNode(this.character);{const e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",V(this.width)),e}}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+V(this.width)+'"/>'}toText(){return this.character?this.character:" "}},newDocumentFragment:dt};const ft=function(e,t,n){return!ie[t][e]||!ie[t][e].replace||55349===e.charCodeAt(0)||ve.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.slice(4,6)||n.font&&"tt"===n.font.slice(4,6))||(e=ie[t][e].replace),new gt.TextNode(e)},bt=function(e){return 1===e.length?e[0]:new gt.MathNode("mrow",e)},yt=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";const n=t.font;if(!n||"mathnormal"===n)return null;const s=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathsfit"===n)return"sans-serif-italic";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";let a=e.text;return["\\imath","\\jmath"].includes(a)?null:(ie[s][a]&&ie[s][a].replace&&(a=ie[s][a].replace),I(a,Oe.fontMap[n].fontName,s)?Oe.fontMap[n].variant:null)};function xt(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){const t=e.children[0];return t instanceof pt&&"."===t.text}if("mo"===e.type&&1===e.children.length&&"true"===e.getAttribute("separator")&&"0em"===e.getAttribute("lspace")&&"0em"===e.getAttribute("rspace")){const t=e.children[0];return t instanceof pt&&","===t.text}return!1}const kt=function(e,t,n){if(1===e.length){const s=zt(e[0],t);return n&&s instanceof ut&&"mo"===s.type&&(s.setAttribute("lspace","0em"),s.setAttribute("rspace","0em")),[s]}const s=[];let a;for(let r=0;r<e.length;r++){const n=zt(e[r],t);if(n instanceof ut&&a instanceof ut){if("mtext"===n.type&&"mtext"===a.type&&n.getAttribute("mathvariant")===a.getAttribute("mathvariant")){a.children.push(...n.children);continue}if("mn"===n.type&&"mn"===a.type){a.children.push(...n.children);continue}if(xt(n)&&"mn"===a.type){a.children.push(...n.children);continue}if("mn"===n.type&&xt(a))n.children=[...a.children,...n.children],s.pop();else if(("msup"===n.type||"msub"===n.type)&&n.children.length>=1&&("mn"===a.type||xt(a))){const e=n.children[0];e instanceof ut&&"mn"===e.type&&(e.children=[...a.children,...e.children],s.pop())}else if("mi"===a.type&&1===a.children.length){const e=a.children[0];if(e instanceof pt&&"̸"===e.text&&("mo"===n.type||"mi"===n.type||"mn"===n.type)){const e=n.children[0];e instanceof pt&&e.text.length>0&&(e.text=e.text.slice(0,1)+"̸"+e.text.slice(1),s.pop())}}}s.push(n),a=n}return s},wt=function(e,t,n){return bt(kt(e,t,n))},zt=function(e,t){if(!e)return new gt.MathNode("mrow");if(Ge[e.type])return Ge[e.type](e,t);throw new s("Got group of unknown type: '"+e.type+"'")};function vt(e,t,n,s,a){const r=kt(e,n);let i;i=1===r.length&&r[0]instanceof ut&&["mrow","mtable"].includes(r[0].type)?r[0]:new gt.MathNode("mrow",r);const o=new gt.MathNode("annotation",[new gt.TextNode(t)]);o.setAttribute("encoding","application/x-tex");const l=new gt.MathNode("semantics",[i,o]),c=new gt.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),s&&c.setAttribute("display","block");const h=a?"katex":"katex-mathml";return Oe.makeSpan([h],[c])}const _t=function(e){return new E({style:e.displayMode?k.DISPLAY:k.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},St=function(e,t){if(t.displayMode){const n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=Oe.makeSpan(n,[e])}return e},Mt={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},At={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]};var Tt=function(e,t,n,s,a){let r;const i=e.height+e.depth+n+s;if(/fbox|color|angl/.test(t)){if(r=Oe.makeSpan(["stretchy",t],[],a),"fbox"===t){const e=a.color&&a.getColor();e&&(r.style.borderColor=e)}}else{const e=[];/^[bx]cancel$/.test(t)&&e.push(new te({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&e.push(new te({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));const n=new J(e,{width:"100%",height:V(i)});r=Oe.makeSvgSpan([],[n],a)}return r.height=i,r.style.height=V(i),r},Bt=function(e){const t=new gt.MathNode("mo",[new gt.TextNode(Mt[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Ct=function(e,t){const{span:n,minWidth:s,height:a}=function(){let n=4e5;const s=e.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(s)){const r="ordgroup"===(a=e.base).type?a.body.length:1;let i,o,l;if(r>5)"widehat"===s||"widecheck"===s?(i=420,n=2364,l=.42,o=s+"4"):(i=312,n=2340,l=.34,o="tilde4");else{const e=[1,1,2,2,3,3][r];"widehat"===s||"widecheck"===s?(n=[0,1062,2364,2364,2364][e],i=[0,239,300,360,420][e],l=[0,.24,.3,.3,.36,.42][e],o=s+e):(n=[0,600,1033,2339,2340][e],i=[0,260,286,306,312][e],l=[0,.26,.286,.3,.306,.34][e],o="tilde"+e)}const c=new J([new ee(o)],{width:"100%",height:V(l),viewBox:"0 0 "+n+" "+i,preserveAspectRatio:"none"});return{span:Oe.makeSvgSpan([],[c],t),minWidth:0,height:l}}{const e=[],a=At[s],[r,i,o]=a,l=o/1e3,c=r.length;let h,m;if(1===c)h=["hide-tail"],m=[a[3]];else if(2===c)h=["halfarrow-left","halfarrow-right"],m=["xMinYMin","xMaxYMin"];else{if(3!==c)throw new Error("Correct katexImagesData or update code here to support\n "+c+" children.");h=["brace-left","brace-center","brace-right"],m=["xMinYMin","xMidYMin","xMaxYMin"]}for(let s=0;s<c;s++){const a=new J([new ee(r[s])],{width:"400em",height:V(l),viewBox:"0 0 "+n+" "+o,preserveAspectRatio:m[s]+" slice"}),d=Oe.makeSvgSpan([h[s]],[a],t);if(1===c)return{span:d,minWidth:i,height:l};d.style.height=V(l),e.push(d)}return{span:Oe.makeSpan(["stretchy"],e,t),minWidth:i,height:l}}var a}();return n.height=a,n.style.height=V(a),s>0&&(n.style.minWidth=V(s)),n};function It(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function qt(e){const t=Dt(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Dt(e){return e&&("atom"===e.type||ae.hasOwnProperty(e.type))?e:null}const Ht=(e,t)=>{let n,s,a;e&&"supsub"===e.type?(s=It(e.base,"accent"),n=s.base,e.base=n,a=function(e){if(e instanceof W)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(ct(e,t)),e.base=s):(s=It(e,"accent"),n=s.base);const r=ct(n,t.havingCrampedStyle());let i=0;s.isShifty&&l.isCharacterBox(n)&&(i=ne(ct(l.getBaseElem(n),t.havingCrampedStyle())).skew);const o="\\c"===s.label;let c,h=o?r.height+r.depth:Math.min(r.height,t.fontMetrics().xHeight);if(s.isStretchy)c=Ct(s,t),c=Oe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:i>0?{width:"calc(100% - "+V(2*i)+")",marginLeft:V(2*i)}:void 0}]},t);else{let e,n;"\\vec"===s.label?(e=Oe.staticSvg("vec",t),n=Oe.svgData.vec[1]):(e=Oe.makeOrd({mode:s.mode,text:s.label},t,"textord"),e=ne(e),e.italic=0,n=e.width,o&&(h+=e.depth)),c=Oe.makeSpan(["accent-body"],[e]);const a="\\textcircled"===s.label;a&&(c.classes.push("accent-full"),h=r.height);let l=i;a||(l-=n/2),c.style.left=V(l),"\\textcircled"===s.label&&(c.style.top=".2em"),c=Oe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:-h},{type:"elem",elem:c}]},t)}const m=Oe.makeSpan(["mord","accent"],[c],t);return a?(a.children[0]=m,a.height=Math.max(m.height,a.height),a.classes[0]="mord",a):m},Nt=(e,t)=>{const n=e.isStretchy?Bt(e.label):new gt.MathNode("mo",[ft(e.label,e.mode)]),s=new gt.MathNode("mover",[zt(e.base,t),n]);return s.setAttribute("accent","true"),s},Rt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((e=>"\\"+e)).join("|"));We({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{const n=Ye(t[0]),s=!Rt.test(e.funcName),a=!s||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:s,isShifty:a,base:n}},htmlBuilder:Ht,mathmlBuilder:Nt}),We({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{const n=t[0];let s=e.parser.mode;return"math"===s&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),s="text"),{type:"accent",mode:s,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Ht,mathmlBuilder:Nt}),We({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{let{parser:n,funcName:s}=e;const a=t[0];return{type:"accentUnder",mode:n.mode,label:s,base:a}},htmlBuilder:(e,t)=>{const n=ct(e.base,t),s=Ct(e,t),a="\\utilde"===e.label?.12:0,r=Oe.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:n}]},t);return Oe.makeSpan(["mord","accentunder"],[r],t)},mathmlBuilder:(e,t)=>{const n=Bt(e.label),s=new gt.MathNode("munder",[zt(e.base,t),n]);return s.setAttribute("accentunder","true"),s}});const Et=e=>{const t=new gt.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};We({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){let{parser:s,funcName:a}=e;return{type:"xArrow",mode:s.mode,label:a,body:t[0],below:n[0]}},htmlBuilder(e,t){const n=t.style;let s=t.havingStyle(n.sup());const a=Oe.wrapFragment(ct(e.body,s,t),t),r="\\x"===e.label.slice(0,2)?"x":"cd";let i;a.classes.push(r+"-arrow-pad"),e.below&&(s=t.havingStyle(n.sub()),i=Oe.wrapFragment(ct(e.below,s,t),t),i.classes.push(r+"-arrow-pad"));const o=Ct(e,t),l=-t.fontMetrics().axisHeight+.5*o.height;let c,h=-t.fontMetrics().axisHeight-.5*o.height-.111;if((a.depth>.25||"\\xleftequilibrium"===e.label)&&(h-=a.depth),i){const e=-t.fontMetrics().axisHeight+i.height+.5*o.height+.111;c=Oe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:h},{type:"elem",elem:o,shift:l},{type:"elem",elem:i,shift:e}]},t)}else c=Oe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:h},{type:"elem",elem:o,shift:l}]},t);return c.children[0].children[0].children[1].classes.push("svg-align"),Oe.makeSpan(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){const n=Bt(e.label);let s;if(n.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){const a=Et(zt(e.body,t));if(e.below){const r=Et(zt(e.below,t));s=new gt.MathNode("munderover",[n,r,a])}else s=new gt.MathNode("mover",[n,a])}else if(e.below){const a=Et(zt(e.below,t));s=new gt.MathNode("munder",[n,a])}else s=Et(),s=new gt.MathNode("mover",[n,s]);return s}});const Pt=Oe.makeSpan;function Ot(e,t){const n=st(e.body,t,!0);return Pt([e.mclass],n,t)}function Lt(e,t){let n;const s=kt(e.body,t);return"minner"===e.mclass?n=new gt.MathNode("mpadded",s):"mord"===e.mclass?e.isCharacterBox?(n=s[0],n.type="mi"):n=new gt.MathNode("mi",s):(e.isCharacterBox?(n=s[0],n.type="mo"):n=new gt.MathNode("mo",s),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0em"):"minner"===e.mclass&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}We({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){let{parser:n,funcName:s}=e;const a=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+s.slice(5),body:Ze(a),isCharacterBox:l.isCharacterBox(a)}},htmlBuilder:Ot,mathmlBuilder:Lt});const Ft=e=>{const t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};We({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){let{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:Ft(t[0]),body:Ze(t[1]),isCharacterBox:l.isCharacterBox(t[1])}}}),We({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){let{parser:n,funcName:s}=e;const a=t[1],r=t[0];let i;i="\\stackrel"!==s?Ft(a):"mrel";const o={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==s,body:Ze(a)},c={type:"supsub",mode:r.mode,base:o,sup:"\\underset"===s?null:r,sub:"\\underset"===s?r:null};return{type:"mclass",mode:n.mode,mclass:i,body:[c],isCharacterBox:l.isCharacterBox(c)}},htmlBuilder:Ot,mathmlBuilder:Lt}),We({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){let{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:Ft(t[0]),body:Ze(t[0])}},htmlBuilder(e,t){const n=st(e.body,t,!0),s=Oe.makeSpan([e.mclass],n,t);return s.style.textShadow="0.02em 0.01em 0.04px",s},mathmlBuilder(e,t){const n=kt(e.body,t),s=new gt.MathNode("mstyle",n);return s.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),s}});const Vt={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Xt=e=>"textord"===e.type&&"@"===e.text;function $t(e,t,n){const s=Vt[e];switch(s){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(s,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{const e={type:"atom",text:s,mode:"math",family:"rel"},a={type:"ordgroup",mode:"math",body:[n.callFunction("\\\\cdleft",[t[0]],[]),n.callFunction("\\Big",[e],[]),n.callFunction("\\\\cdright",[t[1]],[])]};return n.callFunction("\\\\cdparent",[a],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return n.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}We({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){let{parser:n,funcName:s}=e;return{type:"cdlabel",mode:n.mode,side:s.slice(4),label:t[0]}},htmlBuilder(e,t){const n=t.havingStyle(t.style.sup()),s=Oe.wrapFragment(ct(e.label,n,t),t);return s.classes.push("cd-label-"+e.side),s.style.bottom=V(.8-s.depth),s.height=0,s.depth=0,s},mathmlBuilder(e,t){let n=new gt.MathNode("mrow",[zt(e.label,t)]);return n=new gt.MathNode("mpadded",[n]),n.setAttribute("width","0"),"left"===e.side&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new gt.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),We({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){let{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){const n=Oe.wrapFragment(ct(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder:(e,t)=>new gt.MathNode("mrow",[zt(e.fragment,t)])}),We({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){let{parser:n}=e;const a=It(t[0],"ordgroup").body;let r="";for(let s=0;s<a.length;s++)r+=It(a[s],"textord").text;let i,o=parseInt(r);if(isNaN(o))throw new s("\\@char has non-numeric argument "+r);if(o<0||o>=1114111)throw new s("\\@char with invalid code point "+r);return o<=65535?i=String.fromCharCode(o):(o-=65536,i=String.fromCharCode(55296+(o>>10),56320+(1023&o))),{type:"textord",mode:n.mode,text:i}}});const Kt=(e,t)=>{const n=st(e.body,t.withColor(e.color),!1);return Oe.makeFragment(n)},Ut=(e,t)=>{const n=kt(e.body,t.withColor(e.color)),s=new gt.MathNode("mstyle",n);return s.setAttribute("mathcolor",e.color),s};We({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){let{parser:n}=e;const s=It(t[0],"color-token").color,a=t[1];return{type:"color",mode:n.mode,color:s,body:Ze(a)}},htmlBuilder:Kt,mathmlBuilder:Ut}),We({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){let{parser:n,breakOnTokenText:s}=e;const a=It(t[0],"color-token").color;n.gullet.macros.set("\\current@color",a);const r=n.parseExpression(!0,s);return{type:"color",mode:n.mode,color:a,body:r}},htmlBuilder:Kt,mathmlBuilder:Ut}),We({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){let{parser:s}=e;const a="["===s.gullet.future().text?s.parseSizeGroup(!0):null,r=!s.settings.displayMode||!s.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:s.mode,newLine:r,size:a&&It(a,"size").value}},htmlBuilder(e,t){const n=Oe.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=V(F(e.size,t)))),n},mathmlBuilder(e,t){const n=new gt.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",V(F(e.size,t)))),n}});const Gt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Wt=e=>{const t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new s("Expected a control sequence",e);return t},jt=(e,t,n,s)=>{let a=e.gullet.macros.get(n.text);null==a&&(n.noexpand=!0,a={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,a,s)};We({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){let{parser:t,funcName:n}=e;t.consumeSpaces();const a=t.fetch();if(Gt[a.text])return"\\global"!==n&&"\\\\globallong"!==n||(a.text=Gt[a.text]),It(t.parseFunction(),"internal");throw new s("Invalid token after macro prefix",a)}}),We({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){let{parser:t,funcName:n}=e,a=t.gullet.popToken();const r=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(r))throw new s("Expected a control sequence",a);let i,o=0;const l=[[]];for(;"{"!==t.gullet.future().text;)if(a=t.gullet.popToken(),"#"===a.text){if("{"===t.gullet.future().text){i=t.gullet.future(),l[o].push("{");break}if(a=t.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new s('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==o+1)throw new s('Argument number "'+a.text+'" out of order');o++,l.push([])}else{if("EOF"===a.text)throw new s("Expected a macro definition");l[o].push(a.text)}let{tokens:c}=t.gullet.consumeArg();return i&&c.unshift(i),"\\edef"!==n&&"\\xdef"!==n||(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(r,{tokens:c,numArgs:o,delimiters:l},n===Gt[n]),{type:"internal",mode:t.mode}}}),We({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){let{parser:t,funcName:n}=e;const s=Wt(t.gullet.popToken());return t.gullet.consumeSpaces(),jt(t,s,(e=>{let t=e.gullet.popToken();return"="===t.text&&(t=e.gullet.popToken()," "===t.text&&(t=e.gullet.popToken())),t})(t),"\\\\globallet"===n),{type:"internal",mode:t.mode}}}),We({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){let{parser:t,funcName:n}=e;const s=Wt(t.gullet.popToken()),a=t.gullet.popToken(),r=t.gullet.popToken();return jt(t,s,r,"\\\\globalfuture"===n),t.gullet.pushToken(r),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});const Yt=function(e,t,n){const s=I(ie.math[e]&&ie.math[e].replace||e,t,n);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return s},Zt=function(e,t,n,s){const a=n.havingBaseStyle(t),r=Oe.makeSpan(s.concat(a.sizingClasses(n)),[e],n),i=a.sizeMultiplier/n.sizeMultiplier;return r.height*=i,r.depth*=i,r.maxFontSize=a.sizeMultiplier,r},Qt=function(e,t,n){const s=t.havingBaseStyle(n),a=(1-t.sizeMultiplier/s.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=V(a),e.height-=a,e.depth+=a},Jt=function(e,t,n,s,a,r){const i=function(e,t,n,s){return Oe.makeSymbol(e,"Size"+t+"-Regular",n,s)}(e,t,a,s),o=Zt(Oe.makeSpan(["delimsizing","size"+t],[i],s),k.TEXT,s,r);return n&&Qt(o,s,k.TEXT),o},en=function(e,t,n){let s;return s="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:Oe.makeSpan(["delimsizinginner",s],[Oe.makeSpan([],[Oe.makeSymbol(e,t,n)])])}},tn=function(e,t,n){const s=T["Size4-Regular"][e.charCodeAt(0)]?T["Size4-Regular"][e.charCodeAt(0)][4]:T["Size1-Regular"][e.charCodeAt(0)][4],a=new J([new ee("inner",M(e,Math.round(1e3*t)))],{width:V(s),height:V(t),style:"width:"+V(s),viewBox:"0 0 "+1e3*s+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),r=Oe.makeSvgSpan([],[a],n);return r.height=t,r.style.height=V(t),r.style.width=V(s),{type:"elem",elem:r}},nn={type:"kern",size:-.008},sn=["|","\\lvert","\\rvert","\\vert"],an=["\\|","\\lVert","\\rVert","\\Vert"],rn=function(e,t,n,s,a,r){let i,o,l,c,h="",m=0;i=l=c=e,o=null;let d="Size1-Regular";"\\uparrow"===e?l=c="⏐":"\\Uparrow"===e?l=c="‖":"\\downarrow"===e?i=l="⏐":"\\Downarrow"===e?i=l="‖":"\\updownarrow"===e?(i="\\uparrow",l="⏐",c="\\downarrow"):"\\Updownarrow"===e?(i="\\Uparrow",l="‖",c="\\Downarrow"):sn.includes(e)?(l="∣",h="vert",m=333):an.includes(e)?(l="∥",h="doublevert",m=556):"["===e||"\\lbrack"===e?(i="⎡",l="⎢",c="⎣",d="Size4-Regular",h="lbrack",m=667):"]"===e||"\\rbrack"===e?(i="⎤",l="⎥",c="⎦",d="Size4-Regular",h="rbrack",m=667):"\\lfloor"===e||"⌊"===e?(l=i="⎢",c="⎣",d="Size4-Regular",h="lfloor",m=667):"\\lceil"===e||"⌈"===e?(i="⎡",l=c="⎢",d="Size4-Regular",h="lceil",m=667):"\\rfloor"===e||"⌋"===e?(l=i="⎥",c="⎦",d="Size4-Regular",h="rfloor",m=667):"\\rceil"===e||"⌉"===e?(i="⎤",l=c="⎥",d="Size4-Regular",h="rceil",m=667):"("===e||"\\lparen"===e?(i="⎛",l="⎜",c="⎝",d="Size4-Regular",h="lparen",m=875):")"===e||"\\rparen"===e?(i="⎞",l="⎟",c="⎠",d="Size4-Regular",h="rparen",m=875):"\\{"===e||"\\lbrace"===e?(i="⎧",o="⎨",c="⎩",l="⎪",d="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(i="⎫",o="⎬",c="⎭",l="⎪",d="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(i="⎧",c="⎩",l="⎪",d="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(i="⎫",c="⎭",l="⎪",d="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(i="⎧",c="⎭",l="⎪",d="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(i="⎫",c="⎩",l="⎪",d="Size4-Regular");const u=Yt(i,d,a),p=u.height+u.depth,g=Yt(l,d,a),f=g.height+g.depth,b=Yt(c,d,a),y=b.height+b.depth;let x=0,w=1;if(null!==o){const e=Yt(o,d,a);x=e.height+e.depth,w=2}const z=p+y+x,v=z+Math.max(0,Math.ceil((t-z)/(w*f)))*w*f;let _=s.fontMetrics().axisHeight;n&&(_*=s.sizeMultiplier);const S=v/2-_,M=[];if(h.length>0){const e=v-p-y,t=Math.round(1e3*v),n=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}}(h,Math.round(1e3*e)),a=new ee(h,n),r=(m/1e3).toFixed(3)+"em",i=(t/1e3).toFixed(3)+"em",o=new J([a],{width:r,height:i,viewBox:"0 0 "+m+" "+t}),l=Oe.makeSvgSpan([],[o],s);l.height=t/1e3,l.style.width=r,l.style.height=i,M.push({type:"elem",elem:l})}else{if(M.push(en(c,d,a)),M.push(nn),null===o){const e=v-p-y+.016;M.push(tn(l,e,s))}else{const e=(v-p-y-x)/2+.016;M.push(tn(l,e,s)),M.push(nn),M.push(en(o,d,a)),M.push(nn),M.push(tn(l,e,s))}M.push(nn),M.push(en(i,d,a))}const A=s.havingBaseStyle(k.TEXT),T=Oe.makeVList({positionType:"bottom",positionData:S,children:M},A);return Zt(Oe.makeSpan(["delimsizing","mult"],[T],A),k.TEXT,s,r)},on=.08,ln=function(e,t,n,s,a){const r=new J([new ee(e,S(e,s,n))],{width:"400em",height:V(t),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Oe.makeSvgSpan(["hide-tail"],[r],a)},cn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],hn=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],mn=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],dn=[0,1.2,1.8,2.4,3],un=[{type:"small",style:k.SCRIPTSCRIPT},{type:"small",style:k.SCRIPT},{type:"small",style:k.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],pn=[{type:"small",style:k.SCRIPTSCRIPT},{type:"small",style:k.SCRIPT},{type:"small",style:k.TEXT},{type:"stack"}],gn=[{type:"small",style:k.SCRIPTSCRIPT},{type:"small",style:k.SCRIPT},{type:"small",style:k.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],fn=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},bn=function(e,t,n,s){for(let a=Math.min(2,3-s.style.size);a<n.length&&"stack"!==n[a].type;a++){const r=Yt(e,fn(n[a]),"math");let i=r.height+r.depth;if("small"===n[a].type&&(i*=s.havingBaseStyle(n[a].style).sizeMultiplier),i>t)return n[a]}return n[n.length-1]},yn=function(e,t,n,s,a,r){let i;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),i=mn.includes(e)?un:cn.includes(e)?gn:pn;const o=bn(e,t,i,s);return"small"===o.type?function(e,t,n,s,a,r){const i=Zt(Oe.makeSymbol(e,"Main-Regular",a,s),t,s,r);return n&&Qt(i,s,t),i}(e,o.style,n,s,a,r):"large"===o.type?Jt(e,o.size,n,s,a,r):rn(e,t,n,s,a,r)};var xn={sqrtImage:function(e,t){const n=t.havingBaseSizing(),s=bn("\\surd",e*n.sizeMultiplier,gn,n);let a=n.sizeMultiplier;const r=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness);let i,o,l=0,c=0,h=0;return"small"===s.type?(h=1e3+1e3*r+80,e<1?a=1:e<1.4&&(a=.7),l=(1+r+on)/a,c=(1+r)/a,i=ln("sqrtMain",l,h,r,t),i.style.minWidth="0.853em",o=.833/a):"large"===s.type?(h=1080*dn[s.size],c=(dn[s.size]+r)/a,l=(dn[s.size]+r+on)/a,i=ln("sqrtSize"+s.size,l,h,r,t),i.style.minWidth="1.02em",o=1/a):(l=e+r+on,c=e+r,h=Math.floor(1e3*e+r)+80,i=ln("sqrtTall",l,h,r,t),i.style.minWidth="0.742em",o=1.056),i.height=c,i.style.height=V(l),{span:i,advanceWidth:o,ruleWidth:(t.fontMetrics().sqrtRuleThickness+r)*a}},sizedDelim:function(e,t,n,a,r){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),cn.includes(e)||mn.includes(e))return Jt(e,t,!1,n,a,r);if(hn.includes(e))return rn(e,dn[t],!1,n,a,r);throw new s("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:dn,customSizedDelim:yn,leftRightDelim:function(e,t,n,s,a,r){const i=s.fontMetrics().axisHeight*s.sizeMultiplier,o=5/s.fontMetrics().ptPerEm,l=Math.max(t-i,n+i);return yn(e,Math.max(l/500*901,2*l-o),!0,s,a,r)}};const kn={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},wn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function zn(e,t){const n=Dt(e);if(n&&wn.includes(n.text))return n;throw new s(n?"Invalid delimiter '"+n.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function vn(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}We({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{const n=zn(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:kn[e.funcName].size,mclass:kn[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>"."===e.delim?Oe.makeSpan([e.mclass]):xn.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{const t=[];"."!==e.delim&&t.push(ft(e.delim,e.mode));const n=new gt.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");const s=V(xn.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",s),n.setAttribute("maxsize",s),n}}),We({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{const n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new s("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:zn(t[0],e).text,color:n}}}),We({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{const n=zn(t[0],e),s=e.parser;++s.leftrightDepth;const a=s.parseExpression(!1);--s.leftrightDepth,s.expect("\\right",!1);const r=It(s.parseFunction(),"leftright-right");return{type:"leftright",mode:s.mode,body:a,left:n.text,right:r.delim,rightColor:r.color}},htmlBuilder:(e,t)=>{vn(e);const n=st(e.body,t,!0,["mopen","mclose"]);let s,a,r=0,i=0,o=!1;for(let l=0;l<n.length;l++)n[l].isMiddle?o=!0:(r=Math.max(n[l].height,r),i=Math.max(n[l].depth,i));if(r*=t.sizeMultiplier,i*=t.sizeMultiplier,s="."===e.left?lt(t,["mopen"]):xn.leftRightDelim(e.left,r,i,t,e.mode,["mopen"]),n.unshift(s),o)for(let l=1;l<n.length;l++){const t=n[l].isMiddle;t&&(n[l]=xn.leftRightDelim(t.delim,r,i,t.options,e.mode,[]))}if("."===e.right)a=lt(t,["mclose"]);else{const n=e.rightColor?t.withColor(e.rightColor):t;a=xn.leftRightDelim(e.right,r,i,n,e.mode,["mclose"])}return n.push(a),Oe.makeSpan(["minner"],n,t)},mathmlBuilder:(e,t)=>{vn(e);const n=kt(e.body,t);if("."!==e.left){const t=new gt.MathNode("mo",[ft(e.left,e.mode)]);t.setAttribute("fence","true"),n.unshift(t)}if("."!==e.right){const t=new gt.MathNode("mo",[ft(e.right,e.mode)]);t.setAttribute("fence","true"),e.rightColor&&t.setAttribute("mathcolor",e.rightColor),n.push(t)}return bt(n)}}),We({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{const n=zn(t[0],e);if(!e.parser.leftrightDepth)throw new s("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{let n;if("."===e.delim)n=lt(t,[]);else{n=xn.sizedDelim(e.delim,1,t,e.mode,[]);const s={delim:e.delim,options:t};n.isMiddle=s}return n},mathmlBuilder:(e,t)=>{const n="\\vert"===e.delim||"|"===e.delim?ft("|","text"):ft(e.delim,e.mode),s=new gt.MathNode("mo",[n]);return s.setAttribute("fence","true"),s.setAttribute("lspace","0.05em"),s.setAttribute("rspace","0.05em"),s}});const _n=(e,t)=>{const n=Oe.wrapFragment(ct(e.body,t),t),s=e.label.slice(1);let a,r=t.sizeMultiplier,i=0;const o=l.isCharacterBox(e.body);if("sout"===s)a=Oe.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/r,i=-.5*t.fontMetrics().xHeight;else if("phase"===s){const e=F({number:.6,unit:"pt"},t),s=F({number:.35,unit:"ex"},t);r/=t.havingBaseSizing().sizeMultiplier;const o=n.height+n.depth+e+s;n.style.paddingLeft=V(o/2+e);const l=Math.floor(1e3*o*r),h=new J([new ee("phase",(c=l,"M400000 "+c+" H0 L"+c/2+" 0 l65 45 L145 "+(c-80)+" H400000z"))],{width:"400em",height:V(l/1e3),viewBox:"0 0 400000 "+l,preserveAspectRatio:"xMinYMin slice"});a=Oe.makeSvgSpan(["hide-tail"],[h],t),a.style.height=V(o),i=n.depth+e+s}else{/cancel/.test(s)?o||n.classes.push("cancel-pad"):"angl"===s?n.classes.push("anglpad"):n.classes.push("boxpad");let r=0,l=0,c=0;/box/.test(s)?(c=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),r=t.fontMetrics().fboxsep+("colorbox"===s?0:c),l=r):"angl"===s?(c=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r=4*c,l=Math.max(0,.25-n.depth)):(r=o?.2:0,l=r),a=Tt(n,s,r,l,t),/fbox|boxed|fcolorbox/.test(s)?(a.style.borderStyle="solid",a.style.borderWidth=V(c)):"angl"===s&&.049!==c&&(a.style.borderTopWidth=V(c),a.style.borderRightWidth=V(c)),i=n.depth+l,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var c;let h;if(e.backgroundColor)h=Oe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:i},{type:"elem",elem:n,shift:0}]},t);else{const e=/cancel|phase/.test(s)?["svg-align"]:[];h=Oe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:i,wrapperClasses:e}]},t)}return/cancel/.test(s)&&(h.height=n.height,h.depth=n.depth),/cancel/.test(s)&&!o?Oe.makeSpan(["mord","cancel-lap"],[h],t):Oe.makeSpan(["mord"],[h],t)},Sn=(e,t)=>{let n=0;const s=new gt.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[zt(e.body,t)]);switch(e.label){case"\\cancel":s.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":s.setAttribute("notation","downdiagonalstrike");break;case"\\phase":s.setAttribute("notation","phasorangle");break;case"\\sout":s.setAttribute("notation","horizontalstrike");break;case"\\fbox":s.setAttribute("notation","box");break;case"\\angl":s.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,s.setAttribute("width","+"+2*n+"pt"),s.setAttribute("height","+"+2*n+"pt"),s.setAttribute("lspace",n+"pt"),s.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){const n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);s.setAttribute("style","border: "+n+"em solid "+String(e.borderColor))}break;case"\\xcancel":s.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&s.setAttribute("mathbackground",e.backgroundColor),s};We({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){let{parser:s,funcName:a}=e;const r=It(t[0],"color-token").color,i=t[1];return{type:"enclose",mode:s.mode,label:a,backgroundColor:r,body:i}},htmlBuilder:_n,mathmlBuilder:Sn}),We({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){let{parser:s,funcName:a}=e;const r=It(t[0],"color-token").color,i=It(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:s.mode,label:a,backgroundColor:i,borderColor:r,body:o}},htmlBuilder:_n,mathmlBuilder:Sn}),We({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){let{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}}),We({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){let{parser:n,funcName:s}=e;const a=t[0];return{type:"enclose",mode:n.mode,label:s,body:a}},htmlBuilder:_n,mathmlBuilder:Sn}),We({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){let{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});const Mn={};function An(e){let{type:t,names:n,props:s,handler:a,htmlBuilder:r,mathmlBuilder:i}=e;const o={type:t,numArgs:s.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a};for(let l=0;l<n.length;++l)Mn[n[l]]=o;r&&(Ue[t]=r),i&&(Ge[t]=i)}const Tn={};function Bn(e,t){Tn[e]=t}class Cn{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new Cn(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class In{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new In(t,Cn.range(this,e))}}function qn(e){const t=[];e.consumeSpaces();let n=e.fetch().text;for("\\relax"===n&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);"\\hline"===n||"\\hdashline"===n;)e.consume(),t.push("\\hdashline"===n),e.consumeSpaces(),n=e.fetch().text;return t}const Dn=e=>{if(!e.parser.settings.displayMode)throw new s("{"+e.envName+"} can be used only in display mode.")};function Hn(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function Nn(e,t,n){let{hskipBeforeAndAfter:a,addJot:r,cols:i,arraystretch:o,colSeparationType:l,autoTag:c,singleRow:h,emptySingleRow:m,maxNumCols:d,leqno:u}=t;if(e.gullet.beginGroup(),h||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){const t=e.gullet.expandMacroAsText("\\arraystretch");if(null==t)o=1;else if(o=parseFloat(t),!o||o<0)throw new s("Invalid \\arraystretch: "+t)}e.gullet.beginGroup();let p=[];const g=[p],f=[],b=[],y=null!=c?[]:void 0;function x(){c&&e.gullet.macros.set("\\@eqnsw","1",!0)}function k(){y&&(e.gullet.macros.get("\\df@tag")?(y.push(e.subparse([new In("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):y.push(Boolean(c)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(x(),b.push(qn(e));;){let t=e.parseExpression(!1,h?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),t={type:"ordgroup",mode:e.mode,body:t},n&&(t={type:"styling",mode:e.mode,style:n,body:[t]}),p.push(t);const a=e.fetch().text;if("&"===a){if(d&&p.length===d){if(h||l)throw new s("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===a){k(),1===p.length&&"styling"===t.type&&0===t.body[0].body.length&&(g.length>1||!m)&&g.pop(),b.length<g.length+1&&b.push([]);break}if("\\\\"!==a)throw new s("Expected & or \\\\ or \\cr or \\end",e.nextToken);{let t;e.consume()," "!==e.gullet.future().text&&(t=e.parseSizeGroup(!0)),f.push(t?t.value:null),k(),b.push(qn(e)),p=[],g.push(p),x()}}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:r,arraystretch:o,body:g,cols:i,rowGaps:f,hskipBeforeAndAfter:a,hLinesBeforeRow:b,colSeparationType:l,tags:y,leqno:u}}function Rn(e){return"d"===e.slice(0,1)?"display":"text"}const En=function(e,t){let n,a;const r=e.body.length,i=e.hLinesBeforeRow;let o=0,c=new Array(r);const h=[],m=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),d=1/t.fontMetrics().ptPerEm;let u=5*d;e.colSeparationType&&"small"===e.colSeparationType&&(u=t.havingStyle(k.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);const p="CD"===e.colSeparationType?F({number:3,unit:"ex"},t):12*d,g=3*d,f=e.arraystretch*p,b=.7*f,y=.3*f;let x=0;function w(e){for(let t=0;t<e.length;++t)t>0&&(x+=.25),h.push({pos:x,isDashed:e[t]})}for(w(i[0]),n=0;n<e.body.length;++n){const s=e.body[n];let r=b,l=y;o<s.length&&(o=s.length);const h=new Array(s.length);for(a=0;a<s.length;++a){const e=ct(s[a],t);l<e.depth&&(l=e.depth),r<e.height&&(r=e.height),h[a]=e}const m=e.rowGaps[n];let d=0;m&&(d=F(m,t),d>0&&(d+=y,l<d&&(l=d),d=0)),e.addJot&&(l+=g),h.height=r,h.depth=l,x+=r,h.pos=x,x+=l+d,c[n]=h,w(i[n+1])}const z=x/2+t.fontMetrics().axisHeight,v=e.cols||[],_=[];let S,M;const A=[];if(e.tags&&e.tags.some((e=>e)))for(n=0;n<r;++n){const s=c[n],a=s.pos-z,r=e.tags[n];let i;i=!0===r?Oe.makeSpan(["eqn-num"],[],t):!1===r?Oe.makeSpan([],[],t):Oe.makeSpan([],st(r,t,!0),t),i.depth=s.depth,i.height=s.height,A.push({type:"elem",elem:i,shift:a})}for(a=0,M=0;a<o||M<v.length;++a,++M){let i,h=v[M]||{},d=!0;for(;"separator"===h.type;){if(d||(S=Oe.makeSpan(["arraycolsep"],[]),S.style.width=V(t.fontMetrics().doubleRuleSep),_.push(S)),"|"!==h.separator&&":"!==h.separator)throw new s("Invalid separator type: "+h.separator);{const e="|"===h.separator?"solid":"dashed",n=Oe.makeSpan(["vertical-separator"],[],t);n.style.height=V(x),n.style.borderRightWidth=V(m),n.style.borderRightStyle=e,n.style.margin="0 "+V(-m/2);const s=x-z;s&&(n.style.verticalAlign=V(-s)),_.push(n)}M++,h=v[M]||{},d=!1}if(a>=o)continue;(a>0||e.hskipBeforeAndAfter)&&(i=l.deflt(h.pregap,u),0!==i&&(S=Oe.makeSpan(["arraycolsep"],[]),S.style.width=V(i),_.push(S)));let p=[];for(n=0;n<r;++n){const e=c[n],t=e[a];if(!t)continue;const s=e.pos-z;t.depth=e.depth,t.height=e.height,p.push({type:"elem",elem:t,shift:s})}p=Oe.makeVList({positionType:"individualShift",children:p},t),p=Oe.makeSpan(["col-align-"+(h.align||"c")],[p]),_.push(p),(a<o-1||e.hskipBeforeAndAfter)&&(i=l.deflt(h.postgap,u),0!==i&&(S=Oe.makeSpan(["arraycolsep"],[]),S.style.width=V(i),_.push(S)))}if(c=Oe.makeSpan(["mtable"],_),h.length>0){const e=Oe.makeLineSpan("hline",t,m),n=Oe.makeLineSpan("hdashline",t,m),s=[{type:"elem",elem:c,shift:0}];for(;h.length>0;){const t=h.pop(),a=t.pos-z;t.isDashed?s.push({type:"elem",elem:n,shift:a}):s.push({type:"elem",elem:e,shift:a})}c=Oe.makeVList({positionType:"individualShift",children:s},t)}if(0===A.length)return Oe.makeSpan(["mord"],[c],t);{let e=Oe.makeVList({positionType:"individualShift",children:A},t);return e=Oe.makeSpan(["tag"],[e],t),Oe.makeFragment([c,e])}},Pn={c:"center ",l:"left ",r:"right "},On=function(e,t){const n=[],s=new gt.MathNode("mtd",[],["mtr-glue"]),a=new gt.MathNode("mtd",[],["mml-eqn-num"]);for(let m=0;m<e.body.length;m++){const r=e.body[m],i=[];for(let e=0;e<r.length;e++)i.push(new gt.MathNode("mtd",[zt(r[e],t)]));e.tags&&e.tags[m]&&(i.unshift(s),i.push(s),e.leqno?i.unshift(a):i.push(a)),n.push(new gt.MathNode("mtr",i))}let r=new gt.MathNode("mtable",n);const i=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);r.setAttribute("rowspacing",V(i));let o="",l="";if(e.cols&&e.cols.length>0){const t=e.cols;let n="",s=!1,a=0,i=t.length;"separator"===t[0].type&&(o+="top ",a=1),"separator"===t[t.length-1].type&&(o+="bottom ",i-=1);for(let e=a;e<i;e++)"align"===t[e].type?(l+=Pn[t[e].align],s&&(n+="none "),s=!0):"separator"===t[e].type&&s&&(n+="|"===t[e].separator?"solid ":"dashed ",s=!1);r.setAttribute("columnalign",l.trim()),/[sd]/.test(n)&&r.setAttribute("columnlines",n.trim())}if("align"===e.colSeparationType){const t=e.cols||[];let n="";for(let e=1;e<t.length;e++)n+=e%2?"0em ":"1em ";r.setAttribute("columnspacing",n.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?r.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?r.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?r.setAttribute("columnspacing","0.5em"):r.setAttribute("columnspacing","1em");let c="";const h=e.hLinesBeforeRow;o+=h[0].length>0?"left ":"",o+=h[h.length-1].length>0?"right ":"";for(let m=1;m<h.length-1;m++)c+=0===h[m].length?"none ":h[m][0]?"dashed ":"solid ";return/[sd]/.test(c)&&r.setAttribute("rowlines",c.trim()),""!==o&&(r=new gt.MathNode("menclose",[r]),r.setAttribute("notation",o.trim())),e.arraystretch&&e.arraystretch<1&&(r=new gt.MathNode("mstyle",[r]),r.setAttribute("scriptlevel","1")),r},Ln=function(e,t){-1===e.envName.indexOf("ed")&&Dn(e);const n=[],a=e.envName.indexOf("at")>-1?"alignat":"align",r="split"===e.envName,i=Nn(e.parser,{cols:n,addJot:!0,autoTag:r?void 0:Hn(e.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:r?2:void 0,leqno:e.parser.settings.leqno},"display");let o,l=0;const c={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){let e="";for(let n=0;n<t[0].body.length;n++)e+=It(t[0].body[n],"textord").text;o=Number(e),l=2*o}const h=!l;i.body.forEach((function(e){for(let t=1;t<e.length;t+=2)It(It(e[t],"styling").body[0],"ordgroup").body.unshift(c);if(h)l<e.length&&(l=e.length);else{const t=e.length/2;if(o<t)throw new s("Too many math in a row: expected "+o+", but got "+t,e[0])}}));for(let s=0;s<l;++s){let e="r",t=0;s%2==1?e="l":s>0&&h&&(t=1),n[s]={type:"align",align:e,pregap:t,postgap:0}}return i.colSeparationType=h?"align":"alignat",i};An({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){const n=(Dt(t[0])?[t[0]]:It(t[0],"ordgroup").body).map((function(e){const t=qt(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new s("Unknown column alignment: "+t,e)})),a={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Nn(e.parser,a,Rn(e.envName))},htmlBuilder:En,mathmlBuilder:On}),An({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){const t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")];let n="c";const a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if("*"===e.envName.charAt(e.envName.length-1)){const t=e.parser;if(t.consumeSpaces(),"["===t.fetch().text){if(t.consume(),t.consumeSpaces(),n=t.fetch().text,-1==="lcr".indexOf(n))throw new s("Expected l or c or r",t.nextToken);t.consume(),t.consumeSpaces(),t.expect("]"),t.consume(),a.cols=[{type:"align",align:n}]}}const r=Nn(e.parser,a,Rn(e.envName)),i=Math.max(0,...r.body.map((e=>e.length)));return r.cols=new Array(i).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[r],left:t[0],right:t[1],rightColor:void 0}:r},htmlBuilder:En,mathmlBuilder:On}),An({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){const t=Nn(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:En,mathmlBuilder:On}),An({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){const n=(Dt(t[0])?[t[0]]:It(t[0],"ordgroup").body).map((function(e){const t=qt(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new s("Unknown column alignment: "+t,e)}));if(n.length>1)throw new s("{subarray} can contain only one column");let a={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Nn(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new s("{subarray} can contain only one column");return a},htmlBuilder:En,mathmlBuilder:On}),An({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){const t=Nn(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Rn(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:En,mathmlBuilder:On}),An({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Ln,htmlBuilder:En,mathmlBuilder:On}),An({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&Dn(e);const t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Hn(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Nn(e.parser,t,"display")},htmlBuilder:En,mathmlBuilder:On}),An({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Ln,htmlBuilder:En,mathmlBuilder:On}),An({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Dn(e);const t={autoTag:Hn(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Nn(e.parser,t,"display")},htmlBuilder:En,mathmlBuilder:On}),An({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(Dn(e),function(e){const t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();const n=e.fetch().text;if("&"!==n&&"\\\\"!==n){if("\\end"===n){0===t[t.length-1].length&&t.pop();break}throw new s("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}let n=[];const a=[n];for(let o=0;o<t.length;o++){const l=t[o];let c={type:"styling",body:[],mode:"math",style:"display"};for(let t=0;t<l.length;t++)if(Xt(l[t])){n.push(c),t+=1;const a=qt(l[t]).text,o=new Array(2);if(o[0]={type:"ordgroup",mode:"math",body:[]},o[1]={type:"ordgroup",mode:"math",body:[]},"=|.".indexOf(a)>-1);else{if(!("<>AV".indexOf(a)>-1))throw new s('Expected one of "<>AV=|." after @',l[t]);for(let e=0;e<2;e++){let n=!0;for(let c=t+1;c<l.length;c++){if(i=a,("mathord"===(r=l[c]).type||"atom"===r.type)&&r.text===i){n=!1,t=c;break}if(Xt(l[c]))throw new s("Missing a "+a+" character to complete a CD arrow.",l[c]);o[e].body.push(l[c])}if(n)throw new s("Missing a "+a+" character to complete a CD arrow.",l[t])}}const h={type:"styling",body:[$t(a,o,e)],mode:"math",style:"display"};n.push(h),c={type:"styling",body:[],mode:"math",style:"display"}}else c.body.push(l[t]);o%2==0?n.push(c):n.shift(),n=[],a.push(n)}var r,i;return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}(e.parser)),htmlBuilder:En,mathmlBuilder:On}),Bn("\\nonumber","\\gdef\\@eqnsw{0}"),Bn("\\notag","\\nonumber"),We({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new s(e.funcName+" valid only within array environment")}});var Fn=Mn;We({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){let{parser:n,funcName:a}=e;const r=t[0];if("ordgroup"!==r.type)throw new s("Invalid environment name",r);let i="";for(let s=0;s<r.body.length;++s)i+=It(r.body[s],"textord").text;if("\\begin"===a){if(!Fn.hasOwnProperty(i))throw new s("No such environment: "+i,r);const e=Fn[i],{args:t,optArgs:a}=n.parseArguments("\\begin{"+i+"}",e),o={mode:n.mode,envName:i,parser:n},l=e.handler(o,t,a);n.expect("\\end",!1);const c=n.nextToken,h=It(n.parseFunction(),"environment");if(h.name!==i)throw new s("Mismatch: \\begin{"+i+"} matched by \\end{"+h.name+"}",c);return l}return{type:"environment",mode:n.mode,name:i,nameGroup:r}}});const Vn=(e,t)=>{const n=e.font,s=t.withFont(n);return ct(e.body,s)},Xn=(e,t)=>{const n=e.font,s=t.withFont(n);return zt(e.body,s)},$n={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};We({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{let{parser:n,funcName:s}=e;const a=Ye(t[0]);let r=s;return r in $n&&(r=$n[r]),{type:"font",mode:n.mode,font:r.slice(1),body:a}},htmlBuilder:Vn,mathmlBuilder:Xn}),We({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{let{parser:n}=e;const s=t[0],a=l.isCharacterBox(s);return{type:"mclass",mode:n.mode,mclass:Ft(s),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:s}],isCharacterBox:a}}}),We({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{let{parser:n,funcName:s,breakOnTokenText:a}=e;const{mode:r}=n,i=n.parseExpression(!0,a);return{type:"font",mode:r,font:"math"+s.slice(1),body:{type:"ordgroup",mode:n.mode,body:i}}},htmlBuilder:Vn,mathmlBuilder:Xn});const Kn=(e,t)=>{let n=t;return"display"===e?n=n.id>=k.SCRIPT.id?n.text():k.DISPLAY:"text"===e&&n.size===k.DISPLAY.size?n=k.TEXT:"script"===e?n=k.SCRIPT:"scriptscript"===e&&(n=k.SCRIPTSCRIPT),n},Un=(e,t)=>{const n=Kn(e.size,t.style),s=n.fracNum(),a=n.fracDen();let r;r=t.havingStyle(s);const i=ct(e.numer,r,t);if(e.continued){const e=8.5/t.fontMetrics().ptPerEm,n=3.5/t.fontMetrics().ptPerEm;i.height=i.height<e?e:i.height,i.depth=i.depth<n?n:i.depth}r=t.havingStyle(a);const o=ct(e.denom,r,t);let l,c,h,m,d,u,p,g,f,b;if(e.hasBarLine?(e.barSize?(c=F(e.barSize,t),l=Oe.makeLineSpan("frac-line",t,c)):l=Oe.makeLineSpan("frac-line",t),c=l.height,h=l.height):(l=null,c=0,h=t.fontMetrics().defaultRuleThickness),n.size===k.DISPLAY.size||"display"===e.size?(m=t.fontMetrics().num1,d=c>0?3*h:7*h,u=t.fontMetrics().denom1):(c>0?(m=t.fontMetrics().num2,d=h):(m=t.fontMetrics().num3,d=3*h),u=t.fontMetrics().denom2),l){const e=t.fontMetrics().axisHeight;m-i.depth-(e+.5*c)<d&&(m+=d-(m-i.depth-(e+.5*c))),e-.5*c-(o.height-u)<d&&(u+=d-(e-.5*c-(o.height-u)));const n=-(e-.5*c);p=Oe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:l,shift:n},{type:"elem",elem:i,shift:-m}]},t)}else{const e=m-i.depth-(o.height-u);e<d&&(m+=.5*(d-e),u+=.5*(d-e)),p=Oe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:u},{type:"elem",elem:i,shift:-m}]},t)}return r=t.havingStyle(n),p.height*=r.sizeMultiplier/t.sizeMultiplier,p.depth*=r.sizeMultiplier/t.sizeMultiplier,g=n.size===k.DISPLAY.size?t.fontMetrics().delim1:n.size===k.SCRIPTSCRIPT.size?t.havingStyle(k.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,f=null==e.leftDelim?lt(t,["mopen"]):xn.customSizedDelim(e.leftDelim,g,!0,t.havingStyle(n),e.mode,["mopen"]),b=e.continued?Oe.makeSpan([]):null==e.rightDelim?lt(t,["mclose"]):xn.customSizedDelim(e.rightDelim,g,!0,t.havingStyle(n),e.mode,["mclose"]),Oe.makeSpan(["mord"].concat(r.sizingClasses(t)),[f,Oe.makeSpan(["mfrac"],[p]),b],t)},Gn=(e,t)=>{let n=new gt.MathNode("mfrac",[zt(e.numer,t),zt(e.denom,t)]);if(e.hasBarLine){if(e.barSize){const s=F(e.barSize,t);n.setAttribute("linethickness",V(s))}}else n.setAttribute("linethickness","0px");const s=Kn(e.size,t.style);if(s.size!==t.style.size){n=new gt.MathNode("mstyle",[n]);const e=s.size===k.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",e),n.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){const t=[];if(null!=e.leftDelim){const n=new gt.MathNode("mo",[new gt.TextNode(e.leftDelim.replace("\\",""))]);n.setAttribute("fence","true"),t.push(n)}if(t.push(n),null!=e.rightDelim){const n=new gt.MathNode("mo",[new gt.TextNode(e.rightDelim.replace("\\",""))]);n.setAttribute("fence","true"),t.push(n)}return bt(t)}return n};We({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{let{parser:n,funcName:s}=e;const a=t[0],r=t[1];let i,o=null,l=null,c="auto";switch(s){case"\\dfrac":case"\\frac":case"\\tfrac":i=!0;break;case"\\\\atopfrac":i=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i=!1,o="(",l=")";break;case"\\\\bracefrac":i=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":i=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(s){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text"}return{type:"genfrac",mode:n.mode,continued:!1,numer:a,denom:r,hasBarLine:i,leftDelim:o,rightDelim:l,size:c,barSize:null}},htmlBuilder:Un,mathmlBuilder:Gn}),We({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{let{parser:n,funcName:s}=e;const a=t[0],r=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:a,denom:r,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),We({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){let t,{parser:n,funcName:s,token:a}=e;switch(s){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:t,token:a}}});const Wn=["display","text","script","scriptscript"],jn=function(e){let t=null;return e.length>0&&(t=e,t="."===t?null:t),t};We({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){let{parser:n}=e;const s=t[4],a=t[5],r=Ye(t[0]),i="atom"===r.type&&"open"===r.family?jn(r.text):null,o=Ye(t[1]),l="atom"===o.type&&"close"===o.family?jn(o.text):null,c=It(t[2],"size");let h,m=null;c.isBlank?h=!0:(m=c.value,h=m.number>0);let d="auto",u=t[3];if("ordgroup"===u.type){if(u.body.length>0){const e=It(u.body[0],"textord");d=Wn[Number(e.text)]}}else u=It(u,"textord"),d=Wn[Number(u.text)];return{type:"genfrac",mode:n.mode,numer:s,denom:a,continued:!1,hasBarLine:h,barSize:m,leftDelim:i,rightDelim:l,size:d}},htmlBuilder:Un,mathmlBuilder:Gn}),We({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){let{parser:n,funcName:s,token:a}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:It(t[0],"size").value,token:a}}}),We({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{let{parser:n,funcName:s}=e;const a=t[0],r=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(It(t[1],"infix").size),i=t[2],o=r.number>0;return{type:"genfrac",mode:n.mode,numer:a,denom:i,continued:!1,hasBarLine:o,barSize:r,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Un,mathmlBuilder:Gn});const Yn=(e,t)=>{const n=t.style;let s,a;"supsub"===e.type?(s=e.sup?ct(e.sup,t.havingStyle(n.sup()),t):ct(e.sub,t.havingStyle(n.sub()),t),a=It(e.base,"horizBrace")):a=It(e,"horizBrace");const r=ct(a.base,t.havingBaseStyle(k.DISPLAY)),i=Ct(a,t);let o;if(a.isOver?(o=Oe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:.1},{type:"elem",elem:i}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=Oe.makeVList({positionType:"bottom",positionData:r.depth+.1+i.height,children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:r}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),s){const e=Oe.makeSpan(["mord",a.isOver?"mover":"munder"],[o],t);o=a.isOver?Oe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:.2},{type:"elem",elem:s}]},t):Oe.makeVList({positionType:"bottom",positionData:e.depth+.2+s.height+s.depth,children:[{type:"elem",elem:s},{type:"kern",size:.2},{type:"elem",elem:e}]},t)}return Oe.makeSpan(["mord",a.isOver?"mover":"munder"],[o],t)};We({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){let{parser:n,funcName:s}=e;return{type:"horizBrace",mode:n.mode,label:s,isOver:/^\\over/.test(s),base:t[0]}},htmlBuilder:Yn,mathmlBuilder:(e,t)=>{const n=Bt(e.label);return new gt.MathNode(e.isOver?"mover":"munder",[zt(e.base,t),n])}}),We({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{let{parser:n}=e;const s=t[1],a=It(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:n.mode,href:a,body:Ze(s)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{const n=st(e.body,t,!1);return Oe.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{let n=wt(e.body,t);return n instanceof ut||(n=new ut("mrow",[n])),n.setAttribute("href",e.href),n}}),We({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{let{parser:n}=e;const s=It(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:s}))return n.formatUnsupportedCmd("\\url");const a=[];for(let i=0;i<s.length;i++){let e=s[i];"~"===e&&(e="\\textasciitilde"),a.push({type:"textord",mode:"text",text:e})}const r={type:"text",mode:n.mode,font:"\\texttt",body:a};return{type:"href",mode:n.mode,href:s,body:Ze(r)}}}),We({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){let{parser:n}=e;return{type:"hbox",mode:n.mode,body:Ze(t[0])}},htmlBuilder(e,t){const n=st(e.body,t,!1);return Oe.makeFragment(n)},mathmlBuilder:(e,t)=>new gt.MathNode("mrow",kt(e.body,t))}),We({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{let{parser:n,funcName:a,token:r}=e;const i=It(t[0],"raw").string,o=t[1];let l;n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");const c={};switch(a){case"\\htmlClass":c.class=i,l={command:"\\htmlClass",class:i};break;case"\\htmlId":c.id=i,l={command:"\\htmlId",id:i};break;case"\\htmlStyle":c.style=i,l={command:"\\htmlStyle",style:i};break;case"\\htmlData":{const e=i.split(",");for(let t=0;t<e.length;t++){const n=e[t],a=n.indexOf("=");if(a<0)throw new s("\\htmlData key/value '"+n+"' missing equals sign");const r=n.slice(0,a),i=n.slice(a+1);c["data-"+r.trim()]=i}l={command:"\\htmlData",attributes:c};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(l)?{type:"html",mode:n.mode,attributes:c,body:Ze(o)}:n.formatUnsupportedCmd(a)},htmlBuilder:(e,t)=>{const n=st(e.body,t,!1),s=["enclosing"];e.attributes.class&&s.push(...e.attributes.class.trim().split(/\s+/));const a=Oe.makeSpan(s,n,t);for(const r in e.attributes)"class"!==r&&e.attributes.hasOwnProperty(r)&&a.setAttribute(r,e.attributes[r]);return a},mathmlBuilder:(e,t)=>wt(e.body,t)}),We({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{let{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:Ze(t[0]),mathml:Ze(t[1])}},htmlBuilder:(e,t)=>{const n=st(e.html,t,!1);return Oe.makeFragment(n)},mathmlBuilder:(e,t)=>wt(e.mathml,t)});const Zn=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};{const t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new s("Invalid size: '"+e+"' in \\includegraphics");const n={number:+(t[1]+t[2]),unit:t[3]};if(!L(n))throw new s("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n}};We({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{let{parser:a}=e,r={number:0,unit:"em"},i={number:.9,unit:"em"},o={number:0,unit:"em"},l="";if(n[0]){const e=It(n[0],"raw").string.split(",");for(let t=0;t<e.length;t++){const n=e[t].split("=");if(2===n.length){const e=n[1].trim();switch(n[0].trim()){case"alt":l=e;break;case"width":r=Zn(e);break;case"height":i=Zn(e);break;case"totalheight":o=Zn(e);break;default:throw new s("Invalid key: '"+n[0]+"' in \\includegraphics.")}}}}const c=It(t[0],"url").url;return""===l&&(l=c,l=l.replace(/^.*[\\/]/,""),l=l.substring(0,l.lastIndexOf("."))),a.settings.isTrusted({command:"\\includegraphics",url:c})?{type:"includegraphics",mode:a.mode,alt:l,width:r,height:i,totalheight:o,src:c}:a.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{const n=F(e.height,t);let s=0;e.totalheight.number>0&&(s=F(e.totalheight,t)-n);let a=0;e.width.number>0&&(a=F(e.width,t));const r={height:V(n+s)};a>0&&(r.width=V(a)),s>0&&(r.verticalAlign=V(-s));const i=new Y(e.src,e.alt,r);return i.height=n,i.depth=s,i},mathmlBuilder:(e,t)=>{const n=new gt.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);const s=F(e.height,t);let a=0;if(e.totalheight.number>0&&(a=F(e.totalheight,t)-s,n.setAttribute("valign",V(-a))),n.setAttribute("height",V(s+a)),e.width.number>0){const s=F(e.width,t);n.setAttribute("width",V(s))}return n.setAttribute("src",e.src),n}}),We({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){let{parser:n,funcName:s}=e;const a=It(t[0],"size");if(n.settings.strict){const e="m"===s[1],t="mu"===a.value.unit;e?(t||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+s+" supports only mu units, not "+a.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+s+" works only in math mode")):t&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+s+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:a.value}},htmlBuilder:(e,t)=>Oe.makeGlue(e.dimension,t),mathmlBuilder(e,t){const n=F(e.dimension,t);return new gt.SpaceNode(n)}}),We({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{let{parser:n,funcName:s}=e;const a=t[0];return{type:"lap",mode:n.mode,alignment:s.slice(5),body:a}},htmlBuilder:(e,t)=>{let n;"clap"===e.alignment?(n=Oe.makeSpan([],[ct(e.body,t)]),n=Oe.makeSpan(["inner"],[n],t)):n=Oe.makeSpan(["inner"],[ct(e.body,t)]);const s=Oe.makeSpan(["fix"],[]);let a=Oe.makeSpan([e.alignment],[n,s],t);const r=Oe.makeSpan(["strut"]);return r.style.height=V(a.height+a.depth),a.depth&&(r.style.verticalAlign=V(-a.depth)),a.children.unshift(r),a=Oe.makeSpan(["thinbox"],[a],t),Oe.makeSpan(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{const n=new gt.MathNode("mpadded",[zt(e.body,t)]);if("rlap"!==e.alignment){const t="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",t+"width")}return n.setAttribute("width","0px"),n}}),We({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){let{funcName:n,parser:s}=e;const a=s.mode;s.switchMode("math");const r="\\("===n?"\\)":"$",i=s.parseExpression(!1,r);return s.expect(r),s.switchMode(a),{type:"styling",mode:s.mode,style:"text",body:i}}}),We({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new s("Mismatched "+e.funcName)}});const Qn=(e,t)=>{switch(t.style.size){case k.DISPLAY.size:return e.display;case k.TEXT.size:return e.text;case k.SCRIPT.size:return e.script;case k.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};We({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{let{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Ze(t[0]),text:Ze(t[1]),script:Ze(t[2]),scriptscript:Ze(t[3])}},htmlBuilder:(e,t)=>{const n=st(Qn(e,t),t,!1);return Oe.makeFragment(n)},mathmlBuilder:(e,t)=>wt(Qn(e,t),t)});const Jn=(e,t,n,s,a,r,i)=>{e=Oe.makeSpan([],[e]);const o=n&&l.isCharacterBox(n);let c,h,m;if(t){const e=ct(t,s.havingStyle(a.sup()),s);h={elem:e,kern:Math.max(s.fontMetrics().bigOpSpacing1,s.fontMetrics().bigOpSpacing3-e.depth)}}if(n){const e=ct(n,s.havingStyle(a.sub()),s);c={elem:e,kern:Math.max(s.fontMetrics().bigOpSpacing2,s.fontMetrics().bigOpSpacing4-e.height)}}if(h&&c){const t=s.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+i;m=Oe.makeVList({positionType:"bottom",positionData:t,children:[{type:"kern",size:s.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:V(-r)},{type:"kern",size:c.kern},{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:V(r)},{type:"kern",size:s.fontMetrics().bigOpSpacing5}]},s)}else if(c){const t=e.height-i;m=Oe.makeVList({positionType:"top",positionData:t,children:[{type:"kern",size:s.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:V(-r)},{type:"kern",size:c.kern},{type:"elem",elem:e}]},s)}else{if(!h)return e;{const t=e.depth+i;m=Oe.makeVList({positionType:"bottom",positionData:t,children:[{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:V(r)},{type:"kern",size:s.fontMetrics().bigOpSpacing5}]},s)}}const d=[m];if(c&&0!==r&&!o){const e=Oe.makeSpan(["mspace"],[],s);e.style.marginRight=V(r),d.unshift(e)}return Oe.makeSpan(["mop","op-limits"],d,s)},es=["\\smallint"],ts=(e,t)=>{let n,s,a,r=!1;"supsub"===e.type?(n=e.sup,s=e.sub,a=It(e.base,"op"),r=!0):a=It(e,"op");const i=t.style;let o,l=!1;if(i.size===k.DISPLAY.size&&a.symbol&&!es.includes(a.name)&&(l=!0),a.symbol){const e=l?"Size2-Regular":"Size1-Regular";let n="";if("\\oiint"!==a.name&&"\\oiiint"!==a.name||(n=a.name.slice(1),a.name="oiint"===n?"\\iint":"\\iiint"),o=Oe.makeSymbol(a.name,e,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),n.length>0){const e=o.italic,s=Oe.staticSvg(n+"Size"+(l?"2":"1"),t);o=Oe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:s,shift:l?.08:0}]},t),a.name="\\"+n,o.classes.unshift("mop"),o.italic=e}}else if(a.body){const e=st(a.body,t,!0);1===e.length&&e[0]instanceof Q?(o=e[0],o.classes[0]="mop"):o=Oe.makeSpan(["mop"],e,t)}else{const e=[];for(let n=1;n<a.name.length;n++)e.push(Oe.mathsym(a.name[n],a.mode,t));o=Oe.makeSpan(["mop"],e,t)}let c=0,h=0;return(o instanceof Q||"\\oiint"===a.name||"\\oiiint"===a.name)&&!a.suppressBaseShift&&(c=(o.height-o.depth)/2-t.fontMetrics().axisHeight,h=o.italic),r?Jn(o,n,s,t,i,h,c):(c&&(o.style.position="relative",o.style.top=V(c)),o)},ns=(e,t)=>{let n;if(e.symbol)n=new ut("mo",[ft(e.name,e.mode)]),es.includes(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new ut("mo",kt(e.body,t));else{n=new ut("mi",[new pt(e.name.slice(1))]);const t=new ut("mo",[ft("","text")]);n=e.parentIsSupSub?new ut("mrow",[n,t]):dt([n,t])}return n},ss={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};We({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{let{parser:n,funcName:s}=e,a=s;return 1===a.length&&(a=ss[a]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:ts,mathmlBuilder:ns}),We({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{let{parser:n}=e;const s=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ze(s)}},htmlBuilder:ts,mathmlBuilder:ns});const as={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};We({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){let{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:ts,mathmlBuilder:ns}),We({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){let{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:ts,mathmlBuilder:ns}),We({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){let{parser:t,funcName:n}=e,s=n;return 1===s.length&&(s=as[s]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:s}},htmlBuilder:ts,mathmlBuilder:ns});const rs=(e,t)=>{let n,s,a,r,i=!1;if("supsub"===e.type?(n=e.sup,s=e.sub,a=It(e.base,"operatorname"),i=!0):a=It(e,"operatorname"),a.body.length>0){const e=st(a.body.map((e=>{const t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),t.withFont("mathrm"),!0);for(let t=0;t<e.length;t++){const n=e[t];n instanceof Q&&(n.text=n.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}r=Oe.makeSpan(["mop"],e,t)}else r=Oe.makeSpan(["mop"],[],t);return i?Jn(r,n,s,t,t.style,0,0):r};function is(e,t,n){const s=st(e,t,!1),a=t.sizeMultiplier/n.sizeMultiplier;for(let r=0;r<s.length;r++){const e=s[r].classes.indexOf("sizing");e<0?Array.prototype.push.apply(s[r].classes,t.sizingClasses(n)):s[r].classes[e+1]==="reset-size"+t.size&&(s[r].classes[e+1]="reset-size"+n.size),s[r].height*=a,s[r].depth*=a}return Oe.makeFragment(s)}We({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{let{parser:n,funcName:s}=e;const a=t[0];return{type:"operatorname",mode:n.mode,body:Ze(a),alwaysHandleSupSub:"\\operatornamewithlimits"===s,limits:!1,parentIsSupSub:!1}},htmlBuilder:rs,mathmlBuilder:(e,t)=>{let n=kt(e.body,t.withFont("mathrm")),s=!0;for(let i=0;i<n.length;i++){const e=n[i];if(e instanceof gt.SpaceNode);else if(e instanceof gt.MathNode)switch(e.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{const t=e.children[0];1===e.children.length&&t instanceof gt.TextNode?t.text=t.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):s=!1;break}default:s=!1}else s=!1}if(s){const e=n.map((e=>e.toText())).join("");n=[new gt.TextNode(e)]}const a=new gt.MathNode("mi",n);a.setAttribute("mathvariant","normal");const r=new gt.MathNode("mo",[ft("","text")]);return e.parentIsSupSub?new gt.MathNode("mrow",[a,r]):gt.newDocumentFragment([a,r])}}),Bn("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),je({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?Oe.makeFragment(st(e.body,t,!1)):Oe.makeSpan(["mord"],st(e.body,t,!0),t),mathmlBuilder:(e,t)=>wt(e.body,t,!0)}),We({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){let{parser:n}=e;const s=t[0];return{type:"overline",mode:n.mode,body:s}},htmlBuilder(e,t){const n=ct(e.body,t.havingCrampedStyle()),s=Oe.makeLineSpan("overline-line",t),a=t.fontMetrics().defaultRuleThickness,r=Oe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:s},{type:"kern",size:a}]},t);return Oe.makeSpan(["mord","overline"],[r],t)},mathmlBuilder(e,t){const n=new gt.MathNode("mo",[new gt.TextNode("‾")]);n.setAttribute("stretchy","true");const s=new gt.MathNode("mover",[zt(e.body,t),n]);return s.setAttribute("accent","true"),s}}),We({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{let{parser:n}=e;const s=t[0];return{type:"phantom",mode:n.mode,body:Ze(s)}},htmlBuilder:(e,t)=>{const n=st(e.body,t.withPhantom(),!1);return Oe.makeFragment(n)},mathmlBuilder:(e,t)=>{const n=kt(e.body,t);return new gt.MathNode("mphantom",n)}}),We({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{let{parser:n}=e;const s=t[0];return{type:"hphantom",mode:n.mode,body:s}},htmlBuilder:(e,t)=>{let n=Oe.makeSpan([],[ct(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(let s=0;s<n.children.length;s++)n.children[s].height=0,n.children[s].depth=0;return n=Oe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),Oe.makeSpan(["mord"],[n],t)},mathmlBuilder:(e,t)=>{const n=kt(Ze(e.body),t),s=new gt.MathNode("mphantom",n),a=new gt.MathNode("mpadded",[s]);return a.setAttribute("height","0px"),a.setAttribute("depth","0px"),a}}),We({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{let{parser:n}=e;const s=t[0];return{type:"vphantom",mode:n.mode,body:s}},htmlBuilder:(e,t)=>{const n=Oe.makeSpan(["inner"],[ct(e.body,t.withPhantom())]),s=Oe.makeSpan(["fix"],[]);return Oe.makeSpan(["mord","rlap"],[n,s],t)},mathmlBuilder:(e,t)=>{const n=kt(Ze(e.body),t),s=new gt.MathNode("mphantom",n),a=new gt.MathNode("mpadded",[s]);return a.setAttribute("width","0px"),a}}),We({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){let{parser:n}=e;const s=It(t[0],"size").value,a=t[1];return{type:"raisebox",mode:n.mode,dy:s,body:a}},htmlBuilder(e,t){const n=ct(e.body,t),s=F(e.dy,t);return Oe.makeVList({positionType:"shift",positionData:-s,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){const n=new gt.MathNode("mpadded",[zt(e.body,t)]),s=e.dy.number+e.dy.unit;return n.setAttribute("voffset",s),n}}),We({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){let{parser:t}=e;return{type:"internal",mode:t.mode}}}),We({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){let{parser:s}=e;const a=n[0],r=It(t[0],"size"),i=It(t[1],"size");return{type:"rule",mode:s.mode,shift:a&&It(a,"size").value,width:r.value,height:i.value}},htmlBuilder(e,t){const n=Oe.makeSpan(["mord","rule"],[],t),s=F(e.width,t),a=F(e.height,t),r=e.shift?F(e.shift,t):0;return n.style.borderRightWidth=V(s),n.style.borderTopWidth=V(a),n.style.bottom=V(r),n.width=s,n.height=a+r,n.depth=-r,n.maxFontSize=1.125*a*t.sizeMultiplier,n},mathmlBuilder(e,t){const n=F(e.width,t),s=F(e.height,t),a=e.shift?F(e.shift,t):0,r=t.color&&t.getColor()||"black",i=new gt.MathNode("mspace");i.setAttribute("mathbackground",r),i.setAttribute("width",V(n)),i.setAttribute("height",V(s));const o=new gt.MathNode("mpadded",[i]);return a>=0?o.setAttribute("height",V(a)):(o.setAttribute("height",V(a)),o.setAttribute("depth",V(-a))),o.setAttribute("voffset",V(a)),o}});const os=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];We({type:"sizing",names:os,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{let{breakOnTokenText:n,funcName:s,parser:a}=e;const r=a.parseExpression(!1,n);return{type:"sizing",mode:a.mode,size:os.indexOf(s)+1,body:r}},htmlBuilder:(e,t)=>{const n=t.havingSize(e.size);return is(e.body,n,t)},mathmlBuilder:(e,t)=>{const n=t.havingSize(e.size),s=kt(e.body,n),a=new gt.MathNode("mstyle",s);return a.setAttribute("mathsize",V(n.sizeMultiplier)),a}}),We({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{let{parser:s}=e,a=!1,r=!1;const i=n[0]&&It(n[0],"ordgroup");if(i){let e="";for(let t=0;t<i.body.length;++t)if(e=i.body[t].text,"t"===e)a=!0;else{if("b"!==e){a=!1,r=!1;break}r=!0}}else a=!0,r=!0;const o=t[0];return{type:"smash",mode:s.mode,body:o,smashHeight:a,smashDepth:r}},htmlBuilder:(e,t)=>{const n=Oe.makeSpan([],[ct(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(let a=0;a<n.children.length;a++)n.children[a].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(let a=0;a<n.children.length;a++)n.children[a].depth=0;const s=Oe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return Oe.makeSpan(["mord"],[s],t)},mathmlBuilder:(e,t)=>{const n=new gt.MathNode("mpadded",[zt(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),We({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){let{parser:s}=e;const a=n[0],r=t[0];return{type:"sqrt",mode:s.mode,body:r,index:a}},htmlBuilder(e,t){let n=ct(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=Oe.wrapFragment(n,t);const s=t.fontMetrics().defaultRuleThickness;let a=s;t.style.id<k.TEXT.id&&(a=t.fontMetrics().xHeight);let r=s+a/4;const i=n.height+n.depth+r+s,{span:o,ruleWidth:l,advanceWidth:c}=xn.sqrtImage(i,t),h=o.height-l;h>n.height+n.depth+r&&(r=(r+h-n.height-n.depth)/2);const m=o.height-n.height-r-l;n.style.paddingLeft=V(c);const d=Oe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+m)},{type:"elem",elem:o},{type:"kern",size:l}]},t);if(e.index){const n=t.havingStyle(k.SCRIPTSCRIPT),s=ct(e.index,n,t),a=.6*(d.height-d.depth),r=Oe.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:s}]},t),i=Oe.makeSpan(["root"],[r]);return Oe.makeSpan(["mord","sqrt"],[i,d],t)}return Oe.makeSpan(["mord","sqrt"],[d],t)},mathmlBuilder(e,t){const{body:n,index:s}=e;return s?new gt.MathNode("mroot",[zt(n,t),zt(s,t)]):new gt.MathNode("msqrt",[zt(n,t)])}});const ls={display:k.DISPLAY,text:k.TEXT,script:k.SCRIPT,scriptscript:k.SCRIPTSCRIPT};We({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){let{breakOnTokenText:n,funcName:s,parser:a}=e;const r=a.parseExpression(!0,n),i=s.slice(1,s.length-5);return{type:"styling",mode:a.mode,style:i,body:r}},htmlBuilder(e,t){const n=ls[e.style],s=t.havingStyle(n).withFont("");return is(e.body,s,t)},mathmlBuilder(e,t){const n=ls[e.style],s=t.havingStyle(n),a=kt(e.body,s),r=new gt.MathNode("mstyle",a),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return r.setAttribute("scriptlevel",i[0]),r.setAttribute("displaystyle",i[1]),r}}),je({type:"supsub",htmlBuilder(e,t){const n=function(e,t){const n=e.base;return n?"op"===n.type?n.limits&&(t.style.size===k.DISPLAY.size||n.alwaysHandleSupSub)?ts:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===k.DISPLAY.size||n.limits)?rs:null:"accent"===n.type?l.isCharacterBox(n.base)?Ht:null:"horizBrace"===n.type&&!e.sub===n.isOver?Yn:null:null}(e,t);if(n)return n(e,t);const{base:s,sup:a,sub:r}=e,i=ct(s,t);let o,c;const h=t.fontMetrics();let m=0,d=0;const u=s&&l.isCharacterBox(s);if(a){const e=t.havingStyle(t.style.sup());o=ct(a,e,t),u||(m=i.height-e.fontMetrics().supDrop*e.sizeMultiplier/t.sizeMultiplier)}if(r){const e=t.havingStyle(t.style.sub());c=ct(r,e,t),u||(d=i.depth+e.fontMetrics().subDrop*e.sizeMultiplier/t.sizeMultiplier)}let p;p=t.style===k.DISPLAY?h.sup1:t.style.cramped?h.sup3:h.sup2;const g=t.sizeMultiplier,f=V(.5/h.ptPerEm/g);let b,y=null;if(c){const t=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(i instanceof Q||t)&&(y=V(-i.italic))}if(o&&c){m=Math.max(m,p,o.depth+.25*h.xHeight),d=Math.max(d,h.sub2);const e=4*h.defaultRuleThickness;if(m-o.depth-(c.height-d)<e){d=e-(m-o.depth)+c.height;const t=.8*h.xHeight-(m-o.depth);t>0&&(m+=t,d-=t)}const n=[{type:"elem",elem:c,shift:d,marginRight:f,marginLeft:y},{type:"elem",elem:o,shift:-m,marginRight:f}];b=Oe.makeVList({positionType:"individualShift",children:n},t)}else if(c){d=Math.max(d,h.sub1,c.height-.8*h.xHeight);const e=[{type:"elem",elem:c,marginLeft:y,marginRight:f}];b=Oe.makeVList({positionType:"shift",positionData:d,children:e},t)}else{if(!o)throw new Error("supsub must have either sup or sub.");m=Math.max(m,p,o.depth+.25*h.xHeight),b=Oe.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:o,marginRight:f}]},t)}const x=ot(i,"right")||"mord";return Oe.makeSpan([x],[i,Oe.makeSpan(["msupsub"],[b])],t)},mathmlBuilder(e,t){let n,s,a=!1;e.base&&"horizBrace"===e.base.type&&(s=!!e.sup,s===e.base.isOver&&(a=!0,n=e.base.isOver)),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);const r=[zt(e.base,t)];let i;if(e.sub&&r.push(zt(e.sub,t)),e.sup&&r.push(zt(e.sup,t)),a)i=n?"mover":"munder";else if(e.sub)if(e.sup){const n=e.base;i=n&&"op"===n.type&&n.limits&&t.style===k.DISPLAY||n&&"operatorname"===n.type&&n.alwaysHandleSupSub&&(t.style===k.DISPLAY||n.limits)?"munderover":"msubsup"}else{const n=e.base;i=n&&"op"===n.type&&n.limits&&(t.style===k.DISPLAY||n.alwaysHandleSupSub)||n&&"operatorname"===n.type&&n.alwaysHandleSupSub&&(n.limits||t.style===k.DISPLAY)?"munder":"msub"}else{const n=e.base;i=n&&"op"===n.type&&n.limits&&(t.style===k.DISPLAY||n.alwaysHandleSupSub)||n&&"operatorname"===n.type&&n.alwaysHandleSupSub&&(n.limits||t.style===k.DISPLAY)?"mover":"msup"}return new gt.MathNode(i,r)}}),je({type:"atom",htmlBuilder:(e,t)=>Oe.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){const n=new gt.MathNode("mo",[ft(e.text,e.mode)]);if("bin"===e.family){const s=yt(e,t);"bold-italic"===s&&n.setAttribute("mathvariant",s)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});const cs={mi:"italic",mn:"normal",mtext:"normal"};je({type:"mathord",htmlBuilder:(e,t)=>Oe.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){const n=new gt.MathNode("mi",[ft(e.text,e.mode,t)]),s=yt(e,t)||"italic";return s!==cs[n.type]&&n.setAttribute("mathvariant",s),n}}),je({type:"textord",htmlBuilder:(e,t)=>Oe.makeOrd(e,t,"textord"),mathmlBuilder(e,t){const n=ft(e.text,e.mode,t),s=yt(e,t)||"normal";let a;return a="text"===e.mode?new gt.MathNode("mtext",[n]):/[0-9]/.test(e.text)?new gt.MathNode("mn",[n]):"\\prime"===e.text?new gt.MathNode("mo",[n]):new gt.MathNode("mi",[n]),s!==cs[a.type]&&a.setAttribute("mathvariant",s),a}});const hs={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},ms={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};je({type:"spacing",htmlBuilder(e,t){if(ms.hasOwnProperty(e.text)){const n=ms[e.text].className||"";if("text"===e.mode){const s=Oe.makeOrd(e,t,"textord");return s.classes.push(n),s}return Oe.makeSpan(["mspace",n],[Oe.mathsym(e.text,e.mode,t)],t)}if(hs.hasOwnProperty(e.text))return Oe.makeSpan(["mspace",hs[e.text]],[],t);throw new s('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){let n;if(!ms.hasOwnProperty(e.text)){if(hs.hasOwnProperty(e.text))return new gt.MathNode("mspace");throw new s('Unknown type of space "'+e.text+'"')}return n=new gt.MathNode("mtext",[new gt.TextNode(" ")]),n}});const ds=()=>{const e=new gt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};je({type:"tag",mathmlBuilder(e,t){const n=new gt.MathNode("mtable",[new gt.MathNode("mtr",[ds(),new gt.MathNode("mtd",[wt(e.body,t)]),ds(),new gt.MathNode("mtd",[wt(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});const us={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},ps={"\\textbf":"textbf","\\textmd":"textmd"},gs={"\\textit":"textit","\\textup":"textup"},fs=(e,t)=>{const n=e.font;return n?us[n]?t.withTextFontFamily(us[n]):ps[n]?t.withTextFontWeight(ps[n]):"\\emph"===n?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(gs[n]):t};We({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){let{parser:n,funcName:s}=e;const a=t[0];return{type:"text",mode:n.mode,body:Ze(a),font:s}},htmlBuilder(e,t){const n=fs(e,t),s=st(e.body,n,!0);return Oe.makeSpan(["mord","text"],s,n)},mathmlBuilder(e,t){const n=fs(e,t);return wt(e.body,n)}}),We({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){let{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){const n=ct(e.body,t),s=Oe.makeLineSpan("underline-line",t),a=t.fontMetrics().defaultRuleThickness,r=Oe.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:a},{type:"elem",elem:s},{type:"kern",size:3*a},{type:"elem",elem:n}]},t);return Oe.makeSpan(["mord","underline"],[r],t)},mathmlBuilder(e,t){const n=new gt.MathNode("mo",[new gt.TextNode("‾")]);n.setAttribute("stretchy","true");const s=new gt.MathNode("munder",[zt(e.body,t),n]);return s.setAttribute("accentunder","true"),s}}),We({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){let{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){const n=ct(e.body,t),s=t.fontMetrics().axisHeight,a=.5*(n.height-s-(n.depth+s));return Oe.makeVList({positionType:"shift",positionData:a,children:[{type:"elem",elem:n}]},t)},mathmlBuilder:(e,t)=>new gt.MathNode("mpadded",[zt(e.body,t)],["vcenter"])}),We({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new s("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){const n=bs(e),s=[],a=t.havingStyle(t.style.text());for(let r=0;r<n.length;r++){let t=n[r];"~"===t&&(t="\\textasciitilde"),s.push(Oe.makeSymbol(t,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return Oe.makeSpan(["mord","text"].concat(a.sizingClasses(t)),Oe.tryCombineChars(s),a)},mathmlBuilder(e,t){const n=new gt.TextNode(bs(e)),s=new gt.MathNode("mtext",[n]);return s.setAttribute("mathvariant","monospace"),s}});const bs=e=>e.body.replace(/ /g,e.star?"␣":" ");var ys=Ke;const xs="[̀-ͯ]",ks=new RegExp(xs+"+$");class ws{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp("([ \r\n\t]+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧-豈-][̀-ͯ]*|[\ud800-\udbff][\udc00-\udfff][̀-ͯ]*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){const e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new In("EOF",new Cn(this,t,t));const n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new s("Unexpected character: '"+e[t]+"'",new In(e[t],new Cn(this,t,t+1)));const a=n[6]||n[3]||(n[2]?"\\ ":" ");if(14===this.catcodes[a]){const t=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===t?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=t+1,this.lex()}return new In(a,new Cn(this,t,this.tokenRegex.lastIndex))}}class zs{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new s("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");const e=this.undefStack.pop();for(const t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(void 0===n&&(n=!1),n){for(let t=0;t<this.undefStack.length;t++)delete this.undefStack[t][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{const t=this.undefStack[this.undefStack.length-1];t&&!t.hasOwnProperty(e)&&(t[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}var vs=Tn;Bn("\\noexpand",(function(e){const t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),Bn("\\expandafter",(function(e){const t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),Bn("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),Bn("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),Bn("\\@ifnextchar",(function(e){const t=e.consumeArgs(3);e.consumeSpaces();const n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),Bn("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Bn("\\TextOrMath",(function(e){const t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));const _s={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Bn("\\char",(function(e){let t,n=e.popToken(),a="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if(n=e.popToken(),"\\"===n.text[0])a=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new s("\\char` missing argument");a=n.text.charCodeAt(0)}else t=10;if(t){if(a=_s[n.text],null==a||a>=t)throw new s("Invalid base-"+t+" digit "+n.text);let r;for(;null!=(r=_s[e.future().text])&&r<t;)a*=t,a+=r,e.popToken()}return"\\@char{"+a+"}"}));const Ss=(e,t,n,a)=>{let r=e.consumeArg().tokens;if(1!==r.length)throw new s("\\newcommand's first argument must be a macro name");const i=r[0].text,o=e.isDefined(i);if(o&&!t)throw new s("\\newcommand{"+i+"} attempting to redefine "+i+"; use \\renewcommand");if(!o&&!n)throw new s("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");let l=0;if(r=e.consumeArg().tokens,1===r.length&&"["===r[0].text){let t="",n=e.expandNextToken();for(;"]"!==n.text&&"EOF"!==n.text;)t+=n.text,n=e.expandNextToken();if(!t.match(/^\s*[0-9]+\s*$/))throw new s("Invalid number of arguments: "+t);l=parseInt(t),r=e.consumeArg().tokens}return o&&a||e.macros.set(i,{tokens:r,numArgs:l}),""};Bn("\\newcommand",(e=>Ss(e,!1,!0,!1))),Bn("\\renewcommand",(e=>Ss(e,!0,!1,!1))),Bn("\\providecommand",(e=>Ss(e,!0,!0,!0))),Bn("\\message",(e=>{const t=e.consumeArgs(1)[0];return console.log(t.reverse().map((e=>e.text)).join("")),""})),Bn("\\errmessage",(e=>{const t=e.consumeArgs(1)[0];return console.error(t.reverse().map((e=>e.text)).join("")),""})),Bn("\\show",(e=>{const t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),ys[n],ie.math[n],ie.text[n]),""})),Bn("\\bgroup","{"),Bn("\\egroup","}"),Bn("~","\\nobreakspace"),Bn("\\lq","`"),Bn("\\rq","'"),Bn("\\aa","\\r a"),Bn("\\AA","\\r A"),Bn("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),Bn("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Bn("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Bn("ℬ","\\mathscr{B}"),Bn("ℰ","\\mathscr{E}"),Bn("ℱ","\\mathscr{F}"),Bn("ℋ","\\mathscr{H}"),Bn("ℐ","\\mathscr{I}"),Bn("ℒ","\\mathscr{L}"),Bn("ℳ","\\mathscr{M}"),Bn("ℛ","\\mathscr{R}"),Bn("ℭ","\\mathfrak{C}"),Bn("ℌ","\\mathfrak{H}"),Bn("ℨ","\\mathfrak{Z}"),Bn("\\Bbbk","\\Bbb{k}"),Bn("·","\\cdotp"),Bn("\\llap","\\mathllap{\\textrm{#1}}"),Bn("\\rlap","\\mathrlap{\\textrm{#1}}"),Bn("\\clap","\\mathclap{\\textrm{#1}}"),Bn("\\mathstrut","\\vphantom{(}"),Bn("\\underbar","\\underline{\\text{#1}}"),Bn("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Bn("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Bn("\\ne","\\neq"),Bn("≠","\\neq"),Bn("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Bn("∉","\\notin"),Bn("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Bn("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Bn("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Bn("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Bn("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Bn("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Bn("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Bn("⟂","\\perp"),Bn("‼","\\mathclose{!\\mkern-0.8mu!}"),Bn("∌","\\notni"),Bn("⌜","\\ulcorner"),Bn("⌝","\\urcorner"),Bn("⌞","\\llcorner"),Bn("⌟","\\lrcorner"),Bn("©","\\copyright"),Bn("®","\\textregistered"),Bn("️","\\textregistered"),Bn("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),Bn("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),Bn("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),Bn("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),Bn("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),Bn("⋮","\\vdots"),Bn("\\varGamma","\\mathit{\\Gamma}"),Bn("\\varDelta","\\mathit{\\Delta}"),Bn("\\varTheta","\\mathit{\\Theta}"),Bn("\\varLambda","\\mathit{\\Lambda}"),Bn("\\varXi","\\mathit{\\Xi}"),Bn("\\varPi","\\mathit{\\Pi}"),Bn("\\varSigma","\\mathit{\\Sigma}"),Bn("\\varUpsilon","\\mathit{\\Upsilon}"),Bn("\\varPhi","\\mathit{\\Phi}"),Bn("\\varPsi","\\mathit{\\Psi}"),Bn("\\varOmega","\\mathit{\\Omega}"),Bn("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Bn("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),Bn("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Bn("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Bn("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Bn("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),Bn("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),Bn("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");const Ms={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Bn("\\dots",(function(e){let t="\\dotso";const n=e.expandAfterFuture().text;return n in Ms?t=Ms[n]:("\\not"===n.slice(0,4)||n in ie.math&&["bin","rel"].includes(ie.math[n].group))&&(t="\\dotsb"),t}));const As={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Bn("\\dotso",(function(e){return e.future().text in As?"\\ldots\\,":"\\ldots"})),Bn("\\dotsc",(function(e){const t=e.future().text;return t in As&&","!==t?"\\ldots\\,":"\\ldots"})),Bn("\\cdots",(function(e){return e.future().text in As?"\\@cdots\\,":"\\@cdots"})),Bn("\\dotsb","\\cdots"),Bn("\\dotsm","\\cdots"),Bn("\\dotsi","\\!\\cdots"),Bn("\\dotsx","\\ldots\\,"),Bn("\\DOTSI","\\relax"),Bn("\\DOTSB","\\relax"),Bn("\\DOTSX","\\relax"),Bn("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Bn("\\,","\\tmspace+{3mu}{.1667em}"),Bn("\\thinspace","\\,"),Bn("\\>","\\mskip{4mu}"),Bn("\\:","\\tmspace+{4mu}{.2222em}"),Bn("\\medspace","\\:"),Bn("\\;","\\tmspace+{5mu}{.2777em}"),Bn("\\thickspace","\\;"),Bn("\\!","\\tmspace-{3mu}{.1667em}"),Bn("\\negthinspace","\\!"),Bn("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Bn("\\negthickspace","\\tmspace-{5mu}{.277em}"),Bn("\\enspace","\\kern.5em "),Bn("\\enskip","\\hskip.5em\\relax"),Bn("\\quad","\\hskip1em\\relax"),Bn("\\qquad","\\hskip2em\\relax"),Bn("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Bn("\\tag@paren","\\tag@literal{({#1})}"),Bn("\\tag@literal",(e=>{if(e.macros.get("\\df@tag"))throw new s("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),Bn("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Bn("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Bn("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Bn("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Bn("\\newline","\\\\\\relax"),Bn("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");const Ts=V(T["Main-Regular"]["T".charCodeAt(0)][1]-.7*T["Main-Regular"]["A".charCodeAt(0)][1]);Bn("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Ts+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),Bn("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Ts+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),Bn("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Bn("\\@hspace","\\hskip #1\\relax"),Bn("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Bn("\\ordinarycolon",":"),Bn("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Bn("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Bn("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Bn("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Bn("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Bn("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Bn("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Bn("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Bn("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Bn("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Bn("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Bn("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Bn("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Bn("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Bn("∷","\\dblcolon"),Bn("∹","\\eqcolon"),Bn("≔","\\coloneqq"),Bn("≕","\\eqqcolon"),Bn("⩴","\\Coloneqq"),Bn("\\ratio","\\vcentcolon"),Bn("\\coloncolon","\\dblcolon"),Bn("\\colonequals","\\coloneqq"),Bn("\\coloncolonequals","\\Coloneqq"),Bn("\\equalscolon","\\eqqcolon"),Bn("\\equalscoloncolon","\\Eqqcolon"),Bn("\\colonminus","\\coloneq"),Bn("\\coloncolonminus","\\Coloneq"),Bn("\\minuscolon","\\eqcolon"),Bn("\\minuscoloncolon","\\Eqcolon"),Bn("\\coloncolonapprox","\\Colonapprox"),Bn("\\coloncolonsim","\\Colonsim"),Bn("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Bn("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Bn("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Bn("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Bn("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Bn("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Bn("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Bn("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),Bn("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),Bn("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),Bn("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),Bn("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),Bn("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),Bn("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),Bn("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),Bn("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),Bn("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),Bn("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),Bn("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),Bn("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),Bn("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),Bn("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),Bn("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),Bn("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),Bn("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),Bn("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),Bn("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),Bn("\\imath","\\html@mathml{\\@imath}{ı}"),Bn("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),Bn("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Bn("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Bn("⟦","\\llbracket"),Bn("⟧","\\rrbracket"),Bn("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Bn("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Bn("⦃","\\lBrace"),Bn("⦄","\\rBrace"),Bn("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Bn("⦵","\\minuso"),Bn("\\darr","\\downarrow"),Bn("\\dArr","\\Downarrow"),Bn("\\Darr","\\Downarrow"),Bn("\\lang","\\langle"),Bn("\\rang","\\rangle"),Bn("\\uarr","\\uparrow"),Bn("\\uArr","\\Uparrow"),Bn("\\Uarr","\\Uparrow"),Bn("\\N","\\mathbb{N}"),Bn("\\R","\\mathbb{R}"),Bn("\\Z","\\mathbb{Z}"),Bn("\\alef","\\aleph"),Bn("\\alefsym","\\aleph"),Bn("\\Alpha","\\mathrm{A}"),Bn("\\Beta","\\mathrm{B}"),Bn("\\bull","\\bullet"),Bn("\\Chi","\\mathrm{X}"),Bn("\\clubs","\\clubsuit"),Bn("\\cnums","\\mathbb{C}"),Bn("\\Complex","\\mathbb{C}"),Bn("\\Dagger","\\ddagger"),Bn("\\diamonds","\\diamondsuit"),Bn("\\empty","\\emptyset"),Bn("\\Epsilon","\\mathrm{E}"),Bn("\\Eta","\\mathrm{H}"),Bn("\\exist","\\exists"),Bn("\\harr","\\leftrightarrow"),Bn("\\hArr","\\Leftrightarrow"),Bn("\\Harr","\\Leftrightarrow"),Bn("\\hearts","\\heartsuit"),Bn("\\image","\\Im"),Bn("\\infin","\\infty"),Bn("\\Iota","\\mathrm{I}"),Bn("\\isin","\\in"),Bn("\\Kappa","\\mathrm{K}"),Bn("\\larr","\\leftarrow"),Bn("\\lArr","\\Leftarrow"),Bn("\\Larr","\\Leftarrow"),Bn("\\lrarr","\\leftrightarrow"),Bn("\\lrArr","\\Leftrightarrow"),Bn("\\Lrarr","\\Leftrightarrow"),Bn("\\Mu","\\mathrm{M}"),Bn("\\natnums","\\mathbb{N}"),Bn("\\Nu","\\mathrm{N}"),Bn("\\Omicron","\\mathrm{O}"),Bn("\\plusmn","\\pm"),Bn("\\rarr","\\rightarrow"),Bn("\\rArr","\\Rightarrow"),Bn("\\Rarr","\\Rightarrow"),Bn("\\real","\\Re"),Bn("\\reals","\\mathbb{R}"),Bn("\\Reals","\\mathbb{R}"),Bn("\\Rho","\\mathrm{P}"),Bn("\\sdot","\\cdot"),Bn("\\sect","\\S"),Bn("\\spades","\\spadesuit"),Bn("\\sub","\\subset"),Bn("\\sube","\\subseteq"),Bn("\\supe","\\supseteq"),Bn("\\Tau","\\mathrm{T}"),Bn("\\thetasym","\\vartheta"),Bn("\\weierp","\\wp"),Bn("\\Zeta","\\mathrm{Z}"),Bn("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Bn("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Bn("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Bn("\\bra","\\mathinner{\\langle{#1}|}"),Bn("\\ket","\\mathinner{|{#1}\\rangle}"),Bn("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Bn("\\Bra","\\left\\langle#1\\right|"),Bn("\\Ket","\\left|#1\\right\\rangle");const Bs=e=>t=>{const n=t.consumeArg().tokens,s=t.consumeArg().tokens,a=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();const l=t=>n=>{e&&(n.macros.set("|",i),a.length&&n.macros.set("\\|",o));let r=t;return!t&&a.length&&"|"===n.future().text&&(n.popToken(),r=!0),{tokens:r?a:s,numArgs:0}};t.macros.set("|",l(!1)),a.length&&t.macros.set("\\|",l(!0));const c=t.consumeArg().tokens,h=t.expandTokens([...r,...c,...n]);return t.macros.endGroup(),{tokens:h.reverse(),numArgs:0}};Bn("\\bra@ket",Bs(!1)),Bn("\\bra@set",Bs(!0)),Bn("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),Bn("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),Bn("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),Bn("\\angln","{\\angl n}"),Bn("\\blue","\\textcolor{##6495ed}{#1}"),Bn("\\orange","\\textcolor{##ffa500}{#1}"),Bn("\\pink","\\textcolor{##ff00af}{#1}"),Bn("\\red","\\textcolor{##df0030}{#1}"),Bn("\\green","\\textcolor{##28ae7b}{#1}"),Bn("\\gray","\\textcolor{gray}{#1}"),Bn("\\purple","\\textcolor{##9d38bd}{#1}"),Bn("\\blueA","\\textcolor{##ccfaff}{#1}"),Bn("\\blueB","\\textcolor{##80f6ff}{#1}"),Bn("\\blueC","\\textcolor{##63d9ea}{#1}"),Bn("\\blueD","\\textcolor{##11accd}{#1}"),Bn("\\blueE","\\textcolor{##0c7f99}{#1}"),Bn("\\tealA","\\textcolor{##94fff5}{#1}"),Bn("\\tealB","\\textcolor{##26edd5}{#1}"),Bn("\\tealC","\\textcolor{##01d1c1}{#1}"),Bn("\\tealD","\\textcolor{##01a995}{#1}"),Bn("\\tealE","\\textcolor{##208170}{#1}"),Bn("\\greenA","\\textcolor{##b6ffb0}{#1}"),Bn("\\greenB","\\textcolor{##8af281}{#1}"),Bn("\\greenC","\\textcolor{##74cf70}{#1}"),Bn("\\greenD","\\textcolor{##1fab54}{#1}"),Bn("\\greenE","\\textcolor{##0d923f}{#1}"),Bn("\\goldA","\\textcolor{##ffd0a9}{#1}"),Bn("\\goldB","\\textcolor{##ffbb71}{#1}"),Bn("\\goldC","\\textcolor{##ff9c39}{#1}"),Bn("\\goldD","\\textcolor{##e07d10}{#1}"),Bn("\\goldE","\\textcolor{##a75a05}{#1}"),Bn("\\redA","\\textcolor{##fca9a9}{#1}"),Bn("\\redB","\\textcolor{##ff8482}{#1}"),Bn("\\redC","\\textcolor{##f9685d}{#1}"),Bn("\\redD","\\textcolor{##e84d39}{#1}"),Bn("\\redE","\\textcolor{##bc2612}{#1}"),Bn("\\maroonA","\\textcolor{##ffbde0}{#1}"),Bn("\\maroonB","\\textcolor{##ff92c6}{#1}"),Bn("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Bn("\\maroonD","\\textcolor{##ca337c}{#1}"),Bn("\\maroonE","\\textcolor{##9e034e}{#1}"),Bn("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Bn("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Bn("\\purpleC","\\textcolor{##aa87ff}{#1}"),Bn("\\purpleD","\\textcolor{##7854ab}{#1}"),Bn("\\purpleE","\\textcolor{##543b78}{#1}"),Bn("\\mintA","\\textcolor{##f5f9e8}{#1}"),Bn("\\mintB","\\textcolor{##edf2df}{#1}"),Bn("\\mintC","\\textcolor{##e0e5cc}{#1}"),Bn("\\grayA","\\textcolor{##f6f7f7}{#1}"),Bn("\\grayB","\\textcolor{##f0f1f2}{#1}"),Bn("\\grayC","\\textcolor{##e3e5e6}{#1}"),Bn("\\grayD","\\textcolor{##d6d8da}{#1}"),Bn("\\grayE","\\textcolor{##babec2}{#1}"),Bn("\\grayF","\\textcolor{##888d93}{#1}"),Bn("\\grayG","\\textcolor{##626569}{#1}"),Bn("\\grayH","\\textcolor{##3b3e40}{#1}"),Bn("\\grayI","\\textcolor{##21242c}{#1}"),Bn("\\kaBlue","\\textcolor{##314453}{#1}"),Bn("\\kaGreen","\\textcolor{##71B307}{#1}");const Cs={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Is{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new zs(vs,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new ws(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){let t,n,s;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:s,end:n}=this.consumeArg(["]"]))}else({tokens:s,start:t,end:n}=this.consumeArg());return this.pushToken(new In("EOF",n.loc)),this.pushTokens(s),new In("",Cn.range(t,n))}consumeSpaces(){for(;" "===this.future().text;)this.stack.pop()}consumeArg(e){const t=[],n=e&&e.length>0;n||this.consumeSpaces();const a=this.future();let r,i=0,o=0;do{if(r=this.popToken(),t.push(r),"{"===r.text)++i;else if("}"===r.text){if(--i,-1===i)throw new s("Extra }",r)}else if("EOF"===r.text)throw new s("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",r);if(e&&n)if((0===i||1===i&&"{"===e[o])&&r.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}while(0!==i||n);return"{"===a.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:a,end:r}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new s("The length of delimiters doesn't match the number of args!");const n=t[0];for(let e=0;e<n.length;e++){const t=this.popToken();if(n[e]!==t.text)throw new s("Use of the macro doesn't match its definition",t)}}const n=[];for(let s=0;s<e;s++)n.push(this.consumeArg(t&&t[s+1]).tokens);return n}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new s("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){const t=this.popToken(),n=t.text,a=t.noexpand?null:this._getExpansion(n);if(null==a||e&&a.unexpandable){if(e&&null==a&&"\\"===n[0]&&!this.isDefined(n))throw new s("Undefined control sequence: "+n);return this.pushToken(t),!1}this.countExpansion(1);let r=a.tokens;const i=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){r=r.slice();for(let e=r.length-1;e>=0;--e){let t=r[e];if("#"===t.text){if(0===e)throw new s("Incomplete placeholder at end of macro body",t);if(t=r[--e],"#"===t.text)r.splice(e+1,1);else{if(!/^[1-9]$/.test(t.text))throw new s("Not a valid argument number",t);r.splice(e,2,...i[+t.text-1])}}}}return this.pushTokens(r),r.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){const e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new In(e)]):void 0}expandTokens(e){const t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(!1===this.expandOnce(!0)){const e=this.stack.pop();e.treatAsRelax&&(e.noexpand=!1,e.treatAsRelax=!1),t.push(e)}return this.countExpansion(t.length),t}expandMacroAsText(e){const t=this.expandMacro(e);return t?t.map((e=>e.text)).join(""):t}_getExpansion(e){const t=this.macros.get(e);if(null==t)return t;if(1===e.length){const t=this.lexer.catcodes[e];if(null!=t&&13!==t)return}const n="function"==typeof t?t(this):t;if("string"==typeof n){let e=0;if(-1!==n.indexOf("#")){const t=n.replace(/##/g,"");for(;-1!==t.indexOf("#"+(e+1));)++e}const t=new ws(n,this.settings),s=[];let a=t.lex();for(;"EOF"!==a.text;)s.push(a),a=t.lex();return s.reverse(),{tokens:s,numArgs:e}}return n}isDefined(e){return this.macros.has(e)||ys.hasOwnProperty(e)||ie.math.hasOwnProperty(e)||ie.text.hasOwnProperty(e)||Cs.hasOwnProperty(e)}isExpandable(e){const t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:ys.hasOwnProperty(e)&&!ys[e].primitive}}const qs=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ds=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Hs={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Ns={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class Rs{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Is(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new s("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{const e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){const t=this.nextToken;this.consume(),this.gullet.pushToken(new In("}")),this.gullet.pushTokens(e);const n=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,n}parseExpression(e,t){const n=[];for(;;){"math"===this.mode&&this.consumeSpaces();const s=this.fetch();if(-1!==Rs.endOfExpression.indexOf(s.text))break;if(t&&s.text===t)break;if(e&&ys[s.text]&&ys[s.text].infix)break;const a=this.parseAtom(t);if(!a)break;"internal"!==a.type&&n.push(a)}return"text"===this.mode&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){let t,n=-1;for(let a=0;a<e.length;a++)if("infix"===e[a].type){if(-1!==n)throw new s("only one infix operator per group",e[a].token);n=a,t=e[a].replaceWith}if(-1!==n&&t){let s,a;const r=e.slice(0,n),i=e.slice(n+1);let o;return s=1===r.length&&"ordgroup"===r[0].type?r[0]:{type:"ordgroup",mode:this.mode,body:r},a=1===i.length&&"ordgroup"===i[0].type?i[0]:{type:"ordgroup",mode:this.mode,body:i},o="\\\\abovefrac"===t?this.callFunction(t,[s,e[n],a],[]):this.callFunction(t,[s,a],[]),[o]}return e}handleSupSubscript(e){const t=this.fetch(),n=t.text;let a;this.consume(),this.consumeSpaces();do{var r;a=this.parseGroup(e)}while("internal"===(null==(r=a)?void 0:r.type));if(!a)throw new s("Expected group after '"+n+"'",t);return a}formatUnsupportedCmd(e){const t=[];for(let s=0;s<e.length;s++)t.push({type:"textord",mode:"text",text:e[s]});const n={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]}}parseAtom(e){const t=this.parseGroup("atom",e);if("internal"===(null==t?void 0:t.type))return t;if("text"===this.mode)return t;let n,a;for(;;){this.consumeSpaces();const e=this.fetch();if("\\limits"===e.text||"\\nolimits"===e.text){if(t&&"op"===t.type)t.limits="\\limits"===e.text,t.alwaysHandleSupSub=!0;else{if(!t||"operatorname"!==t.type)throw new s("Limit controls must follow a math operator",e);t.alwaysHandleSupSub&&(t.limits="\\limits"===e.text)}this.consume()}else if("^"===e.text){if(n)throw new s("Double superscript",e);n=this.handleSupSubscript("superscript")}else if("_"===e.text){if(a)throw new s("Double subscript",e);a=this.handleSupSubscript("subscript")}else if("'"===e.text){if(n)throw new s("Double superscript",e);const t={type:"textord",mode:this.mode,text:"\\prime"},a=[t];for(this.consume();"'"===this.fetch().text;)a.push(t),this.consume();"^"===this.fetch().text&&a.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:a}}else{if(!Ds[e.text])break;{const t=qs.test(e.text),s=[];for(s.push(new In(Ds[e.text])),this.consume();;){const e=this.fetch().text;if(!Ds[e])break;if(qs.test(e)!==t)break;s.unshift(new In(Ds[e])),this.consume()}const r=this.subparse(s);t?a={type:"ordgroup",mode:"math",body:r}:n={type:"ordgroup",mode:"math",body:r}}}}return n||a?{type:"supsub",mode:this.mode,base:t,sup:n,sub:a}:t}parseFunction(e,t){const n=this.fetch(),a=n.text,r=ys[a];if(!r)return null;if(this.consume(),t&&"atom"!==t&&!r.allowedInArgument)throw new s("Got function '"+a+"' with no arguments"+(t?" as "+t:""),n);if("text"===this.mode&&!r.allowedInText)throw new s("Can't use function '"+a+"' in text mode",n);if("math"===this.mode&&!1===r.allowedInMath)throw new s("Can't use function '"+a+"' in math mode",n);const{args:i,optArgs:o}=this.parseArguments(a,r);return this.callFunction(a,i,o,n,e)}callFunction(e,t,n,a,r){const i={funcName:e,parser:this,token:a,breakOnTokenText:r},o=ys[e];if(o&&o.handler)return o.handler(i,t,n);throw new s("No function handler for "+e)}parseArguments(e,t){const n=t.numArgs+t.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};const a=[],r=[];for(let i=0;i<n;i++){let n=t.argTypes&&t.argTypes[i];const o=i<t.numOptionalArgs;(t.primitive&&null==n||"sqrt"===t.type&&1===i&&null==r[0])&&(n="primitive");const l=this.parseGroupOfType("argument to '"+e+"'",n,o);if(o)r.push(l);else{if(null==l)throw new s("Null argument, please report this as a bug");a.push(l)}}return{args:a,optArgs:r}}parseGroupOfType(e,t,n){switch(t){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,t);case"hbox":{const e=this.parseArgumentGroup(n,"text");return null!=e?{type:"styling",mode:e.mode,body:[e],style:"text"}:null}case"raw":{const e=this.parseStringGroup("raw",n);return null!=e?{type:"raw",mode:"text",string:e.text}:null}case"primitive":{if(n)throw new s("A primitive argument cannot be optional");const t=this.parseGroup(e);if(null==t)throw new s("Expected group as "+e,this.fetch());return t}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new s("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t){const n=this.gullet.scanArgument(t);if(null==n)return null;let s,a="";for(;"EOF"!==(s=this.fetch()).text;)a+=s.text,this.consume();return this.consume(),n.text=a,n}parseRegexGroup(e,t){const n=this.fetch();let a,r=n,i="";for(;"EOF"!==(a=this.fetch()).text&&e.test(i+a.text);)r=a,i+=r.text,this.consume();if(""===i)throw new s("Invalid "+t+": '"+n.text+"'",n);return n.range(r,i)}parseColorGroup(e){const t=this.parseStringGroup("color",e);if(null==t)return null;const n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new s("Invalid color: '"+t.text+"'",t);let a=n[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(e){let t,n=!1;if(this.gullet.consumeSpaces(),t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"),!t)return null;e||0!==t.text.length||(t.text="0pt",n=!0);const a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!a)throw new s("Invalid size: '"+t.text+"'",t);const r={number:+(a[1]+a[2]),unit:a[3]};if(!L(r))throw new s("Invalid unit: '"+r.unit+"'",t);return{type:"size",mode:this.mode,value:r,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);const t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;const n=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(e,t){const n=this.gullet.scanArgument(e);if(null==n)return null;const s=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();const a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();const r={type:"ordgroup",mode:this.mode,loc:n.loc,body:a};return t&&this.switchMode(s),r}parseGroup(e,t){const n=this.fetch(),a=n.text;let r;if("{"===a||"\\begingroup"===a){this.consume();const e="{"===a?"}":"\\endgroup";this.gullet.beginGroup();const t=this.parseExpression(!1,e),s=this.fetch();this.expect(e),this.gullet.endGroup(),r={type:"ordgroup",mode:this.mode,loc:Cn.range(n,s),body:t,semisimple:"\\begingroup"===a||void 0}}else if(r=this.parseFunction(t,e)||this.parseSymbol(),null==r&&"\\"===a[0]&&!Cs.hasOwnProperty(a)){if(this.settings.throwOnError)throw new s("Undefined control sequence: "+a,n);r=this.formatUnsupportedCmd(a),this.consume()}return r}formLigatures(e){let t=e.length-1;for(let n=0;n<t;++n){const s=e[n],a=s.text;"-"===a&&"-"===e[n+1].text&&(n+1<t&&"-"===e[n+2].text?(e.splice(n,3,{type:"textord",mode:"text",loc:Cn.range(s,e[n+2]),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:Cn.range(s,e[n+1]),text:"--"}),t-=1)),"'"!==a&&"`"!==a||e[n+1].text!==a||(e.splice(n,2,{type:"textord",mode:"text",loc:Cn.range(s,e[n+1]),text:a+a}),t-=1)}}parseSymbol(){const e=this.fetch();let t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();let e=t.slice(5);const n="*"===e.charAt(0);if(n&&(e=e.slice(1)),e.length<2||e.charAt(0)!==e.slice(-1))throw new s("\\verb assertion failed --\n please report what input caused this bug");return e=e.slice(1,-1),{type:"verb",mode:"text",body:e,star:n}}Ns.hasOwnProperty(t[0])&&!ie[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=Ns[t[0]]+t.slice(1));const n=ks.exec(t);let a;if(n&&(t=t.substring(0,n.index),"i"===t?t="ı":"j"===t&&(t="ȷ")),ie[this.mode][t]){this.settings.strict&&"math"===this.mode&&"ÐÞþ".indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);const n=ie[this.mode][t].group,s=Cn.range(e);let r;if(se.hasOwnProperty(n)){const e=n;r={type:"atom",mode:this.mode,family:e,loc:s,text:t}}else r={type:n,mode:this.mode,loc:s,text:t};a=r}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(v(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),a={type:"textord",mode:"text",loc:Cn.range(e),text:t}}if(this.consume(),n)for(let r=0;r<n[0].length;r++){const t=n[0][r];if(!Hs[t])throw new s("Unknown accent ' "+t+"'",e);const i=Hs[t][this.mode]||Hs[t].text;if(!i)throw new s("Accent "+t+" unsupported in "+this.mode+" mode",e);a={type:"accent",mode:this.mode,loc:Cn.range(e),label:i,isStretchy:!1,isShifty:!0,base:a}}return a}}Rs.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Es=function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");const n=new Rs(e,t);delete n.gullet.macros.current["\\df@tag"];let a=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new s("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new In("\\df@tag")])}]}return a};let Ps=function(e,t,n){t.textContent="";const s=Ls(e,n).toNode();t.appendChild(s)};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Ps=function(){throw new s("KaTeX doesn't work in quirks mode.")});const Os=function(e,t,n){if(n.throwOnError||!(e instanceof s))throw e;const a=Oe.makeSpan(["katex-error"],[new Q(t)]);return a.setAttribute("title",e.toString()),a.setAttribute("style","color:"+n.errorColor),a},Ls=function(e,t){const n=new m(t);try{return function(e,t,n){const s=_t(n);let a;if("mathml"===n.output)return vt(e,t,s,n.displayMode,!0);if("html"===n.output){const t=mt(e,s);a=Oe.makeSpan(["katex"],[t])}else{const r=vt(e,t,s,n.displayMode,!1),i=mt(e,s);a=Oe.makeSpan(["katex"],[r,i])}return St(a,n)}(Es(e,n),e,n)}catch(s){return Os(s,e,n)}};var Fs={version:"0.16.27",render:Ps,renderToString:function(e,t){return Ls(e,t).toMarkup()},ParseError:s,SETTINGS_SCHEMA:c,__parse:function(e,t){return Es(e,new m(t))},__renderToDomTree:Ls,__renderToHTMLTree:function(e,t){const n=new m(t);try{return function(e,t,n){const s=mt(e,_t(n));return St(Oe.makeSpan(["katex"],[s]),n)}(Es(e,n),0,n)}catch(s){return Os(s,e,n)}},__setFontMetrics:function(e,t){T[e]=t},__defineSymbol:oe,__defineFunction:We,__defineMacro:Bn,__domTree:{Span:W,Anchor:j,SymbolNode:Q,SvgNode:J,PathNode:ee,LineNode:te}};return t=t.default}()},"object"==typeof e&&"object"==typeof t?t.exports=s():"function"==typeof define&&define.amd?define([],s):"object"==typeof e?e.katex=s():n.katex=s()})),Me=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(Se());function s(e,t){const n=e.src[t-1],s=e.src[t],i=e.src[t+1];if("$"!==s)return{can_open:!1,can_close:!1};let o=!1,l=!1;return"$"===n||"\\"===n||void 0!==n&&!a(n)&&r(n)||(o=!0),"$"===i||null!=i&&!a(i)&&r(i)||(l=!0),{can_open:o,can_close:l}}function a(e){return/^\s$/u.test(e)}function r(e){return/^[\w\d]$/u.test(e)}function i(e,t){const n=e.src[t-1],s=e.src[t],a=e.src[t+1],r=e.src[t+2];return"$"===s&&"$"!==n&&"\\"!==n&&"$"===a&&"$"!==r?{can_open:!0,can_close:!0}:{can_open:!1,can_close:!1}}function o(e,t){if("$"!==e.src[e.pos])return!1;const n=e.tokens.at(-1);if("html_inline"===n?.type&&/^<\w+.+[^/]>$/.test(n.content))return!1;let a=s(e,e.pos);if(!a.can_open)return t||(e.pending+="$"),e.pos+=1,!0;let r,i=e.pos+1,o=i;for(;-1!==(o=e.src.indexOf("$",o));){for(r=o-1;"\\"===e.src[r];)r-=1;if((o-r)%2==1)break;o+=1}if(-1===o)return t||(e.pending+="$"),e.pos=i,!0;if(o-i==0)return t||(e.pending+="$$"),e.pos=i+1,!0;if(a=s(e,o),!a.can_close)return t||(e.pending+="$"),e.pos=i,!0;if(!t){const t=e.push("math_inline","math",0);t.markup="$",t.content=e.src.slice(i,o)}return e.pos=o+1,!0}function l(e,t){var n,s,a,r;if("$$"!==e.src.slice(e.pos,e.pos+2))return!1;if(!i(e,e.pos).can_open)return t||(e.pending+="$$"),e.pos+=2,!0;for(s=n=e.pos+2;-1!==(s=e.src.indexOf("$$",s));){for(r=s-1;"\\"===e.src[r];)r-=1;if((s-r)%2==1)break;s+=2}return-1===s?(t||(e.pending+="$$"),e.pos=n,!0):s-n==0?(t||(e.pending+="$$$$"),e.pos=n+2,!0):i(e,s).can_close?(t||((a=e.push("math_block","math",0)).block=!0,a.markup="$$",a.content=e.src.slice(n,s)),e.pos=s+2,!0):(t||(e.pending+="$$"),e.pos=n,!0)}function c(e,t){const n=e.src.slice(e.pos);if(!/^\n\\begin/.test(n))return!1;if(e.pos+=1,t)return!0;const s=n.split(/\n/g).slice(1);let a;const r=[];e:for(var i=0;i<s.length;++i){const e=s[i];for(const t of e.matchAll(/(\\begin|\\end)\s*\{([^{}]+)\}/g))if("\\begin"===t[1])r.push(t[2].trim());else if("\\end"===t[1]&&(r.pop(),!r.length)){a=i;break e}}if(void 0===a)return!1;const o=s.slice(0,a+1).reduce(((e,t)=>e+t.length),0)+a+1,l=e.push("math_inline_bare_block","math",0);return l.block=!0,l.markup="$$",l.content=n.slice(1,o),e.pos=e.pos+o,!0}function h(e,t,n,s){const a=e.tokens;for(let r=a.length-1;r>=0;r--){const e=a[r],i=[];if("html_block"!==e.type)continue;const o=e.content;for(const a of o.matchAll(s)){if(!a.groups)continue;const s=a.groups.html_before_math,r=a.groups.math,o=a.groups.html_after_math;s&&i.push({...e,type:"html_block",map:null,content:s}),r&&i.push({...e,type:t,map:null,content:r,markup:n,block:!0,tag:"math"}),o&&i.push({...e,type:"html_block",map:null,content:o})}i.length>0&&a.splice(r,1,...i)}return!0}function m(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}e.default=function(e,t){const s=t?.katex??n.default,a=t?.enableBareBlocks,r=t?.enableMathBlockInHtml,i=t?.enableMathInlineInHtml,d=t?.enableFencedBlocks;e.inline.ruler.after("escape","math_inline",o),e.inline.ruler.after("escape","math_inline_block",l),a&&e.inline.ruler.before("text","math_inline_bare_block",c),e.block.ruler.after("blockquote","math_block",((e,t,n,s)=>!(!a||!function(e,t,n,s){const a=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(!e.src.slice(a,r).match(/^\s*\\begin\s*\{([^{}]+)\}/))return!1;if(t>0){const n=e.bMarks[t-1]+e.tShift[t-1],s=e.eMarks[t-1],a=e.src.slice(n,s);if(!/^\s*$/.test(a))return!1}if(s)return!0;const i=[];let o,l=t,c=!1;e:for(;!(c||l>=n);l++){const t=e.bMarks[l]+e.tShift[l],n=e.eMarks[l];if(t<n&&e.tShift[l]<e.blkIndent)break;const s=e.src.slice(t,n);for(const a of s.matchAll(/(\\begin|\\end)\s*\{([^{}]+)\}/g))if("\\begin"===a[1])i.push(a[2].trim());else if("\\end"===a[1]&&(i.pop(),!i.length)){o=e.src.slice(t,n),c=!0;break e}}e.line=l+1;const h=e.push("math_block","math",0);return h.block=!0,h.content=(e.getLines(t,l,e.tShift[t],!0)+(o??"")).trim(),h.map=[t,e.line],h.markup="$$",!0}(e,t,n,s))||function(e,t,n,s){let a=!1,r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(r+2>i)return!1;if("$$"!==e.src.slice(r,r+2))return!1;r+=2;let o=e.src.slice(r,i);const l=[...o.matchAll(/\$\$/g)];if(1===l.length&&l[0].index===o.length-2)o=o.trim().slice(0,-2),a=!0;else if(l.length>1)return!1;if(s)return!0;let c,h,m;for(h=t;!(a||(h++,h>=n)||(r=e.bMarks[h]+e.tShift[h],i=e.eMarks[h],r<i&&e.tShift[h]<e.blkIndent));)"$$"===e.src.slice(r,i).trim().slice(-2)?(m=e.src.slice(0,i).lastIndexOf("$$"),c=e.src.slice(r,m),a=!0):e.src.slice(r,i).trim().includes("$$")&&(m=e.src.slice(0,i).trim().indexOf("$$"),c=e.src.slice(r,m),a=!0);e.line=h+1;const d=e.push("math_block","math",0);return d.block=!0,d.content=(o&&o.trim()?o+"\n":"")+e.getLines(t+1,h,e.tShift[t],!0)+(c&&c.trim()?c:""),d.map=[t,e.line],d.markup="$$",!0}(e,t,n,s)),{alt:["paragraph","reference","blockquote","list"]});const u=/(?<html_before_math>[\s\S]*?)\$\$(?<math>[\s\S]+?)\$\$(?<html_after_math>(?:(?!\$\$[\s\S]+?\$\$)[\s\S])*)/gm,p=/(?<html_before_math>[\s\S]*?)\$(?<math>.*?)\$(?<html_after_math>(?:(?!\$.*?\$)[\s\S])*)/gm;r&&e.core.ruler.push("math_block_in_html_block",(e=>h(e,"math_block","$$",u))),i&&e.core.ruler.push("math_inline_in_html_block",(e=>h(e,"math_inline","$",p)));const g=e=>{try{return`<p class="katex-block">${s.renderToString(e,{...t,displayMode:!0})}</p>`}catch(n){return t?.throwOnError&&console.log(n),`<p class="katex-block katex-error" title="${m(e)}">${m(n+"")}</p>`}},f=(e,t)=>g(e[t].content)+"\n";if(e.renderer.rules.math_inline=(e,n)=>{const a=e[n].content;return(e=>{const n=/\\begin\{(align|equation|gather|cd|alignat)\}/gi.test(e);try{return s.renderToString(e,{...t,displayMode:n})}catch(a){return t?.throwOnError&&console.log(a),`<span class="katex-error" title="${m(e)}">${m(a+"")}</span>`}})(a.length>2&&"`"===a[0]&&"`"===a[a.length-1]?a.slice(1,-1):a)},e.renderer.rules.math_inline_block=f,e.renderer.rules.math_inline_bare_block=f,e.renderer.rules.math_block=f,d){const t="math",n=e.renderer.rules.fence;e.renderer.rules.fence=function(e,s,a,r,i){const o=e[s];return o.info.trim().toLowerCase()===t&&d?g(o.content)+"\n":n?.call(this,e,s,a,r,i)||""}}}})),Ae=n(X(),1),Te=n(Me(),1),Ce={status:"uninitialized"},Ie=h({__name:"ChatButtons",props:{buttons:{},isDisabled:{type:Boolean}},setup(e){const t=l(null),n=l(!1);return(s,i)=>(a(),o("div",{class:y(s.$style.buttons)},[(a(!0),o(b,null,M(e.buttons,((s,i)=>(a(),o(b,{key:s.link},[null===t.value||i===t.value?(a(),A(f($),{key:0,type:s.type,disabled:e.isDisabled||n.value||null!==t.value,loading:n.value&&null===t.value,size:"small",onClick:a=>async function(s,a){if(!e.isDisabled&&null===t.value&&!n.value){n.value=!0;try{(await fetch(s)).ok&&(t.value=a)}finally{n.value=!1}}}(s.link,i)},{default:C((()=>[r(u(s.text),1)])),_:2},1032,["type","disabled","loading","onClick"])):p("",!0)],64)))),128))],2))}}),qe=J(Ie,[["__cssModules",{$style:{buttons:"_buttons_f542l_125"}}]]),De={key:2},He=h({__name:"ChatMarkdownChunk",props:{source:{},singlePre:{type:Boolean,default:!1},isButtonsDisabled:{type:Boolean,default:!1},footnoteStyle:{default:"pill"}},emits:["openArtifact"],setup(e,{expose:t,emit:n}){const s=n,c=x(),h=ht(c.codeBlockActions,c.tableContainer,"pill"===e.footnoteStyle?c.footnoteRef:null),m=l(null);function d(e){const t=e.target instanceof HTMLElement||e.target instanceof SVGElement?e.target.closest("pre")?.querySelector(`.${c.codeBlockActions}`):null;m.value=t instanceof HTMLElement?t:null}function g(){m.value=null}return t({hoveredCodeBlockActions:m,getHoveredCodeBlockContent:function(){const e=m.value?.getAttribute("data-markdown-token-idx");return e?h.codeBlockContents.value?.get(e):void 0}}),(t,n)=>"text"===e.source.type?(a(),A(f(re),{key:f(h).forceReRenderKey.value,source:e.source.content,class:y([t.$style.chatMessageMarkdown,{[t.$style.singlePre]:e.singlePre}]),options:f(h).options,plugins:f(h).plugins.value,onMousemove:d,onMouseleave:g},null,8,["source","class","options","plugins"])):"with-buttons"===e.source.type?(a(),o("div",{key:1,class:y(t.$style.container)},[(a(),A(f(re),{key:f(h).forceReRenderKey.value,source:e.source.content,class:y(t.$style.chatMessageMarkdown),options:f(h).options,plugins:f(h).plugins.value,onMousemove:d,onMouseleave:g},null,8,["source","class","options","plugins"])),v(qe,{buttons:e.source.buttons,"is-disabled":e.isButtonsDisabled},null,8,["buttons","is-disabled"])],2)):"hidden"===e.source.type?(a(),o("div",De)):"artifact-edit"!==e.source.type||e.source.isIncomplete?"artifact-create"!==e.source.type||e.source.isIncomplete?p("",!0):(a(),o("button",{key:4,class:y(t.$style.command),onClick:n[1]||(n[1]=t=>s("openArtifact",e.source.command.title))},[n[3]||(n[3]=r(" Created ",-1)),i("b",null,u(e.source.command.title),1)],2)):(a(),o("button",{key:3,class:y(t.$style.command),onClick:n[0]||(n[0]=t=>s("openArtifact",e.source.command.title))},[n[2]||(n[2]=r(" Updated ",-1)),i("b",null,u(e.source.command.title),1)],2))}}),e("i",Ne=J(He,[["__cssModules",{$style:{container:"_container_g63zs_125",chatMessageMarkdown:"_chatMessageMarkdown_g63zs_133",codeBlockActions:"_codeBlockActions_g63zs_245",singlePre:"_singlePre_g63zs_261",footnoteRef:"_footnoteRef_g63zs_320",tableContainer:"_tableContainer_g63zs_333",command:"_command_g63zs_421"}}]])),Re=["data-message-id","data-test-id"],Ee=["accept"],Pe={key:1},Oe=h({__name:"ChatMessage",props:{message:{},compact:{type:Boolean},isEditing:{type:Boolean},isEditSubmitting:{type:Boolean},hasSessionStreaming:{type:Boolean},cachedAgentDisplayName:{},cachedAgentIcon:{},acceptedMimeTypes:{},minHeight:{}},emits:["startEdit","cancelEdit","update","regenerate","switchAlternative","openArtifact"],setup(e,{expose:t,emit:n}){const s=n,h=ge(),m=se(),{isCtrlKeyPressed:g}=L(),x=N(),z=l(""),S=l([]),q=l(new Set),D=_("fileInputRef"),R=_("textarea"),P=_("attachmentsRef"),V=I(P,void 0,{box:"border-box"}),X=_("markdownChunk"),K=d((()=>{const e=X.value;if(!e||!Array.isArray(e))return null;for(const t of e)if(t?.hoveredCodeBlockActions){const e=t.getHoveredCodeBlockContent();if(e)return{target:t.hoveredCodeBlockActions,content:e}}return null})),U=d((()=>e.message.content.flatMap(((t,n,s)=>{if("hidden"===t.type)return[];if("with-buttons"===t.type)return[t];if("artifact-create"===t.type||"artifact-edit"===t.type){const e=s[n-1];return e?.type===t.type&&e.command.title===t.command.title?[]:[t]}return"error"!==e.message.status||t.content?/\[\^[^\]]+\]/.test(t.content)?[{type:"text",content:t.content}]:me(t.content).flatMap((e=>""===e.trim()?[]:[{type:"text",content:e}])):[{type:"text",content:x.baseText("chatHub.message.error.unknown")}]})))),G=d((()=>U.value.flatMap((e=>"text"===e.type?[e.content]:[])).join(""))),W=H(G,{pitch:1,rate:1,volume:1}),j=d((()=>{const t=le(e.message);return t?h.getAgent(t,{name:e.cachedAgentDisplayName,icon:e.cachedAgentIcon}):null})),Y=d((()=>e.message.attachments.map((({fileName:t,mimeType:n},s)=>({file:new File([],t??"file",{type:n}),downloadUrl:ce(m.restApiContext,e.message.sessionId,e.message.id,s)}))))),Z=d((()=>[...Y.value.flatMap((({downloadUrl:e,file:t},n)=>q.value.has(n)?[]:[{isNew:!1,file:t,index:n,downloadUrl:e}])),...S.value.map(((e,t)=>({isNew:!0,file:e,index:t})))])),Q=d((()=>pe(e.acceptedMimeTypes))),J=d((()=>"success"===e.message.status&&""===G.value&&!e.message.content.some((e=>"with-buttons"===e.type)))),ee=d((()=>"running"===e.message.status));function te(){s("startEdit")}function ne(){s("cancelEdit")}function ae(){if(!z.value.trim())return;const t=e.message.attachments.map(((e,t)=>t)).filter((e=>!q.value.has(e)));s("update",z.value,t,S.value)}function re(){D.value?.click()}function ie(e){const t=e.target,n=t.files;if(n&&0!==n.length){for(const e of Array.from(n))S.value.push(e);t&&(t.value="")}}function oe(e){if("Escape"===e.key)return void s("cancelEdit");const t=z.value.trim();"Enter"===e.key&&g(e)&&!e.isComposing&&t&&(e.preventDefault(),ae())}function he(){s("regenerate",e.message)}function de(){W.isSupported.value&&(W.isPlaying.value?W.stop():W.speak())}function ue(e){s("switchAlternative",e)}return t({addFiles:function(e){for(const t of e)S.value.push(t)}}),k((()=>e.isEditing),(e=>{z.value=e?G.value:"",S.value=[],q.value=new Set}),{immediate:!0}),k(R,(async e=>{e&&(await new Promise((e=>setTimeout(e,0))),e.focus(),e.$el.scrollIntoView({block:"nearest"}))}),{immediate:!0,flush:"post"}),c((()=>{W.stop()})),(t,n)=>J.value?p("",!0):(a(),o("div",{key:0,class:y([t.$style.message,"human"===e.message.type?t.$style.user:t.$style.assistant,{[t.$style.compact]:e.compact}]),style:B({minHeight:e.minHeight?`${e.minHeight}px`:void 0}),"data-message-id":e.message.id,"data-test-id":`chat-message-${e.message.id}`},[i("div",{class:y(t.$style.avatar)},["human"===e.message.type?(a(),A(f(E),{key:0,icon:"user",width:"20",height:"20"})):(a(),A(be,{key:1,agent:j.value,size:"md",tooltip:""},null,8,["agent"]))],2),i("div",{class:y(t.$style.content)},["human"===e.message.type?(a(),o("input",{key:0,ref_key:"fileInputRef",ref:D,type:"file","data-test-id":"message-edit-file-input",class:y(t.$style.fileInput),accept:Q.value,multiple:"",onChange:ie},null,42,Ee)):p("",!0),e.isEditing?(a(),o("div",{key:1,class:y(t.$style.editContainer),style:B({"--attachments--height":`${f(V).height.value}px`})},["human"===e.message.type&&Z.value.length>0?(a(),o("div",{key:0,ref_key:"attachmentsRef",ref:P,class:y(t.$style.attachments)},[(a(!0),o(b,null,M(Z.value,((e,t)=>(a(),A(ye,{key:t,file:e.file,"is-removable":"",href:e.isNew?void 0:e.downloadUrl,onRemove:t=>{var n;(n=e).isNew?S.value=S.value.filter(((e,t)=>t!==n.index)):q.value.add(n.index)}},null,8,["file","href","onRemove"])))),128))],2)):p("",!0),v(f(O),{ref:"textarea",modelValue:z.value,"onUpdate:modelValue":n[0]||(n[0]=e=>z.value=e),type:"textarea",autosize:{minRows:1,maxRows:20},class:y(t.$style.textarea),onKeydown:oe},null,8,["modelValue","class"]),i("div",{class:y(t.$style.editFooter)},["human"===e.message.type?(a(),A(f(F),{key:0,variant:"ghost",icon:"paperclip",onClick:w(re,["stop"])})):p("",!0),i("div",{class:y(t.$style.editActions)},[v(f($),{variant:"subtle",size:"small",onClick:ne},{default:C((()=>[r(u(f(x).baseText("chatHub.message.edit.cancel")),1)])),_:1}),v(f($),{variant:"solid",size:"small",disabled:!z.value.trim()||e.isEditSubmitting,loading:e.isEditSubmitting,onClick:ae},{default:C((()=>[r(u(f(x).baseText("chatHub.message.edit.send")),1)])),_:1},8,["disabled","loading"])],2)],2)],6)):(a(),o(b,{key:2},[i("div",{class:y([t.$style.chatMessage,{[t.$style.errorMessage]:"error"===e.message.status}])},[Y.value.length>0?(a(),o("div",{key:0,class:y(t.$style.attachments)},[(a(!0),o(b,null,M(Y.value,((e,t)=>(a(),A(ye,{key:t,file:e.file,"is-removable":!1,href:e.downloadUrl},null,8,["file","href"])))),128))],2)):p("",!0),"human"===e.message.type?(a(),o("div",Pe,u(G.value),1)):(a(),o("div",{key:2,class:y(t.$style.markdownContent)},[(a(!0),o(b,null,M(U.value,((t,r)=>(a(),A(Ne,{ref_for:!0,ref:"markdownChunk",key:r,source:t,"is-buttons-disabled":"waiting"!==e.message.status,onOpenArtifact:n[1]||(n[1]=e=>s("openArtifact",e))},null,8,["source","is-buttons-disabled"])))),128)),K.value?(a(),A(T,{key:0,to:K.value.target},[v(ze,{content:K.value.content},null,8,["content"])],8,["to"])):p("",!0)],2))],2),ee.value?(a(),A(we,{key:0,class:y(t.$style.typingIndicator)},null,8,["class"])):(a(),A(_e,{key:1,"is-speech-synthesis-available":f(W).isSupported.value,"is-speaking":f(W).isPlaying.value,class:y(t.$style.actions),message:e.message,"has-session-streaming":e.hasSessionStreaming,onEdit:te,onRegenerate:he,onReadAloud:de,onSwitchAlternative:ue},null,8,["is-speech-synthesis-available","is-speaking","class","message","has-session-streaming"]))],64))],2)],14,Re))}}),e("r",J(Oe,[["__cssModules",{$style:{message:"_message_bz6ov_125",markdownContent:"_markdownContent_bz6ov_130",codeBlockActions:"_codeBlockActions_bz6ov_137",avatar:"_avatar_bz6ov_141",compact:"_compact_bz6ov_154",content:"_content_bz6ov_160",actions:"_actions_bz6ov_166",attachments:"_attachments_bz6ov_172",chatMessage:"_chatMessage_bz6ov_177",editContainer:"_editContainer_bz6ov_180",user:"_user_bz6ov_196",errorMessage:"_errorMessage_bz6ov_207",textarea:"_textarea_bz6ov_239",fileInput:"_fileInput_bz6ov_252",editFooter:"_editFooter_bz6ov_256",editActions:"_editActions_bz6ov_270",typingIndicator:"_typingIndicator_bz6ov_276"}}]])),Le=h({__name:"ChatPromptCallouts",props:{showMissingAgentCallout:{type:Boolean},showMissingCredentialsCallout:{type:Boolean},showDynamicCredentialsMissingCallout:{type:Boolean},showCreditsClaimedCallout:{type:Boolean},isNewSession:{type:Boolean},llmProvider:{},aiCreditsQuota:{},compact:{type:Boolean}},emits:["selectModel","setCredentials","dismissCreditsCallout","openDynamicCredentials"],setup(e,{emit:t}){const n=t,s=N();return(t,o)=>e.showMissingAgentCallout?(a(),A(f(K),{key:0,icon:"info",theme:"secondary",class:y([t.$style.callout,{[t.$style.calloutCompact]:e.compact}])},{default:C((()=>[v(f(R),{keypath:e.isNewSession?"chatHub.chat.prompt.callout.selectModel.new":"chatHub.chat.prompt.callout.selectModel.existing",tag:"span",scope:"global"},{link:C((()=>[i("a",{href:"",onClick:o[0]||(o[0]=w((e=>n("selectModel")),["prevent"]))},u(f(s).baseText(e.isNewSession?"chatHub.chat.prompt.callout.selectModel.new.link":"chatHub.chat.prompt.callout.selectModel.existing.link")),1)])),_:1},8,["keypath"])])),_:1},8,["class"])):e.showMissingCredentialsCallout?(a(),A(f(K),{key:1,icon:"info",theme:"secondary",class:y([t.$style.callout,{[t.$style.calloutCompact]:e.compact}])},{default:C((()=>[v(f(R),{keypath:e.isNewSession?"chatHub.chat.prompt.callout.setCredentials.new":"chatHub.chat.prompt.callout.setCredentials.existing",tag:"span",scope:"global"},{link:C((()=>[i("a",{href:"",onClick:o[1]||(o[1]=w((t=>n("setCredentials",e.llmProvider)),["prevent"]))},u(f(s).baseText(e.isNewSession?"chatHub.chat.prompt.callout.setCredentials.new.link":"chatHub.chat.prompt.callout.setCredentials.existing.link")),1)])),provider:C((()=>[r(u(f(oe)[e.llmProvider]),1)])),_:1},8,["keypath"])])),_:1},8,["class"])):e.showDynamicCredentialsMissingCallout?(a(),A(f(K),{key:2,theme:"warning",class:y([t.$style.callout,{[t.$style.calloutCompact]:e.compact}]),"data-testid":"dynamic-credentials-missing-callout"},{trailingContent:C((()=>[v(f($),{type:"warning","native-type":"button",size:"small","data-testid":"dynamic-credentials-connect-button",onClick:o[2]||(o[2]=e=>n("openDynamicCredentials"))},{default:C((()=>[r(u(f(s).baseText("chatHub.chat.prompt.callout.dynamicCredentials.missing.button")),1)])),_:1})])),default:C((()=>[v(f(G),null,{default:C((()=>[r(u(f(s).baseText(e.isNewSession?"chatHub.chat.prompt.callout.dynamicCredentials.missing":"chatHub.chat.prompt.callout.dynamicCredentials.expired")),1)])),_:1})])),_:1},8,["class"])):e.showCreditsClaimedCallout?(a(),A(f(K),{key:3,icon:"info",theme:"secondary",class:y([t.$style.callout,{[t.$style.calloutCompact]:e.compact}])},{trailingContent:C((()=>[v(f(E),{icon:"x",title:"Dismiss",size:"medium",type:"secondary",onClick:o[3]||(o[3]=e=>n("dismissCreditsCallout"))})])),default:C((()=>[v(f(G),null,{default:C((()=>[r(u(f(s).baseText("freeAi.credits.callout.success.chatHub.beginning")),1)])),_:1}),v(f(G),{bold:""},{default:C((()=>[r(u(f(s).baseText("freeAi.credits.callout.success.chatHub.credits",{interpolate:{amount:e.aiCreditsQuota}})),1)])),_:1}),v(f(G),null,{default:C((()=>[r(u(f(s).baseText("freeAi.credits.callout.success.chatHub.end")),1)])),_:1})])),_:1},8,["class"])):p("",!0)}}),Fe=J(Le,[["__cssModules",{$style:{callout:"_callout_50o58_125",calloutCompact:"_calloutCompact_50o58_131"}}]]),Ve=["accept"],Xe=h({__name:"ChatPromptCompact",props:{message:{},attachments:{},placeholder:{},messagingState:{},acceptedMimeTypes:{},canUploadFiles:{type:Boolean},calloutVisible:{type:Boolean},isSpeechSupported:{type:Boolean},isListening:{type:Boolean}},emits:["submit","update:message","keydown","fileSelect","attach","mic","stop","removeAttachment"],setup(e,{expose:t,emit:n}){const s=e,r=n,l=N(),c=_("inputRef"),h=_("fileInputRef");function m(){c.value?.focus()}return t({inputRef:c,fileInputRef:h}),(t,n)=>(a(),o("form",{class:y(t.$style.prompt),onSubmit:n[8]||(n[8]=w((e=>r("submit")),["prevent"]))},[i("div",{class:y(t.$style.inputWrap)},[z(t.$slots,"callouts"),i("input",{ref_key:"fileInputRef",ref:h,type:"file",class:y(t.$style.fileInput),accept:e.acceptedMimeTypes,multiple:"",onChange:n[0]||(n[0]=e=>r("fileSelect",e))},null,42,Ve),i("div",{class:y([t.$style.inputWrapper,{[t.$style.calloutVisible]:e.calloutVisible}]),onClick:m},[e.attachments.length>0?(a(),o("div",{key:0,class:y(t.$style.compactAttachments)},[(a(!0),o(b,null,M(e.attachments,((t,s)=>(a(),A(ye,{key:s,file:t,"is-previewable":!0,"is-removable":"idle"===e.messagingState,onRemove:n[1]||(n[1]=e=>r("removeAttachment",e))},null,8,["file","is-removable"])))),128))],2)):p("",!0),i("div",{class:y(t.$style.compactRow)},[v(f(O),{ref_key:"inputRef",ref:c,"model-value":s.message,type:"textarea",placeholder:e.placeholder,autocomplete:"off",autosize:{minRows:1,maxRows:3},autofocus:"",disabled:"idle"!==e.messagingState,"onUpdate:modelValue":n[2]||(n[2]=e=>r("update:message",e)),onKeydown:n[3]||(n[3]=e=>r("keydown",e))},null,8,["model-value","placeholder","disabled"]),i("div",{class:y(t.$style.actions)},[v(f(V),{content:e.canUploadFiles?f(l).baseText("chatHub.chat.prompt.button.attach"):f(l).baseText("chatHub.chat.prompt.button.attach.disabled"),disabled:e.canUploadFiles&&"idle"===e.messagingState,placement:"top"},{default:C((()=>[v(f(F),{variant:"ghost",disabled:"idle"!==e.messagingState||!e.canUploadFiles,icon:"paperclip","icon-size":"large",onClick:n[4]||(n[4]=w((e=>r("attach")),["stop"]))},null,8,["disabled"])])),_:1},8,["content","disabled"]),e.isSpeechSupported?(a(),A(f(F),{key:0,variant:"ghost",title:e.isListening?f(l).baseText("chatHub.chat.prompt.button.stopRecording"):f(l).baseText("chatHub.chat.prompt.button.voiceInput"),disabled:"idle"!==e.messagingState,icon:e.isListening?"square":"mic",class:y({[t.$style.recording]:e.isListening}),"icon-size":"large",onClick:n[5]||(n[5]=w((e=>r("mic")),["stop"]))},null,8,["title","disabled","icon","class"])):p("",!0),"receiving"!==e.messagingState?(a(),A(f(F),{key:1,type:"submit",disabled:"idle"!==e.messagingState||!e.message.trim(),title:f(l).baseText("chatHub.chat.prompt.button.send"),loading:"waitingFirstChunk"===e.messagingState,icon:"arrow-up","icon-size":"large",onClick:n[6]||(n[6]=w((()=>{}),["stop"]))},null,8,["disabled","title","loading"])):(a(),A(f(F),{key:2,"native-type":"button",title:f(l).baseText("chatHub.chat.prompt.button.stopGenerating"),icon:"square","icon-size":"large",onClick:n[7]||(n[7]=w((e=>r("stop")),["stop"]))},null,8,["title"]))],2)],2)],2)],2)],34))}}),$e=J(Xe,[["__cssModules",{$style:{prompt:"_prompt_omdff_125",fileInput:"_fileInput_omdff_143",inputWrap:"_inputWrap_omdff_147",inputWrapper:"_inputWrapper_omdff_155",calloutVisible:"_calloutVisible_omdff_209",compactAttachments:"_compactAttachments_omdff_213",compactRow:"_compactRow_omdff_219",actions:"_actions_omdff_230",recording:"_recording_omdff_240",chatHubPromptRecordingPulse:"_chatHubPromptRecordingPulse_omdff_1"}}]]),Ke=["accept"],Ue=h({__name:"ChatPromptFull",props:{message:{},attachments:{},placeholder:{},messagingState:{},acceptedMimeTypes:{},canUploadFiles:{type:Boolean},calloutVisible:{type:Boolean},isSpeechSupported:{type:Boolean},isListening:{type:Boolean},checkedToolIds:{},customAgentId:{},isToolsSelectable:{type:Boolean},selectedModel:{}},emits:["submit","update:message","keydown","fileSelect","attach","mic","stop","removeAttachment","toolToggle"],setup(e,{expose:t,emit:n}){const s=e,r=n,l=N(),c=_("inputRef"),h=_("fileInputRef"),m=_("attachmentsEl"),d=I(m,void 0,{box:"border-box"});return t({inputRef:c,fileInputRef:h}),(t,n)=>(a(),o("form",{class:y([t.$style.prompt,{[t.$style.hasCallout]:e.calloutVisible}]),style:B({"--attachments-el--height":`${f(d).height.value}px`}),onSubmit:n[9]||(n[9]=w((e=>r("submit")),["prevent"]))},[i("input",{ref_key:"fileInputRef",ref:h,type:"file",class:y(t.$style.fileInput),accept:e.acceptedMimeTypes,multiple:"",onChange:n[0]||(n[0]=e=>r("fileSelect",e))},null,42,Ke),i("div",{class:y(t.$style.header)},[z(t.$slots,"callouts"),e.attachments.length>0?(a(),o("div",{key:0,ref_key:"attachmentsEl",ref:m,class:y(t.$style.attachments)},[(a(!0),o(b,null,M(e.attachments,((t,s)=>(a(),A(ye,{key:s,file:t,"is-previewable":!0,"is-removable":"idle"===e.messagingState,onRemove:n[1]||(n[1]=e=>r("removeAttachment",e))},null,8,["file","is-removable"])))),128))],2)):p("",!0)],2),v(f(O),{ref_key:"inputRef",ref:c,"model-value":s.message,type:"textarea",placeholder:e.placeholder,autocomplete:"off",autosize:{minRows:1,maxRows:6},autofocus:"",disabled:"idle"!==e.messagingState,"onUpdate:modelValue":n[2]||(n[2]=e=>r("update:message",e)),onKeydown:n[3]||(n[3]=e=>r("keydown",e))},null,8,["model-value","placeholder","disabled"]),i("div",{class:y(t.$style.footer)},[i("div",{class:y(t.$style.tools)},[v(xe,{class:y(t.$style.toolsButton),"checked-tool-ids":e.checkedToolIds,"custom-agent-id":e.customAgentId,disabled:"idle"!==e.messagingState||!e.isToolsSelectable,"disabled-tooltip":e.isToolsSelectable?void 0:e.selectedModel?f(l).baseText("chatHub.tools.selector.disabled.tooltip"):f(l).baseText("chatHub.tools.selector.disabled.noModel.tooltip"),onToggle:n[4]||(n[4]=e=>r("toolToggle",e))},null,8,["class","checked-tool-ids","custom-agent-id","disabled","disabled-tooltip"])],2),i("div",{class:y(t.$style.actions)},[v(f(V),{content:e.canUploadFiles?f(l).baseText("chatHub.chat.prompt.button.attach"):f(l).baseText("chatHub.chat.prompt.button.attach.disabled"),disabled:e.canUploadFiles&&"idle"===e.messagingState,placement:"top"},{default:C((()=>[v(f(F),{variant:"ghost",disabled:"idle"!==e.messagingState||!e.canUploadFiles,icon:"paperclip","icon-size":"large",onClick:n[5]||(n[5]=w((e=>r("attach")),["stop"]))},null,8,["disabled"])])),_:1},8,["content","disabled"]),e.isSpeechSupported?(a(),A(f(F),{key:0,variant:"outline",title:e.isListening?f(l).baseText("chatHub.chat.prompt.button.stopRecording"):f(l).baseText("chatHub.chat.prompt.button.voiceInput"),disabled:"idle"!==e.messagingState,icon:e.isListening?"square":"mic",class:y({[t.$style.recording]:e.isListening}),"icon-size":"large",onClick:n[6]||(n[6]=w((e=>r("mic")),["stop"]))},null,8,["title","disabled","icon","class"])):p("",!0),"receiving"!==e.messagingState?(a(),A(f(F),{key:1,type:"submit",disabled:"idle"!==e.messagingState||!e.message.trim(),title:f(l).baseText("chatHub.chat.prompt.button.send"),loading:"waitingFirstChunk"===e.messagingState,icon:"arrow-up","icon-size":"large",onClick:n[7]||(n[7]=w((()=>{}),["stop"]))},null,8,["disabled","title","loading"])):(a(),A(f(F),{key:2,"native-type":"button",title:f(l).baseText("chatHub.chat.prompt.button.stopGenerating"),icon:"square","icon-size":"large",onClick:n[8]||(n[8]=w((e=>r("stop")),["stop"]))},null,8,["title"]))],2)],2)],38))}}),Ge=J(Ue,[["__cssModules",{$style:{prompt:"_prompt_2i08r_125",hasCallout:"_hasCallout_2i08r_148",fileInput:"_fileInput_2i08r_152",header:"_header_2i08r_156",footer:"_footer_2i08r_157",tools:"_tools_2i08r_184",toolsButton:"_toolsButton_2i08r_188",actions:"_actions_2i08r_193",attachments:"_attachments_2i08r_202",recording:"_recording_2i08r_210",chatHubPromptRecordingPulse:"_chatHubPromptRecordingPulse_2i08r_1"}}]]),We=h({__name:"ChatPrompt",props:{messagingState:{},isNewSession:{type:Boolean},isToolsSelectable:{type:Boolean},selectedModel:{},checkedToolIds:{},sessionId:{},customAgentId:{},showCreditsClaimedCallout:{type:Boolean},showDynamicCredentialsMissingCallout:{type:Boolean},aiCreditsQuota:{},compact:{type:Boolean},placeholder:{}},emits:["submit","stop","selectModel","setCredentials","editAgent","dismissCreditsCallout","openDynamicCredentials"],setup(e,{expose:t,emit:n}){const s=e,r=ge(),i=n,o=l(),c=l(""),h=l(""),m=l([]),u=ee(),p=N(),g=D({continuous:!0,interimResults:!0,lang:navigator.language}),b=d((()=>s.placeholder?s.placeholder:s.selectedModel?p.baseText("chatHub.chat.prompt.placeholder.withModel",{interpolate:{model:s.selectedModel.name??"a model"}}):p.baseText("chatHub.chat.prompt.placeholder.selectModel"))),y=d((()=>de(s.selectedModel?.model)?s.selectedModel?.model.provider:void 0)),x=d((()=>pe(s.selectedModel?.metadata.allowedFilesMimeTypes??""))),w=d((()=>s.selectedModel?.metadata.allowFileUploads??!1)),z=d((()=>"missingAgent"===s.messagingState)),_=d((()=>"missingCredentials"===s.messagingState&&!!y.value)),S=d((()=>z.value||_.value||s.showDynamicCredentialsMissingCallout||s.showCreditsClaimedCallout));function M(){h.value=c.value,g.isListening.value?g.stop():g.start()}function T(){i("stop")}function B(){o.value?.fileInputRef?.click()}function I(e){const t=e.target,n=t.files;if(n&&0!==n.length){for(const e of Array.from(n))m.value.push(e);t&&(t.value=""),o.value?.inputRef?.focus()}}function q(e){m.value=m.value.filter((t=>t!==e))}function H(){const e=c.value.trim();e&&(g.stop(),i("submit",e,m.value))}function R(e){const t=c.value.trim();g.stop(),"Enter"!==e.key||e.shiftKey||e.isComposing||!t||(e.preventDefault(),e.stopPropagation(),g.stop(),i("submit",t,m.value))}async function E(e){if(s.customAgentId)return void(await r.toggleCustomAgentTool(s.customAgentId,e));if(s.sessionId)return void(await r.toggleSessionTool(s.sessionId,e));const t=r.configuredTools.find((t=>t.definition.id===e));t&&await r.toggleToolEnabled(e,!t.enabled)}return k(g.result,(e=>{c.value=h.value+" "+e.trimStart()})),k(g.isFinal,(e=>{e&&(h.value=c.value)}),{flush:"post"}),k(g.error,(e=>{"not-allowed"!==e?.error?"no-speech"===e?.error&&u.showMessage({title:p.baseText("chatHub.chat.prompt.microphone.noSpeech"),type:"warning"}):u.showError(new Error(p.baseText("chatHub.chat.prompt.microphone.accessDenied")),p.baseText("chatHub.chat.prompt.microphone.allowAccess"))})),t({focus:()=>o.value?.inputRef?.focus(),reset:()=>{c.value="",h.value="",m.value=[]},setText:e=>{c.value=e},appendText:e=>{c.value+=e},addAttachments:e=>{m.value.push(...e),o.value?.inputRef?.focus()}}),(t,n)=>e.compact?(a(),A($e,{key:0,ref_key:"activePromptRef",ref:o,message:c.value,"onUpdate:message":n[4]||(n[4]=e=>c.value=e),attachments:m.value,placeholder:b.value,"messaging-state":e.messagingState,"accepted-mime-types":x.value,"can-upload-files":w.value,"callout-visible":S.value,"is-speech-supported":f(g).isSupported.value,"is-listening":f(g).isListening.value,onSubmit:H,onKeydown:R,onFileSelect:I,onAttach:B,onMic:M,onStop:T,onRemoveAttachment:q},{callouts:C((()=>[v(Fe,{"show-missing-agent-callout":z.value,"show-missing-credentials-callout":_.value,"show-dynamic-credentials-missing-callout":e.showDynamicCredentialsMissingCallout,"show-credits-claimed-callout":e.showCreditsClaimedCallout,"is-new-session":e.isNewSession,"llm-provider":y.value,"ai-credits-quota":e.aiCreditsQuota,compact:"",onSelectModel:n[0]||(n[0]=e=>i("selectModel")),onSetCredentials:n[1]||(n[1]=e=>i("setCredentials",e)),onDismissCreditsCallout:n[2]||(n[2]=e=>i("dismissCreditsCallout")),onOpenDynamicCredentials:n[3]||(n[3]=e=>i("openDynamicCredentials"))},null,8,["show-missing-agent-callout","show-missing-credentials-callout","show-dynamic-credentials-missing-callout","show-credits-claimed-callout","is-new-session","llm-provider","ai-credits-quota"])])),_:1},8,["message","attachments","placeholder","messaging-state","accepted-mime-types","can-upload-files","callout-visible","is-speech-supported","is-listening"])):(a(),A(Ge,{key:1,ref_key:"activePromptRef",ref:o,message:c.value,"onUpdate:message":n[9]||(n[9]=e=>c.value=e),attachments:m.value,placeholder:b.value,"messaging-state":e.messagingState,"accepted-mime-types":x.value,"can-upload-files":w.value,"callout-visible":S.value,"is-speech-supported":f(g).isSupported.value,"is-listening":f(g).isListening.value,"checked-tool-ids":e.checkedToolIds,"custom-agent-id":e.customAgentId,"is-tools-selectable":e.isToolsSelectable,"selected-model":e.selectedModel,onSubmit:H,onKeydown:R,onFileSelect:I,onAttach:B,onMic:M,onStop:T,onRemoveAttachment:q,onToolToggle:E},{callouts:C((()=>[v(Fe,{"show-missing-agent-callout":z.value,"show-missing-credentials-callout":_.value,"show-dynamic-credentials-missing-callout":e.showDynamicCredentialsMissingCallout,"show-credits-claimed-callout":e.showCreditsClaimedCallout,"is-new-session":e.isNewSession,"llm-provider":y.value,"ai-credits-quota":e.aiCreditsQuota,onSelectModel:n[5]||(n[5]=e=>i("selectModel")),onSetCredentials:n[6]||(n[6]=e=>i("setCredentials",e)),onDismissCreditsCallout:n[7]||(n[7]=e=>i("dismissCreditsCallout")),onOpenDynamicCredentials:n[8]||(n[8]=e=>i("openDynamicCredentials"))},null,8,["show-missing-agent-callout","show-missing-credentials-callout","show-dynamic-credentials-missing-callout","show-credits-claimed-callout","is-new-session","llm-provider","ai-credits-quota"])])),_:1},8,["message","attachments","placeholder","messaging-state","accepted-mime-types","can-upload-files","callout-visible","is-speech-supported","is-listening","checked-tool-ids","custom-agent-id","is-tools-selectable","selected-model"]))}}),e("n",We),je=J(h({__name:"ChatSuggestedPrompts",props:{prompts:{}},emits:["select"],setup(e,{emit:t}){const n=t;function s(e){if("emoji"!==e?.type)return e?.value??"message-circle"}return(t,l)=>(a(),o("div",{class:y(t.$style.container)},[(a(!0),o(b,null,M(e.prompts,(e=>(a(),A(f($),{key:e.text,variant:"outline",size:"small",icon:s(e.icon),"icon-size":"large",class:y(t.$style.chip),onClick:t=>n("select",e.text)},m({default:C((()=>[r(" "+u(e.text),1)])),_:2},["emoji"===e.icon?.type?{name:"icon",fn:C((()=>[i("span",{class:y(t.$style.emoji)},u(e.icon.value),3)])),key:"0"}:void 0]),1032,["icon","class","onClick"])))),128))],2))}}),[["__cssModules",{$style:{container:"_container_140do_125",chip:"_chip_140do_132",emoji:"_emoji_140do_139"}}]]),Ye=h({__name:"ChatGreetings",props:{selectedAgent:{},loading:{type:Boolean}},emits:["select-prompt"],setup(e,{emit:t}){const n=e,s=t,l=N(),c=d((()=>n.selectedAgent&&!de(n.selectedAgent.model)));return(t,n)=>(a(),o("div",{key:"greetings",class:y(t.$style.greetings)},[c.value&&e.selectedAgent?(a(),o("div",{key:0,class:y(t.$style.agentCard)},[e.loading?(a(),o(b,{key:0},[v(f(Q),{variant:"circle"}),v(f(Q),{rows:1,variant:"p",class:y(t.$style.skeletonName)},null,8,["class"])],64)):(a(),o(b,{key:1},[v(be,{agent:e.selectedAgent,size:"xl"},null,8,["agent"]),v(f(U),{tag:"h2",size:"xlarge",class:y(t.$style.agentName)},{default:C((()=>[r(u(f(Z)(e.selectedAgent.name,40)),1)])),_:1},8,["class"])],64)),e.loading?(a(),o(b,{key:2},[v(f(Q),{rows:3,variant:"p","shrink-last":!1,class:y(t.$style.skeletonDescription)},null,8,["class"]),i("div",{class:y([t.$style.suggestions,t.$style.skeletonPrompts])},[v(f(Q),{rows:1,variant:"p",class:y(t.$style.skeletonChip)},null,8,["class"]),v(f(Q),{rows:1,variant:"p",class:y(t.$style.skeletonChip)},null,8,["class"])],2)],64)):(a(),o(b,{key:3},[e.selectedAgent.description?(a(),o("p",{key:0,class:y(t.$style.agentDescription)},u(e.selectedAgent.description),3)):p("",!0),e.selectedAgent.suggestedPrompts?.length?(a(),A(je,{key:1,class:y(t.$style.suggestions),prompts:e.selectedAgent.suggestedPrompts,onSelect:n[0]||(n[0]=e=>s("select-prompt",e))},null,8,["class","prompts"])):p("",!0)],64))],2)):(a(),o("div",{key:1,class:y(t.$style.header)},[e.selectedAgent?(a(),o(b,{key:0},[v(f(U),{tag:"h2"},{default:C((()=>[r(u(f(l).baseText("chatHub.chat.greeting")),1)])),_:1}),v(be,{agent:e.selectedAgent,size:"md",class:y(t.$style.inlineIcon)},null,8,["agent","class"]),v(f(U),{bold:""},{default:C((()=>[r(u(f(Z)(e.selectedAgent.name,40)),1)])),_:1})],64)):(a(),A(f(U),{key:1,tag:"h2"},{default:C((()=>[r(u(f(l).baseText("chatHub.chat.greeting.fallback")),1)])),_:1}))],2))],2))}}),e("t",J(Ye,[["__cssModules",{$style:{greetings:"_greetings_17frw_125",agentCard:"_agentCard_17frw_132",agentName:"_agentName_17frw_140",agentDescription:"_agentDescription_17frw_148",suggestions:"_suggestions_17frw_158",skeletonName:"_skeletonName_17frw_162",skeletonDescription:"_skeletonDescription_17frw_167",skeletonPrompts:"_skeletonPrompts_17frw_172",skeletonChip:"_skeletonChip_17frw_178",header:"_header_17frw_182",inlineIcon:"_inlineIcon_17frw_188"}}]]))}}}));
//# sourceMappingURL=ChatGreetings-legacy-DLjZKb3_.js.map